/* CSS colors set for use throughout stylesheet */
:root {
	--color1: #b82430;		/* Red */
	--color2: #aaa;			/* Grey */
	--color3: #999;		/* Light blue */
	--text-color: #666;
	--link-color: #b82430;
	--hover-color: #ac131f;
	--main-font: 'Open sans';
	--header-font: 'Roboto';
	
	/* CSS colors for buttons  */
	--button-primary: #3d7dff;
	--button-primary-hover: #7ea9ff;
	--button-secondary: #666;
	--button-secondary-hover: #999;
	--button-success: #ac131f;
	--button-success-hover: #b82430;	
}
/* End of CSS color set-up */

html,
body {
	background: #fff;
	background-attachment: fixed;
	font-family: var(--main-font), sans-serif;
	color: var(--text-color);
}

a	{
	color: var(--link-color);
	}

a:hover	{
	color: var(--hover-color);
	}


/* START OF FRAMEWORK CSS */
h1, h2, h3, h4, h5, h6	{
	margin-top: 50px;
	margin-bottom: 20px;
	padding: 0;
	font-family: var(--header-font), sans-serif;
	color: var(--color1);
}

h2, .h2 {
    font-size: 200%;
}

.black {
	color: #000;
}

h1.first_h, h2.first_h, h3.first_h, h4.first_h, h5.first_h, h6.first_h	{
	margin-top: 20px;
}

/* END OF FRAMEWORK CSS */

/* START OF TOP BANNER */
div.top_banner	{
	background: var(--color1);
}

div.top_banner div.phone,
div.top_banner div.email {
	padding: 5px 0;
}

div.top_banner div.phone a,
div.top_banner div.email a {
	text-decoration: none;
}

div.top_banner p,
div.top_banner a  {
	color: #fff;
}
/* END OF TOP BANNER */


/* START OF HEADER */
div.header_outer{
		background: var(--color1);
	}
	
div.header_outer div.contact_details div	{
    padding: 20px;
    background: var(--color1);
}
	
div.header_outer div.contact_details p	{
	margin: 0;
	padding: 5px 0;
	color: #fff;
	line-height: 1em;
	font-size: 125%;
	}

div.header_outer div.contact_details p a	{
	color: #fff;
	text-decoration: none;
	font-size: 80%;
	}

div.header_outer div.contact_details p.phone	{
	font-size: 200%;
	}
	
/* END OF HEADER */


/*  START OF NAVIGATION */
/* Change for navigation container background */
.navigation,
div.dropdown-menu  {
	background: #ac131f;
	}
	


/* Background for active page on larger devices */
@media (min-width: 992px) {
	.active .nav-link	{
		background: var(--color2);
		}
		
	}

	/* Enable dropdown menu on hover */
.dropdown:hover .dropdown-menu {
	display: block;
	}

/* Change padding, color and add fade properties for navigation text */
a.nav-link,
div.dropdown-menu a.dropdown-item	{
	padding: 10px 10px!important;
	color: #fff!important;
	/* Fade Property */
	-o-transition: 1s;
	-ms-transition: 1s;
	-moz-transition: 1s;
	-webkit-transition: 1s;
	transition: 1s;	
	}

/* Add fixed width to any fa icons so the text lines up */
a.nav-link span.fa_holder {
    width: 30px;
    display: inline-block;
    text-align: center;
	}

/* Reduce padding to 0 for medium and smaller devices */
@media (max-width: 768px) {
	a.nav-link	{
		padding: 5px!important;
	}
}
	
/* No margin on dropdown menu */
.dropdown-menu	{
	margin: 0;
	border: 0;
	border-radius: 0;
	padding: 0;
	}

/* Change padding, color and add fade properties for navigation text */
a.dropdown-item:hover	{
	background-color: var(--color3)!important;
	color: #fff;
	}

/* Change hover color for navigation text */
a.nav-link:hover	{
	background: var(--color2)!important;
	}

.navbar	{
	background: #ac131f!important;
	width: 100%;
	}
	
.navbar-brand{
	max-width: 75%;
	}
	
@media (max-width: 768px){
	.logo {
		max-width: 100%;
		}
	}


