
/* Global Styles */
html,body {
    height:100%;
}

body {
	padding-top:116px;
	font-family:'Open Sans', Helvetica, Arial, sans-serif!important;
	font-weight:300;
}

h2 {
	font-size:42px;
	line-height:1em;
	font-weight:300;
}

p {
	font-size:16px;
	line-height:1.5em;
	color:#3c3c3b;

}

ul {
	list-style: disc;
}

a:focus {
	outline:none!important;
}

.green {
	color: #85c226!important;
}

.blue {
	color:#117ec1!important;
}

.orange {
	color: #fda70e!important;
}

.white {
	color:#fff!important;
}

/* Navbar global and desktop styles */
.navbar-brand {
	min-height:94px!important;
}

.navbar {
	background: #efefef;
	box-shadow:none!important;
	border-radius:0!important;
	margin-bottom:0!important;
}

.navbar-default .navbar-nav > .active a {
	filter:none!important;
	background-image:none!important;
}

#rbc-logo {
	width:212px!important;
	padding:0;
	margin-top:21px;
}

#rbc-logo img {
	padding:0!important;
	margin:0!important;
	width:100%;
	height:auto;
}

@media all and (max-width:600px) {
	#capability-content i {
		font-size:50px!important;
	}

	.navbar-default ul li a {
		font-size:11px;
		font-weight:normal;
	}
}

@media all and (max-width:767px) {

	.modal-header h4.modal-title {
		font-size:24px!important;
		line-height:1.2em!important;
	}

	.modal-body h5 {
		font-size:21px!important;
	}


}

@media all and (min-width:768px) {
	.navbar ul {
		position:absolute;
		right:0;
		bottom:0;
	}

	.navbar-default ul li.active a {
		background:none!important;
	}
}

.navbar-default ul li {
	font-size:18px;
	color: #66666c;
	padding-bottom:12px;
	background:none!important;
}

.navbar-default ul li.active {

	border-bottom:solid 10px #85c226;
}

.navbar-default ul li.active a {
	color: #85c226!important;
	background:none!important;
	box-shadow:none!important;

}

/*---------- Mobile navbar: compact bar with left logo ----------*/
@media only screen and (max-width: 767px) {
	body {
		padding-top: 64px !important;
	}

	.navbar-header {
		position: relative;
		width: 100% !important;
		height: 64px;
		margin: 0 !important;
		padding: 0 14px !important;
	}

	/* Compact, left-aligned logo */
	#rbc-logo-mobile {
		float: left;
		display: flex !important;
		align-items: center;
		width: auto !important;
		height: 64px !important;
		min-height: 0 !important;
		padding: 0 !important;
		margin: 0 !important;
	}

	#rbc-logo-mobile img {
		width: auto !important;
		height: 42px !important;
		min-height: 0 !important;
	}
}

/*---------- Global mobile styles ----------*/
@media only screen and (max-width: 767px) {
	h2 {
		font-size:28px!important;
		line-height:1.2em!important;
	}

	#feature-callout {
		text-align:center!important;
	}
}

/*---------- Global tablet styles ----------*/
@media only screen and (min-width:768px) and (max-width: 991px) {
	h2 {
		font-size:34px!important;
		line-height:1.2em!important;
	}

}

/* Neutralise Bootstrap's default navbar-collapse chrome (re-added for mobile below) */
#top-nav.navbar-collapse {
	padding-left: 0;
	padding-right: 0;
	border-top: 0;
	box-shadow: none;
}

/*---------- Nav bar mobile styles (hamburger + dropdown) ----------*/
@media only screen and (max-width: 767px) {

	.navbar .container, .navbar .container .col-sm-12, .navbar {
		width:100%!important;
		padding:0!important;
		margin:0!important;
	}
	.navbar {
		background:#efefef;
	}

	/* ---- Hamburger button ---- */
	.navbar-default .navbar-toggle {
		display: block;
		position: absolute;
		top: 50%;
		right: 12px;
		transform: translateY(-50%);
		margin: 0;
		padding: 11px 10px;
		border: none;
		border-radius: 6px;
		background: transparent;
		z-index: 3;
	}

	.navbar-default .navbar-toggle:hover,
	.navbar-default .navbar-toggle:focus {
		background: rgba(60, 60, 59, 0.08);
	}

	.navbar-default .navbar-toggle .icon-bar {
		display: block;
		width: 26px;
		height: 3px;
		border-radius: 3px;
		background-color: #3c3c3b;
		transition: transform 0.3s var(--ease-out), opacity 0.2s linear;
	}

	.navbar-default .navbar-toggle .icon-bar + .icon-bar {
		margin-top: 5px;
	}

	/* Morph the bars into an X when the menu is open
	   (Bootstrap removes .collapsed from the button while expanded) */
	.navbar-default .navbar-toggle:not(.collapsed) .icon-bar:nth-child(2) {
		transform: translateY(8px) rotate(45deg);
	}
	.navbar-default .navbar-toggle:not(.collapsed) .icon-bar:nth-child(3) {
		opacity: 0;
	}
	.navbar-default .navbar-toggle:not(.collapsed) .icon-bar:nth-child(4) {
		transform: translateY(-8px) rotate(-45deg);
	}

	/* ---- Dropdown menu panel ---- */
	#top-nav {
		clear: both;
		width: 100% !important;
		margin: 0 !important;
		padding: 0 !important;
		background: #ffffff;
		border-top: 1px solid #e4e7ea;
		box-shadow: 0 14px 22px rgba(0, 13, 39, 0.12);
		max-height: calc(100vh - 64px);
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}

	#top-nav .navbar-nav {
		float: none !important;
		width: 100% !important;
		margin: 0 !important;
		line-height: 1.2em !important;
	}

	.navbar-default #top-nav ul li {
		float: none !important;
		width: 100% !important;
		margin: 0 !important;
		padding: 0 !important;
		border-right: none;
		border-bottom: 1px solid #eef0f2;
	}

	.navbar-default #top-nav ul li:last-child {
		border-bottom: none;
	}

	.navbar-default #top-nav ul li a {
		display: block;
		width: 100%;
		padding: 16px 22px !important;
		font-size: 16px;
		font-weight: 400;
		text-align: left;
		color: #3c3c3b !important;
		transition: background 0.2s var(--ease-soft), color 0.2s var(--ease-soft), padding-left 0.2s var(--ease-soft);
	}

	.navbar-default #top-nav ul li a:hover,
	.navbar-default #top-nav ul li a:focus {
		background: #f4f6f8;
		color: #117ec1 !important;
		padding-left: 26px !important;
	}

	.navbar-default #top-nav ul li.active {
		background: #85c226 !important;
		border-bottom: none;
	}

	.navbar-default #top-nav ul li.active a {
		color: #fff !important;
	}

}

