/*MAVD - Military Affairs and Veterans Department Styles*/


/* MAVD Nav Colors*/
.subNav > .nestedLinkList {
    background: linear-gradient( 90deg, rgba(35, 95, 155, 1) 0%, rgba(94, 152, 194, 1) 100% ) !important;
}
/* Side nav X button*/
.subNav > input {
    background-color: rgba(94,152,194,1) !important;
}

/*Video Pause/Play Button Style*/
.bg-vid__button {
    z-index: 3;
}

/*Header Z index Increase*/
.headerContainer {
    z-index: 1;
}
/*Hide Page Title*/
.page-titles__container .page-titles__title {
    display: none;
}
/*Slightly Taller Video Styles*/
.page__top-media {
    height: 56.25vw;
    max-height: 56.25vw;
    min-height: 800px;
}

@media screen and (max-width:800px) {
    .page__top-media {
        height: 62.5vw;
        max-height: 62.5vw;
        min-height: 62.5vw;
    }
}

.page__top-media video {
    height: 56.25vw;
    max-height: 56.25vw;
    min-height: 800px;
    object-fit: cover;
    object-position: top center;
}

@media screen and (max-width:800px) {
    .page__top-media video {
        height: 62.5vw;
        max-height: 62.5vw;
        min-height: 62.5vw;
    }
}

.page__top-media::after {
    content: '';
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 56.25vw;
    max-height: 56.25vw;
    min-height: 800px;
    background: linear-gradient(0deg, white 0px, rgba(255, 255, 255, 0) 150px, rgba(255, 255, 255, 0) 100%);
}

@media screen and (max-width:800px) {
    .page__top-media::after {
        height: 62.5vw;
        max-height: 62.5vw;
        min-height: 62.5vw;
        background: none;
    }
}

/* Hide normal header text - Only logo needed*/
.page-titles__container h1 {
    display: none;
    color: rgba(0, 0, 0, 0);
    text-shadow: 0px 0px 0px white, 1px 1px 0px black;
}

.header-logo {
    height: 140px;
    line-height: 0;
}

.header-logo__img {
    max-height: 140px;
    width: auto;
    display: block;
}


