/**
 * service-detail.php — page-servicedel-v5
 * Premium redesign. All .sd-* rules are unscoped (unique prefix avoids collisions).
 * Only Bootstrap overrides need body.page-servicedel-v5 scoping.
 */

body.page-servicedel-v5 {
    background-color: transparent !important;
    color: #fff;
}

/* globals.css sets #0b0b0b on these — override so section backgrounds show */
body.page-servicedel-v5 .cms-page-content,
body.page-servicedel-v5 .html-embed-fullbleed {
    background-color: transparent !important;
    overflow: visible !important;
}

/* ══════════════════════════════════════════════════════
   SHARED HELPERS  (unscoped — .sd- prefix is unique)
   ══════════════════════════════════════════════════════ */

.sd-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #3B96FF;
    margin-bottom: 1.1rem;
}

.sd-eyebrow::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 2px;
    background: #3B96FF;
    border-radius: 2px;
    flex-shrink: 0;
}

.sd-section-title {
    font-size: clamp(1.85rem, 3.5vw, 2.75rem);
    font-weight: 700;
    line-height: 1.18;
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.sd-section-header {
    margin-bottom: 3.5rem;
}

.sd-blue-text {
    background: linear-gradient(90deg, #5eead4 0%, #38bdf8 35%, #60a5fa 65%, #a78bfa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

/* ══════════════════════════════════════════════════════
   1. METRICS BAR
   ══════════════════════════════════════════════════════ */

.sd-metrics-bar {
    padding: 4rem 0;
    background: #02040a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sd-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: none;
    border-radius: 0;
    overflow: visible;
    gap: 1rem;
}

.sd-metric {
    padding: 2rem 1.75rem;
    background: rgba(12, 16, 38, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    position: relative;
    transition: background 0.25s ease;
}

.sd-metric::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #3B96FF, #a78bfa);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.sd-metric:hover {
    background: rgba(20, 26, 55, 1);
}

.sd-metric:hover::after {
    opacity: 1;
}

.sd-metric-val {
    display: block;
    font-size: clamp(1.8rem, 2.5vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(90deg, #5eead4 0%, #38bdf8 35%, #60a5fa 65%, #a78bfa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
    margin-bottom: 0.45rem;
}

.sd-metric-key {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.35rem;
}

.sd-metric-desc {
    font-size: 0.775rem;
    color: rgba(255, 255, 255, 0.42);
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 767px) {
    .sd-metrics-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 479px) {
    .sd-metrics-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════
   2. CAPABILITY NAVIGATOR
   ══════════════════════════════════════════════════════ */

/* ═══ CAPABILITY SECTION ══════════════════════════════════════════ */
.sd-capabilities {
    padding: 6rem 0;
    background: #060a18;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.sd-cap-header {
    text-align: left;
    margin-bottom: 3.5rem;
}

/* ═══ TIMELINE — center line, alternating left/right cards ═════════ */

.sd-timeline {
    position: relative;
    padding: 1rem 0;
}

/* Track (always visible, faint) */
.sd-tl-line-track {
    position: absolute;
    left: 28px;
    transform: none;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.05);
    z-index: 0;
    pointer-events: none;
}

/* Fill — height driven live by scroll JS */
.sd-tl-line-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(
        to bottom,
        #3B96FF 0%,
        #7c6bfa 60%,
        #a78bfa 100%
    );
    transition: height 0.18s ease-out;
    border-radius: 2px;
    will-change: height;
}

/* Each row: 3-column grid — content | dot | content */
.sd-tl-item {
    display: grid;
    grid-template-columns: 56px 1fr;
    align-items: center;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
}

.sd-tl-item:last-child {
    margin-bottom: 0;
}

/* Center column: dot button */
.sd-tl-axis {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    z-index: 2;
}

/* Dot — starts hidden, animates in when sd-tl-visible is added */
.sd-tl-dot {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(12, 16, 42, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.12) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font: inherit;
    font-size: 1.15rem;
    color: rgba(148, 197, 253, 0.5);
    -webkit-text-fill-color: rgba(148, 197, 253, 0.5);
    box-shadow: none !important;
    appearance: none;
    -webkit-appearance: none;
    flex-shrink: 0;
    position: relative;
    /* start invisible — JS reveals */
    opacity: 0;
    transform: scale(0.4);
    transition: opacity 0.4s ease, transform 0.4s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.sd-tl-item--visible .sd-tl-dot {
    opacity: 1;
    transform: scale(1);
}

/* Hover / active dot states */
.sd-tl-dot:hover {
    border-color: rgba(59, 150, 255, 0.4) !important;
    color: #60a5fa;
    -webkit-text-fill-color: #60a5fa;
}

.sd-tl-dot.active {
    border-color: #3B96FF !important;
    color: #3B96FF;
    -webkit-text-fill-color: #3B96FF;
    background: rgba(9, 14, 44, 0.99);
    box-shadow: 0 0 0 5px rgba(59, 150, 255, 0.12), 0 0 22px rgba(59, 150, 255, 0.28) !important;
}

/* Content cards — all fully visible, start hidden until animated */
.sd-tl-card {
    background:
      radial-gradient(circle at 90% 12%, rgba(155, 77, 255, 0.12), transparent 40%),
      linear-gradient(145deg, rgba(20, 26, 55, 0.95), rgba(10, 14, 34, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 1.5rem 1.75rem;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    /* start invisible — JS reveals */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    margin-left: 1rem;
}

.sd-tl-item--visible .sd-tl-card {
    opacity: 1;
    transform: translateY(0);
}

/* Fallback for migrated pages: never keep timeline content hidden. */
.sd-timeline .sd-tl-dot,
.sd-timeline .sd-tl-card {
    opacity: 1;
    transform: none;
}

/* Active card — subtle glow highlight (dot click bonus feature) */
.sd-tl-card.active {
    border-color: rgba(59, 150, 255, 0.28);
    box-shadow: 0 12px 42px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(59, 150, 255, 0.12);
}

/* Unified card accent edge facing timeline */
.sd-tl-card--left,
.sd-tl-card--right,
.sd-tl-card {
    border-left: 2px solid rgba(59, 150, 255, 0.1);
}

.sd-tl-card--left.active,
.sd-tl-card--right.active,
.sd-tl-card.active {
    border-left-color: rgba(59, 150, 255, 0.5);
}

.sd-tl-card-layout {
    min-height: 100%;
}

.sd-tl-main {
    display: flex;
    flex-direction: column;
}

.sd-tl-side {
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    padding-left: 1.1rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 1rem;
}

.sd-quick-links-label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.sd-quick-link {
    display: inline-flex;
    align-items: center;
    padding: 0.38rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(59, 150, 255, 0.28);
    color: rgba(191, 219, 254, 0.95);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.sd-quick-link:hover {
    border-color: rgba(59, 150, 255, 0.6);
    color: #ffffff;
    background: rgba(59, 150, 255, 0.12);
}

.sd-outcome-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
}

.sd-outcomes-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.sd-outcomes-copy {
    font-size: 0.82rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.72);
}

.sd-outcome-stat {
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    padding: 0.7rem 0.65rem;
}

.sd-outcome-num {
    display: block;
    font-size: 1.08rem;
    line-height: 1.1;
    font-weight: 800;
    color: #7dc2ff;
    letter-spacing: -0.01em;
}

.sd-outcome-label {
    display: block;
    margin-top: 0.24rem;
    font-size: 0.66rem;
    line-height: 1.25;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.62);
}

.sd-case-link {
    display: inline-flex;
    align-items: center;
    font-size: 0.84rem;
    font-weight: 700;
    color: #7dc2ff;
    text-decoration: none;
}

.sd-case-link:hover {
    color: #cde8ff;
}

/* All cards always visible — override any display:none from old JS */
body.page-servicedel-v5 .sd-tl-card.impl-pane {
    display: block !important;
}

/* Mobile: left-side line, all cards on right */
@media (max-width: 767px) {
    .sd-tl-line-track {
        left: 28px;
        transform: none;
    }

    .sd-tl-item {
        grid-template-columns: 56px 1fr;
        margin-bottom: 1.5rem;
    }

    .sd-tl-axis { order: 1; justify-content: flex-start; }
    .sd-tl-card { order: 2; margin-right: 0; margin-left: 1rem; }
    .sd-tl-card--left { margin-right: 0; border-right: none; border-left: 2px solid rgba(59,150,255,0.08); margin-left: 1rem; }
    .sd-tl-card--left.active { border-left-color: rgba(59, 150, 255, 0.45); }
    .sd-tl-empty { display: none; }
    .sd-tl-card--right { margin-left: 1rem; }
    .sd-tl-side {
        border-left: none;
        padding-left: 0.75rem;
        margin-top: 0.6rem;
    }
    .sd-outcome-stats {
        grid-template-columns: 1fr;
    }
}

/* Pane content styles (reused) */
.sd-pane-tag {
    display: inline-block;
    font-size: 0.63rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #3B96FF;
    margin-bottom: 0.75rem;
}

.sd-pane-title {
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.875rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.sd-pane-lead {
    font-size: 1.02rem;
    line-height: 1.74;
    color: rgba(255, 255, 255, 0.76);
    font-weight: 500;
    margin-bottom: 1.75rem;
}

.sd-pane-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #3B96FF;
    text-decoration: none;
    padding: 0.6rem 1.25rem;
    border: 1px solid rgba(59, 150, 255, 0.4);
    border-radius: 999px;
    background: rgba(59, 150, 255, 0.07);
    transition: all 0.2s ease;
}

.sd-pane-cta:hover {
    background: rgba(59, 150, 255, 0.15);
    border-color: rgba(59, 150, 255, 0.6);
    color: #60a5fa;
    gap: 0.7rem;
}

.sd-pane-quick {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.5rem;
    margin-top: 1.75rem;
}

.sd-pane-quick-label {
    font-size: 0.63rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 0.875rem;
}

.sd-pane-quick-links {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.sd-pane-quick-link {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.52);
    text-decoration: none;
    line-height: 1.45;
    transition: color 0.2s ease;
}

.sd-pane-quick-link .bi {
    color: #3B96FF;
    -webkit-text-fill-color: #3B96FF;
    font-size: 0.9rem;
    margin-top: 1px;
    flex-shrink: 0;
}

.sd-pane-quick-link:hover { color: #fff; }

/* Mobile adjustments */
@media (max-width: 767px) {
    .sd-step-content {
        padding: 1.75rem 1.25rem 1.75rem 1.5rem;
    }

    .sd-cap-badge {
        display: none;
    }
}

/* ══════════════════════════════════════════════════════
   3. CASE STUDIES
   ══════════════════════════════════════════════════════ */

.sd-cases-section {
    padding: 6rem 0;
    background: #02040a;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.sd-case-card {
    background: rgba(12, 16, 38, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.sd-case-card:hover {
    transform: translateY(-6px);
    border-color: rgba(59, 150, 255, 0.4);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.65);
}

.sd-case-image {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    flex-shrink: 0;
}

.sd-case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease;
}

.sd-case-card:hover .sd-case-image img {
    transform: scale(1.04);
}

.sd-case-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 45%, rgba(6, 8, 20, 0.75) 100%);
    pointer-events: none;
}

.sd-case-body {
    padding: 1.5rem 1.5rem 1.65rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.sd-case-tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #3B96FF;
    margin-bottom: 0.65rem;
}

.sd-case-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
    flex-grow: 1;
    letter-spacing: -0.01em;
    margin-bottom: 0;
    padding-bottom: 1.25rem;
}

.sd-case-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: #3B96FF;
    text-decoration: none;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    transition: gap 0.2s ease, color 0.2s ease;
    width: 100%;
}

.sd-case-cta:hover { color: #60a5fa; gap: 0.65rem; }

/* ══════════════════════════════════════════════════════
   4. INDUSTRY SOLUTIONS
   ══════════════════════════════════════════════════════ */

.sd-industries-section {
    padding: 6rem 0;
    background: #060a18;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    position: relative;
    overflow: hidden;
}

.sd-industries-section::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(88, 28, 135, 0.12) 0%, transparent 65%);
    top: -150px;
    right: -100px;
    pointer-events: none;
}

.sd-industry-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.875rem;
    margin-bottom: 3.5rem;
}

