/* Shared styles for Blogs, Whitepapers, Case Studies – elegant v2 */
:root {
    --inf-navy: #0a192f;
    --inf-blue: #004E8F;
    --elegant-cyan: rgba(0, 242, 254, 0.85);
    --elegant-border: rgba(255, 255, 255, 0.06);
    --elegant-text-muted: rgba(255, 255, 255, 0.55);
}

body.insights-page {
    background-color: #0B0B0B !important;
    color: #e2e8f0;
}

.insights-page .page-hero-v2 {
    position: relative;
    background: linear-gradient(180deg, #0c1222 0%, #0f172a 50%, #0a0f1a 100%);
    overflow: hidden;
    padding: 160px 0 120px;
    min-height: 52vh;
    display: flex;
    align-items: center;
}

.insights-page .motion-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.22;
    animation: insightsBlobFloat 14s ease-in-out infinite;
    z-index: 0;
}

.insights-page .blob-1 { top: -15%; left: -5%; width: 480px; height: 480px; background: var(--inf-blue); }
.insights-page .blob-2 { bottom: -15%; right: -5%; width: 520px; height: 520px; background: #4338ca; animation-delay: -7s; }

@keyframes insightsBlobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.22; }
    50% { transform: translate(30px, -20px) scale(1.05); opacity: 0.28; }
}

.insights-page .insights-hero-pill {
    display: inline-block;
    padding: 8px 20px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 100px;
    margin-bottom: 28px;
    background: rgba(255, 255, 255, 0.02);
}

.insights-page .insights-hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 20px;
}

.insights-page .insights-hero-title .gradient-text-cyan {
    background: linear-gradient(135deg, #7dd3fc 0%, #38bdf8 50%, #0ea5e9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.insights-page .insights-hero-lead {
    font-size: 1.1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.55);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.65;
    letter-spacing: 0.01em;
}

.insights-page .insights-hero-divider {
    width: 48px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    margin: 32px auto 0;
}

/* Listing section */
.insights-page .insights-section {
    background: #0B0B0B !important;
    padding: 72px 0 120px;
    position: relative;
    overflow: visible;
}

.insights-page .insights-section::before {
    display: none;
}

.insights-page .insights-filters-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 24px;
    margin-bottom: 56px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 1;
}

