/* ==========================================================================
   SOLUTIONS HUB PAGE STYLING (HERO VIDEO & ZIG-ZAG DUAL-SIDE SCROLL PILLARS)
   ========================================================================== */

/* 1. HERO HEADER WITH FULL-WIDTH BACKGROUND VIDEO */
.solutions-hero {
    position: relative;
    overflow: hidden;
    background: #000000 !important;
    padding-top: calc(var(--nav-h, 90px) + var(--topbar-h, 38px) + 32px) !important;
    padding-bottom: 64px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

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

.solutions-hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    object-position: center;
    display: block;
    opacity: 0.95;
    filter: none;
}

.solutions-hero-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.70) 0%,
        rgba(0, 0, 0, 0.40) 45%,
        rgba(0, 0, 0, 0.15) 75%,
        transparent 100%
    ) !important;
    z-index: 2;
    pointer-events: none;
}

@media (max-width: 991.98px) {
    .solutions-hero-overlay {
        background: linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.80) 0%,
            rgba(0, 0, 0, 0.50) 60%,
            rgba(0, 0, 0, 0.25) 100%
        ) !important;
    }
}

/* Pure Crisp White Hero Typography */
.solutions-hero .solutions-breadcrumb a {
    color: #e2e8f0 !important;
    font-weight: 600;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
    text-decoration: none;
    transition: color 0.2s ease;
}

.solutions-hero .solutions-breadcrumb a:hover {
    color: #ffffff !important;
}

.solutions-hero .solutions-breadcrumb span {
    color: rgba(255, 255, 255, 0.70) !important;
}

.solutions-hero .solutions-breadcrumb-current {
    color: #ffffff !important;
    font-weight: 700;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
}

.solutions-hero .solutions-badge {
    background: rgba(0, 0, 0, 0.52) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.32) !important;
    border-radius: 50px !important;
    padding: 6px 18px;
    font-weight: 700;
    font-size: 0.84rem;
    letter-spacing: 0.04em;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.solutions-hero .solutions-title {
    color: #ffffff !important;
    font-family: 'Playfair Display', Georgia, serif !important;
    font-size: clamp(2.3rem, 4.4vw, 3.4rem);
    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);
}

.solutions-hero .solutions-tagline {
    color: #ffffff !important;
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1.75;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95);
    max-width: 820px;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0046ae !important;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 13px 26px;
    border-radius: 8px;
    border: 1.5px solid #0046ae;
    text-decoration: none !important;
    box-shadow: 0 8px 24px rgba(0, 70, 174, 0.35);
    transition: all 0.25s ease;
}

.btn-hero-primary:hover {
    background: #00378b !important;
    border-color: #00378b !important;
    color: #ffffff !important;
    transform: translateY(-2px);
}

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

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

.btn-hero-outline:hover * {
    color: #000000 !important;
}


/* ==========================================================================
   2. ENGINEERED SOLUTION PILLARS (ZIG-ZAG ALTERNATING CARDS STYLE)
   ========================================================================== */
.pillars-section {
    background: #ffffff;
    padding: 70px 0;
    overflow: hidden;
}

.pillar-row {
    padding: 35px 0;
}

.pillar-row:not(:last-child) {
    border-bottom: 1px solid #e2e8f0;
}

/* Kicker Badge Tag (Matches image: ADVANCED AUTOMATION • TEXTILE UNIT) */
.pillar-kicker-tag {
    display: inline-block;
    background: #0f172a;
    color: #ffffff !important;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 5px;
    margin-bottom: 14px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15);
}

/* Pillar Main Heading */
.pillar-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.9rem, 2.9vw, 2.45rem);
    font-weight: 800;
    color: #0f172a !important;
    line-height: 1.25;
    margin-bottom: 22px;
}

