/* PBA Custom Theme - responsive refresh */

* {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

/* fixes email form problem */
.input-prepend input:focus {
	position: static;
}

body {
	margin: 0;
	padding: 0;
	background: #033976 url(/packages/pba_custom_theme/themes/pba_custom_theme/images/img01.jpg) repeat-x left top;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 14px;
	color: #FFFFFF;
}

img,
video,
iframe,
object,
embed {
	max-width: 100%;
}

img {
	height: auto;
}

table {
	max-width: 100%;
}

#wrapper,
#header,
#menu,
#page,
#footer {
	width: min(980px, calc(100% - 30px));
	margin-left: auto;
	margin-right: auto;
}

#wrapper {
	padding: 0;
}

/* Header */
#header {
	clear: both;
	min-height: 110px;
	padding: 0;
}

/* Logo */
#logo {
	width: 100%;
	margin-bottom:10px;
	color: #000000;
	overflow: hidden;
	clear:both
}

#logo img {
	display: block;
	max-width: 100%;
	height: auto;
	padding-bottom:10px;
}

/* Search */
#search {
	min-height: 40px;
	padding: 0;
}

#search form {
	min-height: 41px;
	margin: 0;
	padding: 10px 15px 0 20px;
}

#search fieldset {
	margin: 0;
	padding: 0;
	border: none;
}

#search-text {
	width: min(190px, calc(100% - 50px));
	padding: 6px 5px 2px;
	outline: none;
	background: none;
	border: none;
	text-transform: lowercase;
	font: normal 11px Arial, Helvetica, sans-serif;
	color: #000E1F;
}

#search-submit {
	width: 40px;
	height: 22px;
	border: none;
	background: none;
	color: #000000;
}

/* Menu / masthead */
#menu {
	min-height: 100px;
	margin-top: 0;
	padding: 50px 0 0;
	background: url(/packages/pba_custom_theme/themes/pba_custom_theme/images/img02a.png) no-repeat left top;
	background-size: cover;
}

#menu h1 {
	margin: 0;
	padding: 0;
}

#menu h1 a {
	float: right;
	margin: 10px 10px 0 0;
	text-shadow: 0 0 5px #ff9933, 0 0 10px #fff, 0 0 15px #fff,
		0 0 20px #00cc33, 0 0 30px #ff2d95, 0 0 40px #ff2d95,
		0 0 50px #00cc33, 0 0 75px #00cc33;
	color: #000;
	font-weight: bold;
	font-size: 20px;
	line-height: 1.25;
}

#menu ul {
	float: right;
	margin: 0;
	padding: 0;
	list-style: none;
	line-height: normal;
}

#menu li {
	float: left;
}

#menu a {
	display: block;
	min-height: 35px;
	margin-right: 1px;
	text-decoration: none;
	text-align: center;
	text-transform: uppercase;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-weight: bold;
	color: #FFFFFF;
	border: none;
}

#menu a:hover,
#menu .current_page_item a {
	text-decoration: none;
	color: #FFFFFF;
}

/* Page */
#page {
	background: rgb(11,23,56);
	background: linear-gradient(to bottom, rgba(11,23,56,1) 0%, rgba(22,80,142,1) 100%);
}

#page-bgbtm {
	display: flow-root;
	padding: 20px 10px 0 10px;
}

/* Content */
#content {
	float: left;
	width: 100%;
	min-width: 0;
	padding: 0;
}

.full {
	float: left;
	width: 100%;
}

.control-group input,
.ccm-input-select {
	width: min(300px, 100%);
	max-width: 100%;
	margin-bottom: 10px;
}

textarea,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
select {
	max-width: 100%;
}

.post {
	margin-bottom: 15px;
}

.post .title {
	margin-bottom: 10px;
	padding: 0;
	letter-spacing: -.5px;
	color: #FFFFFF;
}

.post .title a {
	border: none;
	color: #FFFFFF;
}

.post .meta {
	margin-bottom: 30px;
	padding: 5px 0 15px;
	text-align: left;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 13px;
	font-weight: bold;
}

.post .meta .date {
	float: left;
}

.post .meta .posted {
	float: right;
}

.post .entry {
	text-align: justify;
}

.links {
	padding-top: 20px;
	font-size: 12px;
	font-weight: bold;
}

.entry,
.ccm-page-list,
.ccm-block-styles {
	min-width: 0;
}

/* Sidebar */
#sidebar {
	background: rgb(8,21,43);
	background: linear-gradient(to right, rgba(8,21,43,1) 0%, rgba(16,48,89,1) 24%, rgba(16,48,89,1) 77%, rgba(8,21,43,1) 100%);
	box-shadow: 0 2px 10px 5px #000;
	float: right;
	width: 280px;
	margin: -20px 0 0;
	padding: 0;
	border: 1px #000 solid;
	border-radius: 15px;
}

