/*
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;
}

/* Center Navigation Styling */
.header-center-nav {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.center-menu-ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.center-menu-ul > li {
    position: relative;
}

/* Main Link Styling */
.center-menu-ul > li > a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: 400;
    text-transform: uppercase;
    padding: 0.5rem 0;
    display: block;
    transition: color 0.3s ease;
}

.center-menu-ul > li:hover > a {
    color: #f79c1c; /* Matches your orange */
}

/* Sub-menu (The Dropdown) */
.center-menu-ul .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #401f82; /* Matches your purple */
    min-width: 180px;
    list-style: none;
    padding: 0.5rem 0;
    border-bottom: 3px solid #f79c1c;
    z-index: 1000;
    box-shadow: 0px 8px 15px rgba(0,0,0,0.3);
}

.center-menu-ul .sub-menu li a {
    color: white;
    padding: 0.7rem 1.5rem;
    display: block;
    text-decoration: none;
    font-size: 16px;
    white-space: nowrap;
    transition: background 0.3s ease;
}

.center-menu-ul .sub-menu li a:hover {
    background-color: rgba(247, 156, 28, 0.2); /* Faded orange background */
    color: #f79c1c;
}

/* Show on Hover */
.center-menu-ul li:hover > .sub-menu {
    display: block;
}

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: "Oswald", 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;
	justify-content: space-between;
    gap: 1rem;
	padding: 1rem 5rem;
	width: 100%;
}

.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: 1100px) {
	
	.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;
    }
	/* 1. Hide the horizontal desktop version */
    .header-center-nav {
        display: none;
    }

    /* 2. Style the mobile version of the center nav */
    .mobile-center-nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;      /* Matches your .mobile-nav ul gap */
        text-align: center;
        list-style: none;
        color: white;   /* Matches your existing links */
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.2); /* Subtle divider */
        width: 100%;
    }

    /* Parent Links (Alignment, Safety, etc.) */
    .mobile-center-nav > li > a {
        font-weight: bold;
        text-transform: uppercase;
        color: #f79c1c; /* Using your orange for headers */
    }

    /* Sub-menus (The dropdown contents) */
    .mobile-center-nav .sub-menu {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;    /* Tighter gap for sub-items */
        padding: 0.5rem 0;
        list-style: none;
    }

    .mobile-center-nav .sub-menu a {
        font-size: 0.9rem;
        opacity: 0.8;   /* Slightly faded white for sub-links */
        color: white;
    }

	
	/* 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;
	}
}