/*
 Theme Name:   IFLA Conference Theme
 Description:  The IFLA Conference Theme
 Author:       
 Author URI:   http://www.kit-group.org
 Template:     IFLA
 Version:      1.0.0
 
*/


/* Theme customization starts here
-------------------------------------------------------------- */

/* CUSTOMIZING STYLES */
body {
    background-color: #857d78;
    color: #58585a; #B01F09
    font: 1em "proxima-nova", sans-serif;
    height: auto;
}

.page-header {
    border-bottom: 3px solid #b01f09;
}

.slogan {
    color: #B01F09;
    font: 1.1em "proxima-nova", sans-serif !important;
    font-style: italic !important;
    font-weight: bold !important;
    padding-top: 4% !important;
    }

@media (min-width: 992px) {
    .page-header {
        border-bottom: 0;
    }
}

footer.container {
    margin: 0 -10px;
}

@media (min-width: 767px) {
    .wave-in-a-box {
        box-shadow: 0 0 8px rgba(0, 0, 0, .4);
        margin-top: 2em;
    }

    footer.container{
        margin: 0 0 0 -50px;
        padding: 40px 50px 20px;
    }
}

@media (min-width: 767px) {
    .wave-in-a-box.container {
        padding-left: 50px;
        padding-right: 50px;
    }
}

.button {
    background-color: #fff;
    border: 2px solid #b01f09;
    border-radius: 0;
    color: #b01f09;
    display: inline-block;
    text-transform: uppercase;
    padding: .5em 1.5em;
}

.button:hover {
    background-color: #b01f09;
}

/* Hero Unit */
.hero img {
    height: auto;
    width: 100%;
}

.hero-subline {
    background-color: #b01f09;
    margin: 0 0 0;
    position: relative;
    top: 0;
}

.hero-subline h2 {
    color: #fff;
    font-size: 1.2em;
    font-weight: 400;
    margin: 0;
    padding: 3px 10px 4px;
}

@media (min-width: 767px) {
    .hero {
        margin-left: -50px;
        margin-right: -50px;
    }

    .hero-subline {
        box-shadow: 1px 1px 3px rgba(0, 0, 0, .8);
        display: inline-block;
        margin: -95px 0 0 -50px;
        top: -65px
    }

    .hero-subline h2 {
        display: inline-block;
        font-size: 2.2em;
        margin: 0;
        padding: 3px 10px 5px 50px;
    }
}



/* Next Menu */
header #more-menu.menu-wrapper a {
    padding: 1em 2em;
    display: block;
}

header #more-menu.menu-wrapper li.facebook a,
header #more-menu.menu-wrapper li.twitter a,
header #more-menu.menu-wrapper li.vimeo a {
    width: 25px;
}

header #more-menu.menu-wrapper li.facebook a:before,
header #more-menu.menu-wrapper li.twitter a:before,
header #more-menu.menu-wrapper li.vimeo a:before {
    background-image: url(images/social-icons.png);
    background-size: auto 100%;
    content: ' ';
    height: 25px;
    left: 8px;
    position: absolute;
    top: 1em;
    width: 25px;
    z-index: 5;
}

header #more-menu.menu-wrapper li.twitter a:before {
    background-position: -100px 0;
}

header #more-menu.menu-wrapper li.vimeo a:before {
    background-position: -50px 0;
}

.cmn-toggle-switch__htx {
    background-color: #b01f09;
}

.cmn-toggle-switch__htx.active {
    background-color: #c41516;
}

.cmn-toggle-switch:not(.cmn-toggle-switch__htx) {
    background-color: transparent;
}

.cmn-toggle-switch.active:not(.cmn-toggle-switch__htx) {
    background-color: #ccc;
}

.cmn-toggle-switch:not(.cmn-toggle-switch__htx) span,
.cmn-toggle-switch:not(.cmn-toggle-switch__htx) span:before,
.cmn-toggle-switch:not(.cmn-toggle-switch__htx) span:after {
    background-color: #999;
}