@media (max-width: 991px) { .sd-industry-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 575px)  { .sd-industry-grid { grid-template-columns: repeat(2, 1fr); } }

.sd-industry-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.35rem 0.75rem 1.1rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(12, 16, 38, 0.95);
    text-decoration: none;
    transition: background 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    width: 100%;
    color: inherit;
    cursor: pointer;
    font: inherit;
}
button.sd-industry-card {
    appearance: none;
}

.sd-industry-card:hover {
    background: rgba(20, 28, 65, 1);
    border-color: rgba(59, 150, 255, 0.4);
    transform: translateY(-3px);
}

.sd-industry-card.active {
    background: rgba(20, 28, 65, 1);
    border-color: rgba(59, 150, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 0 0 1px rgba(59, 150, 255, 0.15), 0 10px 24px rgba(0, 0, 0, 0.42);
}

.sd-industry-icon-box {
    width: 50px;
    height: 50px;
    border-radius: 13px;
    background: rgba(59, 150, 255, 0.1);
    border: 1px solid rgba(59, 150, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #93c5fd;
    transition: all 0.22s ease;
}

.sd-industry-card:hover .sd-industry-icon-box {
    background: rgba(59, 150, 255, 0.18);
    border-color: rgba(59, 150, 255, 0.4);
    box-shadow: 0 0 20px rgba(59, 150, 255, 0.2);
}

.sd-industry-card.active .sd-industry-icon-box {
    background: rgba(59, 150, 255, 0.2);
    border-color: rgba(59, 150, 255, 0.45);
    box-shadow: 0 0 20px rgba(59, 150, 255, 0.25);
}

.sd-industry-name {
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.82);
    text-align: center;
    line-height: 1.3;
}

.sd-industry-card.active .sd-industry-name {
    color: #ffffff;
}

.sd-industry-tab-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 1.5rem;
    align-items: stretch;
}