.insights-page .insights-filters-bar .filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.insights-page .insights-filters-bar .filter-label {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.insights-page .insights-filters-bar .form-select {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    border-radius: 8px;
    padding: 10px 36px 10px 14px;
    min-width: 160px;
    font-size: 0.9rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.insights-page .insights-filters-bar .form-select:focus {
    border-color: rgba(59, 150, 255, 0.5);
    box-shadow: 0 0 0 1px rgba(59, 150, 255, 0.15);
    outline: none;
}

.insights-page .insights-filters-bar .form-select option {
    background: #111827;
    color: #e2e8f0;
}

.insights-page .insights-filters-bar .btn-filters {
    margin-left: 8px;
    padding: 10px 18px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.insights-page .insights-filters-bar .btn-filters:hover {
    color: #3B96FF;
    border-color: rgba(59, 150, 255, 0.4);
    background: rgba(59, 150, 255, 0.12);
}

/* Cards */
.insights-page .insights-card {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
    position: relative;
    z-index: 1;
}

.insights-page .insights-card:hover {
    border-color: #3b96ff !important;
    box-shadow: 0 8px 30px rgba(59, 150, 255, 0.2);
    transform: translateY(-4px);
}

.insights-page .insights-card .insights-card-img {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.6s ease;
}

.insights-page .insights-card:hover .insights-card-img {
    transform: scale(1.03);
}

.insights-page .insights-card .insights-card-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 50%);
}

.insights-page .insights-card .insights-card-badge {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 2;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    background: #3B96FF;
    border: none;
    box-shadow: 0 2px 10px rgba(59, 150, 255, 0.3);
}

.insights-page .insights-card .insights-card-body {
    padding: 28px 26px 26px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.insights-page .insights-card .insights-card-title {
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.4;
    color: #f1f5f9;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.insights-page .insights-card .insights-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s ease;
}

.insights-page .insights-card .insights-card-title a:hover {
    color: #3B96FF;
}

.insights-page .insights-card .insights-card-excerpt {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.9rem;
    line-height: 1.65;
    margin-bottom: 20px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    letter-spacing: 0.01em;
}

.insights-page .insights-card .insights-card-meta {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.02em;
    margin-bottom: 18px;
}

.insights-page .insights-card .insights-card-meta span + span::before {
    content: '\00B7';
    margin: 0 8px;
    opacity: 0.7;
}

.insights-page .insights-card .insights-card-link {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #3B96FF;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.25s ease, gap 0.25s ease;
}

.insights-page .insights-card .insights-card-link i {
    font-size: 0.75rem;
    transition: transform 0.25s ease;
}

.insights-page .insights-card .insights-card-link:hover {
    color: var(--inf-blue);
    gap: 12px;
}

.insights-page .insights-card .insights-card-link:hover i {
    transform: translateX(2px);
}

.insights-page .insights-card.featured .insights-card-img { height: 320px; }
.insights-page .insights-card.featured .insights-card-body { padding: 32px 30px 30px; }
.insights-page .insights-card.featured .insights-card-title { font-size: 1.45rem; -webkit-line-clamp: 2; }
.insights-page .insights-card.featured .insights-card-excerpt { font-size: 0.95rem; -webkit-line-clamp: 4; }

/* Harmonize non-blog archive cards with the blogs card rhythm */
.insights-page .insights-list-card .insights-list-title {
    font-size: 1.1rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3.2rem;
}

.insights-page .insights-list-card .insights-list-excerpt {
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 4.9rem;
}

.insights-page .insights-load-more {
    margin-top: 56px;
    text-align: center;
}

.insights-page .insights-load-more .btn {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    padding: 12px 32px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.85);
    background: transparent;
    transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}

.insights-page .insights-load-more .btn:hover {
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
}

/* Detail page */
.insights-page .detail-hero-bg {
    position: relative;
    background: linear-gradient(180deg, #0c1222 0%, #0f172a 50%, #0a0f1a 100%);
    overflow: hidden;
    padding: 140px 0 80px;
}

.insights-page .detail-hero-bg .motion-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.18;
    z-index: 0;
}

.insights-page .detail-hero-bg .blob-1 { top: -10%; left: -5%; width: 400px; height: 400px; background: var(--inf-blue); }
.insights-page .detail-hero-bg .blob-2 { bottom: -10%; right: -5%; width: 450px; height: 450px; background: #4338ca; }

.insights-page .detail-hero-content {
    position: relative;
    z-index: 2;
}

.insights-page .detail-badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    padding: 6px 14px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
    margin-bottom: 20px;
}

.insights-page .detail-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: #fff;
    margin-bottom: 16px;
}

