/* CONTINENCE MATTERS CUSTOM STYLES */


.fixed-sn main {font-family: Georgia,serif; font-size: 18px; color: #2E5691; }
/*.fixed-sn main {color: #2E5691;}
	h1.site-title span, h1.page-title {font-family: Georgia, serif;}*/

[data-children="1"]:not(.child-active) .rotate-icon { transform: rotate(0deg); } /* extends md bootstrap, 3rd level menu */



.side-nav {width: 300px;}
@media (min-width: 1440px) {
  .fixed-sn .double-nav,
  .fixed-sn main,
  .fixed-sn footer {
  padding-left: 300px; }
  }


.side-nav .logo-wrapper, .side-nav .logo-wrapper a {height: 63px;}
 .navy-blue-skin .side-nav {background-color: #2e5691;}
.side-nav .collapsible a {white-space: nowrap; text-overflow: ellipsis; }
.navy-blue-skin .side-nav .collapsible li a.active, .navy-blue-skin .side-nav .collapsible li a:hover  {background-color:#3197df;}
.navy-blue-skin .navbar .navbar-nav .nav-item .dropdown-menu a:hover, .navy-blue-skin .navbar .navbar-nav .nav-item .dropdown-menu a:focus, .navy-blue-skin .navbar .navbar-nav .nav-item .dropdown-menu a:active {
      background-color: #3197df; }
.navy-blue-skin .side-nav .collapsible li .collapsible-header.active, .navy-blue-skin .side-nav .collapsible li .collapsible-header:hover {background-color: rgba(48, 147, 216, 0.8);}
.navy-blue-skin .side-nav .collapsible ul li.active {background-color: red;}

b, strong {font-weight: 600;}

h2,h3,h4,h5 {font-family: Helvetica, Arial, sans-serif; letter-spacing: 0.2px;}
h2 {font-size: 1.3rem;}
h3 {font-size: 1.2rem; text-transform: uppercase;}
h4 {font-size: 1.1rem;}
h5 {font-size: .9rem;}


.accordion .card .card-header {padding: 1rem 1.25rem; padding-left: 0;}
.accordion .card .card-body {font-size: inherit; padding-left: 0;}

footer h5 {border-bottom: solid 1px #ddd; padding-bottom: 5px; font-weight: 400;}

.card {margin-bottom: 15px;}
.video .card-body {height: 60px; overflow: hidden;}
.card-body h3 {font-size: .8rem;}
.card .card-body h3 {padding: 0;}

input.quick-search {background-color: #efefef; padding: 8px 15px; border-radius: 5px;}
.search-result {border-bottom: solid 1px #ccc; padding: 15px 0;}
.search-result h3 { font-family: Helvetica,Arial; text-transform: uppercase; }

.logo-drop {background-image: url(/images/cm-logo-bg.png); background-width:300px; height: 170px; background-size: cover;}
a.brand {font-family: Georgia, serif; font-size: 1.35rem; text-align: center; color: #fff ; font-variant: small-caps; padding-bottom: 0px;}


h1.page-title {text-transform: uppercase; letter-spacing: 1px;  }
.spacer {width: 60px; height: 1px; border-bottom: solid 1px #2E5691;}
h1.site-title {text-transform: uppercase; letter-spacing: 1px; }
h1.site-title span {border-bottom: solid 1px #2E5691;}


aside.page-info h4 {font-family: sans-serif; text-transform: uppercase; font-size: 12px; font-weight: 400;}


.page-content h2 { text-transform: uppercase;  font-weight: 400; padding-bottom: 1rem; padding-top: 1rem;}

.page-content img {
  max-width: 100%;
}

.print-only, .print-header {display: none;}

/* HONEYCOMB GRID */

#hexGrid {
  display: flex;
  flex-wrap: wrap;
  width: 90%;
  margin: 0 auto;
  overflow: hidden;
  font-size: 15px;
  list-style-type: none;
}

.hex {
  position: relative;
  visibility:hidden;
  outline:1px solid transparent; /* fix for jagged edges in FF on hover transition */
}
.hex::after{
  content:'';
  display:block;
  padding-bottom: 86.602%;  /* =  100 / tan(60) * 1.5 */
}
.hexIn{
  position: absolute;
  width:96%;
  padding-bottom: 110.851%; /* =  width / sin(60) */
  margin:0 2%;
  overflow: hidden;
  visibility: hidden;
  outline:1px solid transparent; /* fix for jagged edges in FF on hover transition */
  -webkit-transform: rotate3d(0,0,1,-60deg) skewY(30deg);
      -ms-transform: rotate3d(0,0,1,-60deg) skewY(30deg);
          transform: rotate3d(0,0,1,-60deg) skewY(30deg);
}
.hexIn * {
  position: absolute;
  visibility: visible;
  outline:1px solid transparent; /* fix for jagged edges in FF on hover transition */
}
.hexLink {
    display:block;
    width: 100%;
    height: 100%;
    text-align: center;
    color: #fff;
    overflow: hidden;
    -webkit-transform: skewY(-30deg) rotate3d(0,0,1,60deg);
        -ms-transform: skewY(-30deg) rotate3d(0,0,1,60deg);
            transform: skewY(-30deg) rotate3d(0,0,1,60deg);
}

/*** HEX CONTENT **********************************************************************/
.hex img {
  left: -100%;
  right: -100%;
  width: auto;
  height: 100%;
  margin: 0 auto;
  -webkit-transform: rotate3d(0,0,0,0deg);
      -ms-transform: rotate3d(0,0,0,0deg);
          transform: rotate3d(0,0,0,0deg);
}

.hex h2, .hex p {
  width: 100%;
  padding: 5%;
  box-sizing:border-box;
  background-color: rgba(46, 86, 145, 0.8);
  font-weight: 300;
  margin: 0;
  -webkit-transition:  -webkit-transform .2s ease-out, opacity .3s ease-out;
          transition:          transform .2s ease-out, opacity .3s ease-out;
}
.hex.feature h2 {background-color: #D0D74E;}
.hex h2 {
  padding-bottom: 60%;
  padding-top:45%;
  font-size: 1.2em;
  z-index: 1;
}





/*** HOVER EFFECT  **********************************************************************/
.hexLink:hover h2, .hexLink:focus h2
{
  background-color: rgba(45,86,145, .4);
          color: yellow;
}

/*** HEXAGON SIZING AND EVEN ROW INDENTATION *****************************************************************/
@media (min-width:1201px) { /* <- 5-4  hexagons per row */
  #hexGrid{
    padding-bottom: 4.4%
  }
  .hex {
    width: 20%; /* = 100 / 5 */
  }
  .hex:nth-child(9n+6){ /* first hexagon of even rows */
    margin-left:10%;  /* = width of .hex / 2  to indent even rows */
  }
}

@media (max-width: 1200px) and (min-width:901px) { /* <- 4-3  hexagons per row */
  #hexGrid{
    padding-bottom: 5.5%
  }
  .hex {
    width: 25%; /* = 100 / 4 */
  }
  .hex:nth-child(7n+5){ /* first hexagon of even rows */
    margin-left:12.5%;  /* = width of .hex / 2  to indent even rows */
  }
}

@media (max-width: 900px) and (min-width:601px) { /* <- 3-2  hexagons per row */
  #hexGrid{
    padding-bottom: 7.4%
  }
  .hex {
    width: 33.333%; /* = 100 / 3 */
  }
  .hex:nth-child(5n+4){ /* first hexagon of even rows */
    margin-left:16.666%;  /* = width of .hex / 2  to indent even rows */
  }
}

@media (max-width: 600px) { /* <- 2-1  hexagons per row */
  #hexGrid{
    padding-bottom: 11.2%
  }
  .hex {
    width: 50%; /* = 100 / 3 */
  }
  .hex:nth-child(3n+3){ /* first hexagon of even rows */
    margin-left:25%;  /* = width of .hex / 2  to indent even rows */
  }
  .double-nav a {font-size: 12px; text-align: center;}
  .dropdown .dropdown-menu .dropdown-item {text-align: left;}


}

@media (max-width: 400px) {
    #hexGrid {
        font-size: 13px;
    }
}