/*---------- Navbar tablet styles ----------*/
@media only screen and (min-width:768px) and (max-width: 991px) {
	#top-nav li a {
		font-size:14px;
	}

	.navbar-default ul li a {
		padding-left:10px;
		padding-right:10px;
	}

}

/* Global button styles */

.btn {
	position:relative;
	border-radius:2px;
	color:#fff;
	font-weight:300;
	font-size:16px;
	line-height:1em!important;
	padding:.8em 1.2em;
}

.btn-fixed-width {
	width:200px;
	text-align:center;
}

.btn-blue {
	background: #117ec1;
	box-shadow: 0 4px 0 #0d5f91;
	border:none;
	
}

.btn-blue:hover {
	background: #0d5f91;
	box-shadow: 0 4px 0 #093f61;
	color:#ccc;
}

.btn-blue:active {
	box-shadow:0 2px 0 #093f61;
	top:4px;
}



.btn-blue:visited {
	color:#fff;
}

.btn-orange {
	background: #fda70e;
	box-shadow: 0 4px 0 #be7d0b;
	border:none;
	
}

.btn-orange:hover {
	background: #be5700;
	box-shadow: 0 4px 0 #8f4100;
	color:#ccc;
}

.btn-orange:active {
	box-shadow:0 2px 0 #8f4100;
	top:4px;
}



.btn-orange:visited {
	color:#fff;
}

.btn-green {
	background: #117ec1;
	box-shadow: 0 4px 0 #0d5f91;
	border:none;
	
}

.btn-green:hover {
	background: #0d5f91;
	box-shadow: 0 4px 0 #093f61;
	color:#ccc;
}

.btn-green:active {
	box-shadow:0 2px 0 #093f61;
	top:4px;
}



.btn-green:visited {
	color:#fff;
}



.btn i {
	position:relative;
	top:2px;
	margin-right:.3em;
	font-size:1.5em;
}

/* Feature callout section desktop styles */
#feature-callout {
	
	/* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#000d27+0,00000a+100 */
	background: #000d27; /* Old browsers */
	background: -moz-radial-gradient(center, ellipse cover,  #000d27 0%, #00000a 100%); /* FF3.6-15 */
	background: -webkit-radial-gradient(center, ellipse cover,  #000d27 0%,#00000a 100%); /* Chrome10-25,Safari5.1-6 */
	background: radial-gradient(ellipse at center,  #000d27 0%,#00000a 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#000d27', endColorstr='#00000a',GradientType=1 ); /* IE6-9 fallback on horizontal gradient */
}

#feature-callout .container {
	position:relative;
}

#callout-text {
	padding-top:4em;
	padding-bottom:5em;
}

#feature-callout h2 {
	color:#fff;
	font-size:48px;
	margin-bottom:1em;
	font-weight:bold;
}

#feature-mark {
	background: url('../images/feature-callout-rbc-mark.png') right bottom no-repeat;
	background-size: contain;
	position:absolute;
	bottom:0;
	right:0;
	height:90%;
}

/* Content sections desktop styles */

.content-section {
	padding:8em 0;
	border-top:solid 1px #f5f5f5;
}

.shaded-bg {
	background:#fafafa;
}


/*---------- Content section mobile styles ----------*/
@media only screen and (max-width: 767px) {
	.content-section {
		padding:6em 0;

	}

	section h2 {
		/*margin-top:0!important;*/
		text-align:center!important;
		width:100%;
	}

	section hr {
		border-bottom: solid 1px #b1b1b1!important;
		border-top:none!important;
		width:100%!important;
		left:0!important;
	}
}

/* Intro section styles desktop */
#intro-head {
	width:60%!important;
	text-align:right;
	margin-right:-30px;
	margin-top:55px;
}
#intro-head h2, #intro-head a.btn {
	margin-right:111px;
}



#hide-hr {
	width:100%;
	padding:0;
	margin:0;
	margin-top:-10px;
	height:2px;
	position:relative;
	left:0;
	top:21px;
	background:#fff;
}

#intro hr {
	margin-right:0;
	color:#cccfd4;
	border:solid 1px #cccfd4;
	border-bottom:none;
}

#intro-text {
	display:table-cell;
	width:40%!important;
}
.content-bracket {
	display:table-cell;
	position:absolute;
	z-index:2!important;
	height:100%;
	width:15px;
	background:#fff;
	border-top: solid 1px #cccfd4;
	border-left: solid 1px #cccfd4;
	border-bottom: solid 1px #cccfd4;
}

.content-bracket-hide {
	width:30px;
	z-index:1!important;
	
	background:#fff;
	top:-1px;
	left:-1px;
	height:105%;
}

#intro-text-spiel {
	display:table-cell;
	width:94%;
	padding:9% 3% 9% 6%;
}


/*---------- Intro section mobile styles ----------*/
@media only screen and (max-width: 767px) {
	
	#intro-head {
		width:100%!important;
		text-align:center!important;
		margin-top:0;
	}

	#intro-text {
		width:100%!important;
	}

	#intro-text p {
		margin-bottom:1em;
	}

	#intro-text p:last-child {
		margin-bottom:2em;
	}



	#intro-text-spiel {
		padding:0!important;
		width:100%!important;
	}

	#intro h2 {
		width:100%!important;
		
		margin:0 0 1em 0;
	}



}

/*---------- Intro tablet styles ----------*/
@media only screen and (min-width:768px) and (max-width: 991px) {
	#intro-head {
		width:50%!important;
	}

	#intro-text {
		width:50%!important;
	}

	#intro-head h2, #intro-head .btn {
		margin-right:50px!important;
	}	
}


/* Capability section desktop styles */

#capability-header hr {
	clear:both;
	border-bottom: solid 1px #b1b1b1;
}

#capability-header > h2 {
	float:left;
	margin-bottom:.5em;
}

#capability-header > a {
	float:right;
	padding-right:0;
	position:relative;
	top:26px;
}

#capability-content ul {
	display:block;
	margin:.5em 0 0 0;
	padding:0 0 0 0;
}

#capability-content ul li {
	display:block;
	margin-bottom:30px;

}

#capability-content ul li > a { 
	display:block;
	clear:both;
	background:#85c226;
	height:150px;
	padding:0;
	margin:0;
}

.modal .modal-dialog .modal-content .modal-body ul, #capability-content .modal-body ul {
	list-style:disc!important;
	padding-left:1em;
	text-align:left;
	margin-left:1em;
}

.modal .modal-dialog .modal-content .modal-body ul li, #capability-content .modal-body ul li {
	margin-bottom:.5em!important;
	font-size:16px;
	display:list-item;



}


#capability-content ul li > a:hover {
	background:#fda70e;
}

#capability-content ul li > a:focus {
	outline:none!important;	
}

#capability-content ul li:first-child > a {
	border-radius:8px 0 0 0;
}

#capability-content ul li:nth-child(3n) > a {
	border-radius:0 8px 0 0;
} 

