
.events-main {
    box-sizing: border-box;
    width: calc(100% - 2rem);
    max-width: 1200px;
    margin: 2rem auto;
    padding: 1.5rem;
    color: #ffffff;
}

.events-hero {
    text-align: center;
    margin-bottom: 3rem;
}

.events-hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #ffffff;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.events-hero p {
    font-size: 1.15rem;
    color: #cccccc;
    max-width: 700px;
    margin: 0 auto;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
    gap: 2rem;
    align-items: stretch;
}

.event-card {
    background: rgba(25, 25, 45, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 223, 137, 0.2);
    border-color: rgba(0, 223, 137, 0.5);
}

.event-img-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #1a1a2e;
    position: relative;
}

.event-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.event-card:hover .event-img-wrapper img {
    transform: scale(1.08);
}

.event-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}

.event-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 0.8rem 0;
    color: #ffffff;
    overflow-wrap: anywhere;
}

.event-description {
    font-size: 0.95rem;
    color: #e0e0e0;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
    overflow-wrap: anywhere;
}

.btn-event-official {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #00df89 0%, #00b36e 100%);
    color: #0f0c29;
    text-decoration: none;
    font-weight: 700;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 223, 137, 0.3);
}

.btn-event-official:hover {
    background: linear-gradient(135deg, #00ff9d 0%, #00df89 100%);
    box-shadow: 0 6px 20px rgba(0, 223, 137, 0.5);
    transform: scale(1.02);
}

.status-msg {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    font-size: 1.2rem;
    color: #cccccc;
    background: rgba(25, 25, 45, 0.5);
    border-radius: 12px;
    border: 1px dashed rgba(255, 255, 255, 0.2);
}

.status-msg.error {
    color: #ff6b6b;
    border-color: rgba(255, 107, 107, 0.3);
}
