/*------------------------------------------- Navigation area ------------------------------------------- */

#mainNav {
    min-height: 70px;
    background-color: #002E5A;
}

#mainNav .navbar-toggler {
    font-size: 80%;
    padding: 0.75rem;
    color: white;
    border: 1px solid white;
}

#mainNav .navbar-toggler:focus {
    outline: none;
}

#mainNav .navbar-brand {
    padding: .9rem 0;
}

#mainNav .navbar-brand img {
    height: 50px;
}

#mainNav .navbar-nav .nav-item:hover {
    color: fade(white, 80%);
    outline: none;
    background-color: transparent;
}

#mainNav .navbar-nav .nav-item:active,
#mainNav .navbar-nav .nav-item:focus {
    outline: none;
    background-color: transparent;
}


/* Navbar Bug Fix: https://stackoverflow.com/questions/25878450/bootstrap-collapsed-navbar-buggy-open */

.navbar-collapse.collapse.in {
    display: block !important;
}

@media (min-width: 992px) {
    #mainNav {
        padding-top: 0;
        padding-bottom: 0;
        border-bottom: none;
        -webkit-transition: background-color 0.3s ease-in-out;
        transition: background-color 0.3s ease-in-out;
    }

    #mainNav .navbar-brand {
        padding: .5rem 0;
        color: white;
    }

    #mainNav .nav-link {
        -webkit-transition: none;
        transition: none;
        padding: 2rem 1.5rem;
        color: white;
    }

    #mainNav .nav-link:hover {
        color: rgba(255, 255, 255, 0.75);
    }

    #mainNav .nav-link:active {
        color: white;
    }

    #mainNav.navbar-shrink {
        background-color: #002E5A;
    }

    #mainNav.navbar-shrink .navbar-brand {
        color: white;
    }

    #mainNav.navbar-shrink .nav-link {
        color: white;
        padding: 1.5rem 1.5rem 1.25rem;
        border-bottom: 0.25rem solid transparent;
    }

    #mainNav.navbar-shrink .nav-link:hover {
        color: white;
    }

    #mainNav.navbar-shrink .nav-link:active {
        color: white;
    }

    #mainNav.navbar-shrink .nav-link.active {
        color: white;
        outline: none;
        border-bottom: 0.25rem solid white;
    }
}

@media (max-width: 459px) {
    #mainNav .navbar-brand img {
        height: calc(50px / 1.5);
    }
}

@media (max-width: 320px) {
    #mainNav .navbar-brand img {
        width: 180px;
    }
}


/* ------------------------------------------------ Body area ------------------------------------------ */

#main {
    padding: 5rem 0;
}


/*--------------------------------------------- Slide Show area -----------------------------------------  */

#slideshow {
    position: relative;
    max-width: 1000px;
}

#slideshow #images {
    position: absolute;
    top: -10px;
    height: 200px;
}

#slideshow #images img {
    width: 100vw;
    height: 500px;
    -webkit-filter: grayscale(40%);
    filter: grayscale(40%);
}

.centered-header {
    color: #FCB913;
    padding: 8px 12px;
    position: absolute;
    bottom: -40px;
    width: 100%;
    text-align: center;
}

.centered-header h2 {
    font-size: 36px;
    font-weight: 900;
    text-transform: capitalize;
}

.centered-header a {
    color: #FCB913;
    background-color: #002E5A;
    font-size: 21px;
    border-radius: 5px;
    padding: 10px;
    box-shadow: 2px 3px 2px 2px rgba(0, 0, 0, 0.3);
}

@media (max-width: 375px) {
    #slideshow #images img {
        height: 400px;
    }

    .centered-header {
        bottom: -80px;
    }
}


/* -------------------------------------------------- Subjects ------------------------------------------- */

#subjects {
    text-align: center;
    color: white;
    background-color: rgba(228, 222, 222, 0.562);
    width: 100.8%;
    margin: auto;
}

#subjects h2 {
    color: black;
}

.maths,
.tMaths,
.science,
.tScience {
    padding: 20px;
}

#subjects i {
    font-size: 30px;
}

#subjects h3 {
    font-size: 20px;
}

#subjects .maths {
    background-color: #002E5A;
}

#subjects .tMaths {
    background-color: #002E5A;
}

#subjects .science {
    background-color: #FCB913;
}

#subjects .tScience {
    background-color: #FCB913;
}