#capability-content ul li:nth-child(4n) > a {
	border-radius:0 0 0 8px;
} 

#capability-content ul li:last-child > a {
	border-radius:0 0 8px 0;
} 

#capability-content h4 {
	font-size:14px;
	font-weight:300;
	line-height:1.5em;
}

#capability-content div.icon {
	float:left;
	width:33%;
  	position: relative;
  	top: 50%;
  	transform: translateY(-50%);
  	padding-left:24px;

}

#capability-content div.text {
	float:right;
	width:67%;
	padding:0 24px 0 12px;
  	position: relative;
  	top: 50%;
  	transform: translateY(-50%)
	
}

#capability-content i {
	font-size:72px;
	line-height:116px;
	height:116px
	
}

#capability-content h4 {

}

.modal-content {
	border-radius:2px!important;
}

.modal-header h4{
	font-size:30px!important;
	color:#3c3c3b!important;
} 

/*---------- Capability section mobile styles ----------*/
@media only screen and (max-width: 767px) {

	#capability-content ul li {
		margin-bottom:15px!important;
	}
	#capability-content ul li > a {
		border-radius:0!important;
	}
	#capability-content ul li:first-child > a {
		border-radius:8px 8px 0 0!important;
	} 

	#capability-content ul li:last-child > a {
		border-radius:0 0 8px 8px!important;
	}
}

/*---------- Capability tablet styles ----------*/
@media only screen and (min-width:768px) and (max-width: 991px) {
	#capability-content ul li > a {
		border-radius:0!important;
	}

	#capability-content ul li:first-child > a {
	border-radius:8px 0 0 0!important;
	}

	#capability-content ul li:nth-child(2n) > a {
		border-radius:0 8px 0 0!important;
	}

	#capability-content ul li:nth-child(4n) > a {
		border-radius:0 !important;
	} 

	#capability-content ul li:nth-child(5n) > a {
		border-radius:0 0 0 8px!important;
	} 

	#capability-content ul li:last-child > a {
		border-radius:0 0 8px 0!important;
	} 
}

/* ---------- People section styles ---------- */
.people-extras {
	text-align:center;
}

#principal-div {
	border-top: solid 1px #f5f5f5!important;
	margin-top:3em!important;
	padding-top:60px;
}

.people-extras > img {
	width:100%;
	position:relative;
	z-index:99;
	margin-bottom:2em;
	margin-top:-54px;
}

img.headshot {
	border-radius:50%;
	border:solid 8px #d9d9d9;
}

#main-people-div .people-extras > img {
	margin-top:-90px!important;
}

.people-extras a {
	margin-bottom:1em;
}

.left-people hr {
	z-index:1;
	position:relative;
	left:-5%;
	width:105%;
}

#people-main hr {
	border-top:solid 1px #383330;
}

#people div div.container {
	padding-top:90px;
}

#people div.container:first-child {
	padding-top:0!important;
}

.right-people hr {
	z-index:1;
	position:relative;
	
	width:105%;
	border-top:solid 1px #d9d9d9;
}

section#people div .container {
	margin-top:60px;
}

h3.position {
	font-size:24px;
	margin-top:0!important;
	color:#9c9b9b;
	font-weight:300;
	line-height:24px;
}

/*---------- People section mobile styles ----------*/
@media only screen and (max-width: 767px) {
	section#people div .container {
		margin-top:0;
	}

	#people-main, #people-staff-1 {
		clear:both!important;
	}
	
	#main-people-div .people-extras > img {
		margin-top:0!important;
	}

	#people-main hr {
		width:100%!important;
		left:0!important;
	}

	#people-main .btn-fixed-width, #people-staff-1 .btn-fixed-width {
		margin-top:1em!important;
		margin-left:auto!important;
		margin-right:auto!important;
		width:260px!important;
	}
	
	#people-main .btn-fixed-width:first-child, #people-staff-1 .btn-fixed-width:first-child {
		margin-top: 2em!important;
		
	}

	h3.position {
		width:100%;
		text-align:center;
	}

	#principal-div {
		padding-top:96px!important;
	}




}

/*---------- People tablet styles ----------*/
@media only screen and (min-width:768px) and (max-width: 991px) {
	#people-main {
		margin-top:-60px;
	}

	#people-main .btn-fixed-width {
		margin-top: 2em!important;
		width:300px!important;
	}

	#people-main hr {
		width:110%!important;
		left:-10%!important;
		margin-right:0;
	}

	#people-staff-1 {
		margin-top:-60px!important;
	}

	#people-staff-1 hr {
		width:110%!important;
		left:0%!important;
	}

}

/*---------- People landscape tablet styles ----------*/
@media only screen and (min-width:992px) and (max-width: 1199px) {
	#people-main, #people-staff-1 {
		margin-top:-30px;
	}
}

/*-------- Project Section Styles ----------*/

ul#projects-list {
	list-style:none;
	padding:0;
	margin:0;
}

ul#projects-list > li 
{
	cursor:pointer;
	margin:0;
	padding:0;
	display:block;
	position:relative;
	text-align:center;
}

ul#projects-list li img {
	width:100%;
} 

ul#projects-list li h4 {
	position:absolute;
	display:block;
	font-size:16px;
	font-weight:300;
	color:#fff;
	left:0;
	right:0;
	margin:0 auto;
	padding:0 1em;
	bottom:2em;
	z-index:2;
}

.project-item i {
	display:block;
	font-size:72px;
	color:#fff;
	position:absolute;
	left:0;
	right:0;
	top: 50%;
  	transform: translateY(-50%);
}

ul#projects-list li div.project-shading {
	
	position:absolute;
	z-index:1;
	background:#000;
	opacity:.65;
	top:0;
	left:0;
	bottom:0;
	right:0;
}

#projects .full-width-heading {
	background:#f5f5f5;
	padding-top:.5em;
	padding-bottom:.7em;
}

.project-image-gallery {
	padding:1em 0;
	text-align:center;
}

.modal-body h5 {
	font-size:24px;
	font-weight:300;
}


.modal-body img {
	width:100%;
}

.carousel {
	border:solid 5px #d9d9d9;
}
.carousel-caption h3, .carousel-caption p {
	color:#fff;
} 

.carousel-indicators li {
	float:left;
	display:inline;
	margin-right:1em!important;

}

.project-modal .carousel-indicators {
	width:100%;
	text-align:center;
	margin-left:-3%!important;
}

.carousel-indicators ol {
	display:inline-table;
	left:0;

}

.carousel-indicators li:last-child {
	display:inline;
	margin-right:0;
}

.project-modal .modal-body ul {
	text-align:left!important;
	list-style:disc!important;
}

.project-modal .modal-body ul li {
	font-size:16px;
	margin-bottom:.5em;
}

