/* /assets/css/components/_cards.css */

/* --- Stili za kartice storitev --- */
.service-card {
    background: var(--color-white);
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    border-top: 4px solid var(--color-primary-accent);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.service-card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-medium);
}

.service-card:hover .service-card-image img {
    transform: scale(1.05);
}

.service-card-content {
    padding: var(--spacing-l) 1.5rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-card h3 {
    font-size: 1.25rem;
    color: var(--color-text);
    margin-bottom: var(--spacing-m);
}

.service-card p {
    font-size: 0.95rem;
    color: #555;
    flex-grow: 1;
    margin-bottom: var(--spacing-m);
}

.service-card-link {
    font-weight: 600;
    color: var(--color-primary-accent);
    align-self: flex-start;
    position: relative;
    padding-bottom: var(--spacing-xs);
}

.service-card-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--color-primary-accent);
    transition: width var(--transition-fast);
}

.service-card-link:hover::after {
    width: 100%;
}


/* --- Stili za kartice bloga --- */
.blog-card {
    background: var(--color-white);
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    overflow: hidden;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.card-link-wrapper { display: block; color: inherit; text-decoration: none; }
.blog-card-image { overflow: hidden; }
.blog-card-image img { width: 100%; height: 220px; object-fit: cover; display: block; transition: transform var(--transition-medium); }
.blog-card:hover .blog-card-image img { transform: scale(1.05); }
.blog-card-content { padding: 1.5rem; }
.blog-card-title { font-size: 1.3rem; color: var(--color-text); margin-bottom: var(--spacing-m); line-height: 1.3; }
.blog-card-excerpt { font-size: 0.95rem; color: #555; margin-bottom: var(--spacing-m); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card-link { font-weight: 600; color: var(--color-primary-accent); position: relative; padding-bottom: var(--spacing-xs); display: inline-block; }
.blog-card-link::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0%; height: 2px; background-color: var(--color-primary-accent); transition: width var(--transition-fast); }
.blog-card:hover .blog-card-link::after { width: 100%; }