p + p {
    margin-top: 1.5rem;
}

@media all and (min-width: 48em) {
    .secondary-nav__list {
        margin-top: 3rem;
    }
}

.article {
    margin-bottom: 4rem;
}

.article p + h2 {
    margin-top: 3rem;
}


.article-img {
    border-radius: 3px;
}

.article-meta .author__img {
    width: 4rem;
    height: 4rem;
    margin-right: 1rem;
    box-shadow: 0 2px 4px rgba(0, 20, 46, 0.3);
}

.article .share-container {
    margin-left: auto;
}

.article-author {
    padding: 3rem 0;
    margin: 2rem 0;
    border-top: 1px solid #e4e6ea;
    border-bottom: 1px solid #e4e6ea;
}

.article-author .author__img {
    width: 10rem;
    height: 10rem;
}

.article__content > ul {
    list-style: square;
    margin: 1.8rem 0 0 1.5em;
}

.article__content iframe {
    max-width: 100%;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

@media all and (max-width: 47.95em) {
    h1 {
        font-size: 2.1rem;
    }

    .site-wrapper {
        background-color: #fff;
    }

    .article-author .author__img {
        margin-bottom: 2rem;
    }

    .article-navigation .articles-navigation__next {
        margin-top: 1rem;
        text-align: right;
    }
}

@media all and (min-width: 33.75em) {
    .article-author {
        display: flex;
        align-items: center;
    }

    .article-author .author__img {
        margin-right: 2rem;
        flex-shrink: 0;
    }
}

@media all and (min-width: 48em) {
    .article {
        font-size: 1.6rem;
    }

    .article-meta,
    .article-author, .article-navigation {
        font-size: 1.4rem;
    }

    .article-navigation {
        display: flex;
        align-items: center;
    }

    .article-navigation .articles-navigation__prev {
        margin-right: 2rem;
    }

    .article-navigation .articles-navigation__next {
        margin-left: auto;
    }
}

@media all and (max-width: 59.95em) {
    .aside {
        display: none;
    }
}

@media all and (min-width: 60em) {
    .article {
        margin-bottom: 8rem;
    }

    .article-author {
        margin-bottom: 4rem;
    }
}

/* TODO: After live, remove the sharify plugin and this */
/* https://wordpress.org/plugins/sharify/ */
.sharify-container {
    display: none !important;
}

/* Not sure if this comes from a plugin as well */
#wp_rp_first {
    display: none !important;
}

/* Blockquote */
blockquote {
    padding: 2rem;
    margin: 3rem 0 4rem;
    border: 1px solid #dfdfdf;
    background-color: #fdfdfd;
    border-radius: 3px;
    position: relative;
    box-shadow: 1px 1px 1px #f9f9f9;
}

blockquote p {
    margin: 0;
}

.article__quote {
    display: block;
    margin: 3rem 4% 4rem;
    padding: 0 3em;
    position: relative;
}

.article__quote blockquote {
    margin: 0;
    padding: 0;
    background-color: transparent;
    border: none;
    box-shadow: none;
    font-style: italic;
    font-weight: normal;
}

.article__quote blockquote::before {
    content: "\201C";
    font-family: Georgia, serif;
    font-size: 6rem;
    font-weight: bold;
    color: #bc3987;
    position: absolute;
    left: -4.4rem;
    top: -0.4rem;
    line-height: 1;
}

.article__quote figcaption {
    color: #999;
    font-size: 1.4rem;
    font-style: normal;
    font-weight: 600;
    padding-top: 1.5rem;
    text-transform: uppercase;
}

@media all and (max-width: 29.95em) {
    .article__quote {
        padding-right: 0;
        padding-left: 3rem;
        margin-left: 0;
        margin-right: 0;
    }

    .article__quote blockquote::before {
        font-size: 4rem;
        left: -2.8rem;
    }
}

@media all and (min-width: 48em) {
    blockquote {
        margin: 3rem 4rem 4rem;
    }
}

/* Next steps */
.article-next-steps {
    margin: 4rem 0 2rem;
    background-color: #f4f5f9;
    border-radius: 5px;
}