@media (min-width: 992px) {
    /* Menus */
    .menu-box {
        border: 0;
    }

    /* Main Menu */
    header #main-menu.menu-wrapper {
        background-color: #b01f09;
    }

    header #main-menu.menu-wrapper li:first-child {
        border-left: 1px solid #CC6D4E;
    }

    header #main-menu.menu-wrapper li {
        border-color: #CC6D4E;
    }

    header #main-menu.menu-wrapper a {
        color: #fff;
        font-size: 1em;
    }

    header #main-menu.menu-wrapper a:active,
    header #main-menu.menu-wrapper a:hover,
    header #main-menu.menu-wrapper a:focus {
        background-color: #CC6D4E;
    }

    .main-menu-wrapper .menu-main-menu-container > ul > li:not(.menu-item-has-children):hover > a,
    .main-menu-wrapper ul > li:hover > a,
    .main-menu-wrapper ul > li.menu-item-has-children:hover > a {
        background-color: #CC6D4E;
        color: #ffffff;
    }
    
    .main-menu-wrapper .current-menu-item > a,
    .main-menu-wrapper .current-page-parent > a,
    .main-menu-wrapper .current_page_item > a,
    .main-menu-wrapper .current-menu-ancestor > a {
        background-color: #CC6D4E;
        
    }


    /* More Menu */
    header #more-menu.menu-wrapper li {
        border: 0;
    }

    header #more-menu.menu-wrapper a {
        color: #857d78;
        padding: .9em .5em;
    }

    header #more-menu.menu-wrapper a:hover {
        color: #58585a;
    }

    header #more-menu.menu-wrapper li.facebook a,
    header #more-menu.menu-wrapper li.twitter a,
    header #more-menu.menu-wrapper li.vimeo a {
        color: #fff;
        padding: 3px 0 0 2em;
    }

    header #more-menu.menu-wrapper li.facebook a:before,
    header #more-menu.menu-wrapper li.twitter a:before,
    header #more-menu.menu-wrapper li.vimeo a:before {
        left: 0;
        top: 0;
    }

    .main-menu-wrapper ul.sub-menu {
        background-color: transparent;
        box-shadow: 0 0 6px rgba(0, 0, 0, .4);
        color: #857d78;
        padding: 0;
    }

    .main-menu-wrapper ul.sub-menu li {
        border: 0 !important;
        display: block !important;
        float: none !important;
    }

    .main-menu-wrapper .nav > li ul.sub-menu li a {
        background-color: #fff;
        border-top: 1px dotted #ccc;
        color: #58585a !important;
        display: block;
        padding: .9em 1.4em;
    }

    .main-menu-wrapper .nav > li ul.sub-menu li:first-child a {
        border-top: 0;
    }

    .main-menu-wrapper .nav > li ul.sub-menu li a:hover {
        background-color: #CC6D4E !important;
        color: #ffffff !important;
    }

    /* Mentioned next menu items */
    header #more-menu.menu-wrapper li.mention a {
        color: #E22727;
    }
}

@media (min-width: 1200px) {
    header #main-menu.menu-wrapper a {
        font-size: 1.1em;
    }
}

.mobile-bar {
    background: transparent;
}

h3 {
    font-size: 1.4em;
    margin: 0;
}

/* CONTENT */
.content {
    padding-bottom: 2em;
    line-height: 1.5em;
}

.content h1 {
    color: #23829f;
    font-weight: 400;
    font-size: 2em;
    margin: 1em 0 1em;
}

.content h2 {
    color: #b01f09;
    font-weight: 400;
    font-size: 1.6em;
    font-weight: bold;
    margin-bottom: .7em;
}

.content h3 {
    color: #23829f;
    font-weight: 400;
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: .25em;
}

.content h4 {
    color: #b01f09;
    font-weight: 400;
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: .25em;
}

/*.content > * h1:first-child,*/
.content > * h2:first-child,
.content > * h3:first-child {
    margin-top: 0;
    padding-top: 0;
}

/* SUBMENU */
.submenu {
    margin-bottom: 1.5em;
}

.submenu ul {
    margin: 0;
    padding: 0;
}

.submenu li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.submenu li a:hover{
    list-style: none;
    margin: 0;
    padding: 0;
}

.submenu li a {
    background-color: #b01f09;
    border-bottom: 1px solid #CC6D4E;
    color: #fff;
    display: block;
    line-height: 1em;
    padding: .8em;
}

.submenu li a:hover {
    background-color: #CC6D4E;
    border-bottom: 1px solid #b01f09;
    color: #fff;
    display: block;
    line-height: 1em;
    padding: .8em;
}

.submenu li.has-dropdown > a {
    border-bottom: 0;
}

.submenu ul ul a {
    background-color: #CC6D4E;
}

.submenu li.current-menu-item > a {
    background-color: #CC6D4E;
    border-bottom: 1px solid #fff;
    border-top: 1px solid #fff;
    font-weight: bold;
}

li.submenu-toggle {
    cursor: pointer;
    padding: .5em 0 0;
    font-size: 1.3em;
}

/* HOMEPAGE */
.news article {
    border-bottom: 1px solid #bbbdbe;
    padding-top: 1.1em;
}

.news article:last-of-type,
.news article:last-child {
    border: 0;
}

.news article:first-of-type,
.news article:first-child {
    padding-top: 0;
}


.news article a {
    color: #231f20;
    display: block;
}

.news h1 {
    background-color: #b01f09;
    color: #fff;
    font-weight: 400;
    font-size: 2em;
    margin: 0 10px .7em;
    padding-left: 10px;
}

@media (min-width: 992px) {
    .news {
        background-color: #f0f3f4;
        margin: 0 -50px;
    }

    .news > div {
        padding: 0 50px;
    }

    .news h1 {
        background-color: #b01f09;
        color: #fff;
        font-weight: 400;
        font-size: 2em;
        padding: .5em 50px;
        margin: -31px 0 .8em;
    }
}

.recent-posts {
    margin-top: 2em;
}

.homepage .promoted {
    padding: 2em 0;
}

.homepage .promoted a {
    color: #231f20;
    display: block;
}

