/* ============================================================
   SERVICE_DETAIL.CSS – Premium Service Detail Page Styling
   Digisoft Website Design System
   ============================================================ */

/* ── HERO SECTION ────────────────────────────────────────── */
.service-detail-hero {
    position: relative;
    padding: 7.5rem 0 4.5rem;
    background: var(--grad-hero);
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.service-detail-hero::before {
    content: '';
    position: absolute;
    top: -10%; right: -5%;
    width: 600px; height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--hero-overlay-1) 0%, transparent 70%);
    pointer-events: none;
}

.service-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--badge-bg);
    border: 1px solid var(--badge-border);
    border-radius: 50px;
    padding: 0.4rem 1.1rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--badge-text);
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.service-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: var(--grad-primary);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: var(--shadow-blue);
    flex-shrink: 0;
}

.service-hero-title {
    font-size: clamp(2.1rem, 3.8vw, 3.2rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-primary);
    letter-spacing: -0.025em;
    margin-bottom: 0.75rem;
}

.service-hero-tagline {
    font-size: 1.125rem;
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.7;
    max-width: 760px;
    margin-bottom: 0;
}

.service-hero-banner-wrap {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-hero-banner-wrap:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-blue);
}

.service-hero-banner-img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

/* Fallback Visual Card if Banner Image is not uploaded */
.service-hero-visual-fallback {
    height: 280px;
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.service-hero-visual-fallback::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(42,94,196,0.12) 0%, transparent 75%);
}

/* ── MAIN CONTENT COLUMN ───────────────────────────────────── */
.detail-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.25rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.detail-card:hover {
    border-color: var(--border-blue);
    box-shadow: var(--shadow-md);
}

.detail-card-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    letter-spacing: -0.01em;
}

.title-icon-badge {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--badge-bg);
    color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

/* Feature Cards Grid */
.feature-box {
    background: var(--bg-alt);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.15rem 1.25rem;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    transition: all 0.25s ease;
}

.feature-box:hover {
    background: var(--bg-card);
    border-color: var(--border-blue);
    transform: translateY(-2px);
}

.feature-icon-wrap {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.feature-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
}

/* Specification / Highlight Cards */
.spec-card {
    background: var(--bg-alt);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    height: 100%;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.spec-card:hover {
    background: var(--bg-card);
    border-color: var(--border-blue);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.spec-icon-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.spec-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--badge-bg);
    color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

.spec-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-light);
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.spec-title {
    font-size: 1.025rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}

.spec-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0;
}

/* Execution Workflow Timeline (Perfectly Aligned) */
.workflow-timeline {
    position: relative;
    padding-left: 0.25rem;
}

.workflow-item {
    position: relative;
    padding-left: 3.5rem;
    margin-bottom: 1.5rem;
}

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

/* Continuous Vertical Line Connecting Circle Centers */
.workflow-item::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 24px;
    bottom: -1.75rem;
    width: 2px;
    background: var(--border-blue);
    z-index: 1;
}

.workflow-item:last-child::before {
    display: none;
}

/* Number Circle Badge Centered Vertically with Card Header */
.workflow-badge {
    position: absolute;
    left: 0;
    top: 24px;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--grad-primary);
    color: #ffffff;
    font-weight: 800;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-blue);
    z-index: 2;
}

.workflow-content {
    background: var(--bg-alt);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    transition: all 0.25s ease;
}

.workflow-content:hover {
    background: var(--bg-card);
    border-color: var(--border-blue);
}

.workflow-title {
    font-size: 1.075rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.workflow-desc {
    font-size: 0.925rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Case Study Banner */
.case-study-card {
    background: linear-gradient(135deg, rgba(26,60,143,0.08) 0%, rgba(230,57,70,0.08) 100%);
    border: 1px solid var(--border-blue);
    border-radius: 20px;
    padding: 2.25rem;
}

.case-study-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--grad-accent);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    margin-bottom: 1.25rem;
}

