:root {
    --primary-orange: #ff8c00;
    --secondary-orange: #ff4c3b;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --shadow-premium: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 20px 0 100px;
}

@media (max-width: 1200px) {
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1080px) {
    .events-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Search Section */
.search-container {
    margin: 20px 0 30px;
    position: relative;
    max-width: 600px;
}

.search-box {
    width: 100%;
    background: #fff;
    border: 2px solid #f1f5f9;
    border-radius: 16px;
    padding: 18px 25px 18px 55px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
}

.search-box:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 10px 30px rgba(255, 140, 0, 0.1);
    transform: translateY(-2px);
}

.search-icon {
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 18px;
    transition: color 0.3s;
}

.search-box:focus + .search-icon {
    color: var(--primary-orange);
}

@media (max-width: 768px) {
    .search-container {
        max-width: 100%;
        margin: 15px 0 25px;
    }
    
    .search-box {
        padding: 15px 20px 15px 45px;
        font-size: 14px;
    }
    
    .search-icon {
        left: 18px;
        font-size: 16px;
    }

    .modal {
        align-items: flex-start !important;
        padding: 20px 10px !important;
        overflow-y: auto !important;
    }

    .modal-content {
        width: 100% !important;
        margin: 0 auto !important;
    }
}

.cinematic-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}



.card-image-box {
    height: auto;
    background: none;
    position: relative;
    overflow: hidden;
}

.card-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.type-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.tag-audition { background: rgba(59, 130, 246, 0.9); color: white; }
.tag-workshop { background: rgba(236, 72, 153, 0.9); color: white; }
.tag-course { background: rgba(16, 185, 129, 0.9); color: white; }
.tag-contest { background: rgba(245, 158, 11, 0.9); color: white; }
.tag-film-event { background: rgba(249, 115, 22, 0.9); color: white; }

.card-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.meta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
}

.meta-item i {
    color: var(--primary-orange);
    font-size: 14px;
}

.card-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 25px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
    margin-top: auto;
}

.applicants-text {
    font-size: 13px;
    font-weight: 700;
    color: #334155;
}

.applicants-text span {
    color: var(--secondary-orange);
}

.apply-btn {
    background: #1e293b;
    color: white;
    border: none;
    padding:10px 22px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
}

.apply-btn:hover {
    background: var(--primary-orange);
    transform: scale(1.05);
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-content {
    background: white;
    border-radius: 28px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 25px 70px rgba(0,0,0,0.15);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid #f1f5f9;
}

.modal-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
}

.close {
    cursor: pointer;
    font-size: 20px;
    color: var(--text-muted);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); color: var(--primary-orange); }
    100% { transform: scale(1); }
}

.pulse-animation {
    display: inline-block;
    animation: pulse 0.5s ease-in-out;
}