/* Mobile and responsive polish for the legacy theme. Loaded last from master.css. */
*,
*:before,
*:after {
	box-sizing: border-box;
}

html,
body {
	max-width: 100%;
	overflow-x: hidden;
}

body {
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

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

section {
	width: 100%;
}

nav {
	min-height: 68px;
}

.logo img {
	display: block;
	max-width: 130px;
	height: auto !important;
}

ul.menu li a {
	min-height: 48px;
}

.table {
	table-layout: fixed;
	word-wrap: break-word;
}

.table > thead > tr > th,
.table > tbody > tr > td {
	line-height: 1.45;
	word-break: normal;
	overflow-wrap: anywhere;
}

.form-control {
	max-width: 100%;
}

.btn,
button,
input[type="submit"] {
	white-space: normal;
}

.sliderfull {
	display: block;
}

.mobile-hero-fallback {
	display: none;
}

.slider-titile {
	display: block;
}

.titile-bg h1 {
	line-height: 1;
}

.white-bg p {
	margin-bottom: 14px;
}

#school img,
#services img,
#ourteam img {
	display: block;
	height: auto;
	object-fit: cover;
}

#services .table {
	background: #fff;
}

.responsive-object iframe,
.responsive-object object,
.responsive-object embed {
	padding-right: 0;
}

.contactmap {
	box-shadow: 0 12px 35px rgba(0, 0, 0, .08);
}

.social a {
	overflow-wrap: anywhere;
}

#contact .btn {
	min-height: 44px;
	padding: 12px 18px;
}

.signup-section {
	min-height: 100vh;
	padding-top: 118px !important;
}

.signup-section .container {
	max-width: 980px;
}

.signup-header h2 {
	color: #333 !important;
	margin-bottom: 24px;
}

.signup-form {
	background: #fff;
	border: 1px solid #e5e5e5;
	box-shadow: 0 18px 45px rgba(0, 0, 0, .08);
	display: block;
	margin-bottom: 48px;
	padding: 30px;
	width: 100%;
}

.signup-group {
	border-bottom: 1px solid #ececec;
	margin-bottom: 28px;
	padding-bottom: 24px;
}

.signup-group h3 {
	color: #222;
	font-size: 30px;
	margin-bottom: 18px;
}

.signup-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px 18px;
}

.signup-form .form-group {
	float: none !important;
	margin: 0;
	width: 100%;
}

.signup-form .form-group-wide {
	grid-column: 1 / -1;
}

.signup-form label {
	color: #333;
	display: block;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1.3;
	margin-bottom: 7px;
	text-transform: none;
}

.signup-form .form-control {
	background: #fff;
	border: 1px solid #cfcfcf;
	color: #222;
	font-size: 16px;
	height: 44px;
	line-height: 1.4;
	padding: 10px 12px;
	width: 100%;
}

.signup-form .form-control:focus {
	border-color: #222;
	outline: 2px solid rgba(0, 0, 0, .12);
	outline-offset: 1px;
}

.signup-actions {
	text-align: right;
}

.signup-actions .btn {
	background: #111;
	border-color: #111;
	color: #fff;
	min-width: 170px;
}

@media (max-width: 1199px) {
	ul.menu li a {
		padding-left: 13px;
		padding-right: 13px;
		font-size: 18px;
	}
}

@media (max-width: 1024px) {
	nav {
		left: 0;
		right: 0;
		width: auto;
	}

	nav .container {
		width: 100%;
		padding-left: 14px;
		padding-right: 14px;
	}

	nav .row {
		margin-left: 0;
		margin-right: 0;
	}

	nav [class*="col-"] {
		min-height: 64px;
		padding-left: 0;
		padding-right: 0;
		position: relative;
	}

	.logo {
		max-width: calc(100% - 62px);
	}

	.mm-toggle-wrap {
		float: none;
		margin: 0;
		overflow: visible;
		position: absolute;
		right: 0;
		top: 50%;
		transform: translateY(-50%);
	}

	.mm-toggle {
		min-width: 46px;
		min-height: 46px;
		padding: 9px;
	}

	.mm-toggle img {
		display: block;
		width: 26px;
		height: 26px;
	}
}