.article-next-steps__title {
    padding: 1rem 1.5rem;
    margin: 0;
    font-size: 1.6rem;
    background-color: #304150;
    color: #fff;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.article-next-steps ul {
    padding: 1.5rem;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

.article-next-steps li {
    font-size: 1.4rem;
    padding-left: 1.5rem;
    background: url("data:image/svg+xml,%3Csvg version='1' xmlns='http://www.w3.org/2000/svg' width='7' height='10'%3E%3Cpath fill='%23304150' d='M3 10H0l4-5-4-5h3l4 5z'/%3E%3C/svg%3E") no-repeat left 0.6rem/0.8rem;
}

.article-next-steps li + li {
    margin-top: 1.5rem;
}

@media all and (min-width: 48em) {
    .article-next-steps {
        background-color: #fff;
    }
}

/* Example box */
.article__example-box {
    background-color: #fdfdfd;
    border: 1px solid #dfdfdf;
    border-radius: 3px;
    box-shadow: 1px 1px 1px #f9f9f9;
    float: left;
    margin: 3rem 4% 4rem;
    padding: 2rem;
    position: relative;
}

/* Tabs */
.c-tabs {
    display: flex;
    margin-bottom: -1px;
}

.c-tab {
    margin: 0;
    background-color: #fff;
    border: 1px solid #e4e6ea;
    flex-grow: 1;
}

.c-tab:focus { outline: none }
.c-tab:not(:last-child) { border-right: none; }

.c-tab.is-active,
.c-tab:only-child {
    border-bottom-color: #fff;
}

.c-tab__link {
    display: block;
    padding: 1.25rem;
    font-weight: 600;
    text-align: center;
}

.c-tab__link:active,
.c-tab__link:focus {
    position: relative;
    z-index: 1;
    text-decoration: none;
}

.c-tab__link[aria-selected="true"] {
    color: #333;
    box-shadow: inset 0 0.3rem 0 0 #304150;
    cursor: default;
}

.c-tab__link[aria-selected="true"]:hover { text-decoration: none; }

.aside-tab-section {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

/* Related/Recent posts */
.related_post_title,
ul.related_post.related_post  li:nth-of-type(n+4) {
    display: none !important;
}

ul.related_post.related_post  li {
    display: block !important;
    width: 100% !important;
    height: 13rem !important;
    overflow: hidden;
    margin: 0 !important;
}

ul.related_post.related_post  li + li {
    margin: 1rem 0 0 !important;
}

ul.related_post.related_post li img {
    width: 100% !important;
    height: auto !important;
    transition: transform 0.2s ease-out;
}

ul.related_post.related_post li:hover img {
    -webkit-transform: scale(1.02);
    transform: scale(1.02);
    -moz-transform: scale(1.02) rotate(0.01deg);
}

ul.related_post.related_post li a.wp_rp_title {
    position: absolute !important;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.5rem 1rem !important;
    color: #fff;
    background: rgba(43,53,71,0.8);
    margin-bottom: 0 !important;
    font-size: 1.4rem !important;
    max-height: 5rem;
    transition: background 0.2s ease-out;
}

ul.related_post.related_post li:hover a.wp_rp_title {
    background: rgba(43,53,71,1);
}

.aside-recent-post {
    width: 100%;
    height: 13rem;
    position: relative;
    overflow: hidden;
}

.aside-recent-post + .aside-recent-post {
    margin-top: 1rem;
}

.aside-recent-post__image {
    width: 100%;
    height: 100%;
    -webkit-transition: transform 0.2s ease-out;
    transition: transform 0.2s ease-out;
    -webkit-transform: none;
    transform: none;
}

.aside-recent-post:hover .aside-recent-post__image {
    -webkit-transform: scale(1.02);
    transform: scale(1.02);
    -moz-transform: scale(1.02) rotate(0.01deg);
}

.aside-recent-post__image img {
    width: 100%;
    height: auto;
}

.aside-recent-post__title {
    color: #fff;
    font-size: 1.4rem;
    line-height: 1.5;
    font-weight: normal;
    background: rgba(43,53,71,0.8);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    padding: 0.5rem 1rem;
    transition: background 0.2s ease-out;
    max-height: 5rem;
}

.aside-recent-post:hover .aside-recent-post__title {
    background: rgba(43,53,71,1);
}

.aside-recent-post__link, .aside-recent-post__link:visited {
    color: #fff;
}

.aside-recent-post__link:hover {
    text-decoration: none;
}

.aside-recent-post__link:focus {
    text-decoration: underline;
}

.aside-recent-post__link::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

/* JOB SEARCH WIDGET */
/* new */
.form__label {
    display: inline-block;
    width: 100%;
    margin-bottom: .3rem;
    color: #000;
}

.form__input {
    display: inline-block;
    width: 100%;
    height: calc(2em + .75rem + 2px);
    padding: calc(.75rem / 2) .75rem;
    font-weight: 400;
    color: #333;
    background-color: #fff;
    border: 1px solid #e4e6ea;
    border-radius: 3px;
    color: #333;
    -o-appearance: none;
    -ms-appearance: none;
    appearance: none;
}

.form__input:focus {
    border-color: #003777;
}

@supports (-webkit-overflow-scrolling: touch) {
    /* Inputs needs to be above 16px on ios to stop it from */
    /* zooming in on them */
    .form__input {
        font-size: 1.6rem;
    }
}

.job-matches {
    display: none; /* shown in JS */
    margin: 2.5rem 0;
}

.js-jobs-widget-no-jobs {
    display: none;
}

.js-jobs-widget {
    position: relative;
    overflow: hidden;
}

.js-jobs-widget.loading::before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.8);
    z-index: 2;
}

