/*--------------------------------------------------------
    FONT ASSIGNMENTS
--------------------------------------------------------*/

:root {
    --primary: #507DB4;
    --secondary: #2F5072;
    --accent: #3498db;
    --header-height: 292px;
    --footer-height: 112px;

}

body {
    font-family: "Open Sans", arial, sans;
    font-size: 16px;
}

p {
    color: #333333;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    font-family: 'Roboto', sans-serif;
    margin: 0 0 1em;
}

/*--------------------------------------------------------
    ALIGNMENT
--------------------------------------------------------*/
.txt-c {
    text-align: center;
}

.txt-l {
    text-align: left;
}

.txt-r {
    text-align: right;
}

/*--------------------------------------------------------
    H1 - H6
--------------------------------------------------------*/
h1,
h2,
h3 {
    margin: 0px;
    padding: 0px;
}

h1 {
    color: #4C7298;
    font-size: 48px;
    font-weight: bold;
    margin: 10px 0 1em 0;
    font-family: 'Source Sans Pro', sans-serif;
}

#mms-main h1.title {
    font-size: 28px;
}

h2 {
    color: #4C7298;
    font-size: 38px;
    margin: 10px 0 .75em 0;
    font-family: 'Source Sans Pro', sans-serif;
}

h3 {
    color: #4C7298;
    font-size: 28px;
    margin: 10px 0 .75em 0;
    font-family: 'Source Sans Pro', sans-serif;

}

/*--------------------------------------------------------
    LINKS
--------------------------------------------------------*/
a {
    color: var(--primary);
    text-decoration: underline;
}

a:hover {
    color: var(--accent);
}

/*a.black			{ color: #000000; }
a.white 		{ color: #ffffff; }
a.white:hover 	{ color: #cecece; }*/

/*--------------------------------------------------------
    IMAGES
--------------------------------------------------------*/
img {
    border: 0px;
    max-width: 100%;
}

/*--------------------------------------------------------
    Objects
--------------------------------------------------------*/

.center-block {
    text-align: center;
    display: block;
    margin-right: auto;
    margin-left: auto;
}

.button-link {
    color: #fff;
    background-color: var(--primary);
    border-color: var(--primary);
    padding: 0.7em 1em;
    margin-top: 1em;
    display: inline-block;
    margin-bottom: 1em;
    font-size: 18px;
    text-decoration: none;
    border-radius: 5px;
}

.button-link.large {
    font-size: 38px;
}

.button-link:hover,
.button-link:focus {
    color: #fff;
    background-color: hsl(from var(--primary) h s calc(l* 0.85));
    text-decoration: none;
}

/* Lists */

:is(#homepage-main, #subpage-main) ul {
    margin-bottom: 30px;
}

:is(#homepage-main, #subpage-main) li::marker {
    color: var(--primary);
}

/* Accordions */

:is(#homepage-main, #subpage-main) .panel-default>.panel-heading {
    position: relative;
    color: white;
    background-color: var(--primary);
    border: 0;
}

:is(#homepage-main, #subpage-main) .panel-title>a {
    text-decoration: none;
}

:is(#homepage-main, #subpage-main) .panel-title>a:is(:hover, :focus) {
    color: white;
    text-decoration: none;
}

:is(#homepage-main, #subpage-main) .panel-title>a::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

:is(#homepage-main, #subpage-main) .panel-title>a.collapsed::after {
    transform: rotate(45deg) translateY(-5px)  translateX(-2px);
}

:is(#homepage-main, #subpage-main) .panel-title>a::after {
    content: '◢';
    position: absolute;
    right: 25px;
    color: white;
    transform: rotate(-135deg);
    display: inline-block;
    margin-left: 5px;
    scale: .5;
    transition: .125s transform ease-in-out;
}


/*--------------------------------------------------------
    MODAL LOGIN
--------------------------------------------------------*/
.modal-content {
    width: 280px;
    border-radius: 0;
}

.modal-dialog {
    display: block;
    width: 19%;
    text-align: center;
}

.modal-body {
    padding: 10px 20px 20px;
}

.modal-title {
    text-align: center;
}

input[type="text"],
input[type="password"] {
    margin: 5px 0 5px;
    border: 1px solid #737373;
    padding: 5px 0;
    text-indent: 5px;
}

/*--------------------------------------------------------
    HEADER
--------------------------------------------------------*/
#wide-background {
    /*background-image: url("https://www.itbe.org/redesign/images/wide-bg.jpg");*/
    background-repeat: repeat-x;
    background-size: 1px 405px;
    min-height: 405px;
}

