/* NeoSt Projects & Events Manager Pro - Main CSS File */

.neost-projects-container {
    position: relative;
}

.neost-projects-grid {
    transition: all 0.3s ease;
}

.neost-projects-grid.loading {
    opacity: 0.7;
    pointer-events: none;
}

.neost-no-projects,
.neost-no-upcoming {
    text-align: center;
    padding: 40px;
    background: #f9f9f9;
    border-radius: 8px;
    color: #666;
    font-size: 16px;
}

/* Loading animation */
@keyframes neost-loading {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.neost-projects-grid.loading::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #FDD831;
    border-radius: 50%;
    animation: neost-loading 1s linear infinite;
    z-index: 10;
}

/* Clear floats */
.neost-clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* Responsive video container */
.neost-video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.neost-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Print styles */
@media print {
    .neost-projects-container {
        break-inside: avoid;
    }
    
    .neost-project-item {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
}

/* Accessibility improvements */
.neost-project-title a:focus,
.neost-project-button:focus,
.neost-banner-item-title a:focus,
.neost-banner-button:focus,
.neost-single-button:focus {
    outline: 2px solid #FDD831;
    outline-offset: 2px;
}

/* Screen reader text */
.neost-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}