/*
 * Bevs Driving School
 * Based on the "Clean Home" theme by Mid Mo Design (GPL).
 * Reset + theme merged into one file; unused WordPress widget,
 * comment and calendar rules removed.
 */

/* ---------- Reset ---------- */
html, body, div, span, iframe, h1, h2, h3, h4, h5, h6, p, a, em, img, small, strong, b,
ol, ul, li, table, caption, tbody, tfoot, thead, tr, th, td,
header, nav, main, aside, footer, article {
	margin: 0;
	padding: 0;
	border: 0;
	font-weight: inherit;
	font-style: inherit;
	font-size: 100%;
	font-family: inherit;
	vertical-align: baseline;
	background-color: transparent;
}
header, nav, main, aside, footer, article { display: block; }
b, strong { font-weight: bold; }
ol, ul { list-style: none; }
table { border-collapse: separate; border-spacing: 0; }
caption, th, td { text-align: left; font-weight: normal; }

/* ---------- Base ---------- */
body {
	background: #000 url("http://bevsdrivingschool.co.uk/images/logoback.jpg") no-repeat top left;
	font-family: Arial, serif;
	font-size: 13px;
	color: #fff;
	line-height: 1.7em;
}
a {
	text-decoration: none;
	color: #fff;
	font-weight: 600;
}
a:hover { color: #dd45a1; }
hr {
	margin-top: 35px;
	border: 0;
	border-top: 1px dotted #ccc;
	width: 620px;
	clear: both;
}
th { padding: 5px; }
iframe { border: 0; }
p > img:only-child, p > iframe { vertical-align: bottom; } /* no gap under images/maps on their own line */

/* ---------- Layout ---------- */
#wrapper {
	width: 900px;
	margin: 40px auto 40px 20px;
}
#header {
	float: left;
	width: 900px;
	margin-bottom: 70px;
}
#content {
	width: 620px;
	float: left;
	padding: 0 0 30px 0;
	min-height: 420px;
}
#sidebar {
	width: 250px;
	float: right;
	margin: 0 0 25px 0;
}
#footer {
	width: 900px;
	float: left;
	text-align: center;
	padding: 30px 0 40px 0;
}

/* ---------- Header ---------- */
#logo {
	float: right;
	padding: 18px 0 34px 0;
}
#logo h1 {
	font-size: 60px;
	line-height: 22.1px; /* keep the original tight title spacing */
}
#logo a {
	color: #50dd45;
	font-weight: 600;
	letter-spacing: -4px;
}
#logo h2 {
	color: #dd4381;
	font-size: 18px;
	font-weight: 200;
	padding: 12px 4px 0 0;
	letter-spacing: -1px;
}
#nav {
	float: left;
	margin-top: 2.3px; /* matches the spacing the old <br> tags produced */
	padding: 12px 0 0;
}
#nav ul {
	height: 50px;
	float: left;
	background-color: rgba(0, 0, 0, 0.4);
}
#nav li {
	text-align: center;
	float: left;
}
#nav li a {
	font-size: 20px;
	font-weight: 400;
	display: block;
	padding: 15px;
}
#nav li a:hover { color: #dd4381; }

/* ---------- Posts & pages ---------- */
.post { padding: 0 30px 0 0; }
.post p { margin: 14px 0; }
.post em { font-style: italic; }
.post h1 {
	font-family: Georgia;
	font-size: 24px;
	margin: 25px 0 10px 0;
	font-weight: normal;
}
.post h1:hover { color: #dd4381; }
.post h2, .post h2 a {
	font-family: Helvetica, Arial, sans-serif;
	font-size: 28px;
	letter-spacing: -2px;
	margin: 30px 0 10px 0;
	font-weight: bold;
	line-height: 32px;
	color: #dd4381;
}
.post h3 {
	font-family: Helvetica, Arial, sans-serif;
	color: #50dd45;
	font-size: 20px;
	margin: 15px 0 10px 0;
	font-weight: bold;
	letter-spacing: -1px;
}
.post h4 {
	font-family: Helvetica, Arial, sans-serif;
	margin: 15px 0 10px 0;
	font-weight: normal;
	font-size: 18px;
	color: #6662ff;
	letter-spacing: -1px;
}
.post small { font-size: 11px; }
.post small a { font-weight: normal; }
.post .alignright { float: right; margin-left: 10px; }
.post .alignleft { float: left; margin-right: 10px; }
.post .aligncenter { margin: 0 auto; display: block; }
.post ul { list-style: circle; margin: 0 0 0 25px; }
.post ol { list-style: decimal; margin: 0 0 0 30px; }

/* Content helpers (replace repeated inline styles) */
.highlight { color: #66ff66; }
.notice { color: #ff0000; font-size: x-small; }
.contact-details { float: right; }
.contact-details h4 { text-align: right; }
.map-link { color: #00f; }
a.tel { color: inherit; font-weight: inherit; } /* tappable phone numbers, same look as plain text */

/* ---------- Sidebar ---------- */
#sidebar h3 {
	color: #557766;
	padding: 25px 0 3px 0;
	font-size: 18px;
}
#sidebar img {
	margin: 5px 0;
	max-width: 150px;
}
#sidebar .badges p + p { margin-top: 1.7em; }
#sidebar .block li a {
	background: transparent url("../images/bullet_black.gif") no-repeat scroll 6px 52%;
	font-size: 16px;
	font-weight: normal;
	padding: 2px 0 2px 15px;
	display: block;
}
#sidebar .block li a:hover {
	background-image: url("../images/bullet_red.gif");
}

/* ---------- Responsive (tablets and phones) ----------
 * Above 940px the original fixed 900px layout is used unchanged. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

@media (max-width: 940px) {
	body { font-size: 15px; }
	.post small { font-size: 12px; }
	#wrapper { width: auto; margin: 20px 16px; }
	#header, #content, #sidebar, #footer { float: none; width: auto; }
	#header { margin-bottom: 24px; }
	#header::after { content: ""; display: table; clear: both; }

	#logo { float: none; padding: 8px 0 16px; text-align: center; }
	#logo h1 { font-size: clamp(34px, 9vw, 60px); line-height: 1.15; }
	#logo a { letter-spacing: -0.06em; }
	#logo h2 { font-size: 16px; padding: 6px 0 0; }

	#nav { float: none; margin: 0; padding: 0; }
	#nav ul { float: none; height: auto; display: flex; flex-wrap: wrap; justify-content: center; }
	#nav li { float: none; }
	#nav li a { font-size: 17px; padding: 10px 12px; }

	#content { min-height: 0; padding-bottom: 10px; }
	#content::after { content: ""; display: table; clear: both; }
	.post { padding: 0; }
	.post h2, .post h2 a { margin-top: 16px; }
	hr { width: auto; }

	img { max-width: 100%; height: auto; }
	iframe { width: 100%; max-width: 400px; }
	table { max-width: 100%; }

	#sidebar { margin: 10px 0 0; }
	#sidebar .badges { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 20px; }
	#sidebar .badges p + p { margin-top: 0; }

	#footer { padding: 20px 0 30px; }
}

@media (max-width: 600px) {
	.post .alignright, .post .alignleft { float: none; display: block; margin: 10px 0; }
	.contact-details { float: none; }
	iframe { height: 300px; }
	.contact-details h4 { text-align: left; }
	.post h2, .post h2 a { font-size: 24px; line-height: 28px; letter-spacing: -1px; }
	.post h1 { font-size: 20px; }
	.post h3 { font-size: 18px; }
	th { padding: 4px 6px 4px 0; }
}
