/* Responsive */
.show-on-mobile { display:none; }

@media only screen and (max-width: 1199px) {
    body.nav-open .mdl-layout__obfuscator {
        background-color: rgba(0,0,0,.5);
        visibility: visible;
        height:100%; width:100%;
        left:0; top:0; position:fixed;
    }

    body.nav-open .page {
        left:0; position:relative;
        transition:0.5s;
        -webkit-transition:0.5s;
        -moz-transition:0.5s;
    }

    .show-on-mobile { display:block; }
    .hide-on-mobile { display:none; }

    .header { border-bottom:1px solid #ccc;}
    .header .site-title { width: 60%; font-size:30px; text-align: center; margin:10px 0; }
    .header .logo { margin: auto; display: block; width: 212px; }
    .header .logo a { display: inherit; }

    .header .search { display:none; border-top: 1px solid #ccc; float: left; padding:20px 0; width: 100%; top: 0; right: 0; position:inherit; }
    .header .mdl-searchbox { width: 100%; }

    .toptaken, .toptaken-sidebar { width:100%; padding-right: 0; }
    .toptaken .col-md-4:last-child { padding-right:0; }
    .toptaken-sidebar { margin-bottom: 20px; }
    .contact hr { display: none; }
    .toptaken-sidebar small:after { display:inline; }

    .button-menu, .button-search {
        float: left;
        width: 48px;
        height: 48px;
        display: inline-block;
        margin:20px 0; padding:0;
        text-align: center;
        visibility: visible;
        vertical-align: top;
        text-indent: -99999px;
        position: relative;
    }
    .button-search { float: right; }
    .button-menu:after { content:'\f197'; }
    .button-search:after { content:'\f1c3'; }
    .button-menu:after, .button-search:after {
        position: absolute;
        top: 9px;
        left: 0;
        width: 48px;
        height: 48px;
        text-indent: 0;
        font-size: 29px;
    }

    /*:: Navigation */
    .breadcrumb { display:none;}
    .nav-language, .nav-meta { position:inherit; top:0; right:auto; left:0; }
    .nav-language .navbar-nav, .nav-meta .navbar-nav { margin:10px 0; }
    .nav-language .navbar-nav li, .nav-meta .navbar-nav li { display:inline; }
    .nav-language ul.nav { display:block; }
    .nav-language .navbar-nav a { color:#fff; font-size:1em; }
    .nav-language a.button-language + ul.nav { animation-duration: 0s; }

    .caret { right:6px; top:16px; position:absolute; height:30px; width:30px; }
    .caret:before { left:0; top:0; line-height:30px; height:30px; width:30px; text-align:center; }
    .caret.open:before { content:"\f2f8"; }

    .nav-main {
        background:#FAFAFA;
        left:-270px; top:0; position:fixed; z-index:99999;
        margin:0; height:100%; width:240px;
        transition:0.3s;
        -webkit-transition:0.3s;
        -moz-transition:0.3s;
    }
    .nav-main.nav-open { left:0; box-shadow:0 2px 2px 0 rgba(0,0,0,.14),0 3px 1px -2px rgba(0,0,0,.2),0 1px 5px 0 rgba(0,0,0,.12); }

    .nav-main>ul { margin:0; height:100%; overflow:scroll; }
    .nav-main li, .nav-main li.special { float:none; }
    .nav-main li a {
        position: relative;
        top:0;
        left:0;
        height:auto;
        display: block;
        font-weight: 500;
        padding: 20px 0 20px 30px;
    }
    .navbar-nav > li > a.current, .navbar-nav > li > a.active, .navbar-nav > li > a.current:hover,
    .navbar-nav > li > a.active:hover, .navbar-nav li:hover a.active.dropdown-toggle, .navbar-nav li:hover a.current.dropdown-toggle {
        border-bottom: 3px solid transparent;
        background: #fff;
    }
    .dropdown-menu { -webkit-box-shadow: none; box-shadow: none; }

    .navbar-nav > li > a:hover, .navbar-nav > li > a:focus, .navbar-nav li:hover a.dropdown-toggle {
        border-bottom: 3px solid transparent;
    }

    .nav-main ul.show-menu { display:none; }

    .nav-main .dropdown-menu { float:none; position:inherit; top:auto; width:100%; min-width:100%; padding:0;}
    .nav-main .dropdown-menu li { background:none; border:0; padding:0; }
    .nav-main .dropdown-menu li a { white-space:normal; font-weight: 500; padding: 15px 0 15px 30px; }

    .nav-main li.active .dropdown-menu ul { display:none !important;}
    .nav-main li.active .dropdown-menu ul.open { border:none; display:block !important; margin:0; padding:0; width: 100%; position:inherit; }
    .nav-main li.active .dropdown-menu ul.open a { text-indent:20px; }

    .nav-sub { margin-bottom:30px; width:100%; opacity:1 !important;}

    .nav-language { float: left; }
    .nav-language ul.nav { display:block; }
    .nav-language a.button-language { position: relative; top: 0; }
    .nav-language a.button-language + ul.nav, .nav-language a.button-language.open + ul.nav {
        background: transparent;
        box-shadow: none;
        clear: none;
        position: relative;
        float: right;
    }
    .nav-language a.button-language {
        line-height: inherit;
        border-radius: 0;
        background: transparent;
        color: transparent;
        width: 0;
        height: 0;
        display: block;
        text-align: left;
        float: none;
        margin-right: 0;
    }
    .nav-language .navbar-nav a, .nav-meta .navbar-nav a { line-height: 30px; }
    .nav-language ul.nav li { float:left; display:inline; padding-right:10px; }
    .nav-language ul.nav li a { padding:0; }
    .nav-language ul.nav li a:hover { background:none; }

    .col:empty { display:none !important;}

    .page-home.container-fluid.raad .frame-01 { width: 95%; left: 0; }

    .csc-menu-def li span.link { width: 50%; }
}

/*:: TABLET */
@media only screen and (max-width: 991px) {

    h2 { font-size:1.64rem; }
    h3 { font-size:18px; }

    .mdl-card { min-height:150px; }
    .mdl-card:after { content: ''; margin-bottom: -20px; }
    .page-home .toptaken-sidebar.mdl-card:after, .page-home.raad .mdl-card:after  { margin-bottom: 0; }

    .no-gutters .col { float:left; }
    .no-gutters .col-md-1 { width:8.33333333%; }
    .no-gutters .col-md-11 { width:91.66666667%; }


    /* Homepage */
    .col-md-12.show-on-mobile {display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex; margin-bottom: 20px; }
    
    .highlights { padding: 0; }
    .highlights .col-md-4:first-child, .page-home .news-latest-container .col-md-4:nth-child(2) { padding-right: 15px; }
    .highlights .col-md-4:nth-child(2), .page-home .news-latest-container .col-md-4:nth-child(3) { padding: 0 15px; }
    .highlights .col-md-4:nth-child(3), .page-home .news-latest-container .col-md-4:nth-child(4) { padding-left: 15px; }

    .highlight { margin: auto; margin-bottom: 10px; min-height: 250px; }
    .highlight h2 { font-size: 1.4em; width: 60%; line-height: 1.5em; }
    .highlight .highlight-image { height: auto; bottom: 0; top: auto; left: 0; width: 100%; }

    .toptaken .row.grid { margin-right: -15px; }
    .toptaken .col-md-4:last-child { padding-right: 15px; }
    [class^="ssfh-icon-"], [class*=" ssfh-icon-"] { top:-25px; }
    .toptaken .demo-card-square:hover [class*=" ssfh-icon-"] { top: -28px; }
    .toptaak [class^="ssfh-icon-"]:before, .toptaak [class*="ssfh-icon-"]:before { font-size: 75px; }
    .toptaak, .highlight { margin-bottom: 20px; }
    .page-home.container-fluid.raad { margin: 20px 0; }
    .page-home.container-fluid .sidebar .col-md-4 { margin-bottom: 20px; }
    footer.footer-home { margin-top: 0; }
    .mailchimp .mdl-textfield { width: 100%; }

    /*:: Content */
    .toptaken { padding: 0; }
    .toptaken .col-md-4 { width: 100%; float: left; }
    .toptaken .col-md-4 div { width: 48.5%; float: left; }
    .toptaken .col-md-4 div:nth-child(even) { margin-left: 1.5%; }
    .toptaken .col-md-4 div:nth-child(odd) { margin-right: 1.5%; }
    .toptaken li { float:left; width:50%;}

    .highlights .col-md-4:first-child, .highlights .col-md-4:first-child .sidebar .contact {float: left; width: 100%; margin-bottom: 0; }

    .theme { margin:0; }
    .theme section { float: left; width: 48.888888%; }
    .social { position:inherit;}

    .news-latest-item { height:auto !important; min-height:1px;}

    footer .col { margin-bottom:1em; padding:10px; float: left; width: 100%;}
    .useful { margin-top: 0;}
    .sidebar { padding-left: 0; padding-right: 0; }

    /* Foldable text */
    .foldable h2 { margin-bottom: 0; }
    .foldable .csc-header + p, .foldable .csc-header + ul, .foldable .pdc-content  { margin-top: 20px; }
    .foldable h2:before { content:'\f271'; padding-right: 20px; font-size: 1.1em; }
    .foldable.close h2:before { content:'\f276';  }

    .page-home.container-fluid.raad { height: auto; }
    .page-home.container-fluid.raad:before { background-image: none !important; }
    .page-home.container-fluid.raad .frame-01 { width:100%; position:relative; right:auto; padding-bottom:0; left: 0; }

    /* Theme page */
    .col-md-4 .frame-01  { margin-bottom: 10px; }
    .page-theme .frame-01 h2 { padding: 20px; }
    .page-theme .frame-01 h2:after { top:10px; }
    .page-theme .frame.mdl-card { min-height: 1px; }

    /* Product page SDU */
    .frame-06 .pdc-product-detail-tab-3 {left: 30px; width: calc(100% - 60px); }
    .frame-06.intro-product.sdu-header { margin-bottom: 50px; }

    .pdc-content.pdc-product.pdc-product-detail-notice {margin:-50px -30px 30px; }

    /* MW !!!!!!!!!!!!!!! Footer modals breakpoint earlier !!!!!!!!!!!!!!!!! */
    footer a, .nav-language ul.navbar-nav li a { font-size:12px; font-size:2.4vw; padding:0 12px;}
    footer button.btn { display:block; }
    footer button.btn, .footer button.close { border:none;  }

    .nav-sub h2 { padding:15px; }
    .nav-footer, .nav-language { width: 100%; float: left; }
    .nav-language { text-align: center; }
    .nav-language ul.nav { display: inline-block; margin-top: 40px; }
    .nav-language ul.navbar-nav li { padding:0; }
    .nav-language ul.navbar-nav li a { color: #fff; padding: 0 10px;  }
    .nav-language .navbar-nav a:hover { color: #fff; text-decoration: underline; }
    .nav-footer hr { display:none; }

    /* Footer modals */
    footer .col-md-3, footer .col-md-6, footer .col-md-3:last-child { width: 100%; }
    footer .nav-language { width: 100%; }
    footer .mdl-button--fab { margin-right: 10px; }
    footer .mdl-button--fab .zmdi { line-height: 40px; }
    footer .btn-primary, footer .btn-primary:hover, footer .btn-primary:focus {
        background: transparent; padding: 0;
        font-family: "dolly-roman","Arial",sans-serif;
        font-size: 3vw;
    }
    .modal-open .modal { padding-right: 0 !important; /* overwrite standard Bootstrap inline style */ }
    .modal-content { float:left; width: 100%; padding: 30px; }
    .modal-content * { color:#333; }
    .modal-content a, .modal-content a:hover, .modal-content a:focus, .modal-content a span, .modal-content h2, .modal-content .btn.close {
        color: rgb(215, 25, 32);
    }
    .modal-content a button span { color: #fff; }
    .modal-content h2, .modal-content .contact-naw, .modal-content .contact-social p:first-child, .modal-content .contact-social ul, .nav-footer  {
        border-bottom: 1px solid #ccc;
        padding-bottom: 20px;
    }
    .modal-content .contact-social ul { float: left; width: 100%; }
    .modal-content .contact-social li { margin: 20px 30px 0 0; }
    .modal-content .btn.close {
        text-transform: uppercase;
        font-size: 14px;
        padding: 20px 0 0 0;
        opacity: 1;
        font-weight: normal;
        text-shadow: none;
    }
    .modal-content .btn.close:hover, .modal-content .btn.close:focus { background: transparent; }
    .modal-content tr { border-top: 1px solid #ccc; }
    .modal-content .tr-0 { border-top: 0; }
    .modal-content .tr-last { border-bottom: 1px solid #ccc;  }
    .contact-social span.fa:before { color:#fff; }

    /* newsletter subscription */
    footer #c5048 { background-color:#fff;  }
    footer #c5048 .mdl-button { color:#981116;  }

    /* Language menu */
    .nav-language .navbar-nav { float: none; }
    .csc-menu-def li span.link { width: 70%; }

    .card-image.mdl-card { display: block; }    
    .row.grid .col.col-md-4 .frame { min-height:100px; }

    /* Powermail */
    .tx-powermail .mdl-textfield, .form-inline .mdl-textfield { width: 100%; margin-right: 0; }

    /* MYLEX */
    form.form-inline .row .col-md-3 { float:left; }
    form.form-inline .row .col-md-1 { float:right; }
}


/* !!!!!!!!!! MW Bootstrap reset on 989px for 3-cols lay-out !!!!!!!!!!!!!!!!!!!!! */
@media (max-width: 989px) {
    .three-cols [class^="col-"] { width: 100%; padding-left: 0; padding-right: 0; }
    .three-cols .nav-sub h2 { padding: 15px; margin-bottom: 0; }
    .sub .mdl-card { display:block; left:0; }
}


/*:: TABLET & LARGER */
@media (min-width: 768px) {
    footer .modal-dialog { width:100%; }
}

/*:: TABLET */
@media only screen and (max-width: 767px) {

    .main.container, .header .container { padding: 0; }
    .main.container .sub { margin:0 -15px;}
        .frame-06 .pdc-product-detail-tab-3 {        
        right: 0; position: relative;
        float: left; text-align: center;
        min-height: 135px;
    }
    .frame-06 .button-link {
        min-width:130px;
        position:inherit;
        margin:1em auto;
    }
    .pdc-button-label {
        float: none;
        padding: 0; margin:50px 0 0;
        vertical-align: middle; text-align:center;
    }
    .news-list-container { -moz-column-count: 1; -webkit-column-count: 1; column-count: 1; }

    footer a, .nav-language ul.navbar-nav li a { font-size:12px; font-size:3.4vw; padding:0 12px;}
    footer .btn-primary, footer .btn-primary:hover, footer .btn-primary:focus {
        background: transparent; padding: 0;
        font-family: "dolly-roman","Arial",sans-serif;
        font-size: 3vw;
    }

    /* Solr */
    .ncsearchsuggestion-img-container { display: none; }
    .suggested-results-result-with-image ul { margin-left: 0; }
    .col-md-8#tx-solr-search { padding: 0; }
    .solr-search-amount-of-results, #tx-solr-pagination-results-per-page { width: 100%; }
    #tx-solr-pagination-results-per-page form { width: auto; }
    #tx-solr-pagination-results-per-page label { text-align: left; width: auto; float: left; padding-top: 4px; }
    #tx-solr-pagination-results-per-page .mdl-selectfield:after { left: -10px; position: relative; }
    #tx-solr-pagination-results-per-page .mdl-selectfield select { float: left; }
    .pdc-search-form .mdl-textfield { width: 100%; margin-bottom: 10px; }
    #pdc-search-options .mdl-checkbox { width: 100%; margin-bottom: 20px; }
    #tx-solr-search-functions { margin:0 -15px 15px -15px; }

    .solr-icon-container {  width: 30px; min-width: 30px; height: 30px; font-size: 15px; line-height:30px;}
    .solr-icon-container .zmdi { font-size:22px; top:12%; }
    .results-teaser { margin-left: 48px; }
    .ccsearch-field.col-xs-12.col-sm-3 { margin-bottom:20px; }
}

/*:: MOBILE */
@media only screen and (max-width: 480px) {
    h1 { font-size: 7vw; }
    h2 { font-size: 6vw; }
    h3 { font-size: 5vw; }
    h4 { font-size: 4vw; }
    .container-fluid, .container { padding-right:5px; padding-left:5px; overflow:hidden; }
    .header .logo { width: 35px; }
    .header .logo a { background: url('../img/gem-maastricht-logo-small.svg') center top no-repeat; width: 35px; height: 50px; top: 10px; }
    .button-menu, .button-search { margin: 10px 0; }
    .frame.alert { padding:15px 30px; }

    .toptaken li, .toptaken .col-md-4 div, .col-md-12.show-on-mobile ul li { width:100%;}
    .page-home.container-fluid.raad .col-md-6:first-child { padding: 0; }
    .page-home.container-fluid.raad .col-md-6:last-child p:last-child, .page-home.container-fluid.raad .col-md-6:last-child p:last-child a { margin-bottom: 0; }

    .theme section { margin:0 0 1% 0; width:100%; }
    .theme section p { display:none; }

    .nav-language{ width: 50%; }
    .nav-footer li, .nav-footer li.last { border:none; display:block; }
    .nav-meta .navbar-nav a { padding: 0 10px 5px 5px; }

    /* Homepage */
    .toptaken .row.grid { margin-right: -15px; }
    .toptaak { background: #fff; }
    .toptaak, .highlight  { margin-bottom: 10px; }
    .toptaken .mdl-card__title-text, .toptaken .mdl-button--fab, .toptaken .mdl-card { display: inline !important; }
    .toptaken .mdl-card { min-height: auto; min-height:50px; }
    .toptaken .mdl-card__title-text { width: 80%; margin: 0; float: left; position: absolute; left: 0; top: 0; font-size: 1.64rem; margin-left: 20%; padding: 25px 0; }

    .toptaken .col-md-4 div:nth-child(odd) { margin-right: 0; }
    .toptaken .col-md-4 div:nth-child(even) { margin-left: 0; }
    .toptaak [class^="ssfh-icon-"]:before, .toptaak [class*=" ssfh-icon-"]:before { width: 40px; color: #FFF; font-size: 20px; line-height: 40px; top: 0; float: left; height: 40px; background: #D71920; border-radius: 100%; }

    .highlight { min-height: 200px; }
    .highlight .highlight-image { width: 120%; }

    /* Solr */
    .pdc-az-index li a { margin: 4% 4% 0 0; width: 30.333333%; }
    .pdc-az-index li:nth-child(3n+3) a { margin: 4% 0 0 0; }

    .csc-menu-def li span.link { font-size: 5vw; }

    /* DigiD */
    .pdcproduct_postdescription a[href*="https://www.digid.nl"] {
      display:inline-block;
      line-height: 60px;
      margin: 10px 0 0 0;
    }
    .pdcproduct_postdescription a[href*="https://www.digid.nl"]:after {
      display: block;
      margin:0 0 0 20px;
    }

}