/* =====================================================
   Template wtoruniu.eu - Joomla 3.10
   Estetyczny baner z zabytkami Torunia
   ===================================================== */

* {
	box-sizing: border-box;
}

body, html {
	padding: 0;
	margin: 0;
	margin-bottom: 10px;
	font-family: Arial, Verdana, Tahoma, Helvetica, sans-serif;
	font-size: 14px;
	color: #222;
	line-height: 1.5;
}

#body_bg {
	text-align: center;
	background-color: #f5f5f5;
}

img {
	border: 0 none;
	max-width: 100%;
	height: auto;
}

a:link, a:visited {
	text-decoration: none;
	color: #1a6bb5;
}
a:hover {
	color: #0d4a80;
	text-decoration: underline;
}

.clear {
	clear: both;
	height: 0;
	overflow: hidden;
}

/* ========== BANNER / HEADER ========== */
#headerconteiner {
	width: 100%;
	position: relative;
	z-index: 100;
}

.torun-banner {
	width: 100%;
	min-height: 220px;
	background: linear-gradient(135deg, #0a2540 0%, #1a4a7a 40%, #2a6aa0 70%, #1a4a7a 100%);
	background-size: cover;
	position: relative;
	overflow: hidden;
}

/* Delikatny wzór sugerujący mury i architekturę */
.torun-banner::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background:
		radial-gradient(ellipse at 20% 50%, rgba(255,215,0,0.08) 0%, transparent 50%),
		radial-gradient(ellipse at 80% 30%, rgba(255,255,255,0.06) 0%, transparent 40%),
		repeating-linear-gradient(
			90deg,
			transparent,
			transparent 40px,
			rgba(255,255,255,0.02) 40px,
			rgba(255,255,255,0.02) 41px
		);
	pointer-events: none;
}

.banner-overlay {
	position: relative;
	z-index: 2;
	padding: 20px 15px 15px;
	max-width: 1200px;
	margin: 0 auto;
}

.banner-content {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
}

.banner-logo-area {
	flex: 1 1 280px;
	text-align: left;
}

.site-logo {
	display: inline-block;
	color: #fff !important;
	text-decoration: none !important;
}

.logo-text {
	display: block;
	font-size: 32px;
	font-weight: 700;
	letter-spacing: 1px;
	color: #ffd700;
	text-shadow: 0 2px 4px rgba(0,0,0,0.4);
	line-height: 1.1;
}

.logo-sub {
	display: block;
	font-size: 13px;
	color: rgba(255,255,255,0.9);
	margin-top: 4px;
	font-weight: 400;
	max-width: 320px;
}

#headermod {
	margin-top: 8px;
	color: #fff;
	font-size: 13px;
}

#headermod p {
	color: #fff;
	margin: 0;
	padding: 0;
}

/* Pasek zabytków */
.landmarks-strip {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 14px;
	flex: 2 1 400px;
	padding: 8px 0;
}

.landmark {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 70px;
	padding: 6px 8px;
	background: rgba(255,255,255,0.12);
	border-radius: 8px;
	border: 1px solid rgba(255,215,0,0.25);
	transition: background 0.2s, transform 0.2s;
	cursor: default;
}

.landmark:hover {
	background: rgba(255,215,0,0.2);
	transform: translateY(-2px);
}

.lm-icon {
	font-size: 22px;
	line-height: 1.2;
	margin-bottom: 2px;
}

.lm-name {
	font-size: 11px;
	color: #fff;
	font-weight: 600;
	text-align: center;
	text-shadow: 0 1px 2px rgba(0,0,0,0.5);
	white-space: nowrap;
}

/* Szukajka */
#srch {
	flex: 0 0 auto;
}

#srch .search-query,
#srch .inputbox {
	padding: 8px 14px;
	border: 1px solid rgba(255,255,255,0.35);
	border-radius: 20px;
	background: rgba(255,255,255,0.15);
	color: #fff;
	font-size: 13px;
	width: 180px;
	outline: none;
	transition: background 0.2s, border-color 0.2s;
}

#srch .search-query::placeholder,
#srch .inputbox::placeholder {
	color: rgba(255,255,255,0.7);
}

#srch .search-query:focus,
#srch .inputbox:focus {
	background: rgba(255,255,255,0.25);
	border-color: #ffd700;
}

.element-invisible {
	position: absolute !important;
	height: 1px;
	width: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
}

/* Nawigacja */
#nav {
	background: #0d2d4a;
	min-height: 42px;
	text-align: center;
}

.nav-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 10px;
}

#nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: inline-block;
}

#nav li {
	display: inline-block;
	position: relative;
}

#nav li a {
	display: block;
	padding: 12px 18px;
	color: #fff !important;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none !important;
	transition: background 0.2s;
}

#nav li a:hover,
#nav li.active a,
#nav li:hover > a {
	background: #c9a227;
	color: #0d2d4a !important;
}

#nav li ul {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	background: #0d2d4a;
	min-width: 180px;
	z-index: 200;
	text-align: left;
	box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

#nav li:hover > ul {
	display: block;
}

#nav li li {
	display: block;
}

#nav li li a {
	padding: 10px 16px;
	font-size: 13px;
	border-top: 1px solid rgba(255,255,255,0.1);
}

#navborder {
	height: 4px;
	background: linear-gradient(90deg, #c9a227, #ffd700, #c9a227);
}

