/**
 * Veen Africa — Insights & Blog Stylesheet
 * Brand Theme: #6A47ED (Primary), #C6F806 (Accent Lime), #00D4AA (Accent Teal)
 * Backgrounds: #0A0A0F, #0E0E18, #11111A
 */

.insights-page-wrapper {
    background-color: #0A0A0F;
    color: #F3F4F6;
    overflow-x: hidden;
    width: 100%;
}

.insights-page-wrapper a,
.insights-page-wrapper a:hover,
.insights-page-wrapper a:focus,
.insights-page-wrapper a:visited,
.insights-page-wrapper a:active {
    text-decoration: none !important;
}

.insights-page-wrapper * {
    box-sizing: border-box;
}

/* =========================================================
   HERO BANNER
   ========================================================= */
.insights-hero {
    position: relative;
    padding: 130px 0 70px;
    background: radial-gradient(circle at 75% 25%, rgba(106, 71, 237, 0.22) 0%, transparent 60%),
                radial-gradient(circle at 20% 80%, rgba(0, 212, 170, 0.1) 0%, transparent 50%),
                linear-gradient(180deg, #0A0A0F 0%, #0E0E18 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    width: 100%;
}

.insights-hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
    pointer-events: none;
}

.insights-hero-content {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.insights-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 18px;
    background: rgba(106, 71, 237, 0.14);
    border: 1px solid rgba(106, 71, 237, 0.35);
    border-radius: 100px;
    font-size: 0.85rem;
    color: #A78BFA;
    font-weight: 600;
    margin-bottom: 22px;
    box-shadow: 0 0 25px rgba(106, 71, 237, 0.18);
}

.insights-badge .pulse-dot {
    width: 8px;
    height: 8px;
    background: #C6F806;
    border-radius: 50%;
    box-shadow: 0 0 10px #C6F806;
    flex-shrink: 0;
}

.insights-hero h1 {
    font-family: var(--font-display, 'Space Grotesk', sans-serif);
    font-size: clamp(2.3rem, 5vw, 3.8rem);
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.insights-hero h1 .gradient-text {
    background: linear-gradient(135deg, #8B6CF6 0%, #C6F806 60%, #00D4AA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.insights-hero-lead {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: #9E9EB2;
    line-height: 1.7;
    max-width: 680px;
    margin: 0 auto;
}

/* =========================================================
   MAIN INSIGHTS LAYOUT (2-COLUMN: ARTICLES + SIDEBAR)
   ========================================================= */
.insights-main-section {
    padding: 70px 0 100px;
    background: #0A0A0F;
}

.insights-layout-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    align-items: start;
}

/* Active Filter Pill Bar */
.insights-filter-status {
    background: #11111A;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 14px 20px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.insights-filter-status span {
    font-size: 0.9rem;
    color: #D1D5DB;
}

.insights-filter-status a {
    color: #FF6B6B !important;
    font-size: 0.82rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Articles Grid */
.insights-articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.insight-card {
    background: #11111A;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    text-decoration: none !important;
    position: relative;
}

.insight-card:hover {
    border-color: rgba(106, 71, 237, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.6), 0 0 25px rgba(106, 71, 237, 0.1);
    text-decoration: none !important;
}

.insight-card-thumb-wrap {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
    background: #161622;
}

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

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

.insight-card-cat-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(10, 10, 15, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    padding: 5px 12px;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #C6F806;
}

.insight-card-body {
    padding: 26px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.insight-card-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.8rem;
    color: #8E8EA8;
    margin-bottom: 12px;
}

.insight-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.insight-card-title {
    font-family: var(--font-display, 'Space Grotesk', sans-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.35;
    margin: 0 0 12px;
    transition: color 0.2s ease;
}

.insight-card:hover .insight-card-title {
    color: #A78BFA;
}

.insight-card-excerpt {
    font-size: 0.88rem;
    color: #9E9EB2;
    line-height: 1.6;
    margin: 0 0 20px;
    flex-grow: 1;
}

.insight-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.insight-card-link {
    font-size: 0.84rem;
    font-weight: 700;
    color: #8B6CF6;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s ease;
}

.insight-card:hover .insight-card-link {
    gap: 10px;
    color: #C6F806;
}

/* Pagination */
.insights-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 50px;
}

.insights-page-btn {
    min-width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #11111A;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #9E9EB2 !important;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
    text-decoration: none !important;
    padding: 0 14px;
}

.insights-page-btn:hover {
    background: rgba(106, 71, 237, 0.2);
    border-color: rgba(106, 71, 237, 0.4);
    color: #FFFFFF !important;
}

.insights-page-btn.active {
    background: #6A47ED;
    border-color: #6A47ED;
    color: #FFFFFF !important;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(106, 71, 237, 0.4);
}

/* Empty State */
.insights-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 70px 20px;
    background: #11111A;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
}

.insights-empty-icon {
    font-size: 3rem;
    color: #6A47ED;
    margin-bottom: 18px;
    opacity: 0.6;
}

.insights-empty-state h3 {
    font-size: 1.4rem;
    color: #FFFFFF;
    margin-bottom: 8px;
}

.insights-empty-state p {
    color: #8E8EA8;
    max-width: 440px;
    margin: 0 auto 20px;
}

/* =========================================================
   SIDEBAR WIDGETS
   ========================================================= */
.insights-sidebar {
    display: flex;
    flex-direction: column;
    gap: 28px;
    position: sticky;
    top: 100px;
}

.insights-widget {
    background: #11111A;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 26px;
}

.insights-widget-title {
    font-family: var(--font-display, 'Space Grotesk', sans-serif);
    font-size: 1.1rem;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    gap: 10px;
}

.insights-widget-title i {
    color: #8B6CF6;
    font-size: 0.95rem;
}

/* Search Widget */
.insights-search-form {
    display: flex;
    position: relative;
}

.insights-search-input {
    width: 100%;
    padding: 12px 42px 12px 16px;
    background: #161622;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #FFFFFF;
    font-size: 0.88rem;
    outline: none;
    transition: all 0.2s ease;
}

.insights-search-input:focus {
    border-color: #6A47ED;
    box-shadow: 0 0 0 3px rgba(106, 71, 237, 0.2);
}

.insights-search-submit {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #8E8EA8;
    cursor: pointer;
    padding: 8px;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.insights-search-submit:hover {
    color: #8B6CF6;
}

/* Categories List */
.insights-cats-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.insights-cat-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px;
    border-radius: 10px;
    color: #A5A5C2 !important;
    font-size: 0.88rem;
    transition: all 0.2s ease;
    text-decoration: none !important;
}

.insights-cat-link:hover,
.insights-cat-link.active {
    background: rgba(106, 71, 237, 0.15);
    color: #FFFFFF !important;
}

.insights-cat-count {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.05);
    color: #8E8EA8;
}

