/* Event Category Grid */
.msep-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.msep-category-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.msep-category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.msep-category-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.msep-category-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.msep-category-item h3 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    padding: 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: #fff;
    font-size: 18px;
    text-align: center;
}

/* View Toggle */
.msep-view-toggle {
    margin: 20px 0;
    text-align: center;
}

.msep-view-btn {
    padding: 10px 20px;
    margin: 0 5px;
    border: 2px solid #0073aa;
    background: #fff;
    color: #0073aa;
    cursor: pointer;
    border-radius: 4px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.msep-view-btn:hover {
    background: #0073aa;
    color: #fff;
}

.msep-view-btn.active {
    background: #0073aa;
    color: #fff;
}

/* Event List */
.msep-event-list {
    margin: 20px 0;
}

.msep-event-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.msep-event-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.msep-event-image {
    flex: 0 0 250px;
}

.msep-event-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.msep-event-content {
    flex: 1;
}

.msep-event-content h3 {
    margin-top: 0;
    color: #333;
    font-size: 24px;
}

.msep-event-meta {
    margin: 15px 0;
    color: #666;
}

.msep-event-meta p {
    margin: 5px 0;
}

.msep-location,
.msep-dates {
    margin: 10px 0;
}

.msep-event-excerpt {
    margin: 15px 0;
    color: #555;
    line-height: 1.6;
}

.msep-apply-btn {
    padding: 12px 24px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.msep-apply-btn:hover {
    background: #005a87;
}

/* Application Modal */
.msep-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    overflow: auto;
}

.msep-modal-content {
    background: #fff;
    margin: 5% auto;
    padding: 30px;
    max-width: 600px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.msep-close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
}

.msep-close:hover {
    color: #000;
}

.msep-modal h2 {
    margin-top: 0;
    color: #333;
}

.msep-event-details {
    margin: 20px 0;
}

.msep-event-details p {
    margin: 10px 0;
}

.msep-resources {
    margin: 20px 0;
}

.msep-resources h4 {
    margin-bottom: 10px;
}

.msep-resource-item {
    margin: 8px 0;
}

.msep-resource-item a {
    color: #0073aa;
    text-decoration: none;
}

.msep-resource-item a:hover {
    text-decoration: underline;
}

.msep-application-form {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #eee;
}

.msep-form-group {
    margin-bottom: 20px;
}

.msep-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.msep-form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

.msep-form-group input:focus {
    outline: none;
    border-color: #0073aa;
}

.msep-submit-btn {
    padding: 12px 24px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    width: 100%;
    transition: background 0.3s ease;
}

.msep-submit-btn:hover {
    background: #005a87;
}

.msep-message {
    padding: 15px;
    margin: 15px 0;
    border-radius: 4px;
}

.msep-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.msep-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive */
@media (max-width: 768px) {
    .msep-category-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }

    .msep-event-item {
        flex-direction: column;
    }

    .msep-event-image {
        flex: 0 0 auto;
    }

    .msep-modal-content {
        margin: 10% 15px;
        padding: 20px;
    }
}