#sidebar ul {
	margin: 0;
	padding: 0 0 0 15px;
	list-style: none;
}

#sidebar li {
	margin: 0 0 20px;
	padding: 0;
}

#sidebar li ul {
	margin: 0;
}

#sidebar li li {
	line-height: 25px;
	margin: 0 20px;
	border-left: none;
}

#sidebar li li a {
	padding-left: 10px;
	background: url(/packages/pba_custom_theme/themes/pba_custom_theme/images/img09.jpg) no-repeat left 5px;
}

#sidebar li li span {
	display: block;
	margin-top: -20px;
	padding: 0;
	font-size: 11px;
	font-style: italic;
}

#sidebar h2 {
	min-height: 38px;
	height: auto;
	padding-left: 30px;
	letter-spacing: -.5px;
	font-size: 1.8em;
	color: #FFFFFF;
}

#sidebar p {
	margin: 0;
	padding: 0 30px 20px;
	text-align: justify;
}

#sidebar a {
	border: none;
}

#sidebar a:hover {
	text-decoration: underline;
	color: #7AA7DE;
}

/* Full Width Div */
#pbafull {
	width: min(900px, 100%);
	margin: 0 auto;
	padding: 0;
	background: url(/packages/pba_custom_theme/themes/pba_custom_theme/images/img06.jpg) repeat-y left top;
	background-size: 100% auto;
}

/* Calendar */
#calendar_wrap {
	padding: 20px;
	overflow-x: auto;
}

#calendar table {
	width: 100%;
}

#calendar tbody td {
	text-align: center;
}

#calendar #next {
	text-align: right;
}

/* Adverts page */
.pba-adverts {
	width: 100%;
	margin: 0 auto;
	text-align: center;
	overflow: hidden;
}

/* Footer */
#footer {
	width: min(950px, calc(100% - 30px));
	max-width: 950px;
	min-height: 0;
	margin: 0 auto 25px;
	padding: 0 20px;
	font-family: Arial, Helvetica, sans-serif;
	background: url(/packages/pba_custom_theme/themes/pba_custom_theme/images/img07.jpg) no-repeat left top;
	background-size: cover;
}

.footer-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 64px;
	font-size: 11px;
	text-transform: uppercase;
}

.footer-left,
.footer-right {
	flex: 1 1 0;
}

.footer-centre {
	flex: 0 1 auto;
	text-align: center;
	white-space: nowrap;
}

.footer-right {
	text-align: right;
}

#footer a {
	color: #FF7200;
	font-size: 12px;
	text-decoration: none;
}

#footer a:hover {
	text-decoration: underline;
}

.footer-divider {
	color: #FF7200;
	font-size: 14px;
	padding: 0 4px;
}

.footer-welcome {
	font-size: 10px;
}

/* Tablet */
@media (max-width: 800px) {
	#wrapper,
	#header,
	#menu,
	#page,
	#footer {
		width: calc(100% - 20px);
	}

	#menu {
		min-height: 85px;
		padding-top: 42px;
		background-position: center top;
	}

	#menu h1 a {
		float: none;
		display: block;
	/*	margin: 0 15px; */
		text-align: right;
		font-size: 18px;
	}

	#header {
		min-height: 0;
	}

	#logo {
		min-height: 0;
		margin-top: 0;
	}

	#page-bgbtm {
		padding: 18px;
	}

	#content,
	#sidebar {
		float: none;
		width: 100%;
	}

	#sidebar {
		clear: both;
		margin: 20px 0 0;
	}

	#sidebar ul {
		padding-left: 0;
	}

	#sidebar > ul > li {
		margin-left: 0;
		margin-right: 0;
	}

	.post .entry,
	#sidebar p {
		text-align: left;
	}
}

/* Phones */
@media (max-width: 560px) {
	body {
		font-size: 15px;
	}

	#wrapper,
	#header,
	#menu,
	#page,
	#footer {
		width: 100%;
	}

	#menu {
		min-height: 76px;
		padding: 35px 10px 8px;
	}

	#menu h1 a {
		padding-top: 10px;
		font-size: 16px;
		text-shadow: 0 0 5px #ff9933, 0 0 10px #fff;
	}

	#page-bgbtm {
		padding: 15px;
	}

	#sidebar {
		border-radius: 10px;
		box-shadow: 0 2px 8px 2px #000;
	}

	#sidebar h2 {
		padding-left: 20px;
		font-size: 1.45em;
	}

	#sidebar p {
		padding-left: 20px;
		padding-right: 20px;
	}

	#sidebar li li {
		margin-left: 10px;
		margin-right: 10px;
	}

	#calendar_wrap {
		padding: 10px 0;
	}

	#footer {
		margin-bottom: 0;
		padding: 10px 12px;
	}

	.footer-inner {
		flex-direction: column;
		gap: 7px;
		min-height: 0;
		padding: 4px 0;
	}

	.footer-left,
	.footer-centre,
	.footer-right {
		flex: none;
		width: 100%;
		text-align: center;
	}

	.footer-centre {
		white-space: normal;
	}
}

