.main-wrapper {
    /* max-width: 1500px; note: use this istead fo Bootstrap's container class if you want to make the content section wider */
    margin: 0 auto;
    padding: 0 50px;
}
.main-wrapper a {
    text-decoration: none !important;
}
.social-sharing-buttons {
    justify-content: left;
}
.social-sharing-buttons svg {
    background-color: #fff;
}
.box_link {
    border: 2px solid #fff;
    padding: 5px 30px;
}
.box_link a {
    color: #fff !important;
}

/*** introduction section ***/
#intro {
    padding: 60px 0 40px 0;
}
#intro .swcat-badge {
    width: 150px;
    padding-right: 60px;
}
#intro .heading {
    font-family: 'Oswald', sans-serif;
    font-weight: 400;
    font-size: 40px;
}

/*** search ***/
.searchbar-wrapper {
    padding: 30px 0;
}
.searchBox{
    right: 0px;
    bottom: 0px;
    width: 100%;
    text-align: right;
}
.searchBox input#searchInputBox {
    background: rgb(15,19,24);
    border: 1px solid #fff;
    width: calc(100% - 85px);
    padding: 3px 10px;
    color: #fff;
    max-width: 400px;
}
.searchBox input[type="button"] {
    background-color: #fff !important;
    height: 33px;
    border-style: none;
    width: 60px;
    margin-left: 10px;
    color: #000;
}
.searchType {
    bottom: 0px;
}
.searchType *{
    color: rgb(98,109,125);
}
.searchType select {
    border: none;
    padding: 5px;
    width: 230px;
    -webkit-appearance: none; /* remove safari styling on pulldown */
    background: url(/themes/t2portal/images/arrow-down.png) 205px 7px no-repeat; 
    color: #fff;
    font-family: 'Oswald', sans-serif !important;
    background-color: transparent;
}
.searchType a:hover, .searchType a.selected {
    color: #fff;
    border-bottom: 1px solid;
}

/*** category boxes ***/
.viewall {
    font-family: 'Oswald', sans-serif;
    font-weight: 400;
    margin-top: 60px;
    color: #fff;
    font-size: 20px;
    position: relative !important;
    bottom: 0;
    padding: 0 20px;
}
.categories{
    padding: 20px 0;
    justify-content: center;
}
.cat-box {
    text-align: center;
    color: #fff;
}
.cat-box img {
    max-width: 55px;
    margin-top: 35px;
    vertical-align: middle;
    border-style: none;
}
.cat-box .label {
    font-family: 'Oswald', sans-serif;
    font-weight: 400;
    color: #fff;
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    width: 75%;
    margin: auto;
    top: calc(100% - 65px);
    vertical-align: middle;
    height: 60px;
    display: flex !important;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 5px;
}

#discover {
    padding: 30px 0;
}
#discover .flexslider {
    background-color: transparent;
    border: none;
    margin: 0px !important;
}
#discover .feature-slider {
    border: 1px solid rgb(29,36,45);
    padding: 30px 50px 35px 50px;
}
#discover .views-field-field-category-image {
    float: left;
    padding-bottom: 20px;
}
#discover .views-field-field-category-image img {
    width: 100px;
    height: 100px;
    padding-right: 30px;
}
#discover .views-field-field-category {
    font-family: 'Oswald', sans-serif !important;
    font-weight: 400;
    color: rgb(25,109,175);
    font-size:2em;
}
#discover .views-field-title {
    font-family: 'Oswald', sans-serif;
    font-weight: 400;
    font-size: 20px;
    padding-top: 10px;
}
#discover .views-field-body .field-content{
    border-top: 1px solid rgb(29,36,45);
    display: block;
    width: 100%;
    clear: both;
    padding-top: 20px;
}
/* additional resources */
#add-resource {
    padding-top: 30px;
}
#add-resource .add-links{
    padding-top: 15px;
}
#add-resource .faq-section {
    /*border: 1px solid rgb(29,36,45);*/
}
#add-resource .faq-title {
    font-family: 'Oswald', sans-serif !important;
    font-weight: 400;
    font-size: 1.5em;
}
#add-resource .faq-block {
    padding: 10px 10px 10px 15px;
}
#add-resource .faq-block .faq-question {
    font-weight: bold;
}
#add-resource .faq-block .faq-answer {
    padding: 20px 0 10px 0;
}
.container .flex-control-paging li a {
    width: 18px;
    height: 18px;
}
.container .flex-control-paging li a {
    background: transparent !important;
    border: 3px solid #333;
}
.container .flex-control-paging li a.flex-active {
    background: #fff !important;
    border: 3px solid #fff;
    box-shadow: none;

}

.flexslider .flex-direction-nav a{
    height: 50px

}
.flexslider .flex-direction-nav a:before{
  color:#fff; 
  height: 20px
}
.cat-box-wrapper {
    text-align: center;
    color: #fff;
    border: 1px solid rgb(29,36,45);
    position: relative;
    margin-bottom: 20px;
    flex: 0 0 calc(16% - 10px);
    flex-wrap: wrap;
    margin-right: 15px;
    height: 190px;
    min-width: 165px;

}

