/* CyberSoc Cardiff University Theme */

:root {
	--cybersoc-blue: #00BDFF;
	--cybersoc-white: #FFFFFF;
	--cybersoc-black: #1A1A1A;
	--cybersoc-navbar: #23272a;
	--cardiff-red: #E4251B;
	--cardiff-white: #FFFFFF;
}

html {
	color-scheme: light dark;
}

body {
	font-family: system-ui;
	font-size: 1.25rem;
	line-height: 1.5;
	background: var(--cybersoc-black);
	color: var(--cybersoc-white);
	min-height: 100vh;
}

img,
svg,
video {
	max-width: 100%;
	display: block;
}

main {
	max-width: min(70ch, 100% - 4rem);
	margin-inline: auto;
}

.hero-banner {
	background: url('/ball.jpg') center center/cover no-repeat;
	min-height: 20rem;
	display: flex;
	align-items: center;
	justify-content: center;
}

.hero-content {
	background: rgba(0, 0, 0, 0.6);
	padding: 2.5rem 2rem;
	border-radius: 1.125rem;
	text-align: center;
	max-width: 37.5rem;
	margin: 2rem auto;
}

.hero-title {
	color: var(--cybersoc-blue);
	font-size: 2.7rem;
	margin-bottom: 0.7rem;
}

.hero-subtitle {
	color: var(--cybersoc-white);
	font-size: 1.2rem;
}


header {
	background: var(--cybersoc-navbar);
	padding: 0;
	position: sticky;
	top: 0;
	z-index: 100;
}

.navbar {
	width: 100%;
	background: var(--cybersoc-navbar);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.navbar-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0.5rem 2rem;
}

.navbar-brand img {
	height: 45px;
	width: auto;
	max-width: 120px;
	object-fit: contain;
}

.navbar-links {
	display: flex;
	align-items: center;
	gap: 2rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.navbar-links .nav-link {
	color: var(--cybersoc-white) !important;
	font-weight: 500;
	text-decoration: none;
	font-size: 1.1rem;
	padding: 0.3rem 0.7rem;
	border-radius: 4px;
	transition: background 0.2s, color 0.2s;
}

.navbar-links .nav-link.active {
	color: var(--cybersoc-blue) !important;
}

.navbar-links .nav-link:hover {
	background: var(--cybersoc-blue);
	color: var(--cybersoc-black) !important;
}

@media (max-width: 900px) {
	.navbar-container {
		flex-direction: column;
		align-items: stretch;
		padding: 0.5rem 1rem;
	}

	.navbar-links {
		justify-content: center;
		gap: 1rem;
		margin-top: 0.5rem;
	}
}

footer {
	background: none;
	text-align: center;
	margin: 2rem 0 1rem 0;
	color: #888;
	font-size: 0.95rem;
}

.footer-logo {
	margin-bottom: 1rem;
}

footer img[alt="Cardiff University"] {
	height: 3.5rem;
	margin: 0 auto 0.5rem auto;
	display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	color: var(--cybersoc-blue);
	font-family: inherit;
}

.events-container {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	margin: 1.5rem 0;
}

.event-card {
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(0, 189, 255, 0.3);
	border-radius: 8px;
	padding: 1.5rem;
	flex: 1;
	min-width: 280px;
	transition: transform 0.2s, border-color 0.2s;
}

.event-card:hover {
	transform: translateY(-2px);
	border-color: var(--cybersoc-blue);
}

.event-date {
	color: var(--cybersoc-blue);
	font-weight: bold;
	font-size: 1.1rem;
	margin-bottom: 0.5rem;
}

.event-title {
	color: var(--cybersoc-white);
	font-size: 1.3rem;
	font-weight: 600;
	margin-bottom: 0.75rem;
}

.event-description {
	color: #ccc;
	line-height: 1.6;
	margin-bottom: 1rem;
}

.event-button {
	display: inline-block;
	background: var(--cybersoc-blue);
	color: var(--cybersoc-black);
	padding: 0.5rem 1rem;
	text-decoration: none;
	border-radius: 4px;
	font-weight: 500;
	transition: background 0.2s;
}

.event-button:hover {
	background: #0099cc;
}

@media (max-width: 768px) {
	.events-container {
		flex-direction: column;
	}

	.event-card {
		min-width: unset;
	}
}


/* Code */
code,
pre {
	font-family: Menlo, Consolas, Monaco, Liberation Mono, Lucida Console, monospace;
}

code {
	font-size: 14px;
	background-color: hsl(210, 15%, 22%);
	color: hsl(219, 28%, 88%);
}

pre {
	display: block;
}

pre code {
	display: block;
	color: inherit;
	background-color: hsl(210, 15%, 22%);
	color: hsl(219, 28%, 88%);
	padding: 12px;
	font-size: 14px;
	border-radius: 3px;
	overflow-x: auto;
}

pre code.language-filename {
	margin-bottom: -24px;
	border-bottom: 1px solid #666;
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
}

pre code.language-filename:before {
	content: "File: ";
}