@media only screen and (max-width:767px) {


	h4.modal-title {
		font-size:24px!important;
	}

	.modal-body h5 {
		font-size:18px;
		font-weight:300;
	}

	.carousel-caption h3 {
		font-size:18px!important;
	} 

	.project-item i {
		font-size:84px!important;
	}
}

/*---------- Project tablet styles ----------*/
@media only screen and (min-width:768px) and (max-width: 991px) {
	ul#projects-list li h4 {
	
		font-size:14px;
		font-weight:normal;
		bottom:1em;
	
	}

	h4.modal-title {
		font-size:28px!important;
	}

	.modal-body h5 {
		font-size:21px;
		font-weight:300;
	}

	.carousel-caption h3 {
		font-size:21px!important;
	} 

	.project-item i {
		font-size:60px!important;
	}
}
/*---------- Contact section styles ----------*/

section#contact {
	clear:both!important;
}
#contact-details dt {
	margin-top:1em;
	margin-bottom:.5em;
	font-size:20px;
	font-weight:bold;
}

#contact-details dt:first-child  {
	margin-top:0;
}
#contact-details dd p {
	line-height:1em;
}

#enquiry-form form {
	padding-top:1em;
}

span.input-group-addon {
	box-shadow: 0 0 0 rgba(102,175,233,.6);
}

#enquiry-form input, #enquiry-form textarea, span.input-group-addon {
	border: solid 1px #000d27;
}

#enquiry-form input:focus, #enquiry-form textarea:focus {
	border: solid 1px #117ec1;
	box-shadow:none;
	color:#117ec1;
}

@media only screen and (max-width:767px) {
	#enquiry-form {
		padding-top:2em!important;
	}

	section#contact h2:first-child {
		margin-top:0!important;
	}
}

/*---------- Footer styles ----------*/

footer {
	padding:1em 0;
	background: #000d27; /* Old browsers */
	background: -moz-linear-gradient(left,  #000d27 0%, #00000a 100%); /* FF3.6-15 */
	background: -webkit-linear-gradient(left,  #000d27 0%,#00000a 100%); /* Chrome10-25,Safari5.1-6 */
	background: linear-gradient(to right,  #000d27 0%,#00000a 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#000d27', endColorstr='#00000a',GradientType=1 ); /* IE6-9 */
}

footer .container {
	position:relative;
}

ul#footer-links {
	list-style:none;
	margin:2em 0 0 0;
	padding:0;
}

ul#footer-links li {
	float:left;
	margin-right:4em;
}

ul#footer-links li a, ul#footer-links li a:hover, ul#footer-links li a:visited, ul#footer-links li a:active { 
	text-decoration:none!important;
}

ul#footer-links li a {
	color:#a2b9c7;
}



ul#footer-links li a:hover {
	text-decoration:none;
	color:#fff;
}

#copyright {
	clear:both;
	padding-top:50px;
}

#copyright p {
	font-size:14px;
	color:#a2b9c7;
}

#copyright p.madeby, #copyright p.madeby a {
	font-size:12px;
	color:#a2b9c7;
}

#footer-logo
{
	position:absolute;
	right:15px;
	bottom:15px;
}

#footer-logo img {
	width:100%;
	opacity:.3;
}

/*---------- Footer mobile styles ----------*/
@media only screen and (max-width:767px) {
	footer, ul#footer-links {
		text-align:center!important;
	}
	
	ul#footer-links {
		float:none!important;
		display:block!important;
		margin-left:auto!important;
		margin-right:auto!important;
	}

	ul#footer-links li {
		display:block;
		width:100%;
		padding:.5em 0;
		text-align:center;
	}

	ul#footer-links li a {
		text-align:center;
	}

	#footer-logo {
		display:none;
	}
}

/*---------- Footer tablet styles ----------*/
@media only screen and (min-width:768px) and (max-width: 1199px) {
	ul#footer-links li {
		float:left;
		margin-right:1.5em;
	}

	ul#footer-links li a {
		font-size:14px;
	}
}




/*---------- Timeline Styles ----------*/
/* -------------------------------- 

Primary style

-------------------------------- */

#close-timeline {
	float:right;
	color:#fff;
	position:relative;
	top:42px;
}

#timeline-modal .modal-dialog {
	width:992px!important;
}

#timeline-modal .modal-body {
  overflow-y: auto;
}


#timeline-modal .modal-body {
	padding-top:0!important;
	padding-bottom:0!important;
}

#close-timeline i {
	color:red;
}

#timeline-heading {
	float:left;
	padding:16px 0 .5em 0;
	color:#fff;
}

#cd-timeline * {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#cd-timeline *, #cd-timeline *:after, #cd-timeline *:before {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

#cd-timeline {
  	font-size: 100%;
 	color: #7f8c97;
  	background-color: #e9f0f5;
  	padding:2em!important;
  	margin:0!important;
}

/*---------- Timeline tablet styles ----------*/
@media only screen and (min-width:768px) and (max-width: 991px) {
	#timeline-modal .modal-dialog {
		width:700px!important;
	}

	#timeline-modal h2 {
		font-size:24px!important;
	}

	#timeline-modal i {
		font-size:30px!important;
	}

	#timeline-modal span.cd-date {
		font-size:18px!important;
	}

	#cd-timeline::before {
		left:45px!important;
	}

}

/*---------- Timeline tablet styles ----------*/
@media only screen and (max-width: 767px) {
	#timeline-modal .modal-dialog {
		width:auto!important;

	}

	#timeline-modal h2 {
		text-align:left!important;
		font-size:18px!important;
	}

	#timeline-modal i {
		font-size:30px!important;
	}

	#timeline-modal span.cd-date {
		font-size:18px!important;
	}

	#cd-timeline::before {
		left:45px!important;
	}

}

/* -------------------------------- 

Modules - reusable parts of our design

-------------------------------- */
.cd-container {
  /* this class is used to give a max-width to the element it is applied to, and center it horizontally when it reaches that max-width */
  width: 90%;
  max-width: 1170px;
  margin: 0 auto;
}
.cd-container::after {
  /* clearfix */
  content: '';
  display: table;
  clear: both;
}

/* -------------------------------- 

Main components 

-------------------------------- */
header {
  height: 200px;
  line-height: 200px;
  text-align: center;
  background: #303e49;
}
header h1 {
  color: white;
  font-size: 42px;
 
}
@media only screen and (min-width: 1170px) {
  header {
    height: 300px;
    line-height: 300px;
  }
  header h1 {
    font-size: 30px;
   
  }
}

#cd-timeline .cd-timeline-img {
	text-align:center;
}

#cd-timeline .cd-timeline-img i {
	font-size:42px;
	color:#fff;
	padding:0;
	position: relative;
  	top: 50%;
  	transform: translateY(-50%);
}

