/*
Theme Name: eduID
Author: eduID
Author URI: https://eduid.nl/
Description: eduID WordPress theme
Version: 1.2
Text Domain: eduid
Domain Path: /languages
*/

:root {
    --color-primary-blue: #0062b0;
    --color-primary-green: #008738;
    --color-primary-black: #202020;
    --color-primary-red: #d00000;
    --color-primary-grey: #c4cdd5;
    --color-background: #f9f9f9;
    --width-app: 1024px;
}

html {
    box-sizing: border-box;
}

*, *:before, *:after {
    box-sizing: inherit;
}

/* nunito-300 - latin */
@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 300;
    src: local('Nunito Light'), local('Nunito-Light'),
    url('/wp-content/themes/eduid-wordpress-theme/assets/fonts/nunito/nunito-v14-latin-300.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
    url('/wp-content/themes/eduid-wordpress-theme/assets/fonts/nunito/nunito-v14-latin-300.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* nunito-regular - latin */
@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 400;
    src: local('Nunito Regular'), local('Nunito-Regular'),
    url('/wp-content/themes/eduid-wordpress-theme/assets/fonts/nunito/nunito-v14-latin-regular.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
    url('/wp-content/themes/eduid-wordpress-theme/assets/fonts/nunito/nunito-v14-latin-regular.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* nunito-700 - latin */
@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 700;
    src: local('Nunito Bold'), local('Nunito-Bold'),
    url('/wp-content/themes/eduid-wordpress-theme/assets/fonts/nunito/nunito-v14-latin-700.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
    url('/wp-content/themes/eduid-wordpress-theme/assets/fonts/nunito/nunito-v14-latin-700.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}

@font-face {
    font-family: "Source Sans Pro";
    font-weight: 300;
    src: url("/wp-content/themes/eduid-wordpress-theme/assets/fonts/source_sans_pro/sourcesanspro-regular-webfont.woff2") format("woff2"),
    url("/wp-content/themes/eduid-wordpress-theme/assets/fonts/source_sans_pro/sourcesanspro-regular-webfont.woff") format("woff");
}

@font-face {
    font-family: "Source Sans Pro";
    font-weight: 600;
    src: url("/wp-content/themes/eduid-wordpress-theme/assets/fonts/source_sans_pro/sourcesanspro-semibold-webfont.woff2") format("woff2"),
    url("/wp-content/themes/eduid-wordpress-theme/assets/fonts/source_sans_pro/sourcesanspro-semibold-webfont.woff") format("woff");
}

body {
    font-family: "Source Sans Pro", sans-serif;
    font-size: 18px;
    line-height: 1.33;
    background-color:  #f9f9f9;
}

body, h1, h2, h3, h4, h5, h6, p, ol, ul {
    margin: 0;
    padding: 0;
    font-weight: normal;
}

ol, ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

a, a:visited {
    color: #0077c8;
    text-decoration: none;
}

label, span {
    line-height: 18px;
}

p {
    line-height: 22px;
}

h1, h2, h3, h4, h5, h6 {
}

h1, h2, h3, h4, h5, h6 {
    font-family: Nunito, sans-serif;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.42px;
}

h1 {
    font-size: 46px;
    margin: 15px 0 44px 0;
}

h2 {
    font-size: 32px;
    margin: 30px 0;
}

h3 {
    font-size: 28px;
    margin: 30px 0;
}

h4, h5, h6 {
    font-size: 20px;
    font-weight: 600;
    margin: 20px 0;
}

/* Custom classes */

.wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin-bottom: 100px;
}

.container {
    max-width: calc(var(--width-app));
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.5);
}

.header {
    width: 100%;
    max-width: var(--width-app);
    margin: 0 auto;
    padding-left: 28px;
    display: flex;
    background-color: var(--color-primary-blue);
    align-items: center;
    align-content: center;
    position: relative;
    flex-direction: row;
    height: 80px;
    color: #94d6ff;
}

.header-menu-wrapper {
    display: flex;
    flex-direction: row;
    flex: 1;
}

.header-menu-home {
    margin-left: 50px;
    height: 29px;
}

.header-menu-home svg {
    color: #B3E5FF;
    width: 24px;
    height: 24px;
}

.header-menu-home:hover, .header-menu-home.current-menu-item {
    color: #FFFFFF;
    border-bottom: 2px solid #FFFFFF;
    margin-bottom: -2px;
}

.header-menu-home.current-menu-item svg {
    color: #FFF;
}

.header-menu {
    display: flex;
    height: 29px;
}

.header-menu ul {
    list-style-type: none;
    list-style: none;
    list-style-image: none;
    display: flex;
    align-items: flex-end;
}

.header-menu li {
    margin-left: 30px;
    height: 24px;
    padding-bottom: 5px;
    white-space: nowrap;
} 

.header-menu li:hover, .header-menu li.current-menu-item {
    border-bottom: 2px solid #FFFFFF;
}

.header-menu a { 
    color: #B3E5FF;
}

.header-menu li.current-menu-item a {
    color: #FFF;
}

.mobile-header-menu {
    display: none;
}

.header .my-eduid {
    height: 44px;
    width: 140px;
    color: #0077c8;
    background-color: white;
    border: 1px solid #0066b8;
    border-radius: 8px;
    padding: 10px 20px;
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
    text-align: center;
    font-weight: bold;
    font-size: 18px;
    margin-right: 28px;
    white-space: nowrap;
}

.header .my-eduid:hover {
    color: #0066b8;
    background-color: whitesmoke;
}

.logo {
    height: 44px;
}

.content {
    display: flex;
    flex-direction: column;
    background-color: white;
    align-items: stretch;
    max-width: var(--width-app);
    width: 100%;
    margin: 0 auto;
    padding: 25px;
}

.post-body {
    display: flex;
}

.post-body .entry-content {
    flex: 1;
}

.post-body .entry-content ul {
   list-style-type: disc;
}

.post-body .entry-content ol {
   list-style-type: decimal;
}

.post-body .entry-content li {
    margin: 15px 30px;
}

.post-body.full-width {
    display: block;
    margin: 0 15px;
}

.post-body.right-sidebar .sidebar {
    width: 45%;
    padding: 0 40px 0 65px;
}

.post-body.left-sidebar .sidebar {
    width: 39%;
    padding: 0 40px 0 0;
}

.post-body .sidebar .widget {
    margin-bottom: 30px;
    padding: 20px 30px;
    border-radius: 8px;
    background-color: #e9f2f7;
}

.post-body .sidebar .widget h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 18px;
}

.post-body .sidebar .widget p {
    margin-bottom: 20px;
}

.post-body .sidebar .widget a.button {
    display: block;
    white-space: nowrap;
    background-color: #0077c8;
    border-radius: 8px;
    margin: 10px 0;
    padding: 10px 20px;
    color: white;
    text-decoration: none;
    cursor: pointer;
    text-align: center;
    font-weight: bold;
    font-size: 18px;
}

.post-body .sidebar .widget a.button:hover {
    background-color: #004c97;
    color: #94d6ff;
}

.footer {
    max-width: calc(var(--width-app));
    width: 100%;
    margin: 0 auto;
    padding: 18px 10px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    font-size: 16px;
    line-height: 18px;
}

.footer .footer-menu {
    flex: 1;
}

.footer ul {
    display: flex;
    flex-direction: row;
}

.footer li {
    padding: 0 10px;
    border-right: 1px solid black;
    white-space: nowrap;
}

.footer li:last-child {
    border-right: none;
}

.footer li.current_page_item {
    font-weight: bold;
}

.footer .language-menu a {
    color: #222;
}

.footer .provided-by {
    flex: 1;
    display: flex;
    text-align: right;
    justify-content: flex-end;
    flex-direction: row;
    padding-right: 10px;
}

.footer .lang-switcher a {
    color: black;
}

.provided-by span {
    margin-right: 10px;
    display: inline-block;
}

.entry-content p {
    margin-bottom: 24px;
}

/* Responsiveness */

@media (max-width: 800px) {
    table, thead, tbody, th, td, tr {
        display: block;
    }

    thead tr {
        display: none;
    }

    td {
        position: relative;
        width: 100% !important;
    }

    .header-menu, .header-menu-home {
        display: none;
    }

    .mobile-header-menu {
        display: block;
    }

    .mobile-header-menu li {
        background: #e9f2f7;
        border-bottom: 1px solid #e1e1e1;
        padding: 10px 20px;
    }

    .post-body {
        flex-direction: column;
    }

    .post-body .sidebar, .post-body.right-sidebar .sidebar, .post-body.left-sidebar .sidebar {
        margin: 0;
        padding: 0;
        width: 100%;
    }

    .footer .footer-menu ul {
        flex-direction: column;
    }

    .footer .footer-menu li {
        flex-direction: column;
        border-right: none;
    }

    .footer .provided-by span {
        display: none;
    }
}

/* Plugins */

.c-accordion__item {
    margin-bottom: 30px;
    padding: 20px 30px;
    border-radius: 8px;
    background-color: #e9f2f7;
}

.c-accordion__item .c-accordion__title {
    font-size: 18px;
    margin: 0;
}

.c-accordion__item .c-accordion__title:focus {
    outline: none;
}

.c-accordion__item .c-accordion__title:after {
    content: url('/wp-content/themes/eduid-wordpress-theme/assets/images/chevron-down.svg');
    width: 32px;
    height: 32px;
}

.c-accordion__item.is-open>.c-accordion__title:after {
    content: url('/wp-content/themes/eduid-wordpress-theme/assets/images/chevron-up.svg');
}

.c-accordion__content {
    padding-top: 30px;
}

.ib-toc-container .ib-toc-header {
    padding: 10px 0;
}

.ib-toc-container .ib-toc-body {
    padding: 20px 0 0 0;
}

.ib-toc-container .ib-toc-anchors {
    padding: 0;
}
