/**
 * GreenJobs Events Styles
 */

/* Import Google Font Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

.greenjobs-events-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Poppins', sans-serif;
}

.greenjobs-events-container * {
    font-family: 'Poppins', sans-serif;
}

.greenjobs-filter-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.greenjobs-tab-btn {
    padding: 12px 28px;
    border: 1px solid #055F6A;
    background-color: white;
    color: #333;
    font-family: 'Poppins', sans-serif !important;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.greenjobs-tab-btn.active {
    background-color: #7EC8D8;
    border-color: #7EC8D8;
    color: #333;
}

.greenjobs-tab-btn:hover {
    background-color: #e8f4f7;
    text-decoration: none;
}

.greenjobs-event-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 35px;
    margin-bottom: 25px;
    position: relative;
    font-family: 'Poppins', sans-serif;
}

.greenjobs-status-badge {
    display: inline-block;
    background-color: #F4C542;
    color: #333;
    padding: 6px 18px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 18px;
    font-family: 'Poppins', sans-serif !important;
}

.greenjobs-status-badge.completed {
    background-color: #E0E0E0;
    color: #666;
}

.greenjobs-event-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.greenjobs-event-info {
    flex: 1;
}

.greenjobs-event-title {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 15px;
    margin-top: 0;
    line-height: 1.3;
    font-family: 'Poppins', sans-serif !important;
}

.greenjobs-event-meta {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
    color: #555;
    font-size: 14px;
    flex-wrap: wrap;
    font-family: 'Poppins', sans-serif;
}

.greenjobs-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Poppins', sans-serif !important;
}

.greenjobs-divider {
    border: none;
    border-top: 2px dashed #055F6A;
    margin: 20px 0;
}

.greenjobs-event-description {
    color: #333;
    font-size: 14px;
    line-height: 1.7;
    text-align: justify;
    font-family: 'Poppins', sans-serif !important;
}

.greenjobs-event-description p {
    margin: 0;
    font-family: 'Poppins', sans-serif !important;
}

.greenjobs-register-btn {
    background-color: #055F6A;
    color: white;
    border: none;
    padding: 14px 40px;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif !important;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
}

.greenjobs-register-btn:hover {
    background-color: #044a52;
    color: white;
    text-decoration: none;
}

.greenjobs-register-btn.disabled {
    background-color: #B0B0B0;
    cursor: not-allowed;
    pointer-events: none;
}

.greenjobs-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    flex-wrap: wrap;
    gap: 20px;
    font-family: 'Poppins', sans-serif;
}

.greenjobs-pagination-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.greenjobs-pagination-controls span {
    font-family: 'Poppins', sans-serif !important;
    color: #333;
}

.greenjobs-page-btn {
    padding: 10px 16px;
    border: none;
    background-color: white;
    color: #333;
    font-family: 'Poppins', sans-serif !important;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 40px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.greenjobs-page-btn.active {
    background-color: #055F6A;
    color: white;
}

.greenjobs-page-btn:hover:not(.active) {
    background-color: #e8f4f7;
    text-decoration: none;
}

.greenjobs-nav-btn {
    background: transparent;
    border: none;
    color: #999;
    font-family: 'Poppins', sans-serif !important;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 8px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
}

.greenjobs-nav-btn:hover:not(:disabled) {
    color: #055F6A;
    text-decoration: none;
}

.greenjobs-nav-btn:disabled {
    color: #ddd;
    cursor: not-allowed;
}

.greenjobs-no-events {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    border: 1px solid #ddd;
    font-family: 'Poppins', sans-serif;
}

.greenjobs-no-events p {
    color: #666;
    font-size: 16px;
    margin: 0;
    font-family: 'Poppins', sans-serif !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .greenjobs-event-content {
        flex-direction: column;
    }
    
    .greenjobs-register-btn {
        width: 100%;
        text-align: center;
    }
    
    .greenjobs-event-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .greenjobs-pagination {
        justify-content: center;
    }
    
    .greenjobs-pagination-controls {
        order: 1;
        width: 100%;
        justify-content: center;
    }
    
    .greenjobs-nav-btn {
        order: 2;
    }
}

/* Override WordPress default styles */
.greenjobs-events-container h1,
.greenjobs-events-container h2,
.greenjobs-events-container h3,
.greenjobs-events-container h4,
.greenjobs-events-container h5,
.greenjobs-events-container h6,
.greenjobs-events-container p,
.greenjobs-events-container a,
.greenjobs-events-container span,
.greenjobs-events-container div,
.greenjobs-events-container button {
    font-family: 'Poppins', sans-serif !important;
}