#cd-timeline {
  position: relative;
  padding: 0 0;
  margin-top: 2em;
  margin-bottom: 0;
}
#cd-timeline::before {
  /* this is the vertical line */
  content: '';
  position: absolute;
  top: 0;
  left: 18px;
  height: 100%;
  width: 4px;
  background: #d7e4ed;
}
@media only screen and (min-width: 1170px) {
  #cd-timeline {
    margin-top: 0;
    margin-bottom: 0;
  }
  #cd-timeline::before {
    left: 50%;
    margin-left: -2px;
  }
}

.cd-timeline-block {
  position: relative;
  margin: 2em 0;
}
.cd-timeline-block:after {
  content: "";
  display: table;
  clear: both;
}
.cd-timeline-block:first-child {
  margin-top: 0;
}
.cd-timeline-block:last-child {
  margin-bottom: 0;
}
@media only screen and (min-width: 1170px) {
  .cd-timeline-block {
    margin: 4em 0;
  }
  .cd-timeline-block:first-child {
    margin-top: 0;
  }
  .cd-timeline-block:last-child {
    margin-bottom: 0;
  }
}

.cd-timeline-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0 0 0 4px white, inset 0 2px 0 rgba(0, 0, 0, 0.08), 0 3px 0 4px rgba(0, 0, 0, 0.05);
}
.cd-timeline-img img {
  display: block;
  width: 24px;
  height: 24px;
  position: relative;
  left: 50%;
  top: 50%;
  margin-left: -12px;
  margin-top: -12px;
}
.cd-timeline-img.cd-picture {
  background: #75ce66;
}
.cd-timeline-img.cd-movie {
  background: #c03b44;
}
.cd-timeline-img.cd-location {
  background: #f0ca45;
}
@media only screen and (min-width: 1170px) {
  .cd-timeline-img {
    width: 60px;
    height: 60px;
    left: 50%;
    margin-left: -30px;
    /* Force Hardware Acceleration in WebKit */
    -webkit-transform: translateZ(0);
    -webkit-backface-visibility: hidden;
  }
  .cssanimations .cd-timeline-img.is-hidden {
    visibility: hidden;
  }
  .cssanimations .cd-timeline-img.bounce-in {
    visibility: visible;
    -webkit-animation: cd-bounce-1 0.6s;
    -moz-animation: cd-bounce-1 0.6s;
    animation: cd-bounce-1 0.6s;
  }
}

@-webkit-keyframes cd-bounce-1 {
  0% {
    opacity: 0;
    -webkit-transform: scale(0.5);
  }

  60% {
    opacity: 1;
    -webkit-transform: scale(1.2);
  }

  100% {
    -webkit-transform: scale(1);
  }
}
@-moz-keyframes cd-bounce-1 {
  0% {
    opacity: 0;
    -moz-transform: scale(0.5);
  }

  60% {
    opacity: 1;
    -moz-transform: scale(1.2);
  }

  100% {
    -moz-transform: scale(1);
  }
}
@keyframes cd-bounce-1 {
  0% {
    opacity: 0;
    -webkit-transform: scale(0.5);
    -moz-transform: scale(0.5);
    -ms-transform: scale(0.5);
    -o-transform: scale(0.5);
    transform: scale(0.5);
  }

  60% {
    opacity: 1;
    -webkit-transform: scale(1.2);
    -moz-transform: scale(1.2);
    -ms-transform: scale(1.2);
    -o-transform: scale(1.2);
    transform: scale(1.2);
  }

  100% {
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    -o-transform: scale(1);
    transform: scale(1);
  }
}
.cd-timeline-content {
  position: relative;
  margin-left: 60px;
  background: white;
  border-radius: 0.25em;
  padding: 1em;
  box-shadow: 0 3px 0 #d7e4ed;
}
.cd-timeline-content:after {
  content: "";
  display: table;
  clear: both;
}
.cd-timeline-content h2 {
  color: #303e49;
}
.cd-timeline-content p, .cd-timeline-content .cd-read-more, .cd-timeline-content .cd-date {
  font-size: 16px;
}
.cd-timeline-content .cd-read-more, .cd-timeline-content .cd-date {
  display: inline-block;
}
.cd-timeline-content p {
  margin: 1em 0;
  line-height: 1.6;
}
.cd-timeline-content .cd-read-more {
  float: right;
  padding: .8em 1em;
  background: #acb7c0;
  color: white;
  border-radius: 0.25em;
}
.no-touch .cd-timeline-content .cd-read-more:hover {
  background-color: #bac4cb;
}
.cd-timeline-content .cd-date {
  float: left;
  padding: .8em 0;
  opacity: .7;
}
.cd-timeline-content::before {
  content: '';
  position: absolute;
  top: 16px;
  right: 100%;
  height: 0;
  width: 0;
  border: 7px solid transparent;
  border-right: 7px solid white;
}
@media only screen and (min-width: 768px) {
  .cd-timeline-content h2 {
    font-size: 24px;
   
  }
  .cd-timeline-content p {
    font-size: 16px;

  }
  .cd-timeline-content .cd-read-more, .cd-timeline-content .cd-date {
    font-size: 14px;

  }
}
@media only screen and (min-width: 1170px) {
  .cd-timeline-content {
    margin-left: 0;
    padding: 1.6em;
    width: 45%;
  }
  .cd-timeline-content::before {
    top: 24px;
    left: 100%;
    border-color: transparent;
    border-left-color: white;
  }
  .cd-timeline-content .cd-read-more {
    float: left;
  }
  .cd-timeline-content .cd-date {
    position: absolute;
    width: 100%;
    left: 122%;
    top: 6px;
    font-size: 16px;

  }
  .cd-timeline-block:nth-child(even) .cd-timeline-content {
    float: right;
  }
  .cd-timeline-block:nth-child(even) .cd-timeline-content::before {
    top: 24px;
    left: auto;
    right: 100%;
    border-color: transparent;
    border-right-color: white;
  }
  .cd-timeline-block:nth-child(even) .cd-timeline-content .cd-read-more {
    float: right;
  }
  .cd-timeline-block:nth-child(even) .cd-timeline-content .cd-date {
    left: auto;
    right: 122%;
    text-align: right;
  }
  .cssanimations .cd-timeline-content.is-hidden {
    visibility: hidden;
  }
  .cssanimations .cd-timeline-content.bounce-in {
    visibility: visible;
    -webkit-animation: cd-bounce-2 0.6s;
    -moz-animation: cd-bounce-2 0.6s;
    animation: cd-bounce-2 0.6s;
  }
}