/* Change all 'end' to 'start' to place hamburger on left */
.navbar-toggler {
    -webkit-align-self: flex-end;
    -ms-flex-item-align: end;
    align-self: flex-end;
	}

/* Change border colour of the hamburger menu */
.navbar-light .navbar-toggler	{
	border-color: #fff;
	}

/* To change the hamburger color, edit the RGBA attribute below */
.navbar-light .navbar-toggler-icon	{
	background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255,255,255, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E");
	}

ul.nav li.dropdown:hover ul.dropdown-menu {
    display: block;
}

/* END OF NAVIGATION */

/* START OF CAROUSEL */

/* Fix the image height issue for mobile devices */
.carousel-item.active,
.carousel-item-next,
.carousel-item-prev {
	display: block;
}
	
/* Customise the styling for the carousel overlay */
.carousel-overlay {
	border-right: 12px solid var(--color1);
	padding: 20px;
	position: absolute;
	background: rgba(255,255,255,0.7);
	text-align: center;
	right: 10px;
	top: 10px;
}

.carousel-overlay h3	{
	margin: 0;
	padding: 10px 0;
}
/* END OF CAROUSEL */

/* START OF BUTTON COLOURING */
.btn {
	border-radius: 5px;
	padding: 10px 30px;
}

.btn-primary {
    border: 1px solid #666;
    background: #999;
    color: #fff!important;
}

.btn-primary:hover {
    border: 1px solid #666;
	background: #ac131f;	
}

.btn-secondary {
	background:  var(--button-secondary);
	border-color: var(--button-secondary);
}

.btn-secondary:hover {
	background:  var(--button-secondary-hover);
	border-color: var(--button-secondary);
}

.btn-success {
	background:  var(--button-success);
	border-color: var(--button-success);
}

.btn-success:hover {
	background:  var(--button-success-hover);
	border-color: var(--button-success);
}

.btn-caps	{
	margin-top: 5px;
	padding: 5px 10px;
	font-size: 90%;
    text-transform: uppercase;
	letter-spacing: 1px;
}
/* END OF BUTTON COLOURING */

/* START OF WEBPAGE */

/* Webpage container styling */
.container {
	max-width: 1320px;
}

.webpage {
	border-top: 1px solid #ddd;
	border-left: 1px solid #ddd;
	border-right: 1px solid #ddd;
	background: #f9f9f9;
}

div.grey-border{
	border: 1px solid #ccc; 
}

div.banner {
	padding: 5px;
	background: var(--color2);
	width: 100%;
    margin-bottom: 15px;
}

div.banner p {
    padding: 5px;
    color: #fff;
    text-align: center;
    margin: 0px;
}

div.banner p a {
    color: #fff!important;
}

a.no_underline:hover {
	text-decoration: none;
}

div.conference {
	background: #eee;
	border: 1px solid #ddd;
	margin: 15px 0;
    padding-bottom: 15px;
}

.card-img {
	border-radius: 0!important;
}

div.conference p {
	margin: 5px 0;
}

div.conference a,
div.conference a:hover {
	color: #000!important;
	text-decoration: none;
}

.nav-tabs .nav-link.active, .nav-tabs .nav-item.show .nav-link {
	color: #495057!important;
	background-color: #eee;
	border-color: #dee2e6;
}

.nav-tabs .nav-link {
    border: 1px solid #dee2e6;
    border-top-left-radius: 0.25rem;
    border-top-right-radius: 0.25rem;
    color: #495057!important;
    border-color: #dee2e6;
    margin-right: 5px;
}

.nav-tabs .nav-link:hover, .nav-tabs .nav-link:focus {
    border-color: #e9ecef #e9ecef #dee2e6;
    background: #eee!important;
}

/* Medium devices (tablets, 768px and up) */
@media (max-width: 992px) { 
	/* Container width auto to remove webpage gap on mobile */
	.container {
		/* width: auto; */
	}
}

@media (max-width: 992px) {
	div.fixed_social_media {
		display: none;
	}
}

div.fixed_social_media {
    border-radius: 5px 0 0 5px;
    padding: 3px 8px 5px;
    position: absolute;
    top: 274px;
    right: 0;
    z-index: 9999;
    position: fixed;
    width: 55px;
    background: rgba(255,255,255,0.5);
	}
	
