/* Grid Layout */
.canis-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

/* Post Card */
.canis-post-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.canis-post-card:hover {
    transform: translateY(-5px);
}

/* Image */
.canis-card-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.canis-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.canis-post-card:hover .canis-card-img img {
    transform: scale(1.05);
}

/* Content */
.canis-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Title */
h3.canis-card-title {
    margin: 0 0 10px 0;
    /* font-size: 1.3rem; */
    line-height: 1.4;
}

h3.canis-card-title a {
    color: #D4B46B;
    text-decoration: none;
    transition: color 0.3s ease;
}

h3.canis-card-title a:hover {
    color: #b59652;
}

/* Date */
.canis-card-date {
    font-size: 1.5rem;
    color: #888;
    margin-bottom: 15px;
}

/* Excerpt */
.canis-card-text {
    /* font-size: 0.95rem; */
    color: #555;
    line-height: 1.6;
}

/* Buttons (Load More & Show All) */
.canis-load-more-wrap,
.canis-show-all-wrap {
    text-align: center;
    margin-top: 20px;
}

#canis-load-more-btn,
.canis-btn {
    display: inline-block;
    background-color: #D4B46B;
    color: #fff;
    padding: 12px 30px;
    border-radius: 8px;
    border: none;
    /* font-size: 1rem; */
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

#canis-load-more-btn:hover,
.canis-btn:hover {
    background-color: #b59652;
	color: #ffffff !important;
}

#canis-load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Mobile Responsiveness adjustment */
@media (max-width: 600px) {
    .canis-posts-grid {
        grid-template-columns: 1fr;
    }
}
/* TABLET: sakrij 3. i dalje */
@media (min-width: 601px) and (max-width: 1024px) {
  .canis-teaser-wrapper .canis-post-card:nth-child(n+3) {
    display: none !important;
  }
}
/* MOBILE: teaser opet pokazuje sva 3 */
@media (max-width: 600px) {
  .canis-teaser-wrapper .canis-post-card:nth-child(n+3) {
    display: flex !important;
  }
}