@media only screen and (min-width: 1170px) {
  /* inverse bounce effect on even content blocks */
  .cssanimations .cd-timeline-block:nth-child(even) .cd-timeline-content.bounce-in {
    -webkit-animation: cd-bounce-2-inverse 0.6s;
    -moz-animation: cd-bounce-2-inverse 0.6s;
    animation: cd-bounce-2-inverse 0.6s;
  }
}
@-webkit-keyframes cd-bounce-2 {
  0% {
    opacity: 0;
    -webkit-transform: translateX(-100px);
  }

  60% {
    opacity: 1;
    -webkit-transform: translateX(20px);
  }

  100% {
    -webkit-transform: translateX(0);
  }
}
@-moz-keyframes cd-bounce-2 {
  0% {
    opacity: 0;
    -moz-transform: translateX(-100px);
  }

  60% {
    opacity: 1;
    -moz-transform: translateX(20px);
  }

  100% {
    -moz-transform: translateX(0);
  }
}
@keyframes cd-bounce-2 {
  0% {
    opacity: 0;
    -webkit-transform: translateX(-100px);
    -moz-transform: translateX(-100px);
    -ms-transform: translateX(-100px);
    -o-transform: translateX(-100px);
    transform: translateX(-100px);
  }

  60% {
    opacity: 1;
    -webkit-transform: translateX(20px);
    -moz-transform: translateX(20px);
    -ms-transform: translateX(20px);
    -o-transform: translateX(20px);
    transform: translateX(20px);
  }

  100% {
    -webkit-transform: translateX(0);
    -moz-transform: translateX(0);
    -ms-transform: translateX(0);
    -o-transform: translateX(0);
    transform: translateX(0);
  }
}
@-webkit-keyframes cd-bounce-2-inverse {
  0% {
    opacity: 0;
    -webkit-transform: translateX(100px);
  }

  60% {
    opacity: 1;
    -webkit-transform: translateX(-20px);
  }

  100% {
    -webkit-transform: translateX(0);
  }
}
@-moz-keyframes cd-bounce-2-inverse {
  0% {
    opacity: 0;
    -moz-transform: translateX(100px);
  }

  60% {
    opacity: 1;
    -moz-transform: translateX(-20px);
  }

  100% {
    -moz-transform: translateX(0);
  }
}
@keyframes cd-bounce-2-inverse {
  0% {
    opacity: 0;
    -webkit-transform: translateX(100px);
    -moz-transform: translateX(100px);
    -ms-transform: translateX(100px);
    -o-transform: translateX(100px);
    transform: translateX(100px);
  }

  60% {
    opacity: 1;
    -webkit-transform: translateX(-20px);
    -moz-transform: translateX(-20px);
    -ms-transform: translateX(-20px);
    -o-transform: translateX(-20px);
    transform: translateX(-20px);
  }

  100% {
    -webkit-transform: translateX(0);
    -moz-transform: translateX(0);
    -ms-transform: translateX(0);
    -o-transform: translateX(0);
    transform: translateX(0);
  }
}


/* =================================================================
   MODERNISATION (2026)
   Modern modals, animations and mobile refinements.
   Everything below is additive and overrides the legacy rules above.
   ================================================================= */

:root {
	--rbc-blue: #117ec1;
	--rbc-blue-dark: #0d5f91;
	--rbc-blue-darker: #093f61;
	--rbc-green: #85c226;
	--rbc-orange: #fda70e;
	--rbc-ink: #000d27;
	--rbc-grey: #3c3c3b;
	--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
	--ease-soft: cubic-bezier(0.25, 0.8, 0.25, 1);
	--shadow-sm: 0 2px 8px rgba(0, 13, 39, 0.08);
	--shadow-md: 0 10px 30px rgba(0, 13, 39, 0.12);
	--shadow-lg: 0 30px 70px rgba(0, 13, 39, 0.35);
}

/* NOTE: CSS `scroll-behavior: smooth` is intentionally NOT set here.
   Smooth in-page scrolling is handled by the rbcSmoothScroll() JS tween,
   which calls window.scrollTo() each frame. If the CSS rule were active the
   browser would also try to natively smooth-scroll to each per-frame target,
   fighting the tween and making the scroll speed stutter/surge. */

img {
	max-width: 100%;
}

*:focus-visible {
	outline: 3px solid rgba(17, 126, 193, 0.55);
	outline-offset: 2px;
}

/* ---------- Scroll-reveal animations ---------- */
.reveal {
	opacity: 0;
	transform: translateY(34px);
	transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
	will-change: opacity, transform;
}

.reveal.is-visible {
	opacity: 1;
	transform: none;
	will-change: auto;
}

/* Stagger children (capability tiles, project items) */
.reveal-stagger.is-visible > * {
	animation: rbc-fade-up 0.6s var(--ease-out) backwards;
}

.reveal-stagger.is-visible > *:nth-child(1) { animation-delay: 0.05s; }
.reveal-stagger.is-visible > *:nth-child(2) { animation-delay: 0.12s; }
.reveal-stagger.is-visible > *:nth-child(3) { animation-delay: 0.19s; }
.reveal-stagger.is-visible > *:nth-child(4) { animation-delay: 0.26s; }
.reveal-stagger.is-visible > *:nth-child(5) { animation-delay: 0.33s; }
.reveal-stagger.is-visible > *:nth-child(6) { animation-delay: 0.40s; }
.reveal-stagger.is-visible > *:nth-child(7) { animation-delay: 0.47s; }
.reveal-stagger.is-visible > *:nth-child(8) { animation-delay: 0.54s; }

@keyframes rbc-fade-up {
	from { opacity: 0; transform: translateY(34px); }
	to   { opacity: 1; transform: none; }
}

/* Hero entrance on load */
#callout-text,
#feature-mark {
	animation: rbc-hero-in 0.9s var(--ease-out) both;
}
#feature-mark { animation-delay: 0.15s; }

@keyframes rbc-hero-in {
	from { opacity: 0; transform: translateY(24px); }
	to   { opacity: 1; transform: none; }
}

/* ---------- Navbar polish ---------- */
.navbar {
	transition: box-shadow 0.3s var(--ease-soft), background 0.3s var(--ease-soft);
}

.navbar.scrolled {
	box-shadow: 0 4px 20px rgba(0, 13, 39, 0.12) !important;
}

.navbar-default ul li a {
	transition: color 0.25s var(--ease-soft);
}

.navbar-default ul li.active {
	transition: border-color 0.3s var(--ease-soft), background 0.3s var(--ease-soft);
}

/* ---------- Buttons: smoother, modern feel ---------- */
.btn {
	transition: background 0.25s var(--ease-soft),
	            box-shadow 0.2s var(--ease-soft),
	            transform 0.12s var(--ease-soft),
	            color 0.25s var(--ease-soft);
}

.btn-blue:active,
.btn-green:active,
.btn-orange:active {
	top: 0;
	transform: translateY(4px);
}

.btn:focus,
.btn:active:focus {
	outline: none;
}

/* ---------- Capability tiles: lift + glow on hover ---------- */
#capability-content ul li > a {
	overflow: hidden;
	box-shadow: var(--shadow-sm);
	transition: transform 0.35s var(--ease-out),
	            box-shadow 0.35s var(--ease-out),
	            background 0.35s var(--ease-soft);
	will-change: transform;
}

