/* insights.css */

/* 1. Category Navigation */
.insight_nav_sec {
    text-align: center;
}

.insight_category {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.insight_category li {
    padding: 10px 24px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--ft15);
    cursor: pointer;
    transition: all 0.3s ease;
}

.insight_category li:hover,
.insight_category li.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    font-weight: var(--semi-bold);
    box-shadow: 0 4px 15px rgba(0, 87, 255, 0.2);
}

/* 2. Grid Overrides for Insight Page */
.insights_page .insight_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr) !important; /* Force grid layout on page */
    gap: 32px !important;
}

@media all and (max-width: 1024px) {
    .insights_page .insight_grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media all and (max-width: 600px) {
    .insights_page .insight_grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }
    
    .insights_page .insight_grid .item_desc {
        display: none !important;
    }
}

/* 3. Pagination Control */
.pagination {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.pagination a {
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    transition: all 0.3s ease;
}

.pagination a:hover,
.pagination a.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 87, 255, 0.2);
}

.pagination a.arrow {
    background: transparent;
    border: none;
}

/* 4. Breadcrumb Layout Fix */
.insights_page .service_breadcrumb {
    display: flex !important;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
}

.insights_page .service_breadcrumb a {
    white-space: nowrap !important;
}

/* 5. Thumbnail Card Overlay & Hover Effects */
.insights_page .item_img {
    position: relative;
}

.insights_page .img_overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 2;
    transition: all 0.3s ease;
}

.insights_page .item_box:hover .img_overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.9) 100%);
}

.insights_page .img_content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.insights_page .item_img > .item_profile {
    position: absolute !important;
    top: 12px !important;
    left: 12px !important;
    z-index: 10 !important;
    background: var(--primary) !important;
    padding: 5px 10px !important;
    border-radius: 6px !important;
    font-size: 11px !important;
    color: var(--white) !important;
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
}

.insights_page .img_content .item_name {
    margin-bottom: 0 !important;
    font-size: 18px !important;
    color: var(--white) !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    word-break: keep-all;
}

@media all and (max-width: 1024px) {
    .insights_page .item_img {
        display: block !important;
        aspect-ratio: auto !important;
        height: auto !important;
        overflow: visible !important;
        background-color: transparent !important;
        position: relative !important;
    }

    .insights_page .item_img img {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 1 / 1 !important;
        border-radius: var(--radius-md) !important;
    }

    .insights_page .img_content {
        position: static !important;
        padding: 8px 4px 0 !important;
    }

    .insights_page .item_desc {
        display: none !important;
    }
    
    .insights_page .img_overlay {
        display: none !important;
    }

    /* item_profile is now a direct child of item_img, styled via desktop rule above */

    .insights_page .img_content .item_name {
        font-size: 15px !important;
        color: var(--white) !important;
        margin-bottom: 4px !important;
    }
}
