/* =========================================
   INSIGHTS/BLOG SECTION REDESIGN
   Light White Background with African Pattern
   ========================================= */

/* Insights Section Container */
section[style*="background: linear-gradient(135deg, rgba(128,0,32,0.92)"][style*="Latest Insights"],
section[style*="padding: 80px 0"][style*="background: linear-gradient(135deg, rgba(128,0,32"],
.insights-section,
.blog-section {
    background: #ffffff !important;
    position: relative !important;
    overflow: hidden !important;
    padding: 60px 0 !important;
}

/* African Legal Pattern - Light & Elegant */
section[style*="background: linear-gradient(135deg, rgba(128,0,32,0.92)"]::before,
.insights-section::before,
.blog-section::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    /* Multi-layered African legal pattern */
    background-image:
        /* Scales of Justice - centered focal point */
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cpath d='M60 10L70 35H50L60 10z M60 110L50 85H70L60 110z M10 60L35 50V70L10 60z M110 60L85 70V50L110 60z' fill='none' stroke='rgba(128,0,32,0.06)' stroke-width='1.5'/%3E%3Ccircle cx='60' cy='60' r='15' fill='none' stroke='rgba(128,0,32,0.05)' stroke-width='1'/%3E%3Ccircle cx='60' cy='60' r='25' fill='none' stroke='rgba(255,215,0,0.04)' stroke-width='0.5'/%3E%3C/svg%3E"),
        /* Adinkra-inspired wisdom symbol */
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath d='M40 5 L45 20 L60 20 L48 30 L52 45 L40 35 L28 45 L32 30 L20 20 L35 20 Z' fill='none' stroke='rgba(128,0,32,0.03)' stroke-width='1'/%3E%3C/svg%3E"),
        /* Kente-inspired chevrons */
        repeating-linear-gradient(45deg,
            transparent,
            transparent 40px,
            rgba(128, 0, 32, 0.02) 40px,
            rgba(128, 0, 32, 0.02) 42px),
        repeating-linear-gradient(-45deg,
            transparent,
            transparent 40px,
            rgba(255, 215, 0, 0.02) 40px,
            rgba(255, 215, 0, 0.02) 42px),
        /* Subtle dot pattern */
        radial-gradient(circle at 25% 25%, rgba(128, 0, 32, 0.03) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, rgba(255, 215, 0, 0.02) 1px, transparent 1px) !important;
    background-size: 120px 120px, 80px 80px, 100% 100%, 100% 100%, 30px 30px, 30px 30px !important;
    background-position: center center, 40px 40px, 0 0, 0 0, 0 0, 15px 15px !important;
    opacity: 1 !important;
    pointer-events: none !important;
    z-index: 0 !important;
}

/* Accent corner decorations */
section[style*="background: linear-gradient(135deg, rgba(128,0,32,0.92)"]::after,
.insights-section::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    width: 300px !important;
    height: 300px !important;
    background: radial-gradient(circle at 100% 0%, rgba(255, 215, 0, 0.06) 0%, transparent 50%) !important;
    pointer-events: none !important;
    z-index: 0 !important;
}

/* Ensure content is above pattern */
section[style*="background: linear-gradient(135deg, rgba(128,0,32,0.92)"]>div,
.insights-section>.container {
    position: relative !important;
    z-index: 1 !important;
}

/* Section Tag - Maroon Style */
section[style*="background: linear-gradient(135deg, rgba(128,0,32,0.92)"] [style*="background: rgba(255,215,0"],
.insights-section .section-tag {
    background: linear-gradient(135deg, rgba(128, 0, 32, 0.1) 0%, rgba(255, 215, 0, 0.08) 100%) !important;
    color: #800020 !important;
    border: 1px solid rgba(128, 0, 32, 0.2) !important;
    padding: 10px 24px !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    border-radius: 50px !important;
}

/* Section Title */
section[style*="background: linear-gradient(135deg, rgba(128,0,32,0.92)"] h2,
.insights-section h2 {
    color: #1a1a1a !important;
    font-size: 2.25rem !important;
    font-weight: 800 !important;
    margin-bottom: 0.75rem !important;
}

section[style*="background: linear-gradient(135deg, rgba(128,0,32,0.92)"] h2 span,
.insights-section h2 span {
    color: #800020 !important;
}

/* Section Description */
section[style*="background: linear-gradient(135deg, rgba(128,0,32,0.92)"] h2+p,
.insights-section>.container>div>p {
    color: #666 !important;
    font-size: 1rem !important;
}

/* Blog Posts Grid */
.posts-grid,
.blog-grid,
section[style*="background: linear-gradient(135deg, rgba(128,0,32,0.92)"]+section [style*="display: grid"] {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)) !important;
    gap: 1.5rem !important;
    margin-top: 1.5rem !important;
}