.sd-industry-panel-copy {
    background: rgba(10, 14, 34, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.35rem 1.35rem 1.15rem;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
}

.sd-industry-panel-visual {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    min-height: 260px;
    border: 1px solid rgba(59, 150, 255, 0.3);
    background:
      radial-gradient(circle at 20% 25%, rgba(59, 150, 255, 0.24) 0%, transparent 42%),
      radial-gradient(circle at 80% 15%, rgba(167, 139, 250, 0.3) 0%, transparent 42%),
      linear-gradient(160deg, rgba(8, 14, 38, 0.94) 0%, rgba(4, 9, 27, 0.96) 100%);
    box-shadow:
      0 14px 34px rgba(0, 0, 0, 0.4),
      inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.sd-industry-panel-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    mix-blend-mode: normal;
    filter: saturate(1.02) contrast(1.03);
}

.sd-industry-panel-badge {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(7, 12, 30, 0.72);
    border: 1px solid rgba(147, 197, 253, 0.32);
    border-radius: 12px;
    padding: 0.6rem 0.75rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.sd-industry-panel-badge i {
    font-size: 1rem;
    color: #93c5fd;
}

.sd-industry-panel-badge span {
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.sd-bullet-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.sd-bullet-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.6;
}

.sd-bullet-dot {
    flex-shrink: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #3B96FF;
    margin-top: 0.45rem;
}

@media (max-width: 991px) {
    .sd-industry-tab-panel {
        grid-template-columns: 1fr;
    }
    .sd-industry-panel-visual {
        min-height: 220px;
    }
}

/* ══════════════════════════════════════════════════════
   5. INSIGHTS
   ══════════════════════════════════════════════════════ */

.sd-insights-section {
    padding: 6rem 0;
    background: #02040a;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.sd-insight-card {
    background: rgba(12, 16, 38, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.26s ease, border-color 0.26s ease, box-shadow 0.26s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.sd-insight-card:hover {
    transform: translateY(-5px);
    border-color: rgba(59, 150, 255, 0.4);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.65);
}

.sd-insight-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    flex-shrink: 0;
}

.sd-insight-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.sd-insight-card:hover .sd-insight-image img { transform: scale(1.04); }

.sd-insight-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.sd-insight-badge {
    display: inline-block;
    align-self: flex-start;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    background: rgba(59, 150, 255, 0.14);
    color: #60a5fa;
    border: 1px solid rgba(59, 150, 255, 0.28);
    margin-bottom: 0.875rem;
}

.sd-insight-title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.45;
    flex-grow: 1;
    margin-bottom: 0;
    padding-bottom: 1.25rem;
}

.sd-insight-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: #3B96FF;
    text-decoration: none;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: auto;
    transition: gap 0.2s ease, color 0.2s ease;
}

