/*--------------------------------------------------------------
Accessibility
--------------------------------------------------------------*/
/* Text meant only for screen readers */
.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
	height: 1px;
	width: 1px;
	overflow: hidden;
}

.screen-reader-text:hover,
.screen-reader-text:active,
.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	color: #21759b;
	display: block;
	font-size: 14px;
	font-weight: bold;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000; /* Above WP toolbar */
}



/* -------------------------------------------------------------
Styling
--------------------------------------------------------------*/

main {
     font-family: 'Questrial', sans-serif;
}

h2 {
    font-size: 42px;
}

.items a,
.items h3 {
    color:white;
    text-align: center;
}
.items a{
    text-decoration: none;
}


/*-------------Scrollbar Styling ---------- */
.scrollbar::-webkit-scrollbar {
	width: 12px;
	height: 12px;
}

.scrollbar::-webkit-scrollbar-track {
	border: 0.1px solid rgba(0,0,0,0.1);
	border-radius: 10px;
}

.scrollbar::-webkit-scrollbar-thumb {
	background: rgba(0,0,0,0.1);  
	border-radius: 10px;
}

.scrollbar::-webkit-scrollbar-thumb:hover {
	background: rgba(0,0,0,0.1);  
} 


/*--------------------------------------------------------------
Lower Section- News, Apply, Pathways
--------------------------------------------------------------*/

.box4, .box6 {
	overflow:auto;	
}
						
.col-md-4 {
	padding: 2px 2px 0 0;
}

.col-md-4:last-of-type {
	padding: 2px 0 0 0;	
}


/*--------------------------------------------------------------
Cards:
--------------------------------------------------------------*/

.cards {
	padding: 0;
	list-style-type: none;
}

.item a {
	display: block;
	text-decoration: none;
}

.caption-title {
	margin: 0;
	font-size: 1.8em;
	line-height: 1.1em;
}

.apply-caption {
    grid-column: 1;
    grid-row: 1;
}

a:focus .apply-caption,
a:hover .apply-caption {
    background: hsla(280, 59%, 27%, 0.2);
    opacity:1;
}


/*--------------------------------------------------------------
CSS Grid layout for modern browsers:
--------------------------------------------------------------*/

/* ------------- Fallback display -------------- */

.items {
    max-width: 500px;
    margin: 0 auto;
  }

.item {
    display: flex;
    flex-flow: column;
    background: hsla(280, 59%, 27%, 1);
    color: white;
    font-size:1em;
    border-radius: 1rem;
}

.caption {
    background:none;
    padding: 1em;
}

.item img {
    display:none;
}

.items .item {
    margin: 2px 0;
}

.boxstyle_ {
    margin-bottom: 0;
}



/*--------------- If Grid is supported --------------*/

@supports (display: grid) {

    @media screen and (min-width:990px){    
    .items { 
      max-width: 10000px;
      margin: 0;
    }

    .items {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        grid-gap: 2px;
      }

      .item img {
        display: inline;
    }

    .item {
        display: grid;
        background:none;
        border-radius: 0;
    }

    .items .item {
        margin: 0;
    }
    
        
    .caption,
    .item img {
        grid-column: 1;
        grid-row: 1;
    }
    
    .caption {
        display: grid;
        align-items: center;
        padding: 1em;
        background: hsla(246, 40%, 30%, .6);
        color: white;
        font-size: 1.2em;
        transition: all .4s;
        opacity:0;      
    }

    .caption h3 {
        margin-bottom:0;
    }
    
    a:focus .caption,
    a:hover .caption {
        background: hsla(246, 40%, 30%, 1);
        opacity: 1;
    }
    

    }
}

    @media screen and (min-width:990px) {
        /* ---------- News & Pathways section ------------ */
    .box4, .box5, .box6 {
        height:340px;	
        border-radius:0;
    }

    .col-md-4:first-of-type,
    .col-md-4:last-of-type {
        font-size:14px;	
    }

    .apply-caption {
        display:flex;
        background: hsla(280, 59%, 27%, 0.5);
        align-items: center;
		justify-content: center;
        color: white;
        font-size:22px;
        transition: all .3s;
    }

  .caption p {
        font-size: 14px;
    }
}
    @media screen and (min-width:1200px) {
        .caption p {
            font-size: 18px;
        }
    }


@media screen and (max-width:767px) {
    .boxstyle_.box5 {
        margin-left: 0;
        margin-right: 0;
    }
}	


@media screen and (max-width: 991px) {
		
    .apply-img-one,
    .apply-img-two {
        visibility: hidden;
    }

 

    .apply-caption {
        padding:10px;
    }

}

.card {
    display: grid;
}

.card img,
.captions {
    grid-column: 1;
    grid-row: 1;
}