img.fixed_social_icon	{
	margin: 2px 0;
	}	
	
section.pages_bg,
div.bg1 {
	background: #fff!important;
}

section.pages_bg div.container {
	background: #fff!important;
	padding: 16px 0; 
}

section.bg_white {
	background: #fff;
	padding: 60px 0;
}

section.bg_white div {
	background: #fff;
}

section.bg_grey {
	background: #eee;
	padding: 60px 0;
}

section.bg_grey div,
div.bg2 {
	background: #eee;
}

section.bg_white div.three_panels div {
    background: #fff;
    border: 1px solid transparent;
    -webkit-transition: 0.3s;
    transition: 0.3s;
}

section.bg_white div.three_panels div:hover {
    background: #eee;
    border: 1px solid #ddd;
}

section.bg_grey div.three_panels div {
    background: #eee;
    border: 1px solid transparent;
    -webkit-transition: 0.3s;
    transition: 0.3s;
}

section.bg_grey div.three_panels div:hover {
    background: #fff;
    border: 1px solid #ddd;
}

section.bg_grey div.three_panels div a {
    color: #666;
}

section.bg_grey div.three_panels div a:hover {
    color: #666;
	text-decoration: none;
}

section.bg_white div.three_panels div a {
    color: #666;
}

section.bg_white div.three_panels div a:hover {
    color: #666;
	text-decoration: none;
}

/* END OF WEBPAGE */

/* ANIMATED CTA BUTTON */

.bb, .bb::before, .bb::after {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
}

.bb {
	width: 200px;
	height: 200px;
	margin: auto;
	background: #fff;
	color: #7293be;
	xbox-shadow: inset 0 0 0 1px rgba(0, 0, 202, 0.5);
	margin: 10px auto;
}
.bb::before, .bb::after {
	content: '';
	z-index: 0;
	margin: -5%;
	box-shadow: inset 0 0 0 2px;
	animation: clipMe 8s linear infinite;
}
.bb::before {
	animation-delay: -4s;
}
.bb:hover::after, .bb:hover::before {
	xbackground-color: rgba(255, 0, 0, 0.3);
}

#cta {
    color: red;
    margin: 0 auto;
    padding: 15px;
    text-align: center;
	font-size: 250%;
}

@keyframes clipMe {
	0%, 100% {
	clip: rect(0px, 220px, 2px, 0px);
	}
	25% {
	clip: rect(0px, 2px, 220px, 0px);
	}
	50% {
	clip: rect(218px, 220px, 220px, 0px);
	}
	75% {
	clip: rect(0px, 220px, 220px, 218px);
	}
}
html,
body {
	height: 100%;
}

body {
	position: relative;
	background-color: #fff;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

/* START OF HOVER PANELS */

div.overlay_heading h2 {
    margin: 0;
    padding: 10px;
    color: #fff;
    text-align: center;
    width: 100%;
    font-size: 150%;
	background: var(--color1);
    -o-transition: .5s;
    -ms-transition: .5s;
    -moz-transition: .5s;
    -webkit-transition: .5s;
    transition: .5s;
}

div.overlay_heading h2:hover {
	background: var(--color2);
}

div.sidebar a:hover {
	text-decoration: none!important;
}

/* END OF HOVER PANELS */

/* START OF CALENDAR PANELS */

a.news_event_index {
    margin: 2% 0;
    border-radius: 10px;
    border: 1px solid #eee;
    padding: 10px;
    background: #f9f9f9;
    text-align: left;
    text-decoration: none;
    display: block;
    font-size: 90%;
    min-height: 85px;
	font-weight: 800;
}

a.news_event_index:hover {
    background: #f6f6f6;
}

a.news_event_index div.date_calendar {
    margin-right: 20px;
    width: 50px;
    font-size: 75%;
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
    float: left;
}

a.news_event_index div.date_calendar p.day {
    padding: 0;
}

a.news_event_index p {
    color: var(--color1);
}

div.date_calendar p.day {
    margin: 0;
    padding: 15px 0;
    border: 1px solid #333;
    border-radius: 10px 10px 0 0;
	background: var(--color1);
    color: #fff;
    font-size: 220%;
}

div.date_calendar p.month {
    margin-top: 0;
    border: 1px solid #ccc;
    border-top: 0;
    border-radius: 0 0 10px 10px;
    padding: 2px 5px 3px;
    font-size: 125%;
    background: #fff;
    color: #333;
}

/* END OF CALENDAR PANELS */

/* START OF COOKIE CONSENT */

div.cc-window {
	padding: 10px 60px!important;
}

/* END OF CALENDAR PANELS */

/* START OF RECAPTCHA ERROR */

p#form_error_message {
	margin: 10px 0;
	padding: 10px;
	border: 2px solid #dc1818;
	border-radius: 4px;
	display: inline-block;
	text-align: center;
	width: 100%;
	}