@media (max-width: 990px) {
    #subjects .tMaths {
        background-color: #FCB913;
    }

    #subjects .tScience {
        background-color: #002E5A;
    }
}

@media (max-width: 764px) {
    #subjects .tMaths {
        background-color: #002E5A;
    }

    #subjects .tScience {
        background-color: #FCB913;
    }
}

@media (max-width: 546px) {
    #subjects {
        padding: 35px;
    }
}

@media (max-width: 375px) {

    /* Resizing the grey background colour */
    #subjects {
        margin-top: -100px;
    }
}

@media (max-width: 352px) {
    #subjects {
        padding: 10px;
    }
}


/* ----------------------------------------- Services We Offer ------------------------------------------ */

#weOffer {
    text-align: center;
}

.serviceBox img {
    width: 100%;
}

.serviceBox p {
    background-color: #FCB913;
    color: #fff;
    font-size: 21px;
}


/* ------------------------------------------ About Us --------------------------------------------------- */

#aboutUs {
    background-color: rgba(228, 222, 222, 0.14);
    padding: 20px;
}

#aboutUs h3 {
    text-align: center;
    padding-top: 10px;
    text-decoration: underline;
}

.aboutUsImg img,
.aboutUsImgValues img {
    width: 100%;
}

.mobileDisplay {
    display: none;
}

@media (max-width: 770px) {
    .laptopDisplay {
        display: none;
    }

    .mobileDisplay {
        display: block;
    }

    .aboutUsImg img,
    .aboutUsImgValues img {
        height: calc(510px / 1.5);
        width: 100%;
    }
}


/* --------------------------------------- Sign For Free Lesson ------------------------------------------ */

#requestLesson input[type="submit"] {
    background-color: #002E5A;
    color: #FCB913;
    font-size: 21px;
}

#requestLesson input[type="submit"]:hover {
    background-color: #fff;
    color: #002E5A;
    border: 2px solid #002E5A;
}


/* ------------------------------------------------Contact Us -------------------------------------------- */

#contact {
    background-color: rgba(228, 222, 222, 0.14);
}

#contact a {
    color: black;
}

#contact a:hover {
    text-decoration: none;
    color: #FCB913;
}


/* ------------------------------------------------- Footer --------------------------------------------- */

footer {
    background-color: rgb(0, 62, 121);
}

footer .socialMedia {
    text-align: center;
    font-size: 20px;
    padding-top: 25px;
}

footer .socialMedia a {
    padding-right: 10px;
}

footer .socialMedia a i {
    background-color: #FCB913;
    border-radius: 50%;
    padding: 10px;
    padding-left: 13px;
    padding-right: 13px;
    color: #002E5A
}

footer .footer-links {
    margin-top: 20px;
    text-align: center;
}

footer .footer-links ul {
    list-style: none;
}

footer .footer-links li {
    display: inline-block;
}

footer .footer-links a {
    color: #FCB913;
    padding-right: 25px;
    font-size: 18px;
    font-weight: 600;
}

footer .footer-links a:hover {
    text-decoration: none;
}

footer .end-footer {
    color: white;
    text-align: center;
    background-color: #FCB913;
    padding: 5px;
    font-size: 18px;
}

@media (max-width: 787px) {
    footer .footer-links li {
        display: block;
    }
}

/* ------------------------------------------------- Terms, Policy, Refund--------------------------------------------- */
#term .container,
#privacy .container,
#refund .container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

#term h1,
#term h2,
#term h3,
#privacy h1,
#privacy h2,
#privacy h3,
#refund h1,
#refund h2,
#refund h3 {
    color: #052E5A;
}

#term ul,
#refund ul,
#privacy ul {
    padding-left: 20px;
}

#term li,
#refund li,
#privacy li {
    margin-bottom: 10px;
}

#term .footer,
#refund .footer,
#privacy .footer {
    margin-top: 20px;
    font-size: 0.9em;
    color: #666;
}

@media (max-width: 768px) {

    #term.container,
    #refund.container,
    #privacy .container {
        margin: 10px;
        padding: 15px;
    }

    #term h1,
    #refund h1,
    #term h2,
    #refund h2,
    #term h3,
    #refund h3,
    #privacy h1,
    #privacy h2,
    #privacy h3 {
        font-size: 1.2em;
    }

    #term ul,
    #refund ul,
    #privacy ul {
        padding-left: 15px;
    }
}