/* -------------------------    
        General Formatting
    --------------------------*/
			
			/* The h1 title is hidden through a JQuery script. Code below moves the content up to the top of the page */
			section.content-header {
				margin-top: -20px;	
			}


    .id7-main-content-area>.id7-main-content, .container {
        padding:0;
        margin:0;
    }

    .main-container {
        padding: 0 5px;
    }

     /* ---------------------------
        Header Section 
    -----------------------------*/
         
    /*Left-side- Header text */
         
    .id7-page-title h1 {
        display:none;	
    }

    section.content-header {
        position:relative;
        display:flex;
        height:300px;
    }

    .intro {
        width:50%;
        background: linear-gradient(140deg, #fff, #D0EDFF, #fff);
        display:flex;
        flex-direction: column;
        text-align:center;
        justify-content: center;
        color:#204f79;    
        align-items:center;    
    }
    
    .intro h2 {
        width: 320px;
        text-transform: uppercase;
        font-size: 68px; 
        font-family: 'Raleway', sans-serif;
    }

    .intro .h3 {
        margin: 0 !important;
        padding-bottom:10px;
        font-size:30px;
        font-family: 'Shadows Into Light', cursive;

    }
    
    div.intro-img {
        width:50%;
    }

    /* Right side- Header Img */
    
    .intro-img img {
        height: 300px;
        width: 100%;
        min-height: 300px;
        object-fit:cover;
    }
    
    div.intro-text p {
        text-align:center;
        margin-bottom: 5px !important;
    }
             
    /* Intro Text Styling */

    .funding-intro {
        padding:20px 10px;
    }

    /* Nav Menu Styling */
    .menu-container {
        margin: 0 auto;
        text-align: center;
    }

    .menu ul {
        list-style-type: none;
        padding: 0;
        margin: 0;
        background: #E5E5E5;
    }

    .menu li a {
        display: block;
        text-decoration: none;
        padding: .6em 1em;
        transition: 100ms;
        color:black;
    }

    .menu li a:hover {
        background: rgba(0, 154, 229, 0.7);
        color:#fff;
    }

    .single-nav ul{
        display:flex;
        justify-content: center;
    }

    .single-nav ul li {
        margin:0 !important;
        width:12%;
    }

    .single-nav li:last-of-type {
        border-right: solid 1px white;
    }

    .single-nav li a{
        border-left: solid 1px white;
        height: 60px;
        color: black;
        font-size:0.9em;
        display: flex;
        justify-content: center;
        align-items: center;
    }


    /*-----------------------
        Funding Section  
    ------------------------*/

    .funding {
        padding: 20px 5px 0 5px;
        background: #D0EDFF;
    }
  
    .funding a {
        text-decoration: none;
    }

    hr.funding-divider {
        margin: 0 22px 28px 22px;
        border: 1px solid #777575;
    }
    
    .staff-funding {
        padding-bottom:20px; 
    }
    .student-funding {
        padding-bottom:30px;
    }

 /* Cards Formatting */

    .funding .card {
        position: relative;
    }

    .card-item a {
        text-decoration: none;
    }

    .student-card, .staff-card {
        position: absolute;
        top: 0;
        bottom:0;
        left:0;
        right:0;
        background: rgba(0, 0, 0, 0.5);
        display: flex;
        justify-content: center;
        align-items: center;
        opacity: 0;
        transition: 300ms ease-in-out;
    }

    .funding .caption h4 {
        transition: 200ms;
        font-size: 30px;
        color: white;
        opacity: 0;
        transition: 300ms ease-in-out;
        margin: 0;
        font-family: 'Raleway', serif;
    }    
    
    .funding .card-item:hover .student-card,
    .funding .card-item:hover .staff-card {
        opacity: 1;
    }

    .funding .card-item a:focus .student-card,
    .funding .card-item a:focus .staff-card {
        opacity: 1;
    }

    .funding .card-item:hover .caption h4 {
        opacity:1;
    }

    .funding .card-item a:focus .caption h4 {
        opacity:1;
    }

    .funding figcaption::before {
        content: '';
        position: absolute;
        top: 10%;
        bottom: 10%;
        left: 10%;
        right: 10%;
        border-top: solid 1px white;
        border-bottom: solid 1px white;
        transform: scale(0,1);
        transition: 300ms ease-in-out;
    }
    .funding .card-item:hover figcaption::before {
        transform: scale(1,1);
    }
    .funding .card-item a:focus figcaption::before {
        transform: scale(1,1);
    }

    /*--------------------------------
         Example Projects Section 
    ---------------------------------*/

    .projects {
        padding: 20px 5px 0 5px;
        margin: 10px 0;
    }

    hr {
        margin: 10px 20px 10px 20px;	
        border: solid 1px black; 
    }

    .projects .card {
        position: relative;
    }

    .projects .caption {
        position: absolute;
        top:0;
        bottom:0;
        left:0;
        right:0;
        display:flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        font-family: 'Raleway', serif;
        background: rgba(0, 0, 0, 0.4);
        transition: 300ms ease-in-out;
    }

   .projects .caption h4,
   .projects .caption p {
       color:white;
   }

   .projects .card-item:hover .caption {
        background: rgba(0, 0, 0, 0.1);
   }

   .projects .card-item a:focus .caption {
        background: rgba(0, 0, 0, 0.1);
   }

   /*--------------------------
        Deadlines Section 
    --------------------------*/

    div.deadlines {
        padding: 25px 20px 40px 10px;
        margin: 5px 5px 0 5px;
    }

    /*---------------------------
            Media Queries 
    --------------------------*/

    @media screen and (max-width:768px) {
        
        /* Header Section */
        .intro {
            position: absolute;
            top:0;
            bottom:0;
            left:0;
            right:0;
            width: 100%;
            background: linear-gradient(140deg, rgba(255, 255, 255, 0.1), rgba(243, 208, 150, 0.5), rgba(255, 255, 255, 0.1));
        }

        .intro h2 {
            width: 100%;
            background: rgba(255, 255, 255, 0.5);
        }

        div .intro-img {
            width:100%;
        }

        /* Nav Menu */
        .single-nav ul{
            flex-direction: column;
        }

        .single-nav ul li {
            margin:0;
            width:100%;
        }

        .single-nav li:last-of-type {
            border:none;
        }

        .single-nav li a{
            border:none;
            height: 40px;
            color: black;
            font-size:14px;
        }

        /* Funding Section */
        .funding h3, .funding .col-sm-7 {
            text-align:center;
        }
        .funding .card {
            text-align:center;
        }
        .funding h4 {
            padding: 10px;
        }

        /* Projects Section */
        .projects h3, .projects p {
            text-align: center;
        }

        .projects .card {
            width: 60%;
            margin: 0 auto;
        }

        /* Deadlines Section */
        .deadlines {
            text-align: center;
        }
    }

    @media screen and (max-width:500px) { 
        /* Projects Section */
        .projects .card {
            width: 80%;
        }
    }

    @media screen and (max-width:425px) {
        .intro h2 {
            font-size: 46px;
        }
    }