.js-jobs-widget.loading::after {
    content: "";
    display: block;
    position: absolute;
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    margin: -3rem 0 0 -3rem;
    border: 5px solid #005da4;
    border-right-color: transparent;
    z-index: 3;
    box-sizing: border-box;
    animation: SPIN 0.7s linear infinite;
}

.js-jobs-widget-page {
    position: relative;
}

.js-jobs-widget-page.current {
    z-index: 1;
}

.job-match {
    position: relative;
    padding: 1.5rem;
}

.job-match:not(:last-child) {
    margin-bottom: 1rem;
}

.job-match:first-child {
    margin-top: 1.5rem;
}

.job-match__info {
    font-size: 1.3rem;
}

.job-match__title,
.job-match__title + p {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.js-jobs-widget-pagination {
    margin-top: 1.5rem;;
}

.js-jobs-widget-pagination button[aria-disabled] {
    background-color: #f1f1f1;
    pointer-events: none;
    cursor: default;
}

@media all and (max-width: 28em) {
    .js-jobs-widget-pagination button[data-page="prev"],
    .js-jobs-widget-pagination button[data-page="next"] {
        display: none;
    }
}

@media all and (max-width: 47.95em) {
    .job-matches-form__grp + .job-matches-form__grp {
        margin-top: 1.5rem;
    }

    .job-match__logo, .job-match__actions {
        display: none;
    }

    .job-match__info {
        padding-right: 1.5rem;
    }

    .job-match__title a::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }

    .job-match::after {
        content: url('https://www.education-jobs.co.uk/career-advice/wp-content/themes/cvl-career-advice/assets/img/cvl-btn-arrow-blue.png');
        position: absolute;
        right: 1.5rem;
        top: 50%;
        margin-top: -0.9rem;
    }

    .pagination__item {
        background: none;
    }
}

@media all and (min-width: 48em) {
    .job-matches-form {
        display: flex;
    }

    .job-matches-form__grp {
        width: 100%;
    }

    .job-matches-form__grp + .job-matches-form__grp {
        margin-left: 1.2rem;
    }

    .job-match {
        display: flex;
        align-items: center;
    }

    .job-match__logo, .job-match__info {
        margin-right: 2rem;
    }

    .job-match__logo {
        position: relative;
        flex-shrink: 0;
        width: 12rem;
        height: 3rem;
        background-color: #fff;
    }

    .job-match__logo img {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        max-height: 100%;
    }

    .job-match__info {
        width: calc(100% - 32rem);
    }

    .job-match__title {
        font-size: 1.4rem;
    }

    .job-match__actions {
        flex-shrink: 0;
        margin-left: auto;
    }

    .job-match__actions a {
        margin-top: 0;
    }

    .job-match__actions a + a {
        margin-left: 0.5rem;
    }
}

@supports (animation: fade-up-in 0.2s ease-out) {
    .js-jobs-widget--updating .job-match {
        opacity: 0;
        transform: translateY(1.5rem);
        animation: fade-up-in 0.15s ease-out forwards;
    }

    .js-jobs-widget.animate-page-right .job-match,
    .js-jobs-widget.animate-page-left .job-match {
        opacity: 1;
        transform: none;
        animation: none;
    }

    .js-jobs-widget.animate-page-right .js-jobs-widget-page {
        animation: slide-in-right 0.2s ease-out;
    }

    .js-jobs-widget.animate-page-left .js-jobs-widget-page {
        animation: slide-in-left 0.2s ease-out;
    }

    .js-jobs-widget--updating .job-match:nth-child(1) {
        animation-delay: 0s;
    }

    .js-jobs-widget--updating .job-match:nth-child(2) {
        animation-delay: 0.07s;
    }

    .js-jobs-widget--updating .job-match:nth-child(3) {
        animation-delay: 0.14s;
    }

    .js-jobs-widget--updating .job-match:nth-child(4) {
        animation-delay: 0.21s;
    }

    .js-jobs-widget--updating .job-match:nth-child(5) {
        animation-delay: 0.28s;
    }

    @keyframes fade-up-in {
        to {
            opacity: 1;
            transform: none;
        }
    }

    @keyframes slide-in-left {
        from {
            transform: translateX(-2rem);
        }
    }

    @keyframes slide-in-right {
        from {
            transform: translateX(2rem);
        }
    }

    @keyframes SPIN {
        to {
            transform: rotate(360deg);
        }
    }
}