/* FAQ Accordion */
.faq-accordion .accordion-item {
    background: var(--bg-alt);
    border: 1px solid var(--border-color);
    border-radius: 12px !important;
    margin-bottom: 0.85rem;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.faq-accordion .accordion-item:last-child {
    margin-bottom: 0;
}

.faq-accordion .accordion-button {
    background: var(--bg-alt);
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.025rem;
    padding: 1.2rem 1.5rem;
    box-shadow: none;
}

.faq-accordion .accordion-button:not(.collapsed) {
    color: var(--primary-light);
    background: rgba(42,94,196,0.08);
}

.faq-accordion .accordion-body {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.65;
    background: var(--bg-alt);
    padding: 0 1.5rem 1.25rem;
}

/* ── SIDEBAR WIDGETS ────────────────────────────────────────── */
.sidebar-widget {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.65rem;
    margin-bottom: 1.75rem;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.3s ease;
}

.sidebar-widget:hover {
    border-color: var(--border-blue);
}

.sidebar-widget-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.sidebar-service-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-service-list li {
    margin-bottom: 0.5rem;
}

.sidebar-service-list li:last-child {
    margin-bottom: 0;
}

.sidebar-service-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.1rem;
    border-radius: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.925rem;
    transition: all 0.25s ease;
    background: var(--bg-alt);
    border: 1px solid transparent;
}

.sidebar-service-list a:hover {
    background: var(--bg-card);
    color: var(--primary-light);
    border-color: var(--border-blue);
    transform: translateX(4px);
}

.sidebar-service-list a.active {
    background: var(--grad-primary);
    color: #ffffff !important;
    border-color: transparent;
    box-shadow: var(--shadow-blue);
}

.sidebar-service-list a.active i {
    color: #ffffff !important;
}

.brochure-card {
    background: linear-gradient(135deg, #0b1d4a 0%, #1a3c8f 100%);
    border-radius: 16px;
    padding: 1.75rem;
    color: #ffffff;
    text-align: center;
    box-shadow: var(--shadow-blue);
}

.contact-widget-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--badge-bg);
    color: var(--primary-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* ── RESPONSIVE MEDIA QUERIES ────────────────────────────────── */

/* Tablets & Small Laptops (< 992px) */
@media (max-width: 991.98px) {
    .service-detail-hero {
        padding: 5.5rem 0 3.5rem;
        text-align: center;
    }

    .service-hero-badge {
        margin: 0 auto 1.25rem;
    }

    .service-icon-box {
        margin: 0 auto;
    }

    .service-hero-title {
        font-size: clamp(1.85rem, 4.5vw, 2.6rem);
    }

    .service-hero-tagline {
        margin: 0 auto;
        font-size: 1.05rem;
    }

    .service-hero-banner-wrap,
    .service-hero-visual-fallback {
        margin-top: 1.5rem;
        height: 240px;
    }

    .position-sticky {
        position: static !important;
    }

    .detail-card {
        padding: 1.75rem;
        border-radius: 16px;
    }
}

/* Mobile Devices (< 768px) */
@media (max-width: 767.98px) {
    .service-detail-hero {
        padding: 4.5rem 0 2.5rem;
    }

    .detail-card {
        padding: 1.35rem;
        margin-bottom: 1.5rem;
        border-radius: 14px;
    }

    .detail-card-title {
        font-size: 1.2rem;
        margin-bottom: 1.15rem;
    }

    .title-icon-badge {
        width: 34px;
        height: 34px;
        font-size: 1rem;
    }

    .spec-card {
        padding: 1.2rem;
    }

    .spec-value {
        font-size: 1.5rem;
    }

    .workflow-item {
        padding-left: 2.85rem;
        margin-bottom: 1.25rem;
    }

    .workflow-badge {
        width: 34px;
        height: 34px;
        font-size: 0.95rem;
        top: 20px;
    }

    .workflow-item::before {
        left: 16px;
        top: 20px;
        bottom: -1.5rem;
    }

    .workflow-content {
        padding: 1rem 1.15rem;
        border-radius: 12px;
    }

    .sidebar-widget {
        padding: 1.25rem;
        border-radius: 14px;
    }
}

/* Small Mobile Screens (< 576px) */
@media (max-width: 575.98px) {
    .service-hero-title {
        font-size: 1.65rem;
    }

    .feature-box {
        padding: 0.9rem 1rem;
    }

    .feature-text {
        font-size: 0.88rem;
    }

    .faq-accordion .accordion-button {
        font-size: 0.95rem;
        padding: 1rem 1.15rem;
    }

    .faq-accordion .accordion-body {
        font-size: 0.88rem;
        padding: 0 1.15rem 1rem;
    }
}

