/**
 * Event Board - Masonry Layout Styles
 */

/* Masonry Grid Layout */
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 2rem;
}

/* Event Card */
.event-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Event Card Image */
.event-card-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

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

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

.event-card-image.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-card-image.no-image i {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Event Card Badge */
.event-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Event Card Body */
.event-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Event Card Meta */
.event-card-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1rem;
    color: #9ca3af;
    font-size: 0.875rem;
}

.event-card-meta i {
    color: var(--primary-color);
}

/* Event Card Title */
.event-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.event-card-title a {
    color: var(--dark-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.event-card-title a:hover {
    color: var(--primary-color);
}

/* Event Card Excerpt */
.event-card-excerpt {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    flex: 1;
}

/* Event Card Footer */
.event-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.event-card-author {
    color: #6b7280;
    font-size: 0.875rem;
}

.event-card-author i {
    color: var(--primary-color);
    margin-right: 5px;
}

.event-read-more {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.event-read-more:hover {
    color: var(--dark-red);
    gap: 8px;
}

/* Search Section */
.search-section {
    background: linear-gradient(135deg, rgba(200, 16, 46, 0.05), rgba(184, 134, 11, 0.05));
    padding: 3rem 0;
    margin: 0 -15px;
    border-radius: 15px;
}

.search-section h4 {
    color: var(--dark-color);
    font-weight: 700;
}

.search-section .input-group {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.search-section .form-control {
    border: none;
    outline: none;
    padding: 1rem 1.5rem;
    height: 56px;
    line-height: normal;
    margin: 0;
    box-sizing: border-box;
    flex: 1;
}

.search-section .form-control:focus {
    box-shadow: none;
    border: none;
    outline: none;
}

.search-section .btn {
    padding: 1rem 2rem;
    border: none;
    outline: none;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    margin: 0;
    box-sizing: border-box;
    flex-shrink: 0;
}

.search-section .btn i {
    margin-right: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .masonry-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .event-card-image {
        height: 200px;
    }

    .event-card-title {
        font-size: 1.25rem;
    }

    .search-section {
        padding: 2rem 0;
    }
}

/* Loading Animation */
.event-card.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}
