body {
	background-color: var(--Color3);
}

.events-container {
	position: absolute;
	left: 7vw;
	width: 90vw;
	max-width: 1200px;
	margin: 10vh auto 5vh auto;
	padding: 20px;
	box-sizing: border-box;
}

.events-section {
	margin-bottom: 60px;
}

.section-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-bottom: 2px solid #8b1e1e;
	padding-bottom: 10px;
	margin-bottom: 30px;
}

.events-section h2 {
	color: #ffffff;
	margin: 0;
	font-family: 'Bebas Neue', sans-serif;
	font-size: 2.5rem;
	letter-spacing: 2px;
}

.calendar-btn {
	display: flex;
	align-items: center;
	gap: 8px;
	background-color: transparent;
	color: #e0e0e0;
	border: 1px solid #555;
	padding: 8px 16px;
	border-radius: 50px;
	text-decoration: none;
	font-size: 0.9rem;
	font-family: 'Inter', sans-serif;
	transition: 0.3s;
}

.calendar-btn:hover {
	background-color: rgba(255, 255, 255, 0.1);
	color: white;
	border-color: #8b1e1e;
}

/* GRID LAYOUT */
.events-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 30px;
	list-style: none;
	padding: 0;
	margin: 0;
}

.events-grid.hidden {
	display: none;
}

/* EVENT CARD (ISLAND) */
.event-item {
	background-color: #1e1e1e;
	border-radius: 12px;
	overflow: hidden;
	position: relative;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	cursor: pointer;
	border: 1px solid #333;
	display: flex;
	flex-direction: column;
	min-height: 200px;
	/* Minimum height for better visuals */
	opacity: 0;
	transform: translateY(20px);
	animation: slideUp 0.5s forwards;
}

.event-item:hover {
	transform: translateY(-8px);
	box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
	border-color: #8b1e1e;
}

/* Left accent border via pseudo-element */
.event-item::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 6px;
	height: 100%;
	background-color: #8b1e1e;
}

.event-card-content {
	padding: 25px 25px 25px 35px;
	/* Extra left padding for border */
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.title {
	font-size: 1.5rem;
	font-weight: 700;
	color: #ffffff;
	margin-bottom: 15px;
	font-family: 'Bebas Neue', sans-serif;
	letter-spacing: 1px;
	line-height: 1.2;
}

.date {
	font-size: 1rem;
	color: #e0e0e0;
	margin-bottom: 10px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.date::before {
	content: "📅";
	/* Simple icon, can be SVG */
	font-size: 0.9rem;
	filter: grayscale(1);
}

.location-preview {
	font-size: 0.9rem;
	color: #999;
	margin-top: auto;
	/* Push to bottom if flex column */
	display: flex;
	align-items: center;
	gap: 8px;
}

.location-preview::before {
	content: "📍";
	font-size: 0.9rem;
	filter: grayscale(1);
}

/* Past Events distinction */
.past-item {
	filter: grayscale(0.8);
	opacity: 0.7;
}

.past-item:hover {
	filter: grayscale(0);
	opacity: 1;
}

/* Empty State */
.empty-message {
	grid-column: 1 / -1;
	text-align: center;
	padding: 40px;
	color: #777;
	background-color: transparent;
	box-shadow: none;
	border: 1px dashed #444;
	pointer-events: none;
	animation: none;
	opacity: 1;
	transform: none;
}

.empty-message:hover {
	transform: none;
	box-shadow: none;
	border-color: #444;
}

/* ===== SKELETON ===== */
.skeleton {
	background-color: #2a2a2a;
	border-radius: 12px;
	height: 200px;
	/* Match min-height */
	position: relative;
	overflow: hidden;
}

.skeleton::after {
	content: "";
	position: absolute;
	top: 0;
	left: -150px;
	height: 100%;
	width: 150px;
	background: linear-gradient(90deg, transparent, rgba(139, 30, 30, 0.1), transparent);
	animation: shimmer 1.4s infinite;
}

.skeleton-title {
	height: 24px;
	width: 70%;
	margin: 30px 20px 20px 30px;
	background-color: #333;
	border-radius: 4px;
}

.skeleton-date {
	height: 16px;
	width: 40%;
	margin: 0 0 0 30px;
	background-color: #333;
	border-radius: 4px;
}

@keyframes shimmer {
	0% {
		left: -150px;
	}

	100% {
		left: 150%;
	}

	/* Ensure it goes all the way across */
}

/* ===== MODAL ===== */
.modal {
	display: none;
	position: fixed;
	z-index: 100;
	/* Higher z-index */
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(0, 0, 0, 0.85);
	/* Darker backdrop */
	backdrop-filter: blur(5px);
	padding-top: 5vh;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.modal.show {
	display: block;
	opacity: 1;
}

.modal-content {
	background-color: #1e1e1e;
	margin: auto;
	padding: 40px;
	border: 1px solid #8b1e1e;
	width: 90%;
	max-width: 600px;
	border-radius: 16px;
	color: #e0e0e0;
	text-align: left;
	/* Better for reading */
	position: relative;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
	transform: translateY(-20px);
	transition: transform 0.3s ease;
}

.modal.show .modal-content {
	transform: translateY(0);
}

.modal-content h1 {
	font-family: 'Bebas Neue', sans-serif;
	color: white;
	font-size: 2.5rem;
	margin-top: 0;
	margin-bottom: 20px;
	border-bottom: 1px solid #333;
	padding-bottom: 15px;
}

.modal-content p {
	font-size: 1.05rem;
	line-height: 1.6;
	margin-bottom: 15px;
	color: #ccc;
}

.modal-content strong {
	color: white;
	font-weight: 600;
}

.close-modal {
	color: #aaa;
	position: absolute;
	top: 20px;
	right: 30px;
	font-size: 40px;
	font-weight: 300;
	cursor: pointer;
	line-height: 0.8;
}

.close-modal:hover {
	color: white;
}

.register-btn {
	display: block;
	width: 100%;
	text-align: center;
	margin-top: 30px;
	padding: 15px 0;
	background: #8b1e1e;
	color: white;
	border-radius: 8px;
	text-decoration: none;
	font-weight: 600;
	font-size: 1.1rem;
	transition: background 0.3s;
}

.register-btn:hover {
	background: #a92424;
}

@keyframes slideUp {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}