#capability-content ul li > a:hover,
#capability-content ul li > a:focus {
	transform: translateY(-6px);
	box-shadow: var(--shadow-md);
}

/* ---------- Project grid: CSS-driven hover (replaces jQuery fades) ---------- */
ul#projects-list > li {
	overflow: hidden;
}

ul#projects-list li img {
	display: block;
	transition: transform 0.6s var(--ease-out);
}

ul#projects-list li div.project-shading {
	transition: opacity 0.4s var(--ease-soft);
}

ul#projects-list li h4,
.project-item i {
	transition: opacity 0.35s var(--ease-soft), transform 0.35s var(--ease-out);
}

/* The plus icon starts hidden and fades up on hover */
.project-item i {
	opacity: 0;
	transform: translateY(-50%) scale(0.7);
}

.project-item:hover img {
	transform: scale(1.08);
}

.project-item:hover div.project-shading {
	opacity: 0.4 !important;
}

.project-item:hover i {
	opacity: 1;
	transform: translateY(-50%) scale(1);
}

/* "Read more" hint that slides up on hover */
.project-item .project-readmore {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0.6em;
	z-index: 3;
	text-align: center;
	font-size: 13px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #fff;
	opacity: 0;
	transform: translateY(10px);
	transition: opacity 0.35s var(--ease-soft), transform 0.35s var(--ease-out);
	pointer-events: none;
}

.project-item:hover .project-readmore {
	opacity: 0.85;
	transform: translateY(0);
}

/* ===========================================================
   MODALS — modern look & feel
   =========================================================== */

/* Darkened, blurred backdrop */
.modal-backdrop,
.modal-backdrop.in {
	background-color: var(--rbc-ink);
}

.modal-backdrop.in {
	opacity: 0.55;
}

.modal-open .modal {
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
}

/* Card: rounded, soft shadow, clean edges */
.modal-content {
	border: none;
	border-radius: 16px !important;
	box-shadow: var(--shadow-lg);
	overflow: hidden;
}

/* Header with a brand accent bar */
.modal-header {
	position: relative;
	border-bottom: 1px solid #eef1f4;
	padding: 24px 28px;
}

.modal-header::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 5px;
	background: linear-gradient(90deg, var(--rbc-blue), var(--rbc-green));
}

.modal-header h4.modal-title {
	font-weight: 600;
	color: var(--rbc-grey) !important;
}

.modal-header h4 small {
	color: #9c9b9b;
	font-weight: 300;
}

.modal-body {
	padding: 24px 28px 28px;
}

/* Circular, animated close button */
.modal .close {
	position: absolute;
	top: 18px;
	right: 18px;
	width: 40px;
	height: 40px;
	margin: 0;
	border-radius: 50%;
	background: #f1f3f5;
	color: var(--rbc-grey);
	opacity: 1;
	font-size: 26px;
	line-height: 38px;
	text-align: center;
	text-shadow: none;
	z-index: 5;
	transition: background 0.25s var(--ease-soft),
	            color 0.25s var(--ease-soft),
	            transform 0.3s var(--ease-out);
}

.modal .close:hover {
	background: var(--rbc-blue);
	color: #fff;
	opacity: 1;
	transform: rotate(90deg);
}

.modal .close:focus {
	outline: none;
}

.modal .close:focus-visible {
	outline: 3px solid rgba(17, 126, 193, 0.55);
	outline-offset: 2px;
}

/* Entrance: rise + scale + fade (desktop/tablet) */
.modal.fade .modal-dialog {
	transform: translateY(30px) scale(0.97);
	opacity: 0;
	transition: transform 0.4s var(--ease-out), opacity 0.4s var(--ease-out);
}

.modal.in .modal-dialog {
	transform: none;
	opacity: 1;
}

.modal-dialog {
	margin-top: 40px;
	margin-bottom: 40px;
}

/* Carousel inside project modals */
.project-modal .carousel {
	border: none;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: var(--shadow-sm);
}

.carousel-control {
	transition: background 0.3s var(--ease-soft), opacity 0.3s var(--ease-soft);
}

.carousel-indicators li {
	transition: background 0.25s var(--ease-soft), transform 0.25s var(--ease-soft);
}

/* ---------- Modal mobile: bottom-sheet ---------- */
@media only screen and (max-width: 767px) {
	.modal-dialog {
		position: absolute;
		left: 0;
		right: 0;
		bottom: 0;
		width: 100% !important;
		margin: 0 !important;
	}

	.modal-content {
		border-radius: 20px 20px 0 0 !important;
		max-height: 92vh;
		display: flex;
		flex-direction: column;
	}

	.modal-body {
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}

	/* Grab handle */
	.modal-header::after {
		content: "";
		position: absolute;
		top: 9px;
		left: 50%;
		transform: translateX(-50%);
		width: 42px;
		height: 4px;
		border-radius: 4px;
		background: #d4d9de;
	}

	.modal-header {
		padding-top: 28px;
	}

	/* Slide up from the bottom */
	.modal.fade .modal-dialog {
		transform: translateY(100%);
		opacity: 1;
		transition: transform 0.4s var(--ease-out);
	}

	.modal.in .modal-dialog {
		transform: translateY(0);
	}

	.modal .close {
		top: 16px;
		right: 14px;
	}
}

/* ---------- Form inputs: smooth focus ---------- */
#enquiry-form input,
#enquiry-form textarea,
span.input-group-addon {
	transition: border-color 0.25s var(--ease-soft),
	            background-color 0.25s var(--ease-soft),
	            color 0.25s var(--ease-soft),
	            box-shadow 0.25s var(--ease-soft);
}

#enquiry-form input:focus,
#enquiry-form textarea:focus {
	box-shadow: 0 0 0 3px rgba(17, 126, 193, 0.15);
}

/* ---------- Larger tap targets on mobile nav ---------- */
@media only screen and (max-width: 767px) {
	.navbar-default ul li a {
		padding-top: 12px !important;
		padding-bottom: 12px !important;
	}
}

/* ---------- Respect reduced-motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}

	.reveal {
		opacity: 1 !important;
		transform: none !important;
	}
}


/* =================================================================
   CONTACT FORM — validation states & status messages
   ================================================================= */

/* Honeypot field: hidden from real users, visible to bots */
.hp-field {
	position: absolute !important;
	left: -9999px !important;
	top: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Invalid fields */
.form-group.has-error input.form-control,
.form-group.has-error textarea.form-control {
	border-color: #d9534f !important;
	box-shadow: 0 0 0 3px rgba(217, 83, 79, 0.12) !important;
}

.form-group.has-error .input-group-addon {
	border-color: #d9534f;
	background-color: #f9e4e3;
	color: #d9534f;
}

/* Reserve a consistent gap under each field so the error message
   (positioned absolutely below) never reflows the form layout. */
#enquiry-form-el .form-group {
	position: relative;
	margin-bottom: 26px;
}