@media (max-width: 767px) {
	body {
		font-size: 16px;
		line-height: 1.6;
	}

	h1 {
		font-size: 42px;
	}

	h2 {
		font-size: 38px;
		line-height: 1.05;
	}

	h3 {
		font-size: 28px;
		line-height: 1.15;
	}

	.container {
		width: 100%;
		padding-left: 18px;
		padding-right: 18px;
	}

	.row {
		margin-left: -10px;
		margin-right: -10px;
	}

	[class*="col-"] {
		padding-left: 10px;
		padding-right: 10px;
	}

	.col-padtop,
	#ourteam,
	#gallery,
	#video,
	#contact {
		padding-top: 42px;
	}

	.sliderfull {
		display: none;
	}

	.mobile-hero-fallback {
		background: #fff;
		display: block;
		margin-top: 68px;
		overflow: hidden;
		position: relative;
		width: 100%;
	}

	.mobile-hero-fallback:before {
		content: "";
		display: block;
		padding-top: 60%;
	}

	.mobile-hero-fallback img {
		display: block;
		height: 100%;
		left: 0;
		object-fit: contain;
		object-position: center center;
		opacity: 0;
		position: absolute;
		top: 0;
		transition: opacity .8s ease;
		width: 100%;
	}

	.mobile-hero-fallback img.active {
		opacity: 1;
	}

	.slider-titile .container,
	.slider-titile .row,
	.slider-titile [class*="col-"] {
		float: none !important;
		width: 100%;
		margin-left: 0;
		margin-right: 0;
		padding-left: 0;
		padding-right: 0;
	}

	.slider-titile .pull-right,
	.slider-titile .pull-left {
		float: none !important;
	}

	.titile-bg,
	.white-bg {
		float: none;
		width: 100%;
	}

	.titile-bg {
		padding: 26px 18px 14px;
	}

	.white-bg {
		padding: 4px 18px 14px;
	}

	.white-bg br {
		display: none;
	}

	#school .row > div,
	#services .row > div {
		margin-bottom: 14px;
	}

	#school img,
	#services img {
		width: 100%;
		max-height: 420px;
	}

	.team {
		margin-bottom: 26px;
	}

	.team p {
		padding-right: 0;
	}

	#services .marbottom {
		margin-bottom: 24px;
	}

	.table {
		margin-top: 12px;
		margin-bottom: 22px;
	}

	.table-bordered > thead > tr > th,
	.table-bordered > thead > tr > td {
		padding: 13px 12px;
		font-size: 16px;
	}

	.table-bordered > tbody > tr > td {
		padding: 12px;
		font-size: 15px;
	}

	.responsive-object {
		padding-bottom: 56.25%;
	}

	#video {
		margin-bottom: 0;
	}

	#video .pull-right,
	#contact .pull-right {
		float: none !important;
	}

	#contact {
		padding-bottom: 42px;
	}

	.contactmap {
		float: none;
		margin-bottom: 28px;
	}

	.mapcont {
		padding-bottom: 72%;
	}

	.social {
		padding: 24px 20px;
	}

	.social-icon a {
		margin-bottom: 8px;
	}

	.coypright {
		color: #333;
	}

	#contact form {
		width: 100%;
	}

	.signup-section {
		padding-top: 96px !important;
	}

	.signup-form {
		box-shadow: none;
		margin-bottom: 28px;
		padding: 22px 18px;
	}

	.signup-grid {
		grid-template-columns: 1fr;
	}

	.signup-group h3 {
		font-size: 26px;
	}

	.signup-actions {
		text-align: left;
	}

	.signup-actions .btn {
		width: 100%;
	}

	#contact .form-group,
	#contact .textarea {
		float: none !important;
		width: 100%;
		margin-right: 0;
		margin-bottom: 14px;
	}

	#contact label {
		display: block;
		margin-bottom: 5px;
	}
}

@media (max-width: 480px) {
	body {
		font-size: 15px;
	}

	h1 {
		font-size: 34px;
	}

	h2 {
		font-size: 32px;
	}

	.container {
		padding-left: 14px;
		padding-right: 14px;
	}

	nav .container {
		padding-left: 12px;
		padding-right: 12px;
	}

	.logo {
		padding-top: 11px;
		padding-bottom: 11px;
	}

	.logo img {
		max-width: 112px;
	}

	.mm-toggle {
		min-width: 44px;
		min-height: 44px;
		padding: 8px;
	}

	.sliderfull {
		margin-top: 64px;
	}

	.mobile-hero-fallback {
		margin-top: 64px;
	}

	.titile-bg,
	.white-bg {
		padding-left: 14px;
		padding-right: 14px;
	}

	#school img,
	#services img {
		max-height: 340px;
	}

	.table-bordered > thead > tr > th,
	.table-bordered > thead > tr > td,
	.table-bordered > tbody > tr > td {
		padding-left: 10px;
		padding-right: 10px;
		font-size: 14px;
	}

	.mapcont {
		padding-bottom: 88%;
	}

	.social {
		padding: 20px 16px;
	}
}
