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

/* Smoothly animate all anchor jump links */
html {
  scroll-behavior: smooth !important;
}

/* Apply offset to any target block with the .scroll-offset class */
.scroll-offset {
  scroll-margin-top: 100px; /* Adjust based on your header height */
}

/* Custom CSS for pillarss ===================================================================== */
.pillar-columns-v2 {
  display: flex !important;
  align-items: flex-start !important;
  align-content: flex-start !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 auto !important;
  padding: 2.5rem 1.25rem 2rem 1.25rem !important;
}

.pillar-columns-v2 > .wp-block-column {
  align-self: flex-start !important;
  height: 500px !important;
  max-height: 500px !important;
  min-height: 250px !important;
  overflow-y: auto !important; 
  flex-grow: 1 !important;
  flex-shrink: 1 !important;
  padding: 1rem !important; 
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;

}

/* Switches vertical alignment to top when the inner <details> tag is open */
.pillar-columns-v2 > .wp-block-column:has(details[open]) {
  justify-content: flex-start !important;
}

.pillar-columns-v2 > .wp-block-column > * {
  height: auto !important;
}

.pillar-columns-v2 details summary {
  cursor: inherit !important;
  list-style: none !important;
  font-weight: 300 !important;
  pointer-events: none !important;
  text-align: center;
}

/* Hide the triangle icon in Safari, Chrome, and older WebKit browsers */
.pillar-columns-v2 details summary::-webkit-details-marker {
  display: none !important;
}

/* Hide the triangle icon in Firefox */
.pillar-columns-v2 details summary::marker {
  display: none !important;
}

.pillar-columns-v2 h1,
.pillar-columns-v2 h2,
.pillar-columns-v2 h3,
.pillar-columns-v2 h4 {
  text-align: center !important;
}

.pillar-columns-v2 p,
.pillar-columns-v2 ul,
.pillar-columns-v2 ol,
.pillar-columns-v2 li {
  text-align: left !important;
}

/* Sleek custom scrollbar styling */
.pillar-columns-v2 > .wp-block-column::-webkit-scrollbar {
  width: 6px;
}
.pillar-columns-v2 > .wp-block-column::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

/* Make entire column look clickable */
.pillar-columns-v2 > .wp-block-column {
  cursor: pointer;
  user-select: none; /* Prevents text blue-highlighting on fast double clicks */
}

/* Hide the detail group by default */
.pillar-columns-v2 .column-detail {
  display: none;
  margin-top: 1rem;
}

/* Switches vertical alignment to top when open */
.pillar-columns-v2 > .wp-block-column.is-open {
  justify-content: flex-start !important;
}

/* Reveal detail when column has .is-open class */
.pillar-columns-v2 > .wp-block-column.is-open .column-detail {
  display: block !important;
}

/* Re-enable text selection inside open details so users can copy text */
.pillar-columns-v2 > .wp-block-column.is-open .column-detail {
  user-select: text;
}


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