.sd-insight-cta:hover { gap: 0.65rem; color: #60a5fa; }

/* ══════════════════════════════════════════════════════
   6. TESTIMONIALS
   ══════════════════════════════════════════════════════ */

.sd-testimonials-section {
    padding: 6rem 0;
    background: #060a18;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.sd-tcard {
    background: rgba(12, 16, 40, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 22px;
    padding: 2.25rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.sd-tcard::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59,150,255,0.6) 50%, transparent);
}

.sd-tcard:hover {
    border-color: rgba(59, 150, 255, 0.3);
    box-shadow: 0 16px 60px rgba(0, 0, 0, 0.6);
}

.sd-tcard-quote-mark {
    font-size: 5rem;
    line-height: 0.75;
    font-weight: 900;
    font-family: Georgia, serif;
    background: linear-gradient(135deg, #38bdf8, #a78bfa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.75rem;
    display: block;
    user-select: none;
}

.sd-tcard-head {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.875rem;
    letter-spacing: -0.01em;
}

.sd-tcard-text {
    font-size: 0.975rem;
    line-height: 1.72;
    color: rgba(255, 255, 255, 0.6);
    flex-grow: 1;
    margin-bottom: 0;
    padding-bottom: 1.5rem;
}

.sd-tcard-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sd-tcard-logo {
    flex-shrink: 0;
    width: 50px; height: 50px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.sd-tcard-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }

.sd-tcard-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.2rem;
}