.insights-page .detail-meta-bar {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

.insights-page .detail-meta-bar span + span::before {
    content: '\00B7';
    margin: 0 10px;
    opacity: 0.7;
}

.insights-page .detail-section {
    background: #050810;
    padding: 64px 0 100px;
}

.insights-page .detail-body {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.05rem;
    line-height: 1.75;
}

.insights-page .detail-body h3 {
    color: #fff;
    font-size: 1.35rem;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.insights-page .detail-body p {
    margin-bottom: 1.25rem;
}

.insights-page .detail-body ul, .insights-page .detail-body ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

/* Case study detail — dark accordion treatment (legacy parity) */
.insights-page .case-accordion-wrap .accordion-item {
    background: rgba(255, 255, 255, 0.03);
}

.insights-page .case-accordion-wrap .accordion-button {
    box-shadow: none !important;
    border: 0;
    color: #fff !important;
    background: transparent !important;
}

.insights-page .case-accordion-wrap .accordion-button::after {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.insights-page .case-accordion-wrap .accordion-button:not(.collapsed) {
    color: #7dd3fc !important;
}

.insights-page .case-sidebar-fixed-wrap {
    position: sticky;
    top: 110px;
}

/* Case study detail — impact stat chips (white text on elevated dark surface) */
.insights-page .case-study-impact-item {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.insights-page .case-study-impact-item:hover {
    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(59, 150, 255, 0.45);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

.insights-page .case-study-impact-item__text {
    color: #ffffff;
    line-height: 1.45;
}

.insights-page .case-study-impact-item__icon {
    background: linear-gradient(135deg, #c026d3 0%, #7c3aed 55%, #3b82f6 100%);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.35);
}

.insights-page .detail-sidebar-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--elegant-border);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.insights-page .detail-sidebar-card h4 {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--elegant-text-muted);
    margin-bottom: 16px;
}

/* Case study detail — related stories (sidebar) */
.insights-page .case-related-nav__label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.48);
    margin: 0 0 1rem;
}

.insights-page .case-related-nav__list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.insights-page .case-related-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.65rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.insights-page .case-related-card:hover {
    border-color: rgba(125, 211, 252, 0.35);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.insights-page .case-related-card:focus-visible {
    outline: 2px solid rgba(125, 211, 252, 0.85);
    outline-offset: 2px;
}

.insights-page .case-related-card--active {
    border-color: rgba(192, 38, 211, 0.45);
    background: rgba(192, 38, 211, 0.1);
    box-shadow: 0 0 0 1px rgba(192, 38, 211, 0.12);
    color: #fff;
}

.insights-page .case-related-card__thumb {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 10px;
    overflow: hidden;
    background: #0f0f12;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.insights-page .case-related-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.insights-page .case-related-card__body {
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
}

.insights-page .case-related-card__title {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.35;
    color: inherit;
}

.insights-page .case-related-card__meta {
    display: block;
    font-size: 0.65rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.42);
    margin-top: 0.12rem;
}

.insights-page .case-related-card:hover .case-related-card__meta,
.insights-page .case-related-card--active .case-related-card__meta {
    color: rgba(255, 255, 255, 0.55);
}

.insights-page .case-related-card__chev {
    flex-shrink: 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.28);
    transition: color 0.2s ease, transform 0.2s ease;
}

.insights-page .case-related-card:hover .case-related-card__chev,
.insights-page .case-related-card--active .case-related-card__chev {
    color: rgba(125, 211, 252, 0.95);
    transform: translateX(2px);
}

/* Case study — Technical Stack Architecture (grid tiles + service icons) */
.insights-page .case-tech-stack {
    padding: clamp(1.35rem, 3vw, 2.25rem);
    border-radius: 20px;
}

.insights-page .case-tech-stack__title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0 0 1.35rem;
    font-size: clamp(1.02rem, 2.2vw, 1.2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
}

.insights-page .case-tech-stack__title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 14px;
    font-size: 1.35rem;
    color: #7dd3fc;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.35);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.insights-page .case-tech-stack__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.65rem;
}

@media (min-width: 992px) {
    .insights-page .case-tech-stack__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.insights-page .case-tech-stack__tile {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-height: 64px;
    padding: 0.75rem 0.95rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.32);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.insights-page .case-tech-stack__tile:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 153, 0, 0.45);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
}

.insights-page .case-tech-stack__icon-wrap {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    font-size: 1.15rem;
    color: #ff9900;
    background: linear-gradient(155deg, #2d3748 0%, #1a202c 100%);
    border: 1px solid rgba(255, 153, 0, 0.4);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.insights-page .case-tech-stack__tile:hover .case-tech-stack__icon-wrap {
    border-color: rgba(255, 184, 77, 0.65);
    color: #ffc266;
}

.insights-page .case-tech-stack__label {
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.35;
    color: rgba(186, 230, 253, 0.95);
}

.insights-page .case-tech-stack__tile:hover .case-tech-stack__label {
    color: #fff;
}

/* Sidebar download uses global .v5-btn-primary; keep compact sizing in detail cards */
.insights-page .detail-sidebar-card .v5-btn-primary {
    padding: 0.65rem 1.25rem !important;
    font-size: 0.9rem;
    font-weight: 600;
    gap: 0.5rem;
}

.insights-page .detail-back-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 32px;
    transition: color 0.25s ease;
}

.insights-page .detail-back-link:hover {
    color: var(--elegant-cyan);
}

@media (max-width: 768px) {
    .insights-page .page-hero-v2 { padding: 130px 0 90px; min-height: 45vh; }
    .insights-page .insights-filters-bar { flex-direction: column; align-items: stretch; gap: 16px; margin-bottom: 40px; padding-bottom: 28px; }
    .insights-page .insights-filters-bar .filter-group { flex-direction: column; align-items: stretch; }
    .insights-page .insights-filters-bar .form-select { min-width: 100%; }
    .insights-page .insights-filters-bar .btn-filters { margin-left: 0; }
    .insights-page .insights-card .insights-card-img { height: 200px; }
    .insights-page .insights-card.featured .insights-card-img { height: 260px; }
}