/* PBA inline Auto-Nav
 * Compatible with the Theme Eight Auto-Nav custom template:
 *   ul.theme-eight-inline-nav
 *   ul.theme-eight-dropdown
 */
#logo {
	overflow: visible;
}

#logo ul.theme-eight-inline-nav {
	display: flex !important;
	flex-wrap: wrap;
	align-items: center;
	gap: 0;
	margin: 5px 0 0 0 !important;
	padding: 10px !important;
	list-style: none !important;
	background:#fff
}

#logo ul.theme-eight-inline-nav > li {
	position: relative;
	display: inline-flex !important;
	align-items: center;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

#logo ul.theme-eight-inline-nav li::marker {
	content: "";
}

/* Pipe separator between top-level links */
#logo ul.theme-eight-inline-nav > li:not(:last-child)::after {
	content: "|";
	margin: 0 7px;
	color: #6f7f91;
}

/* Top-level links */
#logo ul.theme-eight-inline-nav > li > a,
#logo ul.theme-eight-inline-nav > li > .nav-current {
	display: inline-block;
	margin: 0;
	padding: 7px 0;
	font-size: 16px;
	font-weight: bold;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
}

#logo ul.theme-eight-inline-nav > li > a {
	color: #0759ad;
}

#logo ul.theme-eight-inline-nav > li > a:hover,
#logo ul.theme-eight-inline-nav > li > a:focus {
	color: #d96c00;
	text-decoration: none;
}

#logo ul.theme-eight-inline-nav > li > .nav-current {
	color: #111111;
}

/* Dropdown menu */
#logo ul.theme-eight-inline-nav ul.theme-eight-dropdown {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 2000;
	display: none;
	min-width: 210px;
	margin: 0 !important;
	padding: 6px 0 !important;
	list-style: none !important;
	background: #ffffff;
	border: 1px solid rgba(0, 0, 0, 0.18);
	border-radius: 6px;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24);
}

/* Show dropdown on mouse or keyboard focus */
#logo ul.theme-eight-inline-nav li:hover > ul.theme-eight-dropdown,
#logo ul.theme-eight-inline-nav li:focus-within > ul.theme-eight-dropdown {
	display: block;
}

#logo ul.theme-eight-inline-nav ul.theme-eight-dropdown > li {
	position: relative;
	display: block !important;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

#logo ul.theme-eight-inline-nav ul.theme-eight-dropdown a,
#logo ul.theme-eight-inline-nav ul.theme-eight-dropdown .nav-current {
	display: block;
	width: 100%;
	padding: 9px 14px;
	font-size: 13px;
	font-weight: bold;
	line-height: 1.25;
	text-decoration: none;
	white-space: nowrap;
}

#logo ul.theme-eight-inline-nav ul.theme-eight-dropdown a {
	color: #0759ad;
}

#logo ul.theme-eight-inline-nav ul.theme-eight-dropdown .nav-current {
	color: #111111;
	background: #eef5fc;
}

#logo ul.theme-eight-inline-nav ul.theme-eight-dropdown a:hover,
#logo ul.theme-eight-inline-nav ul.theme-eight-dropdown a:focus {
	background: #eef5fc;
	color: #d96c00;
	text-decoration: none;
}

/* Third level and deeper */
#logo ul.theme-eight-inline-nav ul.theme-eight-dropdown ul.theme-eight-dropdown {
	top: 0;
	left: 100%;
}

/* Keep the same template usable on narrow screens */
@media (max-width: 560px) {
	#logo ul.theme-eight-inline-nav {
		justify-content: center;
	}

	#logo ul.theme-eight-inline-nav > li > a,
	#logo ul.theme-eight-inline-nav > li > .nav-current {
		padding-top: 6px;
		padding-bottom: 6px;
	}

	#logo ul.theme-eight-inline-nav ul.theme-eight-dropdown {
		min-width: 190px;
	}

	/* Deeper fly-outs stay inside the viewport on phones. */
	#logo ul.theme-eight-inline-nav ul.theme-eight-dropdown ul.theme-eight-dropdown {
		top: 100%;
		left: 12px;
	}
}