#header-bg {
    background-color: #F2F2F2;
    height: 251px;
}

#header-wrap {
    padding-top: 20px;
    padding-bottom: 40px;
}

#header-container {
    font-family: "Open Sans", arial, sans;
    /* background: #F2F2F2; */
}

#main-menu {
    margin-top: 30px;
    float: left;
}

#login_top {
    text-align: right;
    margin-bottom: 15px;
}

#login_top a {
    color: white;
    background-color: var(--primary);
    border-radius: 5px;
    padding: 7px 15px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
}

#login_top a:not(:last-of-type) {
    margin-right: 0;
}

#login_top a:is(:hover, :focus) {
    text-decoration: none;
    background-color: hsl(from var(--primary) h s calc(l* 0.85));
}

#search_top {
    float: right;
    display: inline-block;
    margin-left: 10px;
    margin-bottom: 10px;
}

#searchbox {
    border-radius: 5px;
    border: 1px solid var(--primary);
    padding: 0px 2px 2px 2px;
    width: 190px;
    height: 38px;
    max-width: 100%;
}

#q {
    margin: 0;
    width: 70%;
    border: none;
    padding: 7px 0;
    text-indent: 9px;
    background-color: transparent;
}

#q:is(:focus, :focus-visible) {
    outline: 0;
}

#q::placeholder {
    color: var(--primary);
}

.search-button {
    background-image: url("https://www.itbe.org//images/search-icon-new.svg");
    background-size: cover;
    margin: 5px;
    padding: 0;
    width: 23px;
    height: 23px;
    border: none;
    position: relative;
    top: 0px;
    left: 20px;
    background-color: transparent;
}

#social-media {
    text-align: right;
    display: inline-block;
    float: right;
}

#social-media p {
    color: var(--primary);
    font-weight: 600;
    font-size: 16px;
    width: 30%;
    line-height: 18px;
    float: left;
    text-align: left;
    position: relative;
    left: 45px;
}

#social-media img {
    width: 38px;
    height: 38px;
}

/*--------------------------------------------------------
    MOBILE MENU
--------------------------------------------------------*/
#mobileMenuWrapper {
    position: fixed;
    top: -1px;
    bottom: 0px;
    z-index: 100;
    overflow-y: auto;
    overflow-x: hidden;
    left: -120%;
    width: 225px;
    max-width: 100%;
    height: 100%;
    border: 2px solid var(--primary);
    background-color: #F2F2F2;
    transition: all 300ms cubic-bezier(1, 0.01, 0, 1) 0s;
}

#mobileMenuWrapper.open {
    left: 0px;
    bottom: 0px;
}

#mobileMenuWrapper #mobile-menu {
    overflow: auto;
    padding: 0px 20px 10px;
}

#mobileMenuWrapper ul {
    margin: 0px;
    padding: 0px;
    list-style-type: none;
}

#mobile-menu>li#triggerClose {
    color: var(--primary);
    float: right;
    display: inline;
    font-size: 22px;
    cursor: pointer;
    transform: rotate(45deg);
}

#mobileMenuWrapper #mobile-menu a {
    width: 100%;
    color: var(--primary);
    display: inline-block;
    margin: 10px 0 0 0;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
}

#mobileMenuWrapper ul.mDropdown {
    margin: 0 15px;
    display: none;
}

#mobile-menu a {}

#mobile-toggle {
    border: none;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
}

#mobile-menu-col {
    top: 3px;
    right: 0px;
    float: right;
    position: relative;
}

#mobile-logo {
    width: 40%;
    float: left;
    margin-top: 27px;
    margin-bottom: 20px;
}

#mobile-logo a {
    margin: 0 !important;
}

#mobile-logo svg#logo {
    width: 250px;
    max-width: 250px;
}

svg#burger {
    width: 35px;
    height: 35px;
}

.caret {
    border-top: 4px solid var(--primary);
}

.mobile-social-icons {
    float: left;
    padding: 0 8px 15px 0;
}

