.em-wrapper-39520d51 {
    width: 100%;
}

.em-grid-39520d51 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.em-card-39520d51 {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.em-card-39520d51:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.em-card-image-39520d51 {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

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

.em-card-title-39520d51 {
    margin: 0 0 15px 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
}

.em-card-meta-39520d51 {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #666;
}

.em-card-meta-39520d51 span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.em-card-desc-39520d51 {
    margin: 0 0 20px 0;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
    flex-grow: 1;
}

.em-card-actions-39520d51 {
    margin-top: auto;
}

.em-btn-39520d51 {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-decoration: none;
    text-align: center;
    width: 100%;
}

.em-btn-39520d51:hover {
    background-color: #0056b3;
    color: #fff;
}

.em-load-more-wrapper-39520d51 {
    text-align: center;
    margin-top: 30px;
}

.em-btn-load-more-39520d51 {
    width: auto;
    padding: 12px 30px;
}

/* Popup Styles */
.em-popup-overlay-39520d51 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.em-popup-content-39520d51 {
    background: #fff;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: 8px;
    position: relative;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.em-popup-close-39520d51 {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
    z-index: 10;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.8);
}

.em-popup-close-39520d51:hover {
    background: #eee;
}

.em-popup-body-39520d51 {
    padding: 0;
}

.em-popup-banner-39520d51 {
    width: 100%;
    height: 300px;
    background-size: cover;
    background-position: center;
}

.em-popup-inner-39520d51 {
    padding: 30px;
}

.em-popup-title-39520d51 {
    margin: 0 0 15px 0;
    font-size: 1.8rem;
    color: #333;
}

.em-popup-meta-39520d51 {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.em-popup-meta-item-39520d51 {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.95rem;
}

.em-popup-desc-39520d51 {
    margin-bottom: 30px;
    line-height: 1.6;
    color: #444;
}

.em-popup-info-grid-39520d51 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
}

.em-popup-info-item-39520d51 strong {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

.em-popup-actions-39520d51 {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.em-btn-pdf-39520d51 {
    background-color: #6c757d;
}

.em-btn-pdf-39520d51:hover {
    background-color: #5a6268;
}

.em-popup-gallery-39520d51 {
    margin-top: 30px;
}

.em-popup-gallery-39520d51 h4 {
    margin: 0 0 15px 0;
}

.em-gallery-grid-39520d51 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

.em-gallery-item-39520d51 {
    height: 100px;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .em-grid-39520d51 {
        grid-template-columns: 1fr;
    }
    
    .em-popup-info-grid-39520d51 {
        grid-template-columns: 1fr;
    }
    
    .em-popup-actions-39520d51 {
        flex-direction: column;
    }
}
