/*-------------------------------------------------------------------
THEME  -  Driving Safety Sites

Plain CSS - no build step. The nesting the old LESS used is flattened
deliberately: these are exactly the selectors it compiled to, so the
browser support floor is unchanged. Tokens live in variables.css.
-------------------------------------------------------------------*/

/*-------------------------------------------------------------------
HTML TAGS
-------------------------------------------------------------------*/

html {
    width: 100%;
    height: 100%;
    font-size: 100%;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
body {
    width: 100%;
    height: 100%;
    color: var(--color-primary);
    background-color: var(--color-background);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/*-------------------------------------------------------------------
LINKS
-------------------------------------------------------------------*/

a {
    text-decoration: underline;
    color: var(--color-secondary);
    -webkit-tap-highlight-color: var(--color-secondary);
}
a:hover {
    color: var(--color-primary);
}

/*-------------------------------------------------------------------
BUTTONS
-------------------------------------------------------------------*/

.btn,
a.btn,
.button,
a.button,
.btn-primary,
a.btn-primary {
    display: inline-block;
    font-family: var(--font-family-secondary);
    font-size: var(--font-size-large);
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    text-align: center;
    line-height: normal;
    color: var(--color-reverse);
    background: var(--color-secondary);
    border: .125rem solid var(--color-secondary);
    border-radius: var(--button-radius);
    margin: 0;
    padding: .5rem 1.875rem;
    -webkit-transition: all 200ms ease-in-out;
    -moz-transition: all 200ms ease-in-out;
    -ms-transition: all 200ms ease-in-out;
    -o-transition: all 200ms ease-in-out;
    transition: all 200ms ease-in-out;
}
.btn:hover,
a.btn:hover,
.button:hover,
a.button:hover,
.btn-primary:hover,
a.btn-primary:hover {
    color: var(--color-reverse);
    background: var(--color-accent);
    border: .125rem solid var(--color-accent);
    transform: scale(1.05);
}
/* .btn:after {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: " \f054";
} */
.btn:active,
a.btn:active,
.button:active,
a.button:active,
.btn-primary:active,
a.btn-primary:active {
    color: var(--color-reverse);
    background: var(--color-accent);
    border: .125rem solid var(--color-accent);
    transform: scale(1.02);
}
.btn-secondary,
a.btn-secondary {
    color: var(--color-reverse);
    background: var(--color-primary);
    border: .125rem solid var(--color-primary);
}
.btn-secondary:hover,
a.btn-secondary:hover {
    color: var(--color-reverse);
    background: var(--color-accent);
    border: .125rem solid var(--color-accent);
}
.btn-accent,
a.btn-accent {
    color: var(--color-primary);
    background: var(--color-accent);
    border: .125rem solid var(--color-accent);
}
.btn-accent:hover,
a.btn-accent:hover {
    color: var(--color-reverse);
    background: var(--color-secondary);
    border: .125rem solid var(--color-secondary);
}
.btn-reverse,
a.btn-reverse {
    color: var(--color-primary);
    background: var(--color-reverse);
    border: .125rem solid var(--color-reverse);
}
.btn-reverse:hover,
a.btn-reverse:hover {
    color: var(--color-reverse);
    background: var(--color-primary);
    border: .125rem solid var(--color-primary);
}
.btn-subtle,
a.btn-subtle {
    color: var(--color-border);
    background: var(--color-reverse);
    border: .125rem solid var(--color-border);
}
.btn-subtle:hover,
a.btn-subtle:hover {
    color: var(--color-reverse);
    background: var(--color-primary);
    border: .125rem solid var(--color-primary);
}
.btn-full,
a.btn-full {
    display: block;
}

/*-------------------------------------------------------------------
ANIMATIONS
-------------------------------------------------------------------*/

.scale {
    border-radius: 50%;
    -webkit-transition: all 200ms ease-in-out;
    -moz-transition: all 200ms ease-in-out;
    -ms-transition: all 200ms ease-in-out;
    -o-transition: all 200ms ease-in-out;
    transition: all 200ms ease-in-out;
}
.scale:hover {
    transform: scale(1.1);
}

/*-------------------------------------------------------------------
GLOBAL TEMPLATE
-------------------------------------------------------------------*/

/* Logo sizing. Bootstrap's .img-fluid still caps these at 100% of their
   container, so a width larger than the space available shrinks to fit
   rather than overflowing. */
img.logo {
    width: var(--logo-width);
    height: auto;
}
img.logo-footer {
    width: var(--logo-footer-width);
    height: auto;
}
.header-wrapper {
    position: relative;
    background-image: var(--hero-image);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}
section.contact {
    font-size: var(--font-size-small);
    color: var(--color-accent);
}
section.contact a {
    text-decoration: none;
    color: var(--color-reverse);
}
section.contact a:hover {
    color: var(--color-reverse);
    opacity: .5;
}
header {
    position: relative;
    min-height: 6.875rem;
}
nav.main-nav {
    line-height: normal;
    position: relative;
    z-index: 2;
}
main {
    position: relative;
    background-color: var(--main-background-color);
}
footer {
    position: relative;
    color: var(--color-reverse);
    background-color: var(--footer-background-color);
}
footer a {
    color: var(--color-reverse);
}
footer a:hover {
    color: var(--color-reverse);
    opacity: .6;
}
footer h3 {
    color: var(--color-secondary);
}
.menu-footer-menu-container ul,
.menu-locations-menu-container ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
/* #ffffff35 is a translucent scrim rather than a palette colour, so it
   stays a literal - it should read the same whatever --color-reverse is. */
.menu-footer-menu-container ul li,
.menu-locations-menu-container ul li {
    padding: .5rem 0;
    border-top: .0625rem solid #ffffff35;
}
.menu-footer-menu-container ul li a,
.menu-locations-menu-container ul li a {
    text-decoration: none;
}
img.bg-arrow {
    width: 100%;
    height: auto;
}

/*-------------------------------------------------------------------
SPECIFIC PAGES AND ELEMENTS
-------------------------------------------------------------------*/

/* Frontpage */

section.hero {
    position: relative;
    color: var(--color-reverse);
    padding-top: 9.5rem;
    padding-bottom: 9.5rem;
}
section.hero h1 {
    color: var(--color-reverse);
}
section.hero h1 b,
section.hero h1 strong {
    font-weight: 800;
}
section.hero-image {
    position: relative;
    background-color: var(--color-reverse);
}
section.hero-image img.court-approved {
    position: absolute;
    top: 50%;
    right: 30%;
    width: 18%;
    max-width: 18.75rem;
    height: auto;
    transform: translate(50%, -50%);
}
main.frontpage .steps {
    color: var(--color-reverse);
}
main.frontpage .steps h3 {
    font-size: 5rem;
    font-weight: 800;
    color: var(--color-accent);
    margin-bottom: var(--margin-bottom-small);
    padding: 0;
}
main.frontpage .steps h2 {
    font-weight: 800;
}
main.frontpage .steps a {
    color: var(--color-reverse);
}
main.frontpage .steps a:hover {
    color: var(--color-reverse);
    opacity: .5;
}
main.frontpage .steps .step1 {
    background-color: var(--color-step-1);
    background: linear-gradient(to bottom right, var(--color-step-1) 40%, var(--color-step-1-end) 100%);
}
main.frontpage .steps .step2 {
    background-color: var(--color-step-2);
    background: linear-gradient(to bottom right, var(--color-step-2) 40%, var(--color-step-2-end) 100%);
}
main.frontpage .steps .step3 {
    background-color: var(--color-step-3);
    background: linear-gradient(to bottom right, var(--color-step-3) 40%, var(--color-step-3-end) 100%);
}
main.frontpage .steps .step4 {
    background-color: var(--color-step-4);
    background: linear-gradient(to bottom right, var(--color-step-4) 40%, var(--color-step-4-end) 100%);
}
main.frontpage .intro h2 {
    display: block;
    font-family: var(--font-family-secondary);
    font-size: var(--font-size-display);
    font-weight: 800;
    font-style: normal;
    line-height: var(--line-height-display);
    text-transform: uppercase;
    margin-bottom: var(--margin-bottom-large);
}
section.courses {
    background-color: var(--color-reverse);
}
section.guarantee {
    font-size: var(--font-size-large);
    line-height: normal;
    color: var(--color-reverse);
    background-color: var(--color-primary);
    background-image: url(../images/guarantee.webp);
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
}
section.guarantee strong {
    color: var(--color-accent);
}
section.guarantee h2 {
    display: block;
    font-family: var(--font-family-secondary);
    font-size: var(--font-size-display);
    font-weight: 800;
    font-style: normal;
    line-height: var(--line-height-display);
    text-transform: uppercase;
    margin-bottom: var(--margin-bottom-large);
}
section.drivers-ed {
    line-height: normal;
    color: var(--color-reverse);
    background: linear-gradient(to bottom, var(--color-drivers-ed) 40%, var(--color-reverse) 100%);
}
/* Set at h1's scale rather than the display scale the two above use. */
section.drivers-ed h2:first-of-type {
    display: block;
    font-family: var(--font-family-secondary);
    font-size: var(--font-size-h1);
    font-weight: 400;
    font-style: normal;
    line-height: var(--line-height-h1);
    text-transform: none;
    margin-bottom: var(--margin-bottom-large);
}
section.post {
    background-color: var(--color-reverse);
}

/* Course */

ul.course-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
ul.course-list li {
    margin: 0;
    padding: 1rem 2rem;
    border-top: .0625rem solid var(--color-border);
}
ul.course-list li:first-of-type {
    border-top: none;
}
ul.course-list li::before {
    display: block;
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: var(--font-size-xlarge);
    content: "\f058";
    color: var(--color-accent);
    margin-bottom: .5rem;
}

/* FAQ */

.faq-accordion .accordion-button {
    font-size: var(--font-size-large);
    line-height: normal;
}
.faq-accordion .accordion-button:not(.collapsed) {
    font-weight: bold;
    color: var(--color-secondary);
    background-color: transparent;
    box-shadow: none;
}

/* Contact */

main.contact i {
    font-size: 6rem;
    color: var(--color-secondary);
}

/*-------------------------------------------------------------------
BLOGS
-------------------------------------------------------------------*/

main.post .post-item p:last-of-type,
section.post .post-item p:last-of-type,
main.single .post-item p:last-of-type {
    margin: 0;
    padding: 0;
}
main.post .post-item a,
section.post .post-item a,
main.single .post-item a {
    text-decoration: none;
}
main.post .post-item a .month,
section.post .post-item a .month,
main.single .post-item a .month {
    color: var(--color-alternate);
}
main.post .post-item h2 a,
section.post .post-item h2 a,
main.single .post-item h2 a {
    color: var(--color-primary);
}
main.post .post-item h2 a:hover,
section.post .post-item h2 a:hover,
main.single .post-item h2 a:hover {
    color: var(--color-secondary);
}
main.post .post-item figure,
section.post .post-item figure,
main.single .post-item figure {
    position: relative;
}
main.post .post-item figure time,
section.post .post-item figure time,
main.single .post-item figure time {
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 5rem;
    height: 5rem;
    font-family: var(--font-family-secondary);
    background-color: var(--color-reverse);
    border-top-right-radius: var(--button-radius);
}
main.post .post-item figure time .month,
section.post .post-item figure time .month,
main.single .post-item figure time .month {
    display: block;
    line-height: 1.5rem;
    text-transform: uppercase;
    color: var(--color-primary);
}
main.post .post-item figure time .day,
section.post .post-item figure time .day,
main.single .post-item figure time .day {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 2rem;
    color: var(--color-secondary);
}
main.post .post-item .category-list a,
section.post .post-item .category-list a,
main.single .post-item .category-list a {
    font-size: var(--font-size-small);
    text-decoration: none;
}

/*-------------------------------------------------------------------
PAGE NUMBERS
-------------------------------------------------------------------*/

.wp-pagenavi .pages {
    display: inline-block;
    padding-right: .5rem;
    border-right: 1px solid var(--color-border);
}
.wp-pagenavi a.first {
    display: inline-block;
    padding-left: .5rem;
    padding-right: .5rem;
    border-right: 1px solid var(--color-border);
}
.wp-pagenavi a.previouspostslink {
    display: inline-block;
    padding-left: .5rem;
    padding-right: .5rem;
    border-right: 1px solid var(--color-border);
}
.wp-pagenavi .current {
    display: inline-block;
    padding-left: .5rem;
    padding-right: .5rem;
    border-right: 1px solid var(--color-border);
}
.wp-pagenavi a.page {
    display: inline-block;
    padding-left: .5rem;
    padding-right: .5rem;
    border-right: 1px solid var(--color-border);
}
.wp-pagenavi span.extend {
    display: inline-block;
    padding-left: .5rem;
    padding-right: .5rem;
    border-right: 1px solid var(--color-border);
}
.wp-pagenavi a.nextpostslink {
    display: inline-block;
    padding-left: .5rem;
    padding-right: .5rem;
}
.wp-pagenavi a.last {
    display: inline-block;
    padding-left: .5rem;
    padding-right: .5rem;
    border-left: 1px solid var(--color-border);
}
.wp-pagenavi a {
    text-decoration: none;
}
