/* Hero Section */
.events-hero {
    height: 50vh;
    min-height: 400px;
    color: white;
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
    background: url('../images/event.jpeg') center center/cover no-repeat;
}

.events-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, .80);
    z-index: 1;
    backdrop-filter: blur(2px);
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease;
}

.hero-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: float 3s ease-in-out infinite;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.95;
    line-height: 1.6;
}

/* Events Section */
.events-section {
    padding: 4rem 0;
    background: #ffffff;
}

.events-group {
    margin-bottom: 4rem;
}

.events-group:last-child {
    margin-bottom: 0;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.header-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: white;
}

.header-badge.upcoming {
    background: linear-gradient(135deg, #F4D03F 0%, #F4D03F 100%);
    box-shadow: 0 5px 20px rgba(244, 208, 63, 0.3);
}

.header-badge.past {
    background: linear-gradient(135deg, #000000 0%, #000000 100%);
}

.section-subtitle {
    color: #000000;
    font-size: 1.1rem;
}

/* Events Grid */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
}

/* Event Card */
.event-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

/* Event Ribbon */
.event-ribbon {
    position: absolute;
    top: 15px;
    right: -35px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.5rem 3rem;
    transform: rotate(45deg);
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Event Thumbnail */
.event-thumbnail {
    height: 220px;
    background: black;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.thumbnail-icon {
    font-size: 5rem;
    color: rgba(255,255,255,0.3);
    transition: transform 0.3s ease;
}

.event-card:hover .thumbnail-icon {
    transform: scale(1.1);
}

.event-date-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: white;
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    min-width: 70px;
}

.event-date-badge .month {
    display: block;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.event-date-badge .day {
    display: block;
    color: #000000;
    font-weight: 700;
    font-size: 1.8rem;
    line-height: 1;
}

/* Past Event Styles */
.past-thumbnail {
    background: linear-gradient(135deg, #000000 0%, #000000 100%);
}

.past-overlay {
    position: absolute;
    top: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 0.5rem 1.2rem;
    border-bottom-left-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
}

.past-card {
    opacity: 0.85;
}

/* Event Content */
.event-content {
    padding: 1.8rem;
}

.event-title {
    color: #000000;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-meta {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
}

.meta-row {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: #000000;
    font-size: 0.95rem;
}

.meta-row i {
    color: var(--primary-color);
    font-size: 1rem;
    width: 18px;
}

.event-description {
    color: #000000;
    line-height: 1.7;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

/* Event Actions */
.event-actions {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.event-actions a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.9rem 1.3rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.3);
}

.btn-register {
    background: linear-gradient(135deg, #F4D03F 0%, #F4D03F 100%);
    color: #000000;
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(67, 233, 123, 0.3);
}

.btn-secondary {
    background: #ffffff;
    color: #000000;
}

.btn-secondary:hover {
    background: #000000;
    color: #ffffff;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 5rem 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
}

.empty-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #000000 0%, #000000 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 4rem;
    color: #000000;
}

.empty-state h3 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.empty-state p {
    color: #000000;
    font-size: 1.15rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .events-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 992px) {
    .events-hero {
        padding: 8rem 0 3rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.15rem;
    }
    
    .events-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .events-hero {
        padding: 5rem 0 2rem;
    }
    
    .hero-icon {
        font-size: 3rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.05rem;
    }
    
    .events-section {
        padding: 3rem 0;
    }
    
    .events-group {
        margin-bottom: 3rem;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .header-badge {
        font-size: 1.1rem;
        padding: 0.7rem 1.5rem;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .event-thumbnail {
        height: 200px;
    }
    
    .thumbnail-icon {
        font-size: 4rem;
    }
}

@media (max-width: 576px) {
    .events-hero {
        padding: 7rem 0 1.5rem;
    }
    
    .hero-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .hero-title {
        font-size: 1.6rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .header-badge {
        font-size: 1rem;
        padding: 0.6rem 1.3rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .events-grid {
        gap: 1.5rem;
    }
    
    .event-ribbon {
        font-size: 0.75rem;
        padding: 0.4rem 2.5rem;
    }
    
    .event-thumbnail {
        height: 180px;
    }
    
    .thumbnail-icon {
        font-size: 3.5rem;
    }
    
    .event-date-badge {
        padding: 0.8rem;
        min-width: 60px;
        top: 15px;
        left: 15px;
    }
    
    .event-date-badge .month {
        font-size: 0.8rem;
    }
    
    .event-date-badge .day {
        font-size: 1.5rem;
    }
    
    .event-content {
        padding: 1.5rem;
    }
    
    .event-title {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .event-meta {
        gap: 0.7rem;
        margin-bottom: 1rem;
    }
    
    .meta-row {
        font-size: 0.9rem;
    }
    
    .event-description {
        font-size: 0.95rem;
        margin-bottom: 1.2rem;
    }
    
    .event-actions a {
        padding: 0.8rem 1.1rem;
        font-size: 0.95rem;
    }
    
    .empty-state {
        padding: 3rem 1.5rem;
    }
    
    .empty-icon {
        width: 100px;
        height: 100px;
        font-size: 3.5rem;
    }
    
    .empty-state h3 {
        font-size: 1.6rem;
    }
    
    .empty-state p {
        font-size: 1rem;
    }
}

@media (max-width: 400px) {
    .hero-title {
        font-size: 1.4rem;
    }
    
    .event-content {
        padding: 1.2rem;
    }
    
    .event-title {
        font-size: 1.2rem;
    }
}