/* ── INSIGHTS SECTION & SLIDER STRUCTURE ── */
.insights-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 80px;
    overflow: visible;
}

.insights-grid {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 20px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100%;
}

.insights-grid::-webkit-scrollbar {
    display: none; 
}

.insight-card {
    flex: 0 0 calc(33.333% - 17px);
    min-width: 300px;
    scroll-snap-align: center;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    border: 1px solid #f3f4f6;
    cursor: pointer;
}

.insight-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(124, 81, 161, 0.12);
    border-color: rgba(124, 81, 161, 0.2);
}

.insight-thumb-wrap {
    aspect-ratio: 16 / 10; 
    overflow: hidden;
    width: 100%;
}

.insight-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.insight-body {
    padding: 30px !important;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: left;
}

.insight-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.insight-tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: #7C51A1 !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 1 !important;
}

.insight-date {
    font-size: 0.85rem;
    color: #6b7280 !important; /* Standard gray for date */
    opacity: 1 !important;
}

.insight-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827 !important; /* Deep black-navy for title */
    margin-bottom: 12px;
    line-height: 1.4;
    word-break: keep-all;
    opacity: 1 !important;
}

.insight-excerpt {
    font-size: 0.95rem;
    color: #374151 !important; /* Dark charcoal for body text */
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: keep-all;
    opacity: 1 !important;
}

.insight-more {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #7C51A1 !important;
    opacity: 1 !important;
}

.insight-card:hover .insight-thumb {
    transform: scale(1.1);
}

.slider-btn {
    background: #fff;
    border: 1px solid #e5e7eb;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #111827;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

#slide-prev { left: 10px; }
#slide-next { right: 10px; }

/* ── INSIGHT DETAIL MODAL ── */
#insight-modal {
    display: none; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-container {
    background: #0f172a;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    border-radius: 24px;
    position: relative;
    padding: 60px 40px;
    overflow-y: auto;
    overflow-x: hidden; 
    box-shadow: 0 25px 100px rgba(0, 0, 0, 0.7);
    animation: modalFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    scrollbar-gutter: stable;
}

.modal-container::-webkit-scrollbar { width: 8px; }
.modal-container::-webkit-scrollbar-track { background: rgba(15, 23, 42, 0.5); }
.modal-container::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.15); border-radius: 4px; }
.modal-container::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.25); }

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-close {
    position: fixed;
    top: 30px;
    right: 60px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    transition: all 0.3s ease;
    z-index: 10000;
}

.modal-close:hover {
    background: #fff;
    color: #000;
    transform: rotate(90deg);
}

.typography-premium, 
.typography-premium p, 
.typography-premium h1, 
.typography-premium h2, 
.typography-premium h3, 
.typography-premium h4, 
.typography-premium li,
.typography-premium div { 
    font-family: 'Inter', sans-serif; 
    line-height: 1.85; 
    color: #ffffff !important; 
    word-break: keep-all; 
    overflow-wrap: break-word;
    opacity: 1 !important;
}

.modal-hero { 
    width: 100%; 
    display: flex; 
    justify-content: center; 
    align-items: center;
    margin: 40px 0; 
    padding: 0; 
    box-sizing: border-box;
}

.modal-hero img { 
    width: 90% !important; 
    max-width: 90% !important; 
    max-height: 480px; 
    border-radius: 16px; 
    display: block; 
    margin: 0 auto !important; 
    object-fit: contain; 
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
}

.modal-header { padding: 0 0 30px 0; display: flex; flex-direction: column; gap: 15px; }
.modal-title, .insight-tag, .insight-date { color: #ffffff !important; opacity: 1 !important; }
.modal-title { font-size: 2.4rem; line-height: 1.25; font-weight: 800; margin: 0; }
.insight-tag { font-size: 0.9rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: #93c5fd !important; }
.insight-date { font-size: 1rem; opacity: 0.7 !important; color: #ffffff !important; }
.modal-body { 
    padding: 0; 
    color: #ffffff !important;
}

.modal-body p, 
.modal-body h1, 
.modal-body h2, 
.modal-body h3, 
.modal-body h4, 
.modal-body h5, 
.modal-body h6, 
.modal-body li {
    color: #ffffff !important;
}
.insight-section { margin-top: 50px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.1); }
.insight-section h3 { color: #93c5fd !important; margin-bottom: 25px; font-size: 1.55rem; font-weight: 700; letter-spacing: -0.02em; }
.lead { font-size: 1.35rem; color: #ffffff !important; line-height: 1.75; font-weight: 500; margin-bottom: 45px; border-left: 5px solid #3b82f6; padding-left: 25px; }
.disclaimer-insight { font-size: 0.85rem; color: rgba(255,255,255,0.5) !important; margin-top: 80px; padding-top: 25px; border-top: 1px solid rgba(255,255,255,0.08); font-style: italic; }

/* ── MOBILE OVERRIDES (ULTIMATE PRIORITY) ── */
@media (max-width: 768px) {
    .insights-container {
        padding: 0 45px !important;
        overflow: visible !important;
        max-width: 100vw !important;
    }
    .insights-grid {
        display: flex !important;
        gap: 15px !important;
        padding: 10px 0 !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
    }
    .insights-grid::-webkit-scrollbar {
        display: none !important;
    }
    .insight-card {
        width: 72vw !important;
        min-width: 72vw !important;
        scroll-snap-align: center !important;
        min-height: 380px !important;
    }
    .insight-thumb-wrap {
        aspect-ratio: 1 / 1 !important;
    }
    .insight-body {
        padding: 25px !important;
    }
    .modal-container {
        padding: 40px 20px 100px 20px !important; 
        border-radius: 0;
        height: 100%;
        max-height: 100%;
    }
    .modal-close {
        top: calc(25px + env(safe-area-inset-top));
        right: 40px; 
        background: #ffffff;
        color: #000000;
        width: 50px;
        height: 50px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.3);
        border: 2px solid rgba(0,0,0,0.1);
        opacity: 1 !important;
        z-index: 10001;
    }
    .modal-hero {
        padding: 0 !important;
        margin: 20px 0 30px 0;
    }
    .modal-hero img {
        width: 90% !important;
        max-width: 90% !important;
        max-height: 300px;
    }
    .modal-title {
        font-size: 1.8rem !important;
        line-height: 1.3;
    }
    .lead {
        font-size: 1.15rem !important;
        margin-bottom: 30px;
        padding-left: 15px;
    }
    .disclaimer-insight {
        margin-top: 50px;
        margin-bottom: 40px;
        padding-bottom: 20px;
    }
}
