.stdv-events-grid {
    display: grid;
    gap: 25px;
}

.stdv-event-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/*.stdv-event-card:hover {*/
/*    transform: translateY(-5px);*/
/*    box-shadow: 0 4px 20px rgba(0,0,0,0.15);*/
/*}*/

.stdv-event-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}

.stdv-event-image img {
    width: 100%;
    height: 200px !important;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/*.stdv-event-card:hover .stdv-event-image img {*/
/*    transform: scale(1.05);*/
/*}*/

.stdv-event-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f0f2f5 0%, #e9ecf0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8892a4;
    border: 2px dashed #d1d7e0;
    transition: all 0.3s ease;
}

.stdv-event-card:hover .stdv-event-placeholder {
    background: linear-gradient(135deg, #e9ecf0 0%, #dde1e6 100%);
    color: #6c757d;
}

.stdv-placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.stdv-placeholder-content i {
    font-size: 48px;
    opacity: 0.7;
}

.stdv-placeholder-content span {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    opacity: 0.8;
}

.stdv-event-date-overlay {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #0300B0;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(44, 90, 160, 0.3);
    backdrop-filter: blur(4px);
}

.stdv-event-category {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
    z-index: 2;
}

.stdv-event-content {
    padding: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.stdv-event-title {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 19px;
    font-family: "Inter";
    flex-grow: 1;
}

.stdv-event-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
}

.stdv-event-title a:hover {
    color: #0300B0;
}

.stdv-event-meta {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-top: auto;
}

.stdv-event-meta > div {
    display: flex;
    align-items: flex-start;
    margin-bottom: 6px;
}

.stdv-event-meta > div:last-child {
    margin-bottom: 0;
}

.stdv-event-meta i {
    margin-right: 6px;
    font-size: 12px;
    color: #999;
    width: 14px;
    flex-shrink: 0;
    margin-top: 2px;
}

.stdv-event-date span {
    font-weight: 600;
    color: #333;
}

.stdv-event-price span {
    color: #e74c3c;
    font-weight: 600;
}

.stdv-event-location span {
    color: #666;
}

/* Responsywne siatki */
.stdv-events-grid[data-columns-desktop="1"] { grid-template-columns: 1fr; }
.stdv-events-grid[data-columns-desktop="2"] { grid-template-columns: repeat(2, 1fr); }
.stdv-events-grid[data-columns-desktop="3"] { grid-template-columns: repeat(3, 1fr); }
.stdv-events-grid[data-columns-desktop="4"] { grid-template-columns: repeat(4, 1fr); }
.stdv-events-grid[data-columns-desktop="5"] { grid-template-columns: repeat(5, 1fr); }
.stdv-events-grid[data-columns-desktop="6"] { grid-template-columns: repeat(6, 1fr); }

@media (max-width: 1024px) {
    .stdv-events-grid[data-columns-tablet="1"] { grid-template-columns: 1fr; }
    .stdv-events-grid[data-columns-tablet="2"] { grid-template-columns: repeat(2, 1fr); }
    .stdv-events-grid[data-columns-tablet="3"] { grid-template-columns: repeat(3, 1fr); }
    .stdv-events-grid[data-columns-tablet="4"] { grid-template-columns: repeat(4, 1fr); }
    
    .stdv-event-image {
        height: 200px;
    }
    
    .stdv-event-content {
        padding: 14px;
    }
    
    .stdv-event-title {
        font-size: 15px;
    }
    
    .stdv-placeholder-content i {
        font-size: 40px;
    }
    
    .stdv-placeholder-content span {
        font-size: 11px;
    }
    
    .stdv-event-date-overlay {
        font-size: 12px;
        padding: 5px 10px;
    }
}

@media (max-width: 767px) {
    .stdv-events-grid[data-columns-mobile="1"] { grid-template-columns: 1fr; }
    .stdv-events-grid[data-columns-mobile="2"] { grid-template-columns: repeat(2, 1fr); }
    
    .stdv-events-grid {
        gap: 15px;
    }
    
    .stdv-event-image {
        height: 200px;
    }
    
    .stdv-event-content {
        padding: 12px;
    }
    
    .stdv-event-title {
        font-size: 14px;
    }
    
    .stdv-event-meta {
        font-size: 12px;
    }
    
    .stdv-event-category {
        font-size: 11px;
        padding: 3px 6px;
    }
    
    .stdv-placeholder-content i {
        font-size: 36px;
    }
    
    .stdv-placeholder-content span {
        font-size: 10px;
    }
    
    .stdv-event-date-overlay {
        font-size: 11px;
        padding: 4px 8px;
        bottom: 8px;
        left: 8px;
    }
}

@media (max-width: 480px) {
    .stdv-events-grid[data-columns-mobile="2"] {
        grid-template-columns: 1fr;
    }
    
    .stdv-event-image {
        height: 200px;
    }
    
    .stdv-placeholder-content i {
        font-size: 32px;
    }
    
    .stdv-placeholder-content span {
        font-size: 9px;
        letter-spacing: 0.5px;
    }
    
    .stdv-event-date-overlay {
        font-size: 10px;
        padding: 3px 6px;
        border-radius: 3px;
    }
}

/* Loading state */
.stdv-events-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.stdv-events-loading::after {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Empty state */
.stdv-events-empty {
    text-align: center;
    padding: 40px;
    color: #666;
    background: #f9f9f9;
    border-radius: 8px;
    border: 2px dashed #ddd;
}

.stdv-events-empty::before {
    content: "📅";
    display: block;
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* View All Button */
.stdv-view-all-container {
    margin-top: 30px;
    text-align: center;
}

.stdv-view-all-button {
    display: inline-block;
    background-color: #2c5aa0;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stdv-view-all-button:hover {
    background-color: #1e4080;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 90, 160, 0.3);
}

.stdv-view-all-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(44, 90, 160, 0.2);
}



.daterangepicker .drp-buttons .btn{
    padding: 0 8px !important;
}
.drp-selected{
    display: none !important;
}