/**
 * Egns Blog Categories Widget Style
 */

.egns-blog-categories-wrapper {
    position: relative;
    width: 100%;
}

/* Header Styles */
.egns-cat-header {
    text-align: center;
    margin-bottom: 35px;
}

.egns-cat-title {
    font-family: var(--font-playfair, sans-serif);
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.egns-cat-title .icon {
    display: inline-flex;
    align-items: center;
    font-size: 0.9em; /* Scales with title font size */
}

.egns-cat-title .icon svg {
    width: 1em;
    height: 1em;
}

.egns-cat-desc {
    font-family: var(--font-worksans, sans-serif);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Categories List (Flexbox) */
.egns-cat-nav {
    width: 100%;
}

.egns-cat-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 15px; /* Default gap, overridden by controls */
}

.egns-cat-item {
    margin: 0;
    padding: 0;
}

/* Individual Pill Link */
.egns-cat-link {
    display: inline-block;
    text-decoration: none;
    font-family: var(--font-worksans, sans-serif);
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    transition: all 0.3s ease;
    border: 1px solid transparent; /* Placeholder for border control */
    cursor: pointer;
    white-space: nowrap;
}

.egns-cat-link:hover {
    text-decoration: none;
    transform: translateY(-3px);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .egns-cat-title {
        font-size: 28px;
    }
    
    .egns-cat-desc {
        font-size: 14px;
        padding: 0 15px;
    }

    .egns-cat-list {
        gap: 10px !important;
    }

    .egns-cat-link {
        font-size: 14px;
        padding: 8px 18px !important;
    }
}