/* ===========================================
   INSIGHTS PAGE — Creative Editorial Redesign
   =========================================== */

/* Hero with Animated Gradient Mesh */
.insights-hero {
    background: var(--color-primary);
    color: #fff;
    padding: 170px 0 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #011d3a 0%, #022b54 40%, #033a6e 70%, #022b54 100%);
    background-size: 400% 400%;
    animation: insightsHeroGradient 12s ease infinite;
}

@keyframes insightsHeroGradient {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.insights-hero-blob {
    position: absolute;
    border-radius: 40% 60% 70% 30%/40% 50% 60% 50%;
    pointer-events: none;
    filter: blur(80px);
}

.insights-hero-blob--1 {
    width: 600px;
    height: 600px;
    top: -150px;
    left: -100px;
    background: rgba(79, 171, 72, 0.12);
    animation: insightsBlobMorph 20s ease-in-out infinite;
}

.insights-hero-blob--2 {
    width: 450px;
    height: 450px;
    bottom: -100px;
    right: -80px;
    background: rgba(125, 213, 111, 0.08);
    animation: insightsBlobMorph 25s ease-in-out infinite reverse;
}

@keyframes insightsBlobMorph {

    0%,
    100% {
        border-radius: 40% 60% 70% 30%/40% 50% 60% 50%;
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        border-radius: 70% 30% 50% 50%/30% 30% 70% 70%;
        transform: translate(30px, -40px) rotate(8deg);
    }

    66% {
        border-radius: 50% 60% 30% 70%/60% 40% 70% 40%;
        transform: translate(-20px, 30px) rotate(-5deg);
    }
}

/* Insights Section & Dotted Grid Background */
.insights-section {
    position: relative;
    overflow: hidden;
    padding: 100px 0;
    --dot-color: rgba(2, 43, 84, 0.04);
    --spotlight-color: rgba(79, 171, 72, 0.05);
    background-color: var(--color-bg);
}

.insights-section .section-subtitle {
    font-size: 11px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: #22c55e;
    font-weight: 500;
    margin-bottom: 14px;
    display: block;
}

.insights-section::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--dot-color) 1.5px, transparent 1.5px);
    background-size: 32px 32px;
    pointer-events: none;
    z-index: 0;
    animation: insightsGridDrift 45s ease-in-out infinite;
}

@keyframes insightsGridDrift {
    0% {
        transform: rotate(4deg) translate(0px, 0px);
    }

    50% {
        transform: rotate(4deg) translate(-30px, 15px);
    }

    100% {
        transform: rotate(4deg) translate(0px, 0px);
    }
}

.insights-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(800px circle at var(--mouse-x, -500px) var(--mouse-y, -500px),
            var(--spotlight-color),
            transparent 45%);
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.insights-section:hover::before {
    opacity: 1;
}

.insights-section>.container {
    position: relative;
    z-index: 2;
}

/* Featured Hero Card */
.insights-featured-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 32px;
    padding: 32px;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 24px;
}

.insights-featured-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(79, 171, 72, 0.25);
}

.insights-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
}

.insights-image-zoom {
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.insights-featured-card:hover .insights-image-zoom,
.insights-sidebar-item:hover .insights-image-zoom,
.insights-grid-card:hover .insights-image-zoom {
    transform: scale(1.04);
}

/* Category Label */
.insights-type-tag {
    display: inline-block;
    color: var(--color-accent);
    background: var(--color-accent-soft);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 8px 22px;
    /* Increased padding */
    border-radius: 20px;
    border: 1px solid rgba(79, 171, 72, 0.15);
    line-height: 1;
}

/* Sidebar List items */
.insights-sidebar-item {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 24px;
    padding: 24px;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
}

.insights-sidebar-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(79, 171, 72, 0.25);
}

/* Standard list cards */
.insights-grid-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 24px;
    padding: 24px;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 20px;
}

.insights-grid-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(79, 171, 72, 0.25);
}

.insights-headline {
    color: var(--color-primary);
    font-size: clamp(1.6rem, 2.5vw, 2.4rem);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 0px;
    transition: color 0.3s ease;
}

.insights-grid-card:hover .insights-headline,
.insights-featured-card:hover .insights-headline,
.insights-sidebar-item:hover .insights-headline-small {
    color: var(--color-accent);
}

.insights-headline-small {
    color: var(--color-primary);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.insights-arrow-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-accent);
    font-weight: 700;
    font-size: 0.95rem;
    margin-top: auto;
    transition: color 0.3s ease;
}

.insights-arrow-svg {
    transition: transform 0.3s ease;
}

.insights-grid-card:hover .insights-arrow-link,
.insights-featured-card:hover .insights-arrow-link {
    color: var(--color-primary);
}

.insights-grid-card:hover .insights-arrow-svg,
.insights-featured-card:hover .insights-arrow-svg {
    transform: translateX(4px);
}

/* Contact CTA layout */
.insights-cta-section {
    padding: 110px 0;
    background: var(--color-primary);
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.insights-cta-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(79, 171, 72, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.insights-cta-section h2.section-title {
    color: #fff !important;
    margin-bottom: var(--spacing-sm);
    font-size: clamp(2rem, 3.5vw, 3rem);
}

.insights-cta-section p {
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin: 0 auto 40px;
    font-size: 1.15rem;
    line-height: 1.7;
}

.insights-btn-green {
    display: inline-block;
    background: var(--color-accent);
    color: #fff;
    font-weight: 700;
    padding: 18px 40px;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(79, 171, 72, 0.25);
    text-decoration: none;
}

.insights-btn-green:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(79, 171, 72, 0.4);
    color: #fff !important;
}

/* -------------------------------------------
   Custom Layout Utilities for Insights JS
---------------------------------------------*/
.ins-flex-col {
    display: flex;
    flex-direction: column;
}

.ins-layout-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

@media (min-width: 1024px) {
    .ins-layout-top {
        grid-template-columns: 1.8fr 1fr;
        gap: var(--spacing-lg);
        align-items: stretch;
    }
}

.ins-col-main {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ins-col-side {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    height: 100%;
}

.ins-layout-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .ins-layout-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .ins-layout-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.ins-aspect-16-9 {
    aspect-ratio: 16 / 9;
    width: 100%;
}

.ins-aspect-4-3 {
    aspect-ratio: 16 / 9;
    /* Default to 16/9 on mobile */
    width: 100%;
}

@media (min-width: 1024px) {
    .ins-aspect-4-3 {
        aspect-ratio: 4 / 3;
    }
}

.object-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.insights-floating-badge {
    position: absolute;
    top: 24px;
    left: 24px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.insights-grid-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.insights-sidebar-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 6px 12px;
    border-radius: 50px;
    color: var(--color-accent);
    background: var(--color-accent-soft);
    border: 1px solid rgba(79, 171, 72, 0.15);
}

.insights-sidebar-date,
.insights-meta-row {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b !important;
    display: flex;
    align-items: center;
    gap: 12px;
}

.insights-desc {
    color: #334155 !important;
    font-size: 1.025rem;
    line-height: 1.65;
    margin: 0;
    opacity: 1 !important;
}

.insights-featured-card .insights-desc,
.insights-sidebar-item .insights-desc,
.insights-grid-card .insights-desc {
    color: #334155 !important;
    opacity: 1 !important;
}

.ins-line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ins-line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.insights-arrow-svg {
    width: 20px;
    height: 20px;
}

.insights-grid-card .insights-arrow-svg {
    width: 16px;
    height: 16px;
    font-size: 0.9rem;
}

.insights-divider {
    border: none;
    height: 1px;
    background: var(--color-border);
    margin: 3rem 0 1rem;
}