/* Recent Posts Widget */
.insights-recent-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.insights-recent-item {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none !important;
}

.insights-recent-thumb {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    background: #161622;
}

.insights-recent-info h5 {
    font-size: 0.88rem;
    font-weight: 600;
    color: #E2E8F0;
    line-height: 1.35;
    margin: 0 0 4px;
    transition: color 0.2s ease;
}

.insights-recent-item:hover .insights-recent-info h5 {
    color: #A78BFA;
}

.insights-recent-date {
    font-size: 0.75rem;
    color: #7E7E94;
}

/* Tags Cloud Widget */
.insights-tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.insights-tag-pill {
    padding: 5px 11px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.74rem;
    font-weight: 600;
    color: #9E9EB2 !important;
    transition: all 0.2s ease;
    text-decoration: none !important;
}

.insights-tag-pill:hover {
    background: rgba(106, 71, 237, 0.2);
    border-color: rgba(106, 71, 237, 0.4);
    color: #FFFFFF !important;
    text-decoration: none !important;
}

/* Sidebar CTA */
.insights-side-cta {
    background: linear-gradient(135deg, rgba(106, 71, 237, 0.2) 0%, rgba(14, 14, 24, 0.95) 100%);
    border-color: rgba(106, 71, 237, 0.35);
    text-align: center;
}

.insights-side-cta h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 8px;
}

.insights-side-cta p {
    font-size: 0.84rem;
    color: #A5A5C2;
    line-height: 1.55;
    margin: 0 0 18px;
}

/* =========================================================
   ARTICLE DETAILS PAGE STYLING
   ========================================================= */
.insight-article-header {
    padding: 130px 0 50px;
    background: radial-gradient(circle at 75% 25%, rgba(106, 71, 237, 0.2) 0%, transparent 60%),
                linear-gradient(180deg, #0A0A0F 0%, #0E0E18 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.insight-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: #8E8EA8;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.insight-breadcrumbs a {
    color: #A78BFA !important;
    text-decoration: none !important;
}

.insight-breadcrumbs a:hover {
    color: #FFFFFF !important;
}

.insight-article-header h1 {
    font-family: var(--font-display, 'Space Grotesk', sans-serif);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.2;
    margin-bottom: 20px;
    max-width: 950px;
}

.insight-article-meta-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 0.88rem;
    color: #9E9EB2;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.insight-article-meta-row span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.insight-article-featured-img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 40px 0 45px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

/* Article Rich Content Formatting */
.insight-content-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #D1D5DB;
}

.insight-content-body p {
    margin-bottom: 24px;
}

.insight-content-body h2,
.insight-content-body h3,
.insight-content-body h4 {
    font-family: var(--font-display, 'Space Grotesk', sans-serif);
    color: #FFFFFF;
    font-weight: 700;
    margin: 36px 0 16px;
}

.insight-content-body h2 { font-size: 1.8rem; }
.insight-content-body h3 { font-size: 1.45rem; }
.insight-content-body h4 { font-size: 1.25rem; }

.insight-content-body strong {
    color: #FFFFFF;
}

.insight-content-body blockquote {
    background: #11111A;
    border-left: 4px solid #6A47ED;
    border-radius: 0 14px 14px 0;
    padding: 20px 26px;
    margin: 30px 0;
    color: #E2E8F0;
    font-style: italic;
}

.insight-content-body ul,
.insight-content-body ol {
    margin: 0 0 26px 24px;
    padding: 0;
}

.insight-content-body li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.insight-share-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px 0;
    margin: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-wrap: wrap;
}

.insight-share-bar strong {
    color: #FFFFFF;
    font-size: 0.9rem;
    margin-right: 6px;
}

.insight-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #E2E8F0 !important;
    font-size: 0.82rem;
    font-weight: 600;
    transition: all 0.2s ease;
    text-decoration: none !important;
}

.insight-share-btn:hover {
    background: #6A47ED;
    border-color: #6A47ED;
    color: #FFFFFF !important;
    text-decoration: none !important;
}

/* =========================================================
   RESPONSIVE DESIGN
   ========================================================= */
@media (max-width: 991px) {
    .insights-layout-grid {
        grid-template-columns: 1fr;
    }
    .insights-articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .insights-sidebar {
        position: static;
        margin-top: 40px;
    }
}

@media (max-width: 640px) {
    .insights-hero {
        padding: 95px 0 45px;
    }
    .insights-articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .insight-article-header {
        padding: 100px 0 35px;
    }
    .insight-card-thumb-wrap {
        height: 190px;
    }
    .insight-card-body {
        padding: 20px 16px;
    }
}
