/* Header Styles */
header {
	width: 100%;
	box-shadow: 0px 1px 5px rgba(0, 0, 0, 0.1);
}

.header-top {
	display: flex;
	justify-content: space-between;
	padding: 10px 20px;
	align-items: center;
}

.social-icons {
	flex: 1;
	text-align: center;
}

.social-icons a {
	margin: 0 10px;
	color: inherit;
	text-decoration: none;
}

.language-selector {
	margin-left: auto;
}

.language-selector select {
	padding: 5px;
	border-radius: 4px;
}

.header-banner {
	position: relative;
	width: 100%;
	height: 500px;
	overflow: hidden;
}

.header-banner img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.banner-text {
	position: absolute;
	top: 50%;
	left: 50%;
	font-weight: 400;
	transform: translate(-50%, -50%);
	text-transform: uppercase;
	text-align: center;
	color: white;
	font-size: 50px;
	text-shadow: 0 0 3px #000, 0 0 5px #020202;
	width: 100%;
}

.banner-text a {
	text-decoration: none;
	color: white !important;
}

.header-nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 20px;
}

.categories a {
	text-decoration: none;
	color: inherit;
}

.theme-toggle {
	margin-left: 20px;
}

.theme-toggle a {
	color: inherit;
	text-decoration: none;
	cursor: pointer;
}

/* Theme Variables */
:root {
	--light-bg: #f8f8f8;
	--light-text: #333;
	--dark-bg: #212121;
	--dark-text: #ddd;
	--accent-color: #4a90e2;
}

/* Theme Classes */
body.light-theme {
	background-color: var(--light-bg);
	color: var(--light-text);
}

body.dark-theme {
	background-color: var(--dark-bg);
	color: var(--dark-text);
}

/* Layout */
body {
	margin: 0;
	padding: 0;
	font-family: "Open Sans";
	line-height: 1;
}

header {
	width: 100%;
	background-color: rgba(255, 255, 255, 0.1);
}

nav {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	align-items: center;
}

nav a {
	color: inherit;
	text-decoration: none;
	padding: 0.5rem 1rem;
	transition: color 0.3s;
	font-size: 20px;
	font-weight: bold;
}

nav a:hover {
	color: #ca9b52;
}

main {
	max-width: 1200px;
	margin: 2rem auto;
	padding: 0 1rem;
	margin-top: 0px;
}

/* Works Grid */
.works-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 2rem;
	margin-bottom: 3rem;
}

.work-card {
	border-radius: 8px;
	overflow: hidden;
	transition: transform 0.3s;
}

.work-card img {
	width: 100%;
	height: 300px;
	object-fit: cover;
}

.work-info {
	padding: 1rem;
}

.work-info h2 {
	margin: 0;
	font-size: 1.25rem;
}

.date {
	margin: 0.5rem 0;
}

.category {
	color: #ca9b52;
	margin: 0.5rem 0;
	font-size: 1rem;
	text-transform: uppercase;
	font-weight: bold;
}

.pagination {
	display: flex;
	justify-content: center;
	gap: 2rem;
}

.dark-theme .pagination-arrow {
	color: #ddd;
}

.pagination-arrow {
	font-size: 2.5rem;
	text-decoration: none;
	color: #000;
	margin-left: 20px;
	margin-right: 20px;
}

.pagination-arrow.disabled {
	opacity: 0.3;
	cursor: not-allowed;
}

.pagination-arrow:not(.disabled):hover {
	opacity: 0.7;
}

/* Individual Work Page */
.work {
	max-width: 800px;
	margin: 0 auto;
	margin-top: 20px;
}

.work h1 {
	text-align: center;
}

.work img {
	width: 100%;
	height: auto;
	margin-bottom: 8px;
}

.work-details {
	line-height: 1.5;
}

.work-details h1 {
	text-align: center;
	font-weight: 500;
	margin-top: 0;
	margin-bottom: 0;
}

.work-details .category {
	text-align: center;
}

.work-details .date {
	text-align: center;
	font-style: italic;
	color: #666;
}

.images {
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 1rem;
	margin-top: 2rem;
}

.dark-theme .date,
.dark-theme .category {
	color: #999;
}

.container {
	width: 50%;
	margin: 0 auto;
	padding: 0 20px;
	box-sizing: border-box;
}

@media screen and (max-width: 768px) {
	.container {
		width: 100%;
	}
}

.works-list {
	display: flex;
	flex-direction: column;
	gap: 2rem;
	margin-bottom: 3rem;
	align-items: center;
}

.work-item {
	position: relative;
	transition: transform 0.3s ease;
	width: 75%;
}

@media screen and (max-width: 768px) {
	.work-item {
		width: 100%;
	}
}

.work-item a {
	text-decoration: none;
	color: inherit;
}

.work-item img {
	width: 100%;
	height: auto;
	display: block;
}

.work-info {
	padding: 15px;
	text-align: center;
}

.work-info .category {
	color: #ca9b52;
	font-size: 1rem;
	margin: 0 0 5px 0;
	font-weight: bold;
}

.work-info .title {
	font-size: 2.2rem;
	margin: 0 0 5px 0;
	font-weight: 500;
	margin-bottom: 20px;
	margin-top: 15px;
}

.work-info .date {
	font-size: 0.8rem;
	color: #666;
	font-style: italic;
	margin: 0;
}

.dark-theme .work-info .category,
.dark-theme .work-info .date {
	color: #999;
}

.lang-switch {
	text-decoration: none;
	color: inherit;
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 15px;
	font-weight: bold;
}

.language-flag {
	width: 24px;
	height: auto;
	display: inline-block;
	vertical-align: middle;
}

.categories-nav {
	display: flex;
	justify-content: center;
	gap: 20px;
	padding: 20px 0;
	margin-bottom: 10px;
    padding-top: 5px;
}

.categories-nav .category-link {
	text-decoration: none;
	padding: 5px 15px;
	border-radius: 20px;
	transition: all 0.3s;
	text-transform: capitalize;
	font-size: 20px;
	font-weight: normal;
}

.categories-nav .category-link:hover {
	color: #ca9b52;
}

.image-caption {
	display: block;
	text-align: center;
	color: #666;
	font-size: 0.9em;
	margin-bottom: 20px;
}

.highlighted {
	color: #ca9b52 !important;
}

.categories-header-container {
	position: relative;
	z-index: 0;
	text-transform: uppercase;
	text-align: center;
	clear: both;
	overflow: hidden;
	margin-left: 30%;
	margin-right: 30%;
    padding-top: 15px;
}

.categories-header {
	display: inline-block;
	position: relative;
	font-size: 16px;
	line-height: 29px;
	letter-spacing: 1.5px;
	text-align: center;
}

.categories-header::before,
.categories-header::after {
	content: "";
	position: absolute;
	top: 50%;
	width: 1000px;
	height: 1px;
	border-bottom-width: 1px;
	border-bottom-style: solid;
}

.categories-header::before {
	right: 100%;
	margin-right: 15px;
}

.categories-header::after {
	left: 100%;
	margin-left: 15px;
}

@media screen and (max-width: 850px) {
	.banner-text {
		font-size: 25px;
	}

	.categories a {
		font-size: 15px;
	}

	.categories-nav {
		gap: 0px;
	}

	.categories-nav .category-link {
		font-size: 15px;
	}

	.header-banner {
		height: 200px;
	}

	.categories-header-container {
		margin-left: 10%;
		margin-right: 10%;
	}
}