.field-error {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	margin-top: 4px;
	color: #d9534f;
	font-size: 13px;
	line-height: 1.3;
}

/* Submit status banner */
.form-status {
	margin-top: 1.2em;
	max-height: 0;
	padding: 0 18px;
	border-radius: 8px;
	font-size: 16px;
	opacity: 0;
	overflow: hidden;
	transition: opacity 0.3s var(--ease-soft), max-height 0.3s var(--ease-soft),
	            padding 0.3s var(--ease-soft);
}

.form-status.show {
	opacity: 1;
	max-height: 240px;
	padding: 14px 18px;
}

.form-status.success {
	background: #eaf6df;
	border: 1px solid #c5e29a;
	color: #4e7a16;
}

.form-status.error {
	background: #fbe6e5;
	border: 1px solid #f0bfbd;
	color: #a94442;
}

/* Disabled submit while sending */
.btn[disabled] {
	opacity: 0.65;
	cursor: not-allowed;
}


/* =================================================================
   EA APPLICATIONS PAGE + ADMIN
   ================================================================= */

/* (Mobile nav is now a hamburger + dropdown — see the nav styles near the top.) */

/* ---- Public document list ---- */
.ea-page #ea-applications {
	min-height: 60vh;
}

.ea-intro {
	margin-bottom: 2em;
	max-width: 720px;
}

.ea-doc-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.ea-doc {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 20px 24px;
	margin-bottom: 16px;
	background: #fff;
	border: 1px solid #e7eaee;
	border-radius: 12px;
	box-shadow: var(--shadow-sm);
	transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.ea-doc:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow-md);
}

.ea-doc-icon {
	flex: 0 0 auto;
	font-size: 42px;
	color: var(--rbc-blue);
	width: 56px;
	text-align: center;
}

.ea-doc-info {
	flex: 1 1 auto;
	min-width: 0;
}

.ea-doc-title {
	font-size: 20px;
	font-weight: 600;
	color: var(--rbc-grey);
	margin: 0 0 6px;
	line-height: 1.3;
}

.ea-doc-meta {
	margin: 0;
	font-size: 13px;
	color: #8a9097;
}

.ea-doc-meta span {
	display: inline-block;
	margin-right: 14px;
}

.ea-doc-type {
	font-weight: 700;
	letter-spacing: 0.06em;
	color: var(--rbc-blue);
}

.ea-doc-actions {
	flex: 0 0 auto;
	display: flex;
	gap: 10px;
}

.ea-doc-actions .btn {
	margin: 0;
}

.ea-empty {
	text-align: center;
	padding: 4em 1em;
	color: #9aa0a6;
}

.ea-empty i {
	font-size: 64px;
	margin-bottom: 0.4em;
	display: block;
}

@media only screen and (max-width: 600px) {
	.ea-doc {
		flex-wrap: wrap;
		gap: 14px;
		padding: 18px;
	}
	.ea-doc-icon {
		font-size: 34px;
		width: 40px;
	}
	.ea-doc-actions {
		flex: 1 0 100%;
	}
	.ea-doc-actions .btn {
		flex: 1 1 0;
		text-align: center;
	}
}

/* ---- Admin pages ---- */
.ea-admin-body {
	background: #f1f4f7;
	padding-top: 0;
	font-family: 'Open Sans', Helvetica, Arial, sans-serif;
	font-weight: 300;
	color: var(--rbc-grey);
}

/* Login card */
.ea-admin-card {
	max-width: 420px;
	margin: 8vh auto;
	background: #fff;
	border-radius: 16px;
	box-shadow: var(--shadow-md);
	padding: 36px 32px;
}

.ea-admin-logo {
	display: block;
	width: 180px;
	margin: 0 auto 18px;
}

.ea-admin-card h1 {
	font-size: 26px;
	text-align: center;
	margin: 0 0 18px;
}

.ea-admin-hint {
	font-size: 14px;
	color: #8a9097;
}

.ea-admin-card .btn-block {
	margin-top: 8px;
}

.ea-admin-back {
	text-align: center;
	margin-top: 18px;
	margin-bottom: 0;
}

/* Dashboard */
.ea-admin-dashboard .container {
	max-width: 1000px;
	padding-top: 28px;
	padding-bottom: 60px;
}

.ea-admin-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 24px;
}

.ea-admin-bar-logo {
	width: 150px;
}

.ea-admin-bar-right {
	display: flex;
	align-items: center;
	gap: 16px;
}

.ea-admin-who {
	font-size: 14px;
	color: #6b7178;
}

.ea-admin-dashboard h1 {
	font-size: 30px;
	margin: 0 0 4px;
}

.ea-admin-panel {
	background: #fff;
	border: 1px solid #e7eaee;
	border-radius: 14px;
	padding: 24px 26px;
	margin-top: 22px;
	box-shadow: var(--shadow-sm);
}

.ea-admin-panel h2 {
	font-size: 22px;
	margin-top: 0;
	margin-bottom: 18px;
}

.ea-admin-table {
	margin-bottom: 0;
}

.ea-admin-table td {
	vertical-align: middle !important;
}

.ea-rename-form {
	display: flex;
	gap: 8px;
	align-items: center;
	max-width: 360px;
}

.ea-rename-form .form-control {
	min-width: 0;
}

.ea-delete-form {
	display: inline;
}


/* =================================================================
   CONTACT SECTION — centered layout (used after the enquiry form
   was disabled, so the details no longer sit alone in a narrow column)
   ================================================================= */

#contact-details h2 {
	text-align: center;
}

#contact-details hr {
	max-width: 120px;
	margin: 0.6em auto 0;
	border: none;
	border-top: 3px solid var(--rbc-green);
}

.ea-contact-lead {
	max-width: 640px;
	margin: 1.4em auto 2.4em;
	text-align: center;
	color: #6b7178;
}

#contact-details .ea-contact-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 26px;
	margin: 0;
}

#contact-details .ea-contact-item {
	flex: 0 1 320px;
	background: #fff;
	border: 1px solid #e7eaee;
	border-radius: 12px;
	box-shadow: var(--shadow-sm);
	padding: 30px 26px;
	text-align: center;
	transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

#contact-details .ea-contact-item:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow-md);
}

#contact-details .ea-contact-item > i {
	display: block;
	font-size: 34px;
	color: var(--rbc-blue);
	margin-bottom: 12px;
}

#contact-details .ea-contact-item dt {
	margin: 0 0 0.5em;
	font-size: 18px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--rbc-grey);
}

#contact-details .ea-contact-item dd {
	margin: 0;
}

#contact-details .ea-contact-item dd p {
	margin: 0;
	line-height: 1.7;
	font-size: 16px;
}

#contact-details .ea-contact-item a {
	color: var(--rbc-blue);
}

#contact-details .ea-contact-item a:hover {
	color: var(--rbc-blue-dark);
	text-decoration: underline;
}
