/**********************
    Global Layout
***********************/
#page {
	display: grid;
	justify-items: stretch;
	width: 100%;
	grid-template-areas:
		"header"
		"main"
		"footer";
	grid-template-columns: 100%;
	grid-template-rows: auto 1fr auto;
}

/**********************
        Title images
***********************/

.title-image {
    width: 75%;
    max-height: 60px;
    /* margin-top: 8%; */
    object-fit: contain;
}

.title-image.lets {
    width: 45%;
}


/**********************
        Header
***********************/

#masthead  {
    width: 100%;
    background-color: white;
    box-shadow: 1px 0px 2px 2px lightgray;
    position: sticky; top:0px;
    grid-area: header;
    z-index: 100;
    transition: all .5s;
}

#masthead.scrolled {
    background-color: var(--light-pink);
}


/* Social media icons - Hidden on mobile */

.social {
    background: white; 
    display: none;
}

.social-flex-box {
    display: flex; align-items: center; justify-content: space-between;
    max-width: 1200px; height: 70px; 
    margin: 0 auto;
    border-bottom: 1px lightgray solid;
    font-size: 16px; color: #9b9999;  
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

.social-icons i {
    font-size: 1.2em;
    margin: 8px;
}


.contact-details {
    display: flex; justify-content: center; align-items: center;
}

.contact-details div {
    font-size: 1em;
    margin: 0 6px 0 20px;
}


/* Header for logo and mobile menu toggle  */
.header-flex-box {
    display: flex;
    min-height: 65px;
    align-items: center;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5% 5%;
    font-size: 1.2rem;
}

.header-flex-box > * {
	margin: 0 12px;
}

.custom-logo-link {
    width: 33%;
    min-width: 130px;
}

.custom-logo {
    height: auto;
    width: 100%; 
}

.mobile-menu-toggle {
    font-size: 20px;
    cursor: pointer;
}


.header-phone{
    text-decoration: none;
    text-align: center;
    font-style: italic;
    color: #ce011a;
    font-size: 1.6rem;
    display: inline-block;
    /* width: 223px; */
    max-width: 200px;
    /* margin-left: 2%; */
    /* border-radius: 5px; */
    box-shadow: 1px 1px 3px 1px #00000061;
    background-color: var(--light-pink);
    flex: 1;
    flex-basis: 110px;
    padding: 4px;
}


/**********************
****** COVID19 Banner *******
**********************/



.covid-banner {
    font-size: 20px;
    background-color: #d0031b;
    font-weight: 200;
    color: white;
    border: 1px solid #d0031b;
    position: relative;
    text-align: center;
	
}

.covid-banner > section {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 32px;
}

.hide-covid {
    display: none;
}

.covid-banner .covid-content{
    display: flex;
	align-items: center;
	gap: 8px;
}

.covid-content > p, .covid-content > a {
	padding: 0;
	margin: 0;
	font-size: 16px;
}

.covid-title {
	margin: 0;
}

.covid-content > a, .covid-content > a:visited, .covid-content > a:hover {
	color: white;
	font-weight: 400;
	text-decoration: none;
}

.covid-banner i {
    position: absolute;
    top: 2px;
    right: 0px;
    cursor: pointer;
}



/**********************
****** NHS Banner *******
**********************/

.NHS-banner {
    font-size: 20px;
    color: #005EB8;
    font-weight: 200;
    background-color: white;
    border: 1px solid #005EB8;
    position: relative;
    text-align: center;
}





/**********************
****** NAVIGATION *******
**********************/

/* Global Navigation Styles (Mobile and Desktop) */

.main-navigation {
	font-family: var(--nav-font);
}

.main-navigation a {
	color: #e6b0b0;
	transition: font-size .3s;
}

.main-navigation a {
    text-decoration: none;
	color: #5c5c5c;
}

.main-navigation a:visited {
    color: #5c5c5c;
}



/****** Mobile Menu **********/
#desktop-navigation {
    display: none;
}

#mobile-navigation {
    grid-area: 2/1/-1/2;
    display: flex;  align-items: flex-start;
    z-index: 99;

    background-color: white;
    width: 70%;
    position: sticky;

    transform: translate(-100%);
    opacity: 0;
    transition: transform .7s, opacity .5s;
}

#mobile-navigation.open {
    transform: translate(0);
    opacity: 1;
    box-shadow: 2px 2px 4px 2px rgba(0,0,0,0.6);
}

/* Menu items */
.close-button {
    position: absolute;
    right: 20px;
    top: 24px;
    cursor: pointer;
    font-size: 15px;
}

.menu-custom-mobile-menu-container {
    width: 100%;
    position: absolute; top: 40px; left: 0;
}

#mobile-navigation .menu-custom-header-menu-container{
    position: absolute; top: 56px;
    width: 100%;
}

#mobile-navigation .menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0px 0px;
    list-style: none;
    font-size: 1.7rem;
    font-weight: 200;
}

#mobile-navigation .menu > li {
    padding: 18px 25px;
    width: 100%;
    border-top: .5px solid lightgray;
}

    #mobile-navigation .menu > li:hover {
        background-color: rgba(211, 211, 211, 0.308);     
    }

    #mobile-navigation .menu > li:hover a {
        color:black;
        font-size: 16px;
    }

#mobile-navigation .sub-menu {
    list-style: none;
    display: none;
    position: fixed; z-index: -99;
    transform: translateY(-100%);
    opacity: 0;
    transition: all .5s;
}



/**********************
****** BANNER *******
**********************/

#content {
    grid-area: main;
}

#main {
    padding: 5%;
    color: var(--grey-text);
    display:grid;
    grid-template-areas:
        "title"
        "img"
        "cta"
        "sub";
    grid-template-columns: auto;
    grid-template-rows: auto auto auto auto;
    justify-items: center;
    width: 100%;
    font-weight: 500;
    font-size: 16px;
}