/* Add in that line on the side of their nav*/
.subNav::after {
    content: "";
    top: 0;
    right: -15px;
    width: 15px;
    height: 100%;
    background: linear-gradient(180deg, rgba(187, 0, 19, 0) 0%, rgba(187, 0, 19, 1) 350px, rgba(255, 255, 255, 0) 700px, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

@media screen and (max-width: 1280px) {
    .subNav::after {
        display: none;
    }
}

/* Content box group styles */
/* First, place all content boxes into a grid */
.content-groups {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    row-gap: 15px;
    column-gap: 50px;
}
/* By default, a content box will take up the entire space*/
.content-boxes-group {
    grid-column: 1 / -1;
}

/* Content groups with this class name will take up 2/3 */
.content-boxes-group.span-2 {
    grid-column: span 2;
}

/* Content groups with this class name will take up 1/3 */
.content-boxes-group.span-1 {
    grid-column: span 1;
}

/* No more shenanigans at 900 - everything set to 1 / -1 */
@media (max-width: 900px) {
    .content-groups {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .content-boxes-group {
        grid-column: 1 / -1;
    }
}

.content-boxes-group {
    /*margin-top: 20px;*/
}

/* Add Star to h2 */
.content-boxes-group__title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.content-boxes-group__title::before {
    content: "";
    width: 40px;
    height: 40px;
    background-image: url('/Content/Images/Departments/MAVD/Title_Star.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    flex-shrink: 0;
}


/* Featured Services Button Area */
.mavd-featured-services .content-boxes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
}

@media (max-width: 900px) {
    .mavd-featured-services .content-boxes {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .mavd-featured-services .content-boxes {
        grid-template-columns: 1fr;
    }
}

/* Card Container */
.mavd-featured-services .contentBox {
    position: relative;
    display: block;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.65);
    box-shadow: none;
    transition: transform .15s ease;
}

.mavd-featured-services .contentBoxBG {
    display: block;
    width: 100%;
    height: 260px; /* gives room for overlay like mockup */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

/* Make blue gradient sit above the image */
.mavd-featured-services .contentBoxBG::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 70px; /* Should match :before*/
    background: linear-gradient(90deg, rgba(35, 95, 155, .9) 0%, rgba(94, 152, 194, .9) 100%);
    z-index: 1;
}

/* Weird red border-top grdient */
.mavd-featured-services .contentBoxBG::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 70px; /* Should match :after*/
    height: 2px;
    background: linear-gradient( 90deg, rgba(187, 0, 19, 1) 0%, rgba(187, 0, 19, 1) 50%, rgba(187, 0, 19, 0) 100% );
    z-index: 2;
}

/* Junk gets in the way, removing it */
.mavd-featured-services .contentBoxCorner,
.mavd-featured-services .contentBoxImageSpacer,
.mavd-featured-services .contentBoxContent {
    display: none;
}

.mavd-featured-services .contentBoxLink {
    display: block;
    text-decoration: none;
    color: inherit;
    position: static;
}

/* Makes it actually clickable */
.mavd-featured-services .contentBoxLink::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
}

.mavd-featured-services .contentBoxTitle {
    background: transparent; /* Moved overlay to .contentBoxBG::after  to it could be transparent*/
    height: 70px; /* should match that overlay height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 12px;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    border-top: none;
    line-height: 1.4em;
    font-size: 15px;
}

.mavd-featured-services .contentBoxTitle::after {
    content: none;
}

/* Title Text */
.mavd-featured-services .contentBoxTableCell {
    font-weight: bold;
    font-size: 20px;
    line-height: 1.2em;
    text-transform: none;
    color: #ffffff;
    position: relative;
    z-index: 3;
    font-family: sans-serif;
    background: linear-gradient(90deg, rgba(42, 123, 155, 0.01) 0%, rgba(69, 128, 255, 0.01) 100%);
}

/* Animate on hover */
.mavd-featured-services .contentBoxBG::after {
    transition: height .25s ease;
}

.mavd-featured-services .contentBoxBG::before {
    transition: bottom .25s ease;
}

.mavd-featured-services .contentBoxTitle {
    transition: height .25s ease;
}

.mavd-featured-services .contentBox:hover .contentBoxBG::after {
    height: 100px;
}

.mavd-featured-services .contentBox:hover .contentBoxBG::before {
    bottom: 100px;
}

.mavd-featured-services .contentBox:hover .contentBoxTitle {
    height: 100px;
}


/* Video (Because of you we care section) */
.mavd-featured-care iframe {
    max-width: 100% !important;
}



/* Leadership Spotlight */
.content-boxes-group.mavd-featured-leader .contentBox.mavd-featured-services__item {
    position: relative;
}

.content-boxes-group.mavd-featured-leader .contentBoxBG {
    float: right;
    width: calc(45% - 15px);
    aspect-ratio: 4 / 5;
    margin-left: 15px;
    margin-bottom: 15px;
    border-radius: 10px;
    box-shadow: 0 0 0 1px #000;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

/* Make portrait clickable */
.content-boxes-group.mavd-featured-leader .contentBoxLink {
    position: absolute;
    top: 0;
    right: 0;
    width: calc(45% - 15px);
    aspect-ratio: 4 / 5;
    border-radius: 10px;
    z-index: 2;
    display: block;
}

    /* Hide visible link title */
    .content-boxes-group.mavd-featured-leader
    .contentBoxLink .contentBoxTitle {
        display: none;
    }

.content-boxes-group.mavd-featured-leader
.contentBoxImageSpacer {
    display: none;
}

/* Bio text */
.mavd-featured-leader {
    font-size: 15px;
    line-height: 1.4em;
}

/* Clamp bio */
.content-boxes-group.mavd-featured-leader .overflow {
    overflow: hidden;
    margin-bottom: 10px;
}

.content-boxes-group.mavd-featured-leader .overflow .webkit {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 10;
    overflow: hidden;
}

/* Ensure bottom links do not wrap beside the image */
.content-boxes-group.mavd-featured-leader
.contentBoxContent > p {
    clear: both;
}

@media (max-width: 900px) {

    .content-boxes-group.mavd-featured-leader .contentBoxBG {
        width: 50%;
    }

    .content-boxes-group.mavd-featured-leader .contentBoxLink {
        width: 50%;
    }
}

@media (max-width: 500px) {

    .content-boxes-group.mavd-featured-leader .contentBoxBG {
        float: none;
        width: 100%;
        margin-left: 0;
    }

    .content-boxes-group.mavd-featured-leader .contentBoxLink {
        width: 100%;
        right: 0;
    }

    .content-boxes-group.mavd-featured-leader .contentBoxContent {
        padding-right: 0;
    }
}

.content-boxes-group.mavd-featured-leader a:link, .content-boxes-group.mavd-featured-leader a:active, .content-boxes-group.mavd-featured-leader a:visited {
    text-decoration: none;
    color: #30567d;
}

.content-boxes-group.mavd-featured-leader a:hover {
    text-decoration: underline;
    color: black;
}


/* Welcome Events */
.mavd-featured-events {
    position: relative;
    margin-top: 30px;
}

.mavd-featured-events::before {
    content: "";
    display: block;
    height: 1px;
    width: 100%;
    background: linear-gradient( 90deg, rgba(35, 95, 155, 0.9) 0%, rgba(94, 152, 194, 0.9) 100% );
    margin-bottom: 30px;
}

/* Footer */
.infoBoxFooter {
    display: table;
    border-top: 1px solid #d7d7d7;
    width: 100%;
    text-align: center;
    padding-top: 10px;
    margin-top: 30px;
}

@media screen and (max-width:680px) {
    .infoBoxFooter {
        display: block;
    }
}

.infoBoxFooterFiftyFifty {
    display: table-cell;
    width: 50%;
    vertical-align: middle;
}

@media screen and (max-width:680px) {
    .infoBoxFooterFiftyFifty {
        display: block;
        width: auto;
    }
}

.infoBoxFooterFiftyFifty:first-of-type {
    text-align: right;
}

@media screen and (max-width:680px) {
    .infoBoxFooterFiftyFifty:first-of-type {
        text-align: center;
    }
}

.infoBoxFooterFiftyFifty:last-of-type {
    text-align: left;
}

@media screen and (max-width:680px) {
    .infoBoxFooterFiftyFifty:last-of-type {
        text-align: center;
    }
}

.infoBoxFooterFiftyFiftyPadding {
    padding: 10px;
}

.infoBoxFooterFiftyFifty:last-of-type .infoBoxFooterFiftyFiftyPadding {
    box-shadow: -1px 0px 0px 0px #8f8f8f;
    padding-left: 11px;
}

@media screen and (max-width:680px) {
    .infoBoxFooterFiftyFifty:last-of-type .infoBoxFooterFiftyFiftyPadding {
        padding-left: 10px;
        box-shadow: none;
    }
}

/* General Page Styles */
blockquote {
    margin: 2rem 0;
    padding: 0;
    border: none;
    background: none;
    color: inherit;
    text-align: center;
}

blockquote p {
    margin: 0;
    font-size: 2rem;
    font-weight: 600;
}

blockquote cite {
    display: block;
    margin-top: 0.5rem;
    font-style: normal;
    opacity: 0.75;
}


/* Form Styles*/
form .ktc-default-section {
    display: inline;
}

.form-field .form-control {
    /*border-radius: var(--radius-size);*/
    border: 1px solid #ccc;
    line-height: 20px;
    font-size: 14px;
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
    border-radius: 4px;
}

form[onsubmit*="window.kentico"] input[type="submit"] {
    height: var(--input-height);
    /*border-radius: var(--radius-size);*/
    border: none;
    width: var(--input-width);
    cursor: pointer;
    background-color: rgb(49, 103, 156);
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
}

.page__content .explanation-text {
    padding-bottom: 20px;
}

.page__content .form-field {
    margin-bottom: 16px;
}

.page__content .form-field .control-label {
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.page__content .editing-form-control-nested-control {
    font-size: 15px;
}

.page__content .form-field .form-control {
    padding: 10px 12px;
    line-height: 1.2;
    min-width: 320px;
}

.page__content .form-field textarea.form-control {
    padding: 10px 12px;
}

.page__content .explanation-text {
    margin-top: 8px;
    padding-top: 0;
    max-width: none;
    width: 100%;
    min-width: 320px;
    line-height: 1.2;
}

.page__content .form-field {
    row-gap: 10px;
}

.page__content .editing-form-control-nested-control .explanation-text {
    display: block;
}

@media screen and (max-width:800px) {
    .page__content .explanation-text {
        min-width: 0;
    }
    .page__content .form-field .form-control {
        min-width: 0;
    }
}

/* Table Styles */
.page__content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
  font-size: 16px;
}
 
.page__content td,
.page__content th {
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
  border: 1px solid #ddd;
  background: none !important;
}
 
.page__content a:hover {
  text-decoration: underline;
}
 
.page__content td:last-child {
  white-space: nowrap;
}

/* Leadership Section */
 
/* Get rid of title box*/
.mavd-leaders-main .contentBox.mavd-leadership__page-title{
  display:none !important;
}
 
.mavd-leaders-main .content-boxes{
  display:grid;
  grid-template-columns:1fr;
  gap:18px;
}
 
@media (min-width:900px){
  .mavd-leaders-main .content-boxes{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
 
.mavd-leaders-main .contentBox.mavd-leadership__page-item{
  position:relative;
  border:2px solid #444;
  border-radius:10px;
  overflow:hidden;
  background:#fff;
  min-height:260px;
}
 
.mavd-leaders-main .contentBox.mavd-leadership__page-item > .contentBoxLink{
  display:block;
  background: linear-gradient(90deg, rgba(35, 95, 155, .9) 0%, rgba(94, 152, 194, .9) 100%);
  color:#fff;
  padding:10px 14px;
  border-bottom:1px solid rgba(0,0,0,.15);
}
 
.mavd-leaders-main .contentBox.mavd-leadership__page-item > .contentBoxLink .contentBoxTableCell{
  color:inherit;
  font-weight:700;
  font-size:22px;
  line-height:1.1;
}
 
.mavd-leaders-main .contentBox.mavd-leadership__page-item > .contentBoxImageSpacer,
.mavd-leaders-main .contentBox.mavd-leadership__page-item .contentBoxCorner{
  display:none;
}
 
.mavd-leaders-main .contentBox.mavd-leadership__page-item > .contentBoxContent{
  position:relative;
  padding:14px;
  padding-bottom:44px;
  font-size:16px;
  line-height:1.45;
}
 
/* image default hidden */
.mavd-leaders-main .contentBox.mavd-leadership__page-item > .contentBoxBG{
  display:none;
}
 
/* show image on desktop */
.mavd-leaders-main .contentBox.mavd-leadership__page-item > .contentBoxBG[style*="background-image"]{
  display:block;
  position:absolute;
  right:14px;
  top:64px;
  width:220px;
  height:calc(100% - 78px);
  border-radius:10px;
  border:1px solid rgba(0,0,0,.35);
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
}
 
.mavd-leaders-main .contentBox.mavd-leadership__page-item
> .contentBoxBG[style*="background-image"]
~ .contentBoxContent{
  padding-right:260px;
}
 
.mavd-leaders-main .contentBox.mavd-leadership__page-item
> .contentBoxContent .overflow{
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:10;
  overflow:hidden;
}
 
.mavd-leaders-main .contentBox.mavd-leadership__page-item
> .contentBoxContent a.featuredContactReadMore{
  position:absolute;
  left:14px;
  bottom:14px;
  color:#2c6c97;
  text-decoration:none;
  font-weight:600;
}
 
.mavd-leaders-main .contentBox.mavd-leadership__page-item
> .contentBoxContent a.featuredContactReadMore:hover{
  text-decoration:underline;
}
 
@media (max-width:800px){
  .mavd-leaders-main 
  .contentBox.mavd-leadership__page-item 
  > .contentBoxBG{
    display:none !important;
  }
 
  .mavd-leaders-main 
  .contentBox.mavd-leadership__page-item 
  > .contentBoxBG[style*="background-image"] 
  ~ .contentBoxContent{
    padding-right:14px !important;
  }
 
  .mavd-leaders-main 
  .contentBox.mavd-leadership__page-item 
  > .contentBoxContent{
    padding-bottom:14px;
  }
 
  .mavd-leaders-main 
  .contentBox.mavd-leadership__page-item 
  > .contentBoxContent 
  a.featuredContactReadMore{
    position:static;
    display:inline-block;
    margin-top:10px;
  }
}

/* Leadership Detail Page */
 
.mavd-leaders__page .contentBox.mavd-leadership__page-item{
  position:relative;
  overflow:hidden;
  min-height: 360px;
}
 
.mavd-leaders__page .contentBox.mavd-leadership__page-item > .contentBoxLink{
  display:none;
}
 
.mavd-leaders__page .contentBox.mavd-leadership__page-item > .contentBoxImageSpacer,
.mavd-leaders__page .contentBox.mavd-leadership__page-item .contentBoxCorner{
  display:none;
}
 
.mavd-leaders__page .contentBox.mavd-leadership__page-item > .contentBoxContent{
  position:relative;
  padding:18px;
  font-size:16px;
  line-height:1.55;
}
 
.mavd-leaders__page .contentBox.mavd-leadership__page-item > .contentBoxBG{
  display:none;
}
 
.mavd-leaders__page .contentBox.mavd-leadership__page-item > .contentBoxBG[style*="background-image"]{
  display:block;
  position:absolute;
  right:0;
  top:0;
  width:260px;
  height:320px;
  border-radius:10px;
  border:1px solid rgba(0,0,0,.35);
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  aspect-ratio:4 / 3;
}
 
.mavd-leaders__page .contentBox.mavd-leadership__page-item > .contentBoxBG[style*="background-image"] ~ .contentBoxContent{
  padding-right:292px;
  padding-left:0;
  padding-top:0;
  padding-bottom:18px;
}
 
.mavd-leaders__page .contentBox.mavd-leadership__page-item > .contentBoxContent a.featuredContactReadMore{
  display:none;
}
 
@media (max-width:800px){
  .mavd-leaders__page .contentBox.mavd-leadership__page-item > .contentBoxBG[style*="background-image"]{
    position:relative;
    right:auto;
    top:auto;
    width:100%;
    height:240px;
    border-radius:0;
    border:0;
  }
 
  .mavd-leaders__page .contentBox.mavd-leadership__page-item > .contentBoxBG[style*="background-image"] ~ .contentBoxContent{
    padding:18px;
  }
}

/* Event Styles */
.event-teaser-list-item__title {
    text-decoration: none;
    color: #30567d;

}

.event-teaser-list-item__content h3 {
    font-size: 18px;
    line-height: 1em;
}

.event-teaser-list-item__content {
    display: block;
}

.event-teaser-list-item__summary {
    margin-top: 10px;
    margin-bottom: 0px;
}

@media screen and (max-width: 600px) {
    .event-teaser-list-item__teaser {
        max-width: 260px;
    }

    .event-teaser-list-item__content {
        margin-top: 10px;
    }

    .event-teaser-list-item {
        grid: "teaser" min-content "title" min-content "date" min-content "summary" 1fr / auto;
        gap: 8px;
    }
}

.event .event__teaser {
    max-width: 420px;
    float: right;
    margin-left: 15px;
    margin-bottom: 15px;
}

@media screen and (max-width:1400px) {
    .event .event__teaser {
        max-width: 30vw;
    }
}

@media screen and (max-width:800px) {
    .event .event__teaser {
        max-width: 250px;
    }
}

@media screen and (max-width:640px) {
    .event .event__teaser {
        float: none;
        max-width: 420px;
        margin-bottom: 0px;
        margin-left: 0px;
        width: 100%;
    }
}

.event-teaser-list__datetext {
    color: #656565;
}

.event-teaser-list-item__teaser-img--cover {
    object-fit: contain;
    background-color: #bbd2eb;
}

.event-teaser-list-item__teaser-img--cover {
    object-fit: contain;
    background-color: #bbd2eb;
}

.event-teaser-list-item__teaser-img--contain {
    object-fit: contain;
    background-color: #bbd2eb;
}

.eventLinksContainer {
    margin-top: 15px;
    margin-left: 280px;
    line-height: 1.4em;
}

.eventLinksContainer a:link, .eventLinksContainer a:active, .eventLinksContainer a:visited {
    text-decoration: none;
    color: #30567d;
}

.eventLinksContainer a:hover {
    text-decoration: underline;
    color: black;
}

@media screen and (max-width: 600px) {
    .eventLinksContainer {
        margin-left: 0px;
    }
}

.event__date {
    line-height: 1.2em;
    color: #656565;
}

.event__loc {
    margin-top: 5px;
    line-height: 1.2em;
}