.mobile-social-icons svg {
    width: 40px;
    height: 40px;
}

#mobile-search {
    margin: 35px 0 0;
}

#mobile-search #q {
    width: 69%;
}

#mobile-search .search-button {
    left: 15px;
}

/*--------------------------------------------------------
    INDEX / MAIN BODY
--------------------------------------------------------*/

/* Main */

main {
    --gap: 40px;
    min-height: calc(100vh - var(--header-height) - var(--footer-height));
}

main>#page>.row:not(#slide-row) {
    position: relative;
    padding-block: var(--gap);
    /* padding-top: var(--gap); */
}

main:is(#subpage-main, #mms-main)>#page>.row {
    padding-block: calc(var(--gap) / 2);
}

main:is(#subpage-main, #mms-main)>#page>.row:first-child {
    padding-top: var(--gap);
}

main:is(#subpage-main, #mms-main)>#page>.row:last-child {
    padding-bottom: var(--gap);
}

@media (max-width: 990px) {
    main:is(#homepage-main, #subpage-main)>#page>.row>.column:not(:first-child) {
        margin-top: var(--gap);
    }
}

@media (max-width: 767px) {
    main {
        --gap: 35px;
    }
}

@media (max-width: 550px) {
    main {
        --gap: 30px;
    }
}


/*--------------------------------------------------------
    Homepage 
--------------------------------------------------------*/

/* #main-container {
    margin-top: 30px;
    margin-bottom: 20px;
} */

.carousel-caption {
    margin: 0px;
    position: absolute;
    z-index: 99;
    top: 10px;
    bottom: 10px;
    right: 10px;
    left: auto;
    width: 270px;
    text-align: center;
    /* height: 340px; */
    float: right;
    padding: 20px 19px;
    background-color: #285889;
}

.carousel-caption h1 {
    color: #fff;
    font-size: 32px;
    text-align: left;
    text-shadow: none;
}

.carousel-caption p {
    color: #fff;
    text-shadow: none;
    font-size: 18px;
    text-align: left;
}

.carousel-caption a {
    color: #ffffff;
    font-size: 14px;
    text-shadow: none;
    background-color: transparent;
    padding: 15px 50px;
    border-radius: 7px;
    border: 2px solid;
    font-weight: bold;
    position: relative;
    top: 25px;
}

/* Slide-row */

#slide-row {
    padding-top: 0;
    padding-bottom: var(--gap);
}

#slide-row .carousel-indicators li {
    background-color: var(--primary)
}
#slide-row .carousel-indicators li:not(:last-of-type) {
    margin-right: 5px;
}


#slide-row .carousel-control {
    display: block;
    text-indent: -9999px;
    z-index: 100;
}

#slide-row .carousel-control:is(:hover, :focus) {
    outline: 0;
}

#slide-row .carousel-control.left,
#slide-row .carousel-control.right {
    display: block;
    background-image: none;
}

#slide-row .carousel-control.left {
    top: unset;
    right: calc(25px + 32px + 10px);
    bottom: 38px;
    left: auto;
    vertical-align: middle;
    text-align: center;
    /* padding-right: 5px; */
    width: 32px;
    height: 32px;
    transform: translateY(50%);
}

#slide-row .carousel-control.left:after {
    content: '';
    background-image: url(../images/left-arrow.svg);
    background-position-x: 10px;
    background-position-y: center;
    background-repeat: no-repeat;
    width: 32px;
    height: 32px;
    display: block;
    position: relative;
    top: -29px;
    left: 0;
    text-indent: 0;
    background-color: #507DB4;
    border-radius: 2px;
}

#slide-row .carousel-control.right {
    top: unset;
    right: 25px;
    left: auto;
    bottom: 38px;
    margin: auto;
    vertical-align: middle;
    text-align: center;
    /* padding-left: 5px; */
    width: 32px;
    height: 32px;
    transform: translateY(50%);
}

#slide-row .carousel-control.right:after {
    content: '';
    background-image: url(../images/right-arrow.svg);
    background-position-x: 13px;
    background-position-y: center;
    background-repeat: no-repeat;
    width: 32px;
    height: 32px;
    display: block;
    position: relative;
    top: -29px;
    right: 0;
    text-indent: 0;
    background-color: #507DB4;
    border-radius: 2px;
}