/* ========== MAIN CONTAINER ========== */
#mainconteiner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 10px 20px;
	text-align: left;
	background: #fff;
	box-shadow: 0 0 20px rgba(0,0,0,0.06);
}

#mainconteiner.fluid {
	max-width: 100%;
	width: 98%;
}

#mainconteiner.\31 000px {
	max-width: 1000px;
}

/* Moduły top / bottom */
.module-row {
	margin: 12px 0;
}

.row-table {
	display: table;
	width: 100%;
	table-layout: fixed;
}

.mod-cell {
	display: table-cell;
	vertical-align: top;
	padding: 0 6px;
}

.mod-cell:first-child {
	padding-left: 0;
}
.mod-cell:last-child {
	padding-right: 0;
}

/* Breadcrumb bar */
.header-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 8px 0;
	border-bottom: 1px solid #e0e0e0;
	margin-bottom: 12px;
	font-size: 13px;
}

.header-bar .pw {
	flex: 1;
}

.header-bar .date {
	font-weight: 600;
	color: #c9a227;
	white-space: nowrap;
	padding-left: 15px;
}

/* Layout 3-kolumnowy */
.maincontent-wrapper {
	display: table;
	width: 100%;
	table-layout: fixed;
}

.lcol, .rcol, .content-area {
	display: table-cell;
	vertical-align: top;
}

.lcol {
	width: 220px;
	padding-right: 15px;
}

.rcol {
	width: 220px;
	padding-left: 15px;
}

.content-area {
	width: auto;
}

.content-area.fullwidth {
	width: 100%;
}

.leftrow, .rightrow {
	background: #fafafa;
	padding: 8px;
	border-radius: 4px;
	border: 1px solid #eee;
}

/* Moduły – chrome global */
table.moduletable,
table.moduletable_menu {
	width: 100%;
	margin-bottom: 12px;
	border-collapse: collapse;
}

table.moduletable th,
table.moduletable_menu th {
	background: #1a4a7a;
	color: #fff;
	padding: 8px 12px;
	font-size: 14px;
	text-align: left;
	border-radius: 4px 4px 0 0;
}

table.moduletable th span,
table.moduletable_menu th span {
	color: #ffd700;
}

table.moduletable td,
table.moduletable_menu td {
	padding: 10px;
	background: #fff;
	border: 1px solid #e5e5e5;
	border-top: none;
}

/* Menu w bocznych kolumnach */
table.moduletable_menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

table.moduletable_menu ul li {
	border-bottom: 1px solid #eee;
}

table.moduletable_menu ul li a {
	display: block;
	padding: 7px 8px;
	color: #333;
}

table.moduletable_menu ul li a:hover,
table.moduletable_menu ul li.active a {
	background: #f0f7ff;
	color: #1a6bb5;
}

/* Content */
#content {
	padding: 5px 0 15px;
}

h1 {
	font-size: 22px;
	color: #0d2d4a;
	margin: 10px 0;
}

h2, h2 a:link {
	font-size: 18px;
	color: #1a4a7a;
	border-bottom: 2px solid #c9a227;
	padding-bottom: 4px;
	margin: 12px 0 8px;
}

h3 {
	font-size: 15px;
	color: #333;
	margin: 10px 0 6px;
}

.blog-featured h1,
.blog h1 {
	text-align: center;
}

/* User modules */
.user-modules {
	margin-bottom: 15px;
}

/* Footer */
.foot {
	max-width: 1200px;
	margin: 20px auto 30px;
	padding: 20px 15px;
	text-align: center;
	background: #0d2d4a;
	color: #ccc;
	font-size: 13px;
	border-radius: 4px;
}

.foot a {
	color: #ffd700;
}

.foot p {
	margin: 0;
	color: #ccc;
}

#footertext {
	margin-bottom: 10px;
}

/* Utility */
.mod {
	width: 3px;
	margin: 0;
	padding: 0;
}

button, .button {
	font-size: 13px;
	color: #333;
	border: 1px solid #ccc;
	margin: 3px;
	background: #f5f5f5;
	padding: 5px 12px;
	cursor: pointer;
	border-radius: 3px;
}

.inputbox {
	color: #000;
	background: #fff;
	border: 1px solid #ccc;
	margin: 3px;
	padding: 5px 8px;
	border-radius: 3px;
}

/* Responsive */
@media (max-width: 900px) {
	.maincontent-wrapper {
		display: block;
	}
	.lcol, .rcol, .content-area {
		display: block;
		width: 100% !important;
		padding: 0 0 15px 0 !important;
	}
	.landmarks-strip {
		gap: 6px;
	}
	.landmark {
		min-width: 60px;
		padding: 4px 6px;
	}
	.lm-name {
		font-size: 10px;
	}
	.logo-text {
		font-size: 26px;
	}
	.row-table {
		display: block;
	}
	.mod-cell {
		display: block;
		width: 100% !important;
		padding: 0 0 10px 0 !important;
	}
}

@media (max-width: 600px) {
	.torun-banner {
		min-height: 180px;
	}
	.banner-content {
		flex-direction: column;
		text-align: center;
	}
	.banner-logo-area {
		text-align: center;
	}
	.logo-sub {
		margin: 4px auto 0;
	}
	#srch .search-query {
		width: 100%;
		max-width: 260px;
	}
	.landmarks-strip {
		justify-content: center;
	}
}