/* Blog Card Redesign */
.post-card,
.blog-card,
article.post {
    background: #ffffff !important;
    border-radius: 24px !important;
    overflow: hidden !important;
    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.06),
        0 2px 6px rgba(0, 0, 0, 0.03) !important;
    border: 1px solid rgba(128, 0, 32, 0.06) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    position: relative !important;
}

.post-card:hover,
.blog-card:hover,
article.post:hover {
    transform: translateY(-12px) !important;
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.1),
        0 10px 20px rgba(128, 0, 32, 0.06) !important;
    border-color: rgba(128, 0, 32, 0.12) !important;
}

/* Card Accent Line */
.post-card::before,
.blog-card::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 4px !important;
    background: linear-gradient(90deg, #800020 0%, #FFD700 50%, #800020 100%) !important;
    transform: scaleX(0) !important;
    transition: transform 0.4s ease !important;
}

.post-card:hover::before,
.blog-card:hover::before {
    transform: scaleX(1) !important;
}

/* Blog Image */
.post-card img,
.blog-card img,
article.post img {
    width: 100% !important;
    height: 220px !important;
    object-fit: cover !important;
    transition: transform 0.5s ease !important;
}

.post-card:hover img,
.blog-card:hover img {
    transform: scale(1.05) !important;
}

/* Image Container */
.post-card .post-image,
.blog-card .blog-image {
    position: relative !important;
    overflow: hidden !important;
}

.post-card .post-image::after,
.blog-card .blog-image::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 60px !important;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent) !important;
    pointer-events: none !important;
}

/* Blog Content Area */
.post-card-content,
.blog-card-content,
article.post>div:last-child {
    padding: 1.25rem !important;
}

/* Date Badge */
.post-date,
.blog-date,
.post-card [style*="color: #666"][style*="font-size: 0.85rem"],
article.post time {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 0.8rem !important;
    color: #800020 !important;
    font-weight: 600 !important;
    margin-bottom: 0.75rem !important;
    padding: 4px 12px !important;
    background: rgba(128, 0, 32, 0.06) !important;
    border-radius: 20px !important;
}

.post-date i,
.blog-date i {
    font-size: 0.75rem !important;
}

/* Blog Title */
.post-card h3,
.post-card h4,
.blog-card h3,
article.post h2,
article.post h3 {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    line-height: 1.4 !important;
    margin-bottom: 0.75rem !important;
    transition: color 0.3s ease !important;
}

.post-card:hover h3,
.post-card:hover h4,
.blog-card:hover h3 {
    color: #800020 !important;
}

/* Blog Excerpt */
.post-card p,
.blog-card p,
article.post p {
    font-size: 0.9rem !important;
    color: #666 !important;
    line-height: 1.65 !important;
    margin-bottom: 1.25rem !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

/* Read More Button */
.post-link,
.blog-link,
.post-card a[style*="color: #800020"],
article.post a {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 10px 20px !important;
    background: linear-gradient(135deg, rgba(128, 0, 32, 0.08) 0%, rgba(255, 215, 0, 0.08) 100%) !important;
    color: #800020 !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    border-radius: 50px !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    border: 1px solid rgba(128, 0, 32, 0.1) !important;
}

.post-link:hover,
.blog-link:hover,
.post-card a:hover {
    background: linear-gradient(135deg, #800020 0%, #600018 100%) !important;
    color: #ffffff !important;
    transform: translateX(4px) !important;
    box-shadow: 0 6px 20px rgba(128, 0, 32, 0.25) !important;
}

.post-link i,
.blog-link i,
.post-card a i {
    transition: transform 0.3s ease !important;
    font-size: 0.8rem !important;
}

.post-link:hover i,
.blog-link:hover i,
.post-card a:hover i {
    transform: translateX(4px) !important;
}

/* Responsive */
@media (max-width: 900px) {

    .posts-grid,
    .blog-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
}

@media (max-width: 768px) {

    section[style*="background: linear-gradient(135deg, rgba(128,0,32,0.92)"],
    .insights-section {
        padding: 60px 0 !important;
    }

    section[style*="background: linear-gradient(135deg, rgba(128,0,32,0.92)"] h2 {
        font-size: 1.75rem !important;
    }

    .post-card img,
    .blog-card img {
        height: 180px !important;
    }

    .post-card-content,
    .blog-card-content {
        padding: 1.5rem !important;
    }
}

@media (max-width: 480px) {
    section[style*="background: linear-gradient(135deg, rgba(128,0,32,0.92)"] {
        padding: 50px 0 !important;
    }

    .post-card h3,
    .blog-card h3 {
        font-size: 0.95rem !important;
    }

    .post-card p,
    .blog-card p {
        font-size: 0.85rem !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important;
    }
}