@media (max-width: 991px) {
    #slide-row .carousel-control.right {
        bottom: 25px;
    }

    #slide-row .carousel-control.left {
        bottom: 25px;
    }
}

@media (max-width: 500px) {
    #slide-row .carousel-control.left, 
    #slide-row .carousel-control.right {
        display: none;
    }
}

/* Welcome Row */


#welcome,
#recent-news,
#quick-links,
#events-wrap,
#resources {
    padding-bottom: 10px;
    /* float: left;
    width: 100%; */
}

#welcome-wrap h2 {
    font-size: 30px;
}

#welcome-wrap p {
    font-size: 24px;
}

@media (max-width: 767px) {
    #welcome-wrap h1 {
        font-size: 32px;
    }

    #welcome-wrap h2 {
        font-size: 20px;
    }

    #welcome-wrap p {
        font-size: 16px;
    }
}

#quick-links h2 {
    border-bottom: 5px solid #4C7298;
}

#quick-links ul {
    padding-left: 0;
}

#quick-links ul li {
    list-style-type: none;
    color: #4C7298;
}

#quick-links ul li a {
    color: #4C7298;
    font-family: 'Roboto';
    font-size: 16px;
    line-height: 30px;
}

#resources h2 {
    border-bottom: 5px solid #4C7298;
}

#resources ul {
    padding-left: 0;
}

#resources ul li {
    list-style-type: none;
    color: #4C7298;
}

#resources ul li a {
    color: #4C7298;
    font-family: 'Roboto';
    font-size: 16px;
    line-height: 30px;
}

.news-wrapper {
    float: left;
}

.news-content h4.side a {
    /* color: #333333; */
}

.date {
    margin: 0;
}

.description {
    margin-bottom: 30px;
}

#events-wrap h2 {
    padding: 0 0 2px;
    border-bottom: 2px solid #4C7298;
}

#events-wrap h3 {
    color: #333;
    margin-bottom: 5px;
    padding-bottom: 3px;
    border-bottom: 5px solid #2D6299;
}

#events-wrap .event-wrapper {
    display: block;
    padding-left: 0px;
    padding-right: 0px;
    margin-bottom: 12px;
}

#events-wrap .date-wrapper {
    display: table-cell;
    padding-right: 10px;
}

#events-wrap .event-date {
    /* height: 42px; */
    max-width: 100%;
    margin-top: 10px;
    text-align: center;
    padding-bottom: 2px;
    border: 1px solid var(--primary);
    border-radius: 3px;
    display: flex;
    flex-direction: column;
}

#events-wrap .event-month {
    padding: 5px 10px;
    color: #fff;
    /* width: 30px; */
    max-width: 100%;
    font-size: 16px;
    text-align: center;
    background-color: var(--primary);
    text-transform: uppercase;
}

#events-wrap .event-day {
    /* bottom: 4px; */
    color: var(--primary);
    font-size: 20px;
    /* position: relative; */
    /* letter-spacing: -1px; */
}

#events-wrap .event-content {
    display: table-cell;
    vertical-align: top;
}

#events-wrap h4.side {
    border: none;
    padding-top: 0;
    margin-top: 10px;
    padding-bottom: 0;
    margin-bottom: 10px;
}

#events-wrap h4.side a {
    font-size: 19px;
    font-weight: normal;
    font-family: 'Roboto';
}

#events-wrap p.description {
    color: #333;
    font-size: 16px;
    line-height: 18px;
}

#events-wrap p.read-more {
    display: none;
}

@media (max-width: 767px) {
    #events-wrap h2 {
        font-size: 28px;
    }
}

/*--------------------------------------------------------
    CSS STYLE FOR INNER PAGES
--------------------------------------------------------*/
#main-container-page {
    margin-bottom: 30px;
}

/*--------------------------------------------------------
    FOOTER
--------------------------------------------------------*/
#footer-container {
    background-color: var(--secondary);
}

#footer-wrap {
    padding-top: 20px;
    padding-bottom: 10px;
}

#footer-wrap p,
#footer-wrap a {
    color: #fff;
    font-size: 18px;
    font-weight: normal;
    font-family: 'Source Sans Pro', sans-serif;
}



/*--------------------------------------------------------*/

