/* Card Base */
.nt-posts-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.nt-posts-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

/* Card Image */
.nt-posts-card__image {
    position: relative;
    width: 100%;
    padding-top: var(--nt-posts-image-ratio, 56.25%);
    background: #f5f5f5;
    overflow: hidden;
}

.nt-posts-card__image a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.nt-posts-card__image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.nt-posts-card:hover .nt-posts-card__image img {
    transform: scale(1.05);
}

.nt-posts-card__placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 48px;
}

/* Date Badge */
.nt-posts-card__date-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--fs-color-primary, #fd9300);
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    text-align: center;
    line-height: 1.2;
    z-index: 2;
}

.nt-posts-card__date-badge .day {
    display: block;
    font-size: 20px;
    font-weight: 700;
}

.nt-posts-card__date-badge .month {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 500;
}

/* Card Content */
.nt-posts-card__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

/* Category */
.nt-posts-card__category {
    margin-bottom: 8px;
}

.nt-posts-card__category a {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(4, 38, 160, 0.08);
    color: var(--fs-color-secondary, #0426a0);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.nt-posts-card__category a:hover {
    background: var(--fs-color-secondary, #0426a0);
    color: #fff;
}

/* Title */
.nt-posts-card__title {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nt-posts-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.nt-posts-card__title a:hover {
    color: var(--fs-color-secondary, #0426a0);
}

/* Meta */
.nt-posts-card__meta {
    margin-bottom: 12px;
    font-size: 13px;
    color: #999;
}

.nt-posts-card__meta i {
    margin-right: 6px;
}

/* Excerpt */
.nt-posts-card__excerpt {
    flex: 1;
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

/* Read More */
.nt-posts-card__readmore {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--fs-color-secondary, #0426a0);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.nt-posts-card__readmore:hover {
    color: var(--fs-color-secondary-dark, #031d70);
}

.nt-posts-card__readmore i {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.nt-posts-card__readmore:hover i {
    transform: translateX(4px);
}

/* Empty state */
.nt-posts-empty {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-style: italic;
}

/* Slider Controls */
.nt-posts-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 10;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nt-posts-nav:hover {
    background: var(--fs-color-secondary, #0426a0);
    color: #fff;
}

.nt-posts-nav--prev { left: -20px; }
.nt-posts-nav--next { right: -20px; }

.nt-posts-pagination {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

@media (max-width: 849px) {
    .nt-posts-nav { display: none; }
}

@media (max-width: 549px) {
    .nt-posts-card__content {
        padding: 16px;
    }

    .nt-posts-card__title {
        font-size: 16px;
    }

    .nt-posts-card__excerpt {
        font-size: 13px;
    }

    .nt-posts-card__date-badge {
        padding: 6px 10px;
    }

    .nt-posts-card__date-badge .day {
        font-size: 16px;
    }

    .nt-posts-card__date-badge .month {
        font-size: 10px;
    }
}
