/* Events/Blog Page Styles */

body {
    display: grid;
    grid-template-areas:
        "nav"
        "header"
        "main"
        "footer";
    grid-template-rows: auto auto 1fr auto;
}

header {
    grid-area: header;
    padding: 30px;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

header h1, header h2, header p {
    color: white;
}

main#events {
    grid-area: main;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Event Badge */
.event-badge {
    display: inline-block;
    background: #ff4444;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

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

/* Event Card */
.event-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 30px;
}

.event-card.featured {
    border: 3px solid var(--secondary-color);
}

.event-image {
    width: 100%;
    max-height: 400px;
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.event-content {
    padding: 25px;
}

.event-content h2 {
    margin-bottom: 5px;
}

.event-content h3 {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.event-details {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
}

.event-details p {
    margin: 8px 0;
    font-size: 15px;
}

/* Employers Grid */
.employers-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.employer-tag {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

/* Live Updates Section */
#live-updates {
    margin-top: 40px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
}

#live-updates h2 {
    margin-bottom: 10px;
}

.updates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.update-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.update-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    cursor: pointer;
    transition: opacity 0.2s;
}

.update-card a:hover img {
    opacity: 0.9;
}

.update-card .clickable-img {
    cursor: pointer;
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    z-index: 10000;
}

.lightbox-close:hover {
    color: #ccc;
}

.update-card .update-info {
    padding: 15px;
}

.update-card .update-time {
    font-size: 12px;
    color: #888;
}

.update-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 10px;
    border: 2px dashed #ddd;
}

.update-placeholder .small {
    font-size: 13px;
    color: #888;
}

/* Responsive - Tablet */
@media only screen and (min-width: 481px) {
    main#events {
        padding: 30px;
    }
    
    .event-card.featured {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    
    .event-image {
        max-height: none;
    }
}

/* Responsive - Desktop */
@media only screen and (min-width: 769px) {
    header {
        padding: 50px;
    }
    
    main#events {
        padding: 40px;
    }
    
    .event-content {
        padding: 35px;
    }
    
    .employers-grid {
        gap: 12px;
    }
    
    .employer-tag {
        font-size: 14px;
        padding: 10px 18px;
    }
}