.sd-tcard-role {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    background: linear-gradient(90deg, #5eead4, #38bdf8 38%, #60a5fa 68%, #a78bfa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

/* ══════════════════════════════════════════════════════
   7. FAQ
   ══════════════════════════════════════════════════════ */

.sd-faq-section {
    padding: 6rem 0;
    background: #02040a;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

body.page-servicedel-v5 .sd-faq-section .sd-section-title {
    margin-bottom: 1.1rem;
}

body.page-servicedel-v5 .sd-faq-section .accordion {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

/* Scope Bootstrap overrides to avoid polluting other accordions */
body.page-servicedel-v5 .sd-faq-section .accordion-item {
    background: rgba(12, 16, 38, 0.97) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 14px !important;
    margin-bottom: 0;
    overflow: visible;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

body.page-servicedel-v5 .sd-faq-section .accordion-button {
    background: transparent !important;
    color: #fff !important;
    font-weight: 600;
    font-size: 1rem;
    padding: 1.1rem 1.25rem;
    border-radius: 14px !important;
    box-shadow: none !important;
    line-height: 1.45;
}

body.page-servicedel-v5 .sd-faq-section .accordion-button:not(.collapsed) {
    background: rgba(59, 150, 255, 0.08) !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

body.page-servicedel-v5 .sd-faq-section .accordion-button::after {
    filter: brightness(0) invert(1);
    opacity: 0.5;
}

body.page-servicedel-v5 .sd-faq-section .accordion-button:not(.collapsed)::after {
    filter: none;
    opacity: 1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%233B96FF' d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
}

body.page-servicedel-v5 .sd-faq-section .accordion-body {
    padding: 1rem 1.25rem 1.35rem;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.95rem;
    line-height: 1.72;
    background: rgba(6, 9, 24, 0.8) !important;
    border-radius: 0 0 14px 14px;
}

/* ══════════════════════════════════════════════════════
   8. TECHNOLOGY PARTNERS
   ══════════════════════════════════════════════════════ */

.sd-partners-section {
    padding: 4rem 0;
    background: #060a18;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.sd-partners-label {
    font-size: 0.63rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.32);
    text-align: center;
    margin-bottom: 2.5rem;
}

.sd-partners-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    opacity: 0.4;
    filter: grayscale(1);
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.sd-partners-section:hover .sd-partners-row {
    opacity: 0.65;
    filter: grayscale(0.4);
}

/* ══════════════════════════════════════════════════════
   MISC LEGACY COMPAT
   ══════════════════════════════════════════════════════ */

body.page-servicedel-v5 .accordion-button:not(.collapsed) {
    box-shadow: none;
}

/* ══════════════════════════════════════════════════════
   MOBILE RESPONSIVE — section-level
   ══════════════════════════════════════════════════════ */

@media (max-width: 991px) {
    .sd-capabilities,
    .sd-cases-section,
    .sd-industries-section,
    .sd-insights-section,
    .sd-testimonials-section,
    .sd-faq-section {
        padding: 4.5rem 0;
    }

    .sd-section-header { margin-bottom: 2.5rem; }
}

@media (max-width: 767px) {
    .sd-capabilities,
    .sd-cases-section,
    .sd-industries-section,
    .sd-insights-section,
    .sd-testimonials-section,
    .sd-faq-section {
        padding: 3.5rem 0;
    }

    .sd-metrics-bar { padding: 2.5rem 0; }
    .sd-partners-section { padding: 3rem 0; }

    .sd-section-header { margin-bottom: 2rem; }
    .sd-cap-header { margin-bottom: 2rem; }

    .sd-partners-row { gap: 2rem; }

    /* Testimonials stacked */
    .sd-tcard { padding: 1.75rem; }

    /* Section title font clamp handles size — just ensure no overflow */
    .sd-section-title { word-break: break-word; }
}