div.recaptcha_error {
	margin: 10px 0;
	padding: 6px 5px 5px 6px;
	border: 2px solid #dc1818;
	border-radius: 4px;
	display: inline-block;
	}

/* END OF RECAPTCHA ERROR */

/* START OF FOOTER */

/* General styling for the footer */
footer {
	background: #595959;
}

footer h3	{
	margin: 0;
	padding: 10px 0;
	color: #fff;
}

/* Change the default link colour from blue */
footer a,
footer a:hover, 
footer a:focus {
	color: #fff;
}

/* Overwrite/reduce the padding for the footer navbar links */
footer a.nav-link {
	padding: 0!important;
}

/* Remove the dropdown menu and dropdown favicon (footer quicklinks only) */
footer .dropdown-toggle::after,
footer li.nav-item.dropdown div.dropdown-menu {
    display:none;
}

/* Remove the background colour from the quicklinks */
footer a.nav-link:hover,
footer li.nav-item.active a.nav-link {
	background: none!important;
}

/* Underline the quicklinks when you hover */
footer a.nav-link:hover {
	text-decoration: underline;
}

/* Styling for the copyright information strip underneath the footer */
.copyright_info {
	background: #333;
	font-size: 80%;
}

/* END OF FOOTER */


/* Broadbiz panel CSS for use on home page and sidebars */
div.panel	{
	border: 1px solid #ccc;
	background: #fff;
	text-align: center;
	box-shadow: 3px 3px #eee;
}

/* Amend padding to move image away from edge */
div.panel img	{
	padding: 10px 10px 0 10px;
	width: 100%;
}

div.panel div	{
	margin: 10px;
}

div.panel div h2	{
	margin: 0;
	padding: 10px 0;
}

div.panel div p	{
	padding: 0 0 10px;
	line-height: 1.25rem;
}

div.sidebar div.panel	{
	margin-bottom: 10px;
}

img.backtotop	{
	border-radius: 10px;
	opacity: 0.8;
	bottom: 10px;
	right: 10px;
	position: fixed;
	z-index: 9999999;
	background: rgba(100, 100, 100, .8);
	}

/* Checkbox for Bootstrap Form */

.checkbox .cr {
	position: relative;
	display: inline-block;
	border: 1px solid #a9a9a9;
	border-radius: .25em;
	width: 1.3em;
	height: 1.3em;
	float: left;
	margin-right: .5em;
}

.checkbox .cr .cr-icon {
	position: absolute;
	font-size: .8em;
	line-height: 0;
	top: 20%;
	left: 20%;
}

.checkbox label#checkbox {
	float: right;
}

.checkbox label input[type="checkbox"] {
	display: none;
}

.checkbox label input[type="checkbox"] + .cr > .cr-icon {
	transform: scale(3) rotateZ(-20deg);
	opacity: 0;
	transition: all .3s ease-in;
}

.checkbox label input[type="checkbox"]:checked + .cr > .cr-icon {
	transform: scale(1) rotateZ(0deg);
	opacity: 1;
}

.checkbox label input[type="checkbox"]:disabled + .cr {
	opacity: .5;
}

div.partner {
	margin: 20px 0;
	padding: 10px;
	background: #eee;
	}

div.partner h2{ 
	margin: 0 0 15px 0;
	}

div.partner img {
	margin: 10px 0;
	width: 200px;
	display: block;
	}	