/* Web-Based Module Specific Stylesheet */

    .dept-page a {
        text-decoration: none !important;
    }

    .dept-page h1:not(.dept-hero-title),
    .dept-page h2:not(.sol-white-heading),
    .dept-page h3:not(.sol-white-heading):not(.pro-dropdown-title),
    .dept-page h4:not(.sol-white-heading):not(.pro-dropdown-title),
    .dept-page h5:not(.sol-white-heading),
    .dept-page h6:not(.sol-white-heading) {
        color: #000000 !important;
        font-family: 'Playfair Display', Georgia, serif;
    }

    /* Black text for page body, strictly scoped outside of hero header and root colored elements */
    .dept-page section p:not(.sol-white-desc):not(.sol-white-text),
    .dept-page section li:not(.sol-white-desc):not(.sol-white-text),
    .dept-page section span:not(.badge-colored):not(.sol-white-text):not(.badge-primary-custom):not(.dept-white-text):not(.pro-dropdown-num):not(.pro-dropdown-tag):not(.pro-detail-index),
    .dept-page section td,
    .dept-page section th {
        color: #000000 !important;
    }

    /* Absolute Pure White for Entire Video Hero Header Section */
    .dept-header,
    .dept-header *,
    .dept-header :is(h1, h2, h3, h4, p, span, a, div, li, strong, small, i, button),
    .dept-header .dept-hero-title,
    .dept-header .dept-lead,
    .dept-header .dept-badge,
    .dept-header .dept-badge span,
    .dept-header .dept-badge i,
    .dept-header .btn-dept-primary,
    .dept-header .btn-dept-primary span,
    .dept-header .btn-dept-primary i,
    .dept-header .btn-dept-outline,
    .dept-header .btn-dept-outline span,
    .dept-header .btn-dept-outline i {
        color: #ffffff !important;
    }

    /* Mobile Text Justification */
    @media (max-width: 768px) {
        .dept-page p,
        .dept-page .dept-lead,
        .dept-page .pro-dropdown-content p {
            text-align: justify !important;
            text-justify: inter-word !important;
        }
    }

    /* Header styling with crystal-clear background video & fixed navbar clearance */
    .dept-header {
        position: relative;
        overflow: hidden;
        background: #000000 !important;
        padding-top: calc(var(--nav-h, 90px) + var(--topbar-h, 38px) + 36px) !important;
        padding-bottom: 56px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .dept-video-container {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        overflow: hidden;
        z-index: 1;
        pointer-events: none;
    }

    .dept-bg-video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: 1 !important;
        filter: none !important;
        display: block;
    }

    .dept-video-overlay {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.65) 0%,
            rgba(0, 0, 0, 0.28) 45%,
            transparent 75%
        ) !important;
        z-index: 2;
        pointer-events: none;
    }

    @media (max-width: 991.98px) {
        .dept-video-overlay {
            background: linear-gradient(
                180deg,
                rgba(0, 0, 0, 0.78) 0%,
                rgba(0, 0, 0, 0.40) 60%,
                transparent 100%
            ) !important;
        }
    }

    .dept-header .dept-breadcrumb {
        font-size: 0.88rem;
        margin-bottom: 20px;
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
    }

    .dept-header .dept-breadcrumb a {
        color: #cbd5e1 !important;
        font-weight: 600;
        transition: color 0.2s;
    }

    .dept-header .dept-breadcrumb a:hover {
        color: #ffffff !important;
        text-decoration: underline !important;
    }

    .dept-header .dept-badge {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background: rgba(0, 0, 0, 0.50) !important;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border: 1px solid rgba(255, 255, 255, 0.30) !important;
        border-radius: 50px !important;
        padding: 6px 18px;
        font-size: 0.82rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: #ffffff !important;
        margin-bottom: 16px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    }

    .dept-header .dept-badge span {
        color: #ffffff !important;
    }

    .dept-header .dept-hero-title,
    .dept-header h1 {
        color: #ffffff !important;
        font-family: 'Playfair Display', Georgia, serif;
        font-size: clamp(2.2rem, 3.8vw, 3.1rem);
        font-weight: 800;
        line-height: 1.2;
        text-shadow: 0 3px 18px rgba(0, 0, 0, 0.95), 0 1px 4px rgba(0, 0, 0, 0.9);
    }

    .dept-header .dept-lead {
        color: #f1f5f9 !important;
        font-size: 1.15rem;
        font-weight: 500;
        line-height: 1.65;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95);
        max-width: 820px;
    }

    .dept-header .btn-dept-primary {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background: #0046ae !important;
        color: #ffffff !important;
        font-weight: 700;
        font-size: 0.95rem;
        padding: 12px 26px;
        border-radius: 8px !important;
        border: 1px solid #0046ae !important;
        box-shadow: 0 4px 14px rgba(0, 70, 174, 0.35);
        transition: all 0.25s ease;
    }

    .dept-header .btn-dept-primary:hover {
        background: #003380 !important;
        border-color: #003380 !important;
        color: #ffffff !important;
        transform: translateY(-2px);
    }

    .dept-header .btn-dept-primary * {
        color: #ffffff !important;
    }

    .dept-header .btn-dept-outline {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background: rgba(255, 255, 255, 0.12) !important;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        color: #ffffff !important;
        font-weight: 600;
        font-size: 0.95rem;
        padding: 12px 24px;
        border-radius: 8px !important;
        border: 1.5px solid rgba(255, 255, 255, 0.85) !important;
        transition: all 0.25s ease;
    }

    .dept-header .btn-dept-outline:hover {
        background: #ffffff !important;
        border-color: #ffffff !important;
        color: #071527 !important;
        transform: translateY(-2px);
    }

    .dept-header .btn-dept-outline:hover * {
        color: #071527 !important;
    }

    .dept-header .btn-dept-outline * {
        color: #ffffff !important;
    }

    /* Right Image: Elevated Shadow, Border Radius & Hover Rotation Animation (Matching Weaving, Spinning & Knitting) */
    .dept-overview-media {
        position: relative;
        overflow: hidden;
        border: 2px solid #0046ae;
        border-radius: 18px !important;
        box-shadow:
            0 18px 40px -10px rgba(0, 70, 174, 0.18),
            0 10px 22px -6px rgba(15, 23, 42, 0.10) !important;
        background: #f8fafc;
        width: 100%;
        max-width: 440px;
        height: 275px;
        max-height: 285px;
        transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
        cursor: pointer;
    }

    .dept-overview-media:hover {
        box-shadow:
            0 26px 55px -10px rgba(0, 70, 174, 0.28),
            0 14px 28px -6px rgba(15, 23, 42, 0.15) !important;
        transform: translateY(-4px);
        border-color: #003380;
    }

    .dept-overview-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        border-radius: 16px !important;
        transform-origin: center center;
        transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    }

    @keyframes imgRotateReturn {
        0% {
            transform: rotate(0deg) scale(1);
        }
        25% {
            transform: rotate(3.5deg) scale(1.04);
        }
        55% {
            transform: rotate(-2.5deg) scale(1.05);
        }
        80% {
            transform: rotate(1deg) scale(1.04);
        }
        100% {
            transform: rotate(0deg) scale(1.03);
        }
    }

    .dept-overview-media:hover .dept-overview-img {
        animation: imgRotateReturn 0.95s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    }

    /* ==========================================================================
       ROOT COLOR HEADING ACCORDION DROPDOWN
       Root color (#0046ae) background on heading trigger ONLY.
       Inside dropdown body is clean white with indexed detail list.
       One active at a time, collapsed by default.
       ========================================================================== */
    .pro-dropdown-list {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .pro-dropdown-item {
        border: none;
        border-radius: 8px;
        transition: all 0.25s ease;
    }

    /* Heading Trigger: ROOT COLOR BACKGROUND ONLY */
    .pro-dropdown-trigger {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 20px;
        background: #0154d1 !important;
        border: 1px solid #0046ae !important;
        border-radius: 8px;
        cursor: pointer;
        text-align: left;
        color: #ffffff !important;
        box-shadow: 0 2px 6px rgba(0, 70, 174, 0.16);
        transition: background-color 0.25s ease, border-radius 0.2s ease, box-shadow 0.25s ease;
    }

    .pro-dropdown-trigger:hover {
        background: #00378b !important;
        border-color: #00378b !important;
        box-shadow: 0 4px 12px rgba(0, 70, 174, 0.28);
    }

    .pro-dropdown-item.is-open .pro-dropdown-trigger {
        background: #00378b !important;
        border-color: #00378b !important;
        border-radius: 8px 8px 0 0 !important;
        box-shadow: 0 4px 10px rgba(0, 70, 174, 0.22);
    }

    /* Index pill / tag inside Heading Trigger */
    .pro-dropdown-num,
    .pro-dropdown-tag {
        font-family: 'Sora', sans-serif;
        font-size: 0.82rem;
        font-weight: 700;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: #ffffff !important;
        background: rgba(255, 255, 255, 0.22) !important;
        border: 1px solid rgba(255, 255, 255, 0.35) !important;
        padding: 4px 10px;
        border-radius: 6px;
        flex-shrink: 0;
        min-width: 42px;
        text-align: center;
    }

    /* Title inside Heading Trigger */
    .pro-dropdown-title {
        font-family: 'Playfair Display', Georgia, serif;
        font-size: 1.18rem;
        font-weight: 700;
        color: #ffffff !important;
        line-height: 1.35;
        margin: 0;
        transition: color 0.2s ease;
    }

    .pro-dropdown-trigger * {
        color: #ffffff !important;
    }

    /* Arrow icon inside Heading Trigger */
    .pro-dropdown-arrow {
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #ffffff !important;
        font-size: 1.05rem;
        flex-shrink: 0;
        background: rgba(255, 255, 255, 0.16);
        border-radius: 50%;
        transition: transform 0.25s ease, background-color 0.2s ease;
    }

    .pro-dropdown-trigger:hover .pro-dropdown-arrow {
        background: rgba(255, 255, 255, 0.28);
    }

    .pro-dropdown-item.is-open .pro-dropdown-arrow {
        transform: rotate(180deg);
        background: rgba(255, 255, 255, 0.32);
    }

    /* Inside Dropdown Body: Clean White, NOT root color */
    .pro-dropdown-body {
        background: #ffffff !important;
        border: 1px solid #cbd5e1;
        border-top: none;
        border-radius: 0 0 8px 8px;
        box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
        overflow: hidden;
    }

    .pro-dropdown-content {
        padding: 22px 24px 24px 24px;
        font-size: 0.98rem;
        line-height: 1.75;
        color: #334155 !important;
    }

    .pro-content-lead {
        font-size: 1rem;
        line-height: 1.8;
        color: #334155 !important;
        margin-bottom: 16px;
    }

    /* Indexed Detail List inside Dropdown */
    .pro-detail-list {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .pro-detail-item {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        padding: 12px 14px;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 6px;
        font-size: 0.93rem;
        line-height: 1.6;
    }

    .pro-detail-index {
        font-family: 'Sora', sans-serif;
        font-size: 0.72rem;
        font-weight: 800;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        background: #0046ae !important;
        color: #ffffff !important;
        padding: 3px 8px;
        border-radius: 4px;
        white-space: nowrap;
        flex-shrink: 0;
        margin-top: 2px;
    }

    .pro-detail-text {
        flex: 1;
        color: #1e293b !important;
    }

    .pro-detail-text strong {
        color: #0f172a !important;
        font-weight: 700;
    }

    @media (max-width: 768px) {
        .pro-dropdown-trigger {
            padding: 14px 16px;
        }
        .pro-dropdown-title {
            font-size: 1.05rem;
        }
        .pro-dropdown-content {
            padding: 18px 16px 20px 16px;
        }
        .pro-detail-item {
            flex-direction: column;
            gap: 6px;
        }
    }

    /* General Buttons */
    .btn-dept-primary {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background: #0046ae !important;
        color: #ffffff !important;
        font-weight: 700;
        font-size: 0.95rem;
        padding: 12px 26px;
        border-radius: 8px !important;
        border: 1px solid #0046ae !important;
        box-shadow: 0 4px 14px rgba(0, 70, 174, 0.25);
        transition: all 0.25s ease;
    }

    .btn-dept-primary:hover,
    .btn-dept-primary:hover * {
        background: #003380 !important;
        border-color: #003380 !important;
        color: #ffffff !important;
        transform: translateY(-2px);
    }

    .btn-dept-primary * {
        color: #ffffff !important;
    }

    .btn-dept-outline {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background: #ffffff;
        color: #000000 !important;
        font-weight: 700;
        font-size: 0.95rem;
        padding: 12px 24px;
        border-radius: 8px !important;
        border: 1px solid #cbd5e1;
        transition: all 0.25s ease;
    }

    .btn-dept-outline:hover {
        background: #f1f5f9;
        border-color: #0046ae;
        color: #0046ae !important;
    }

    /* Bottom Navigation Bar */
    .dept-nav-bar {
        background: #ffffff;
        border-top: 1px solid #e2e8f0;
        border-bottom: 1px solid #e2e8f0;
        padding: 20px 0;
    }

    .dept-nav-btn,
    .sol-nav-btn {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        font-weight: 700;
        font-size: 0.92rem;
        color: #0046ae !important;
        padding: 10px 20px;
        background: #ffffff;
        border-radius: 8px !important;
        border: 1px solid #cbd5e1;
        transition: all 0.2s ease;
    }

    .dept-nav-btn:hover,
    .sol-nav-btn:hover {
        background: #0046ae;
        color: #ffffff !important;
        border-color: #0046ae;
    }

    .dept-nav-btn:hover *,
    .sol-nav-btn:hover * {
        color: #ffffff !important;
    }

    /* Consultation Callout Integration Card Styles (Matching Factory Integration) */
    .solution-integration-card {
        position: relative;
        background: #ffffff !important;
        border: 2px solid #0046ae !important;
        border-radius: 20px !important;
        padding: 44px 40px !important;
        box-shadow: 0 16px 42px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.03) !important;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .solution-integration-card:hover {
        box-shadow: 0 22px 50px rgba(0, 70, 174, 0.10), 0 4px 12px rgba(0, 0, 0, 0.04) !important;
    }

    .integration-kicker {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        font-size: 0.82rem !important;
        font-weight: 700 !important;
        letter-spacing: 0.08em !important;
        text-transform: uppercase !important;
        color: #0046ae !important;
        background: #eff6ff !important;
        border: 1px solid #bfdbfe !important;
        padding: 6px 16px !important;
        border-radius: 999px !important;
        margin-bottom: 16px !important;
    }

    .integration-title {
        font-family: 'Playfair Display', Georgia, serif;
        font-size: clamp(1.85rem, 2.5vw, 2.25rem) !important;
        font-weight: 800 !important;
        color: #000000 !important;
        line-height: 1.3 !important;
        margin-bottom: 14px !important;
        letter-spacing: -0.01em;
    }

    .integration-desc {
        font-size: 1.05rem !important;
        color: #334155 !important;
        line-height: 1.75 !important;
        margin-bottom: 0 !important;
        max-width: 820px;
        text-align: justify !important;
    }

    .btn-integration-primary {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        background: linear-gradient(135deg, #0056d6 0%, #0046ae 100%) !important;
        color: #ffffff !important;
        border: none !important;
        border-radius: 12px !important;
        padding: 14px 28px !important;
        font-weight: 700 !important;
        font-size: 0.95rem !important;
        letter-spacing: 0.02em;
        text-decoration: none !important;
        box-shadow: 0 4px 14px rgba(0, 70, 174, 0.30), 0 2px 4px rgba(0, 0, 0, 0.06) !important;
        transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
        white-space: nowrap;
    }

    .btn-integration-primary:hover {
        background: linear-gradient(135deg, #0046ae 0%, #003380 100%) !important;
        color: #ffffff !important;
        box-shadow: 0 8px 24px rgba(0, 70, 174, 0.45) !important;
        transform: translateY(-2px);
    }

    .btn-integration-primary *,
    .btn-integration-primary span,
    .btn-integration-primary i {
        color: #ffffff !important;
    }

    .btn-integration-secondary {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        background: #ffffff !important;
        color: #0046ae !important;
        border: 1.5px solid #0046ae !important;
        border-radius: 12px !important;
        padding: 14px 28px !important;
        font-weight: 700 !important;
        font-size: 0.95rem !important;
        letter-spacing: 0.02em;
        text-decoration: none !important;
        transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
        white-space: nowrap;
    }

    .btn-integration-secondary:hover {
        background: #eff6ff !important;
        border-color: #003380 !important;
        color: #003380 !important;
        transform: translateY(-2px);
    }

    .btn-integration-secondary *,
    .btn-integration-secondary span,
    .btn-integration-secondary i {
        color: #0046ae !important;
    }

    /* ==========================================================================
       MODERN SCROLL ANIMATIONS (OVERVIEW SIDES, DROPDOWNS STAGGERED & CALLOUT DROP)
       ========================================================================== */
    .dept-scroll-left {
        opacity: 0;
        transform: translate3d(-50px, 0, 0);
        transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
                    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
        will-change: opacity, transform;
    }

    .dept-scroll-left.is-revealed {
        opacity: 1 !important;
        transform: translate3d(0, 0, 0) !important;
    }

    .dept-scroll-right {
        opacity: 0;
        transform: translate3d(50px, 0, 0);
        transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
                    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
        will-change: opacity, transform;
    }

    .dept-scroll-right.is-revealed {
        opacity: 1 !important;
        transform: translate3d(0, 0, 0) !important;
    }

    /* Accordion Dropdown Items: Staggered Fade & Slide In One by One */
    .dept-scroll-step {
        opacity: 0;
        transform: translate3d(0, 26px, 0);
        transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
                    transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
        transition-delay: calc(var(--dept-idx, 0) * 0.065s);
        will-change: opacity, transform;
        backface-visibility: hidden;
        -webkit-font-smoothing: antialiased;
    }

    .dept-scroll-step.is-revealed {
        opacity: 1 !important;
        transform: translate3d(0, 0, 0) !important;
    }

    /* Consultation Callout Card: Silky Upward Float */
    .callout-scroll-from-top {
        opacity: 0;
        transform: translate3d(0, 28px, 0);
        transition: opacity 0.90s cubic-bezier(0.16, 1, 0.3, 1),
                    transform 0.90s cubic-bezier(0.16, 1, 0.3, 1);
        will-change: opacity, transform;
        backface-visibility: hidden;
        -webkit-font-smoothing: antialiased;
    }

    .callout-scroll-from-top.is-revealed {
        opacity: 1 !important;
        transform: translate3d(0, 0, 0) !important;
    }

    /* Dividing line placed cleanly at the footer top */
    footer {
        border-top: 1px solid #e2e8f0 !important;
    }

    @media (prefers-reduced-motion: reduce) {
        .dept-scroll-left,
        .dept-scroll-right,
        .dept-scroll-step,
        .callout-scroll-from-top {
            opacity: 1 !important;
            transform: none !important;
            transition: none !important;
        }
    }