.main-image {
    width: 80%;
    object-fit: contain;
    grid-area: img;
    animation: slide .5s;
}

.main-title {
    place-self: end center;
    font-weight: 100;
    grid-area: title;
    color: #242424;
    width: 80%;
    /* margin-bottom: 0; */
    text-transform: capitalize;
    text-align: center;
    animation: slide .5s;
}

.cta {
    grid-area: sub;
    padding: 15px 30px; margin: 30px;
    position: relative;

    border-radius: 2px;
    border: none;
    box-shadow: 3px 5px 7px 1px #00000087;

    font-size: 1.2em;
    text-transform: capitalize;
    vertical-align: middle;
    color: #d0031b;

    background-color: #f7f7f7;
    
    transition: all .5s;
    animation: slide .5s;
    
    cursor: pointer;
    /* top: -30px; */
}

.cta:hover {
    background-color: rgba(221, 25, 25, 0.87);
    color: white;
    transform: scale(1.1);
    
}

.cta:focus {
    outline: none;
}


.phone {
    font-size: 1.2em;
    text-align: center;
    position: relative;
    left: -10px;
    top: 2px;
}

.main-sub {
    grid-area: sub;
    display: none;
    margin: 3%;
    animation: slide .5s;
    text-align: center;
    font-size: 1.6em;
    font-weight: 500;
    font-size: 1.6rem;
}

.offer {
    animation: slide .5s;
    font-size: 30px;
    margin-bottom: 0;
}

.offer h6 {
    margin-top: 5px;
    font-size: 10px;
    text-align: center;
}

/**********************
** BACKGROUND IMAGE ***
***********************/


.special-offer {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-direction: column;
    padding: 10%;
    background-image: url(../../../uploads/images/driving_background.png);
    background-size: cover;
    position:  relative;
    z-index: 1;
}


.special-offer img {
    display: block; width: 90%;
    object-fit: contain;
    object-position: center;
}

.special-offer .offer-image {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-color: #ffffffad;
    z-index: -1;
}

.special-offer .offer-text {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.special-offer a {
    text-decoration: none;
    color: #ce011a;
    font-size: 1.8rem;
    padding: 20px 44px;
    background-color: white;
    box-shadow: 3px 5px 7px 1px #00000087;

}

.special-offer h1 {
    font-weight: 500;
    font-size: 3rem;
}

.special-offer p {
    font-weight: 200;
    font-size: 2rem;
    margin: 0;
    margin-bottom: 20px;
    text-align: center;
}

/**********************
****** SECTIONS *******
**********************/

.section {
    font-weight: 400;
    font-size: var(--main-font-size);
    padding: 20px;
}

.section-image {
    width: 75%;
    max-height: 60px;
    object-fit: contain;
}

.section-title {
    text-align: center;
    margin: 0;
}

.section-wrapper {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}

.item {
    width: 100%;
    margin: 3% 0;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.item-title {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60%;
    min-width: 300px;
}

.item-title > * {
    margin: 0 4%;
}

.item-title-text {
    font-weight: 300;
    text-align: center;
}

.item-image {
    max-height: 50px;
    max-width: 60px;
    object-fit: contain;
}

.item-text {
    text-align: center;
    font-weight: 300;
}

/**********************
****** SERVICES *******
***********************/


.services {
    background-color: var(--light-pink);
    color: var(--grey-text);
}


/**********************
****** FEATURES *******
***********************/

.features {
    background-color: var(--light-grey);
    color:white;
}


/**************************
****** TESTIMONIALS *******
***************************/

.pupil-testimonials {
    font-size: 1.3em;
    font-weight: 300;
    font-style: italic;
    color: var(--grey-text);
    min-width: 0px;
    max-width: 100vw;
    padding: 2%;
    display: none;
}

.testimonial-title {
    /* margin: 0 0 30px 0; */
    width: 100%;
    text-align: center;
    font-weight: 400;
}

.slick-initialized .slick-slide {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;
    /* padding: 1em; */
    font-size: 1.5em;
}

blockquote {
	/* font-size: 2.3rem; */
	/* max-width: 600px; */
	line-height: 1.4;
	position: relative;
	margin: 0;
	padding: .5rem;
	text-align: center;
}


cite {
	line-height: 3;
    text-align: center;
    font-weight: bold;
}

/**************************
****** HOW IT WORKS *******
***************************/

.how-it-works {
    background-color: var(--light-pink);
    color: var(--grey-text);
}



/**************************
****** FOOTER *******
***************************/

.site-footer {
    grid-area: footer;
    background: rgb(43, 40, 40);
    color: white;

    font-size: 16px;
    font-weight: 300;
    padding: 2%;
}

.footer-flex-box {
    display: flex; flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-flex-box > * {
    width: 100%;
    padding: 3% 5%;
}



#footer-menu {
    list-style: none;
    font-size: 2rem;  
    margin: 0; margin-block-start: 0;
    padding: 0;
}

#footer-menu li {
    margin: 5px;
}

#footer-menu a {
    text-decoration: none; text-transform: capitalize;
    color: white;
}

#footer-menu a:hover, .site-map a:hover {
    color: pink;
}

#menu-custom-footer-menu, .site-map a {
    padding:0; 
    list-style: none;
    color: white;
}

#menu-custom-footer-menu a, .site-map a {
    color: white;
    transition: all .4s;
}

#menu-custom-footer-menu a:visited, .site-map a:visited {
    color: white;
}

#menu-custom-footer-menu a:hover,  .site-map a:hover {
    font-size: 18px;
    color: pink;
    
}

.legal-notices {
	list-style: none;
    margin: 0;
    padding: 0;
	
}


