/* =============================================================================
   INSIGHTS HUB (insights.html) - Enterprise Knowledge Center
   Engineered for Desktop, Tablet, and Mobile down to 320px
   ============================================================================= */

#insg-page {
    background: var(--white);
    overflow-x: hidden;
}

.insg-intro {
    padding: 32px 0 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-light, #e2e8f0);
}

/* =============================================================================
   LIVE NEWS TICKER BAR (Top-to-Bottom Switch Stream)
   Senior Mobile & Cross-Device Engineering
   ============================================================================= */
.insg-ticker-sec {
    background: #ffffff;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    position: relative;
    z-index: 10;
    width: 100%;
}

.insg-ticker-bar {
    display: flex;
    align-items: center;
    height: 52px;
    gap: 16px;
    position: relative;
    width: 100%;
}

/* Left Live Tag / Beacon */
.insg-ticker-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    padding-right: 16px;
    border-right: 1.5px solid #e2e8f0;
    height: 24px;
}

.insg-ticker-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-red, #e41f26);
    box-shadow: 0 0 0 0 rgba(228, 31, 38, 0.7);
    animation: insg-ticker-pulse 2s infinite;
    flex-shrink: 0;
}

@keyframes insg-ticker-pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(228, 31, 38, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(228, 31, 38, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(228, 31, 38, 0);
    }
}

.insg-ticker-tag {
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dark, #0f172a);
    white-space: nowrap;
}

.insg-ticker-tag-mobile {
    display: none;
}

/* Middle Content Track - Horizontal stream with top-to-bottom slide */
.insg-ticker-content {
    position: relative;
    flex: 1;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    mask-image: linear-gradient(to right, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
}

.insg-ticker-item {
    position: absolute;
    inset: 0;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(-100%);
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
    pointer-events: none;
}

.insg-ticker-item.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.insg-ticker-item.exit-bottom {
    opacity: 0;
    transform: translateY(100%);
    pointer-events: none;
}

.insg-ticker-cat {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(228, 31, 38, 0.08);
    color: var(--primary-red, #e41f26);
    flex-shrink: 0;
    line-height: 1.2;
}

.insg-ticker-link {
    font-size: 13.5px;
    font-weight: 600;
    color: #1e293b;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
    flex: 1;
    min-width: 0;
}

.insg-ticker-link:hover {
    color: var(--primary-red, #e41f26);
}

.insg-ticker-time {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
    margin-left: auto;
    padding-right: 12px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Right Navigation Controls */
.insg-ticker-controls {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    margin-left: auto;
}

.insg-ticker-btn {
    width: 26px;
    height: 26px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    border-radius: 6px;
    font-size: 10px;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.insg-ticker-btn:hover {
    background: var(--primary-red, #e41f26);
    color: #ffffff;
    border-color: var(--primary-red, #e41f26);
}

/* Sections */
.insg-featured-sec,
.insg-preview-sec {
    padding: 36px 0;
}

.insg-featured-sec .eds-section-head--left,
.insg-preview-sec .eds-section-head--left {
    margin-bottom: 20px;
}

.insg-preview-sec--alt {
    background: var(--bg-light, #f8fafc);
}

.insg-cta-sec {
    padding: 8px 0 36px;
}

/* =============================================================================
   TABLET RESPONSIVE BREAKPOINT (768px - 1024px)
   ============================================================================= */
@media screen and (max-width: 1024px) {
    .insg-featured-sec,
    .insg-preview-sec {
        padding: 32px 0;
    }

    .insg-ticker-bar {
        height: 48px;
        gap: 12px;
    }

    .insg-ticker-label {
        padding-right: 12px;
    }

    .insg-ticker-link {
        font-size: 13px;
    }

    .insg-ticker-time {
        font-size: 10.5px;
    }
}

/* =============================================================================
   MOBILE RESPONSIVE BREAKPOINTS (< 768px down to 320px)
   Senior Mobile UX Engineering
   ============================================================================= */
@media screen and (max-width: 768px) {
    .insg-intro {
        padding: 24px 0 16px;
        text-align: left;
    }

    .insg-featured-sec,
    .insg-preview-sec {
        padding: 28px 0;
    }

    .insg-cta-sec {
        padding: 0 0 28px;
    }

    .insg-ticker-sec {
        background: #ffffff;
    }

    .insg-ticker-bar {
        height: 44px;
        gap: 10px;
    }

    .insg-ticker-label {
        padding-right: 8px;
        gap: 6px;
    }

    .insg-ticker-tag-desktop {
        display: none;
    }

    .insg-ticker-tag-mobile {
        display: inline-block;
        font-size: 10px;
        font-weight: 800;
        letter-spacing: 0.8px;
        color: var(--primary-red, #e41f26);
    }

    .insg-ticker-content {
        mask-image: none;
        -webkit-mask-image: none;
    }

    .insg-ticker-item {
        gap: 8px;
    }

    .insg-ticker-cat {
        font-size: 9.5px;
        padding: 2px 6px;
        border-radius: 3px;
    }

    .insg-ticker-link {
        font-size: 12.5px;
        line-height: 1.35;
    }

    .insg-ticker-time {
        display: none;
    }

    .insg-ticker-btn {
        width: 22px;
        height: 22px;
        font-size: 8.5px;
    }
}

@media screen and (max-width: 420px) {
    .insg-ticker-bar {
        height: 42px;
        gap: 8px;
    }

    .insg-ticker-controls {
        display: none;
    }

    .insg-ticker-label {
        border-right: 1px solid #e2e8f0;
        padding-right: 6px;
    }

    .insg-ticker-dot {
        width: 6px;
        height: 6px;
    }

    .insg-ticker-link {
        font-size: 12px;
    }
}

@media screen and (max-width: 340px) {
    .insg-ticker-cat {
        display: none;
    }

    .insg-ticker-link {
        font-size: 11.5px;
    }
}
