/* =========================
   INSIGHTS SECTION
========================= */

.insights-section {
    background-color: #000;
    position: relative;
    overflow: hidden;
}

.insights-section::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(234, 179, 8, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ---------- Section Header ---------- */

.insights-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

.insights-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #eab308;
    background: rgba(234, 179, 8, 0.1);
    border: 1px solid rgba(234, 179, 8, 0.25);
    padding: 6px 20px;
    border-radius: 50px;
    margin-bottom: 20px;
}

.insights-title {
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 16px;
}

.insights-subtitle {
    font-size: 16px;
    color: #9ca3af;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ---------- Filter Tabs ---------- */

.blog_filter_tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

.blog_filter_btn {
    padding: 10px 26px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    color: #9ca3af;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.35s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.blog_filter_btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.15), rgba(234, 179, 8, 0.05));
    opacity: 0;
    transition: opacity 0.35s ease;
    border-radius: 50px;
}

.blog_filter_btn:hover {
    color: #fff;
    border-color: rgba(234, 179, 8, 0.3);
    transform: translateY(-2px);
}

.blog_filter_btn:hover::before {
    opacity: 1;
}

.blog_filter_active {
    background: linear-gradient(135deg, #eab308, #ca8a04);
    color: #000;
    font-weight: 600;
    border-color: transparent;
    box-shadow: 0 4px 25px rgba(234, 179, 8, 0.3);
}

.blog_filter_active::before {
    display: none;
}

.blog_filter_active:hover {
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(234, 179, 8, 0.4);
}

/* ---------- Blog Grid ---------- */

.blog_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    position: relative;
    z-index: 1;
}

/* ---------- Blog Card ---------- */

.blog_card {
    position: relative;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
}

.blog_card_glow {
    position: absolute;
    top: -60px;
    right: -60px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(234, 179, 8, 0.06);
    filter: blur(40px);
    transition: all 0.5s ease;
    pointer-events: none;
}

.blog_card:hover {
    transform: translateY(-8px);
    border-color: rgba(234, 179, 8, 0.25);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(234, 179, 8, 0.06);
}

.blog_card:hover .blog_card_glow {
    width: 200px;
    height: 200px;
    background: rgba(234, 179, 8, 0.1);
}

/* ---------- Card Top ---------- */

.blog_card_top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.blog_badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.2), rgba(234, 179, 8, 0.08));
    color: #eab308;
    border: 1px solid rgba(234, 179, 8, 0.2);
}

.blog_read_time {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}

/* ---------- Card Body ---------- */

.blog_card_body {
    flex: 1;
}

.blog_meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.blog_meta_avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #eab308, #ca8a04);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #000;
    flex-shrink: 0;
}

.blog_meta_divider {
    color: #374151;
}

.blog_card_title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
    margin-bottom: 12px;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog_card:hover .blog_card_title {
    color: #eab308;
}

.blog_card_excerpt {
    font-size: 14px;
    line-height: 1.7;
    color: #9ca3af;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---------- Card Footer ---------- */

.blog_card_footer {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.blog_tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.blog_tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    color: #9ca3af;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s ease;
}

.blog_card:hover .blog_tag {
    border-color: rgba(234, 179, 8, 0.15);
    color: #d1d5db;
}

.blog_cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #eab308;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.blog_cta::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #eab308;
    transition: width 0.3s ease;
    border-radius: 2px;
}

.blog_cta:hover::after {
    width: 100%;
}

.blog_cta svg {
    transition: transform 0.3s ease;
}

.blog_cta:hover svg {
    transform: translateX(4px);
}

/* ---------- Color Class Variations ---------- */

.blog_card.color-blue .blog_badge {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.08));
    color: #60a5fa;
    border-color: rgba(59, 130, 246, 0.2);
}

.blog_card.color-blue:hover {
    border-color: rgba(59, 130, 246, 0.25);
}

.blog_card.color-blue:hover .blog_card_title {
    color: #60a5fa;
}

.blog_card.color-blue .blog_cta {
    color: #60a5fa;
}

.blog_card.color-blue .blog_cta::after {
    background: #60a5fa;
}

.blog_card.color-blue .blog_meta_avatar {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.blog_card.color-green .blog_badge {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(34, 197, 94, 0.08));
    color: #4ade80;
    border-color: rgba(34, 197, 94, 0.2);
}

.blog_card.color-green:hover {
    border-color: rgba(34, 197, 94, 0.25);
}

.blog_card.color-green:hover .blog_card_title {
    color: #4ade80;
}

.blog_card.color-green .blog_cta {
    color: #4ade80;
}

.blog_card.color-green .blog_cta::after {
    background: #4ade80;
}

.blog_card.color-green .blog_meta_avatar {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.blog_card.color-purple .blog_badge {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(168, 85, 247, 0.08));
    color: #c084fc;
    border-color: rgba(168, 85, 247, 0.2);
}

.blog_card.color-purple:hover {
    border-color: rgba(168, 85, 247, 0.25);
}

.blog_card.color-purple:hover .blog_card_title {
    color: #c084fc;
}

.blog_card.color-purple .blog_cta {
    color: #c084fc;
}

.blog_card.color-purple .blog_cta::after {
    background: #c084fc;
}

.blog_card.color-purple .blog_meta_avatar {
    background: linear-gradient(135deg, #a855f7, #9333ea);
}

.blog_card.color-red .blog_badge {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(239, 68, 68, 0.08));
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.2);
}

.blog_card.color-red:hover {
    border-color: rgba(239, 68, 68, 0.25);
}

.blog_card.color-red:hover .blog_card_title {
    color: #f87171;
}

.blog_card.color-red .blog_cta {
    color: #f87171;
}

.blog_card.color-red .blog_cta::after {
    background: #f87171;
}

.blog_card.color-red .blog_meta_avatar {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1100px) {
    .blog_grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .insights-title {
        font-size: 34px;
    }
}

@media (max-width: 768px) {
    .blog_filter_tabs {
        gap: 8px;
        margin-bottom: 36px;
    }

    .blog_filter_btn {
        padding: 8px 18px;
        font-size: 13px;
    }

    .blog_grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .blog_card {
        padding: 24px;
    }

    .insights-title {
        font-size: 28px;
    }

    .insights-subtitle {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .insights-title {
        font-size: 24px;
    }

    .blog_card_title {
        font-size: 18px;
    }

    .blog_card {
        padding: 20px;
        border-radius: 16px;
    }

    .blog_filter_tabs {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .blog_filter_tabs::-webkit-scrollbar {
        display: none;
    }

    .blog_filter_btn {
        white-space: nowrap;
        flex-shrink: 0;
    }
}


/* ---------- Blog Card Image ---------- */

.blog_card_image {
    width: calc(100% + 60px);
    margin: -30px -30px 24px -30px;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    position: relative;
    height: 220px;
}

.blog_card_image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
    pointer-events: none;
    z-index: 1;
}

.blog_card_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.6s ease;
    filter: brightness(0.85);
}

.blog_card:hover .blog_card_image img {
    transform: scale(1.08);
    filter: brightness(1);
}

/* ---------- Adjust card top when image exists ---------- */

.blog_card_image + .blog_card_top {
    margin-top: -8px;
}

/* ---------- Responsive Image Adjustments ---------- */

@media (max-width: 768px) {
    .blog_card_image {
        width: calc(100% + 48px);
        margin: -24px -24px 20px -24px;
        height: 190px;
    }
}

@media (max-width: 480px) {
    .blog_card_image {
        width: calc(100% + 40px);
        margin: -20px -20px 18px -20px;
        height: 170px;
        border-radius: 16px 16px 0 0;
    }
}