/*
Theme Name: NFHA - RAIL
Text Domain: NFHA - RAIL
Version: 1.0
Description: NFHA Theme for Responsible A.I. Lab
Tags: NFHA, RAIL
Author: NFHA
Author URI: https://nationalfairhousing.org
*/


/* Header CSS ================================================================= */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Oswald", sans-serif;
}


header, footer{
    background-color: #401f82;
    font-family: "Oswald", sans-serif;
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .upper-section{
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
}

.header-left-side img{
    width: 228px;
}

.team-name{
    color: #f79c1c;
    font-size: 20px;
    padding-left: 4px;
    margin-top: -7px;
}

.upper-section .desktop-nav ul{
    list-style: none;
    display: flex;
    gap: 1rem;
    align-items: center;
    color: white;
}

.upper-section a{
    color: inherit;
    text-decoration: none;
}

.contact-link{
    background-color: #f79c1c;
    color: #401f82;
    border-radius: 1rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
}

.contact-link:hover{
    opacity: 0.7;
}

.menu-btn{
    display: none;
    gap: 0.5rem;
    background-color: transparent;
    border: none;
}

.mobile-nav{
    min-width: 100%;
    display: none;
    border-top: 1px solid rgba(0, 0, 0, 0.5);
}


.menu-btn .line{
    width: 50px;
    height: 7px;
    background-color: #f79c1c;
    border-radius: 1rem;
}

.menu-btn .line.rotate{
    transform: translateY(1rem) rotate(45deg);
}

.menu-btn .line.rotate-reverse{
    transform: translateY(-.91rem) rotate(-45deg);
}

.mobile-nav.active{
    display: none;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.menu-btn .line.active {
    opacity: 0;
}


.mobile-nav ul{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
    list-style: none;
    color: white;
}

.mobile-nav a{
    color: inherit;
    text-decoration: none;
}

/* Footer CSS ================================================================= */
.footer-left-side{
    color: white;
}

.footer-left-side p{
    font-family: "Oswald", sans-serif;
}

.subscribe-container input{
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    border-style: none;
    margin-right: 0.5rem;
}

.subscribe-container input:focus{
    border: none;
    outline: none;
}

.sub-news-btn{
    background-color: #f79c1c;
    color: #401f82;
    border-radius: 1rem;
    padding: 0.5rem 1rem;
    border-style: none;
    font-size: 1rem;
    cursor: pointer;
}

.sub-news-btn:hover{
    opacity: 0.7;
}

/* Home Page CSS ================================================================= */
.home-page-container .hero-text{
    font-family: "Oswald", sans-serif;
} 


.about-section figure, .about-section-reverse figure{
    border-radius: 1rem;
}

.about-section, .about-section-reverse{
    padding: 1rem;
}

.about-section p, .about-section-reverse p{
	font-family: "Roboto", sans-serif;
}

.featured-blogs-container li{
    border-radius: 1rem;
    box-shadow: 0 0 5px 1px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.featured-blogs-container{
    padding: 1rem 0;
}

.featured-blog-content{
    padding: 1rem;
}

.featured-blog-content .wp-block-post-excerpt__excerpt{
    font-family: "Roboto", sans-serif;
}

.featured-blog-content .wp-block-post-excerpt__more-text{
    text-align: right;
}

.featured-blog-content .wp-block-post-excerpt__more-text a{
    text-decoration: none;
	color: inherit;
}

.featured-blog-content .wp-block-post-title a{
	text-decoration: none;
	color: inherit;
}

.featured-blog-query{
    padding: 1rem;
}

.home-page-container .wp-block-heading{
    font-size: 2rem;
}

#featured-blogs-more{
	text-decoration: none;
	color: #401f82;
	font-size: 1;
}

/* Other Static Pages CSS ================================================================= */
.page-heading{
    background-color: #664B9B;
    color: white;
    padding: 1rem 3rem;
    text-transform: uppercase;
}

.page-heading h1{
    font-size: 3rem;
}

.sfsiplus_footerLnk{
	display: none;
}
/* Team Page CSS ================================================================= */
.Team-page-container .container{
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.Team-page-container div{
    padding: 1rem 5rem;
}

.team-section figure, .team-section-reverse figure{
    max-width: 100%;
    aspect-ratio: 1 / 1;
	border-radius: 1rem;
}

.team-section, .team-section-reverse{
    display: flex;
    gap: 1rem;
	padding: 1rem 5rem;
}

.team-section .wp-block-media-text__content{
    padding: 0;
}

.team-section .wp-block-media-text__content p{
    font-family: "Roboto", sans-serif;
}

.team-section-reverse .wp-block-media-text__content{
    padding: 0;
    text-align: right;
}

.team-section-reverse .wp-block-media-text__content p{
    font-family: "Roboto", sans-serif;
}

/* Blog Archive Page CSS ================================================================= */
.blog-card{
	display: flex;
	flex-direction: column;
	width: calc(33.33% - 1rem);
	overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 0 5px 1px rgba(0, 0, 0, 0.5);
}

.blog-card .content{
    padding: 1rem;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	flex: 1;
}

.blog-card .content p{
	font-family: "Roboto", sans-serif;
}

.blog-card img{
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
}

.blog-card .card-footer{
	text-align: right;
}

.blog-card .card-footer a{
	color: #401f82;
}

.blog-card a{
	text-decoration: none;
	color: inherit;
}

.blog-card h2 a{
	color: #401f82;
}

.blog-posts-container{
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	padding: 1rem 10rem;
	justify-content: center;
	align-items: stretch;
}


.blog-card:nth-child(4){
	flex-direction: row;
	width: 100%;
	min-height: 250px;
}


.blog-card:nth-child(4) img{
	min-height: 100%;
	width: 25%;
}


.blog-card:nth-child(8){
	flex-direction: row-reverse;
	min-height: 250px;
	width: 100%;
}


.blog-card:nth-child(8) img{
	min-height: 100%;
	width: 25%;
}

.blog-posts-pagination-container{
	text-align: center;
	padding: 1rem;
}

.search-container{
	text-align: center;
	padding: 1rem 10rem;
}

.search-container .searchform > div{
	display: flex;
	justify-content: space-between;
	gap: 1rem;
}

.searchandfilter > div > ul{
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.searchandfilter > div > ul > li:first-child{
	flex: 1;
}

.searchandfilter > div > ul > li:first-child input{
	width: 100%;
	padding: 0.5rem 1rem;
	border-radius: 1rem;
	border: 1px solid rgba(0, 0, 0, 0.5);
}

.searchandfilter > div > ul > li:last-child > input{
	background-color: #401f82;
	color: white;
	padding: 0.5rem 1rem;
	border-style: none;
	border-radius: 1rem;
	cursor: pointer;
}

.searchandfilter > div > ul > li:last-child{
	padding: 0;
}

.searchandfilter > div > ul > li > select{
	padding: 0.5rem 1rem;
	border-radius: 1rem;
	border: 1px solid rgba(0, 0, 0, 0.5);
}

/* Blog Post CSS ============================================================= */
.blog-post-container{
	width: 50%;
	padding: 1rem;
}

.blog-post-page-container{
	display: flex;
	flex-direction: column;
}

.blog-post-container{
	align-self: center;
}

.blog-post-container > p{
	font-family: "Roboto", sans-serif;
}

.post-metadata{
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.post-metadata > span{
	display: flex;
	gap: 1rem;
}

.post-metadata > span li{
	list-style: none;
}

.comments-container p{
	font-family: "Roboto", sans-serif;
}


.post-metadata .tag a{
	text-decoration: none;
	background-color: #401f82;
	color: white;
	padding: 0.5rem 1rem;
	border-radius: 1rem;
}

.comments-container #comments{
	margin: 0;
}

.sharing-container{
	padding: 1rem 0;
}

.comments-container #wpdcom{
	max-width: 100%;
}


/* Contact Page CSS ================================================================= */
.Contact .container{
    padding: 1rem 5rem;
}

/* 404 Page CSS =================================================================*/
.not-found-page-container{
	display: grid;
	place-content: center;
	text-align: center;
	padding: 1rem;
}

#notfound-returnhome {
	text-decoration: none;
	color: white;
	background-color: #401f82;
	padding: 1rem;
	border-radius: 1rem;
}

/* Mobile CSS ================================================================= */


@media screen and (max-width: 1000px) {
	/* Individual Blog Post CSS */
	.blog-post-container{
		width: 100%;
	}
	
	
	/* Blog Archive Page CSS */
	.blog-posts-container{
		padding: 1rem;
	}
	
	.search-container{
		padding: 1rem;
	}
}


@media screen and (max-width: 850px) {
	
	/* Team Page CSS*/
    .team-section, .team-section-reverse{
        flex-direction: column;
    }

    .team-section-reverse{
        flex-direction: column-reverse;
    }

    .team-section figure, .team-section-reverse figure{
        width: 250px;
		height: 250px;
    }
	
}


@media screen and (max-width: 600px) {
	
	/* Header CSS */
    .menu-btn{
        display: grid;
        cursor: pointer;
    }

    .desktop-nav{
        display: none;
    };

    .mobile-nav{
        display: flex;
    }

    .mobile-nav.active{
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 2rem;
    }

    header{
        flex-direction: column;
        gap: 1rem;
    }
	
	/* Footer CSS */
	footer{
		flex-direction: column;
		gap: 1rem;
	}
	
	/* Blog Archive CSS */
	.blog-posts-container{
		flex-direction: column;
		flex-wrap: wrap;
		gap: 1rem;
		justify-content: center;
		align-items: center;
	}
	
	
	.blog-card:nth-child(4){
		flex-direction: column;
	}


	.blog-card:nth-child(4) img{
		width: 100%;
	}
	
	.blog-card:nth-child(8){
		flex-direction: column;
	}


	.blog-card:nth-child(8) img{
		width: 100%;
	}
	
	.blog-card{
		width: 100%;
	}
	
	/* Other Static Page CSS */
	.page-heading{
		padding: 1rem 2rem;
	}
	
	/* Team Page CSS */
	.Team-page-container div{
		padding: 1rem 2rem;
	}
}