/* Checklist of 4 Points with Green Checkmarks */
.pillar-points-list {
    list-style: none;
    padding: 0;
    margin: 0 0 28px 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pillar-point-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.pillar-check-icon {
    color: #10b981 !important; /* Emerald green */
    font-size: 1.25rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 3px;
}

.pillar-point-text {
    font-size: 0.98rem;
    line-height: 1.65;
    color: #334155 !important;
}

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

/* Explore Button (Rounded pill/button with arrow) */
.btn-pillar-explore {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #0046ae !important;
    color: #ffffff !important;
    font-size: 0.96rem;
    font-weight: 700;
    padding: 13px 28px;
    border-radius: 10px;
    text-decoration: none !important;
    box-shadow: 0 8px 22px rgba(0, 70, 174, 0.28);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-pillar-explore:hover {
    background: #00378b !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 70, 174, 0.40);
}

.btn-pillar-explore i {
    transition: transform 0.25s ease;
}

.btn-pillar-explore:hover i {
    transform: translateX(4px);
}

/* Opposite Side Image with Large Rounded Corners & Soft Shadow */
.pillar-img-frame {
    position: relative;
    border-radius: 24px !important;
    overflow: hidden;
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.14), 0 4px 14px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(15, 23, 42, 0.08);
    aspect-ratio: 16 / 10.2;
    background: #ffffff;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.pillar-img-frame:hover {
    transform: translateY(-5px);
    box-shadow: 0 26px 56px rgba(0, 70, 174, 0.20), 0 6px 18px rgba(0, 0, 0, 0.06);
}

.pillar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.pillar-img-frame:hover .pillar-img {
    transform: scale(1.04);
}


/* ==========================================================================
   3. DUAL-SIDE SCROLL ENTRANCE ANIMATIONS (INWARD FROM BOTH SIDES)
   ========================================================================== */
.pillar-from-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;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

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

.pillar-from-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;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

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

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


/* ==========================================================================
   4. WHY PARTNER SECTION (CONNECTED PIPELINE ARCHITECTURE)
   ========================================================================== */
.connected-pillars-wrap {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 20px !important;
    box-shadow: 0 14px 38px rgba(15, 23, 42, 0.06), 0 2px 8px rgba(0, 0, 0, 0.02);
    overflow: hidden;
}

.connected-pillar-col {
    position: relative;
    border-right: 1px solid #e2e8f0;
    transition: background 0.3s ease, transform 0.3s ease;
}

@media (max-width: 991.98px) {
    .connected-pillar-col {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }
}

.connected-pillar-col:last-child {
    border-right: none;
    border-bottom: none;
}

.connected-pillar-item {
    padding: 36px 28px;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    background: #ffffff;
    transition: background-color 0.25s ease;
}

.connected-pillar-col:hover .connected-pillar-item {
    background: #f8fafc;
}

/* Step Header & Flowing Connector Line */
.pillar-step-header {
    display: flex;
    align-items: center;
    position: relative;
    margin-bottom: 22px;
}

.pillar-step-num {
    width: 40px;
    height: 40px;
    border-radius: 50% !important;
    background: #eff6ff;
    color: #0046ae;
    border: 2px solid #bfdbfe;
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    font-size: 0.84rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 2;
    transition: all 0.3s ease;
}

.connected-pillar-col:hover .pillar-step-num {
    background: #0046ae;
    color: #ffffff;
    border-color: #0046ae;
    box-shadow: 0 4px 12px rgba(0, 70, 174, 0.35);
}

.pillar-connector-line {
    flex-grow: 1;
    height: 2px;
    background: #cbd5e1;
    position: relative;
    margin-left: 12px;
    margin-right: -28px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    z-index: 1;
}

@media (max-width: 991.98px) {
    .pillar-connector-line {
        margin-right: 0;
    }
}

.connector-arrow {
    color: #94a3b8;
    font-size: 0.82rem;
    line-height: 1;
    background: #ffffff;
    padding: 0 4px;
    margin-right: -4px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.connected-pillar-col:hover .connector-arrow {
    color: #0046ae;
    transform: translateX(3px);
}

.connected-pillar-col:hover .pillar-connector-line {
    background: #93c5fd;
}

/* Icon Badge */
.pillar-icon-badge {
    width: 52px;
    height: 52px;
    border-radius: 14px !important;
    background: #eff6ff;
    color: #0046ae;
    border: 1px solid #bfdbfe;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    margin-bottom: 18px;
    transition: all 0.3s ease;
}

.connected-pillar-col:hover .pillar-icon-badge {
    background: #0046ae;
    color: #ffffff;
    border-color: #0046ae;
    transform: scale(1.06);
}

.connected-pillar-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.22rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    margin-bottom: 12px;
}

.connected-pillar-desc {
    font-size: 0.92rem;
    line-height: 1.65;
    color: #475569;
    margin-bottom: 0;
    text-align: justify;
}

.connected-step-reveal {
    opacity: 0;
    transform: translate3d(0, 24px, 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(--step-idx, 0) * 0.08s);
    will-change: opacity, transform;
}

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


/* ==========================================================================
   5. CONSULTATION & INTEGRATION CARD (MATCHING REFERENCE IMAGE)
   ========================================================================== */
.solution-integration-card {
    position: relative;
    background: #ffffff !important;
    border: 2px solid #0046ae !important;
    border-radius: 24px !important;
    padding: 44px 42px !important;
    box-shadow: 0 16px 42px rgba(0, 70, 174, 0.07), 0 2px 8px rgba(0, 0, 0, 0.03) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@media (max-width: 767.98px) {
    .solution-integration-card {
        padding: 30px 22px !important;
        border-radius: 18px !important;
    }
}

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

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

.integration-title {
    font-family: 'Playfair Display', Georgia, serif !important;
    font-size: clamp(1.85rem, 2.9vw, 2.4rem) !important;
    font-weight: 800 !important;
    color: #000000 !important;
    line-height: 1.25 !important;
    margin: 0 0 14px 0 !important;
}

.integration-desc {
    font-size: 1.02rem !important;
    line-height: 1.75 !important;
    color: #334155 !important;
}

.btn-integration-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #0046ae !important;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.96rem;
    padding: 13px 26px !important;
    border-radius: 10px !important;
    border: 1.5px solid #0046ae;
    text-decoration: none !important;
    box-shadow: 0 6px 18px rgba(0, 70, 174, 0.28);
    transition: all 0.25s ease;
}

.btn-integration-primary:hover {
    background: #00378b !important;
    border-color: #00378b !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 70, 174, 0.38);
}

.btn-integration-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff !important;
    color: #0046ae !important;
    font-weight: 700;
    font-size: 0.96rem;
    padding: 12px 26px !important;
    border-radius: 10px !important;
    border: 1.5px solid #0046ae !important;
    text-decoration: none !important;
    transition: all 0.25s ease;
}

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

/* Callout Card Entrance Animation */
.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 top of the footer */
footer {
    border-top: 1px solid #e2e8f0 !important;
}
