/* Events Page Specific Styles */
.events-page {
    overflow-x: hidden;
}

/* Events Hero Section */
.events-hero {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.9), rgba(118, 75, 162, 0.9)), url('../../img/event-2.jpg');
    background-size: cover;
    background-position: center;
    min-height: 500px;
    display: flex;
    align-items: center;
    position: relative;
    color: white;
}

.events-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,32L48,37.3C96,43,192,53,288,85.3C384,117,480,171,576,186.7C672,203,768,181,864,154.7C960,128,1056,96,1152,101.3C1248,107,1344,149,1392,170.7L1440,192L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom center;
    background-size: cover;
}

.events-hero .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.events-hero h1 {
    font-size: 4rem;
    font-weight: 700;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    margin-bottom: 1rem;
    animation: slideInUp 1s ease-out;
}

.events-hero p {
    font-size: 1.4rem;
    opacity: 0.95;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 2rem;
    animation: slideInUp 1s ease-out 0.3s both;
}

/* Events Filter */
.events-filter {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-tab {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 50px;
    padding: 15px 35px;
    font-weight: 600;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.filter-tab:hover,
.filter-tab.active {
    background: linear-gradient(135deg, #007bff, #764ba2);
    border-color: #007bff;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
}

/* Events Grid */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* Event Card */
.event-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 123, 255, 0.1);
    transition: all 0.4s ease;
    position: relative;
    cursor: pointer;
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #007bff, #764ba2, #28a745);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

.event-card .event-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.event-card .event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.event-card:hover .event-image img {
    transform: scale(1.1);
}

.event-card .event-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 123, 255, 0.9);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.event-card .event-badge.upcoming {
    background: rgba(40, 167, 69, 0.9);
}

.event-card .event-badge.ongoing {
    background: rgba(255, 193, 7, 0.9);
}

.event-card .event-badge.completed {
    background: rgba(108, 117, 125, 0.9);
}

.event-card .event-date {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.event-card .event-date .day {
    font-size: 1.5rem;
    font-weight: 700;
    color: #007bff;
    line-height: 1;
    margin-bottom: 5px;
}

.event-card .event-date .month {
    font-size: 0.8rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
}

.event-card .event-content {
    padding: 30px 25px;
}

.event-card .event-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.event-card:hover .event-title {
    color: #007bff;
}

.event-card .event-description {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.event-card .event-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.event-card .event-time,
.event-card .event-location {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
}

.event-card .event-time i,
.event-card .event-location i {
    margin-right: 8px;
    color: #007bff;
    font-size: 0.9rem;
}

.event-card .btn-register {
    background: linear-gradient(135deg, #28a745, #20c997);
    border: none;
    border-radius: 25px;
    padding: 12px 25px;
    font-weight: 600;
    font-size: 0.9rem;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.event-card .btn-register::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.event-card .btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.3);
    color: white;
}

.event-card .btn-register:hover::before {
    left: 100%;
}

.event-card .btn-register.full {
    background: linear-gradient(135deg, #dc3545, #e74c3c);
    cursor: not-allowed;
}

.event-card .btn-register.completed {
    background: linear-gradient(135deg, #6c757d, #495057);
    cursor: not-allowed;
}

/* Featured Events */
.featured-events {
    padding: 80px 0;
    background: white;
}

.featured-event {
    background: linear-gradient(135deg, #f8f9fa, white);
    border-radius: 25px;
    padding: 50px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 123, 255, 0.1);
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
}

.featured-event::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

.featured-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: center;
}

.featured-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.featured-info h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 700;
    font-size: 2rem;
}

.featured-info .event-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.highlight-item {
    background: rgba(0, 123, 255, 0.1);
    border-left: 4px solid #007bff;
    padding: 15px 20px;
    border-radius: 10px;
}

.highlight-item .icon {
    color: #007bff;
    font-size: 1.2rem;
    margin-right: 10px;
}

.highlight-item .text {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
}

/* Event Registration Modal */
.modal-content {
    border: none;
    border-radius: 25px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    border: none;
    border-radius: 25px 25px 0 0;
    background: linear-gradient(135deg, #007bff, #764ba2);
    color: white;
    padding: 30px;
}

.modal-title {
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.modal-body {
    padding: 40px;
}

.registration-form .form-floating {
    margin-bottom: 25px;
}

.registration-form .form-control {
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 1rem 1rem 1rem 3rem;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.registration-form .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.15);
    background: white;
}

.btn-register-modal {
    background: linear-gradient(135deg, #28a745, #20c997);
    border: none;
    border-radius: 15px;
    padding: 15px 30px;
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
    width: 100%;
    transition: all 0.3s ease;
}

.btn-register-modal:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.3);
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .events-hero h1 {
        font-size: 2.5rem;
    }
    
    .events-hero p {
        font-size: 1.1rem;
    }
    
    .filter-tabs {
        gap: 10px;
    }
    
    .filter-tab {
        padding: 12px 20px;
        font-size: 0.8rem;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .featured-event {
        padding: 30px 25px;
    }
    
    .event-highlights {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .events-hero h1 {
        font-size: 2rem;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .event-card .event-content {
        padding: 25px 20px;
    }
    
    .filter-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .featured-info h3 {
        font-size: 1.5rem;
    }
    
    .modal-header,
    .modal-body {
        padding: 25px 20px;
    }
}

/* Animation Keyframes */
@keyframes slideInUp {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Event Calendar Styles */
.event-calendar {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.calendar-nav {
    background: linear-gradient(135deg, #007bff, #764ba2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.calendar-nav:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.calendar-day:hover {
    background: rgba(0, 123, 255, 0.1);
}

.calendar-day.has-event {
    background: linear-gradient(135deg, #007bff, #764ba2);
    color: white;
    font-weight: 600;
}

.calendar-day.has-event::after {
    content: '';
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 6px;
    height: 6px;
    background: #28a745;
    border-radius: 50%;
}