.homepage .promoted h3 {
    margin-bottom: 1em;
}

.homepage .promoted .image {
    text-align: center;
}

.homepage .promoted img {
    height: auto;
    margin: 1.5em 0 2.5em;
    max-width: 100%;
}


/* CARDS */
.flex {
    background-color: transparent !important;
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;

    -webkit-box-direction: normal;
    -moz-box-direction: normal;
    box-direction: normal;

    -webkit-box-orient: horizontal;
    -moz-box-orient: horizontal;
    box-orient: horizontal;

    -webkit-flex-direction: row;
    -ms-flex-direction: row;
    flex-direction: row;

    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;

    -webkit-justify-content: space-between;
    justify-content: space-between;

    -webkit-align-content: stretch;
    -ms-align-content: stretch;
    -moz-align-content: stretch;
    align-content: stretch;
}

.card {
    background-color: #fff;
    border: 1px solid #dfdfdf;
    border-radius: 2px;
    -webkit-flex: 0 1 100%;
    -ms-flex: 0 1 100%;
    -moz-flex: 0 1 100%;
    flex: 0 1 100%;
    margin-bottom: 1em;
    padding: 1em 1.5em 0;
    position: relative;
    text-align: left;
    -webkit-user-select: none;
}

.card:after {
    content: ' ';
    display: block;
    height: 1px;
    margin: 0 auto;
    padding: 0 0 1.1em;
    width: 100%;
}

@media (min-width: 767px) {
    .card {
        -webkit-flex: 0 0 auto;
        -ms-flex: 0 0 auto;
        -moz-flex: 0 0 auto;
        flex: 0 0 auto;
        width: 49%;
    }
}


/* ARTICLE META */
.article-meta {
    margin: 0 0 1.5em;
    padding: 0;
    list-style: none;
    font-size: .8em;
}

.article-meta li {
    border-right: 1px solid #bcc0c1;
    display: inline-block;
    padding: 0 .5em 0 .2em;
}

.article-meta li:first-child {
    padding-left: 0;
}
.article-meta li:last-child {
    border: 0;
}

.article-meta:before,
.article-meta:after {
    border-bottom: 1px solid #bcc0c1;
    content: ' ';
    display: block;
    height: 1px;
    margin: 0 auto .5em;
    padding: .5em 0 0;
    width: 100%;
}

.article-meta i.md {
    color: #bcc0c1;
}

/* FOOTER */
footer {
    background-color: #b01f09;
    color: #fa7f80;
    margin-left: -15px;
    margin-right: -15px;
    padding: 25px 15px 20px;
}

footer a {
    color: #fff;
}

footer a:active,
footer a:hover,
footer a:focus {
    background-color: transparent !important;
    background: none !important;
}

footer .nav {
    -webkit-column-count: 2; /* Chrome, Safari, Opera */
    -moz-column-count: 2; /* Firefox */
    column-count: 2;

    -webkit-column-gap: 1em; /* Chrome, Safari, Opera */
    -moz-column-gap: 40px; /* Firefox */
    column-gap: 40px;

    margin-bottom: 2em;
}

footer .nav li {
    display: block;
}

footer .ifla-logo {
    height: auto;
    width: 50px;
}

@media (min-width: 992px) {
    /* Footer Menu */

}

.logo-info {
    padding: 30px 0 20px;
}

@media (min-width: 992px) {
    .logo-info {
        padding-bottom: 20px;
        padding-top: 30px;
        font-size: .95em;
    }
}

.site-logo {
    padding: 0 0 2em;
    text-align: center;
}

.site-logo img {
    width: 170px;
}


@media (max-width: 992px) {
    .site-logo {
        float: none !important;
    }

    .conference-info {
        float: none !important;
    }
}

@media (min-width: 992px) {
    .site-logo {
        box-sizing: content-box;
        padding: .3em 2em 0 0;
        width: 170px;
    }

    .site-logo img {
        width: 150px;
    }
}

.conference-info h1,
.conference-info h2 {
    margin: 0;
    padding: 0;
    line-height: 1em;
}

.conference-info h1 {
    font-size: 1.2em;
    padding-bottom: .15em;
    padding-top: .08em;
}

.conference-info h2 {
    font-size: .8em;
    font-weight: 400;
}

.conference-info h2.date-place {
    font-weight: 700;
    padding-top: 1.1em;
}

.conference-info h2.date-place ins {
    font-weight: 400;
    text-decoration: none;
}

@media (min-width: 992px) {
    .conference-info h1 {
        font-size: 2em;
    }

    .conference-info h2 {
        font-size: 1.05em;
    }
}

#menu-item-604 {
    font-weight: 400;
    text-decoration: none;
}

@media screen and (max-width: 600px) {
table {width:100%;}
thead {display: none;}
tr:nth-of-type(2n) {background-color: none;}
tr td:first-child {background: none;border-top:4pt solid #B01F09;}
tbody td {display: block;  text-align:center;}
tbody td:before { 
    content: attr(data-th); 
    display: block;
    text-align:center; 
    font-weight: bold; 
  }
}
