/* Styles for Cate Links shortcode output */
.cate-links-list {
    display: grid;
    /* Default: single column for mobile and small screens */
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin: 1.5rem 0;
    font-family: var(--font-body), 'Lato', sans-serif;
}

/* Explicitly set to exactly 2 columns on tablets/desktops to prevent title wrapping */
@media (min-width: 650px) {
    .cate-links-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

.cate-link-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--cream, #fafbf5);
    border: 1px solid rgba(90, 125, 90, 0.12); /* Subtle sage border */
    border-radius: 6px;
    padding: 0.35rem 1.2rem; /* Ultra-compact padding (half of original) */
    transition: all 0.3s ease;
    gap: 1.2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.01);
}

.cate-link-row:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(90, 125, 90, 0.08);
    background-color: #f6faf6; /* Soft sage highlight */
    border-color: var(--dark-green, #5a7d5a);
}

.cate-link-thumbnail {
    flex-shrink: 0;
    width: 32px; /* Small 32px box */
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #edf2ed;
    border-radius: 4px;
    overflow: hidden;
}

.cate-link-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cate-link-thumbnail svg {
    width: 16px; /* Scaled down SVG */
    height: 16px;
    fill: var(--dark-green, #5a7d5a);
}

.cate-link-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0; /* Minimize vertical gap */
}

.cate-link-title {
    font-family: var(--font-heading), 'Playfair Display', serif;
    font-size: 1.05rem; /* Clean readable title */
    font-weight: 600;
    color: var(--text-color, #333);
    margin: 0;
    line-height: 1.2;
}

.cate-link-subtitle {
    font-size: 0.8rem; /* Small subtitle */
    color: var(--dark-green, #5a7d5a);
    margin: 0;
    font-weight: 300;
    line-height: 1.1;
}

.cate-link-action {
    flex-shrink: 0;
}

.cate-link-button {
    display: inline-block;
    background-color: var(--dark-green, #5a7d5a);
    color: #fff !important;
    text-decoration: none !important;
    padding: 0.35rem 0.9rem; /* Clean small button padding */
    border-radius: 4px;
    font-size: 0.8rem; /* Scaled down button text */
    font-weight: 700;
    transition: background-color 0.2s ease, transform 0.2s ease;
    border: none;
    line-height: 1.2;
}

.cate-link-button:hover {
    background-color: #4a684a;
    transform: scale(1.02);
}

/* Mobile responsive adjustments */
@media (max-width: 600px) {
    .cate-link-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
    }
    
    .cate-link-thumbnail {
        width: 28px;
        height: 28px;
    }
    
    .cate-link-thumbnail svg {
        width: 14px;
        height: 14px;
    }
    
    .cate-link-action {
        width: 100%;
    }
    
    .cate-link-button {
        display: block;
        text-align: center;
        width: 100%;
    }
}