#discover .feature-slider {
    position: relative;
}

#discover ol.flex-control-nav.flex-control-paging {
    bottom: 0;
    top: -35px;
    left: 0;
    width: auto;
    height: 20px;
    display: inline;
    z-index: 10;
}

#discover .flex-control-nav li {
    margin: 0 20px 0 0;
}

#discover .feature-slider {
    padding: 0;
    border: 0;
}

#discover .flexslider {
    /* margin: 20px 0; */
    /* display: block; */
}

#discover .flexslider .slides {
    padding: 20px 20px 20px;
    border: 1px solid rgb(29,36,45);
    margin-top: 15px;
}

#discover .container .flex-direction-nav .flex-prev{
    left: 0;
}
#discover .container .flex-direction-nav .flex-next{
    right: 0;
}
#discover .flex-control-nav li {
    margin: 0 20px 0 0;
}
#discover .flex-direction-nav {
    height: 50px;
    position: relative;
    width: 70px;
    left: calc(50% - 35px);
    margin-top: 20px;

}
#discover .flex-direction-nav a:before{
    font-size: 18px;
}
#discover .flexslider .flex-direction-nav a, 
#discover .flexslider .flex-direction-nav a {
    display: block;
    opacity: 1;
    color: transparent !important;
    text-shadow: none;
    border: 1px solid #333;
    text-align: center;
    vertical-align: middle;
    line-height: 30px !important;
    height: 30px !important;
    width: 30px;
}

/* Styles for Bootstrap's col-lg grid */
@media only screen and (max-width: 991px) {
    .title{
        font-size: 1.4em;
        padding: 0;
    }
    #discover .title {
        margin-bottom: 0;
    }
    
    .searchBox {
        position: relative;
        text-align: left;
    }
    .col-lg-2.cat-box-wrapper {
        width: 33.33%;
        padding: 0 5px;
    }
    .cat-box-wrapper{
        flex: 0 0 calc(16% - 10px);
        flex-wrap: wrap;
        margin-right: 10px;
        height: 190px;
        width: 33%;
        flex-grow: 1;
        border: 2px solid #aaa;
        max-height: 170px;
        min-width: 160px;
    }
    .cat-box>a{
        display: block;
        height: 100%;

    }
    .viewall {
        margin-top: 55px;
    }
    .cat-box .label {
        top: calc(100% - 65px);
        width: 90%;
        bottom: auto;
        font-size: 14px;
        vertical-align: middle;
        height: 60px;
        display: flex;
        justify-content: center;
        align-items: center;

    }
    .cat-box img {
        width: 115px;
        margin-top: 25px;
    }
    .row.searchbar-wrapper>.col-lg-6 {
        padding: 5px;
    }

    #discover .views-field-body .field-content,
    #discover .feature-slider {
        padding: 30px 0;
        border: none;
    }
    .col-lg-6, #add-resource .faq-block {
        padding-left: 0;
    }
    img.swcat-badge {
        width: 60px !important;
        padding-right: 0 !important;
        top: 10px;
        position: relative;
    }
    #intro .heading{
        font-size: 1.4em;
        padding-bottom: 2px;
    }
    .blurb {
        font-size: 0.85em;
        padding: 0;
        line-height: 1.3;
    }
    .box_text {
        padding-left: 15px;
    }
    #intro td {
        padding: 0;
        vertical-align: top;
    }
    #discover .views-field-field-category-image img {
        width: 100px;
        height: auto;
        padding-right: 20px;
    }

    #discover .views-field-field-category{
        font-size: 1.4em;
        line-height: 1;
    }
    #discover .views-field-title{
        font-size: 1.4em;
    }
    .views-field.views-field-body {
        font-size: 1em;
        line-height: 1.2;
    }
    .cat-box-wrapper{
        flex: 0 0 calc(16% - 10px);
        flex-wrap: wrap;
        margin-right: 10px;
        height: 190px;
        width: 33%;
        flex-grow: 1;
        border: 2px solid #aaa;
        max-height: 170px;
        min-width: 160px;
        max-width: 160px;
    }
}

@media only screen and (max-width: 846px) {
    #add-resource .add-links .box_link {
        display: block;
        margin-bottom: 5px;
    }
}


@media only screen and (max-width: 767px) {
    .container{
        padding:0;
        font-size:16px;
    }
    .col-lg-12{
        padding:0;
    }
    .row{
        margin:0;
    }
    #intro .swcat-badge {
        max-width: 80px;
        padding-right: 10px;
    }
    .main-wrapper {
        padding: 0 20px;
    }
    #discover .views-field-body .field-content{
        padding: 0;
    }
}

@media only screen and (max-width: 559px) {
    .viewall {
        font-size: 14px;
        margin-top: 37px;
    }
    .cat-box-wrapper {
        max-height: 120px;
        min-width: 100px;
        max-width: 120px;
    }
    .categories>div img {
        width: 40px;
        margin-top: 15px;
    }
    .categories div.label {
        font-size: 0.7em;
        padding: 0 5px;
    }
}

@media only screen and (max-width: 374px) {
    #discover .views-field-title {
        padding: 10px 0 10px;
        line-height: 1;
    }
}
