/*
	Theme Name:   Nebula Orbit
	Description:  Nebula WordPress Starter Theme
	Theme URI:    https://nebula.design
	Author:       Nebula
	Author URI:   https://nebula.design
	Update URI:   false
	Version:      1.0.0
	License:      GPL-2.0+
	License URI:  http://www.gnu.org/licenses/gpl-2.0.html
*/

/* archive css */
.tag-search-filter-wrapper {
	position: relative;
}
.tag-search-results {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: #fff;
	border: 1px solid #ccc;
	max-height: 200px;
	overflow-y: auto;
	z-index: 1000;
}
.tag-search-result-item {
	padding: 8px;
	cursor: pointer;
}
.tag-search-result-item:hover {
	background: #f0f0f0;
}
#filter-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

li.menu-item.donate.mobile {
	display: block;
}

/*Archive Membership*/
.archive.member .archive-header {background: var(--wp--preset--color--grey);}
.member .card-thumbnail {border: 1px solid #0000001f;border-bottom: 0;padding: var(--wp--preset--spacing--small);background: #FFF;text-align: center;display: flex;aspect-ratio: 1/1;object-fit: contain;align-items: center;justify-content: center;}
.member .card-thumbnail img {object-fit: contain;aspect-ratio: unset;}
.member .card:hover img {transform:unset}

/*Figcaption credit*/
figcaption {
    text-align: right;
    font-size: 14px;
}

/* single post css */
.sidebar-primary {
  position: relative;
  height: 100%;
  width: 100%;
}

.block-area.block-area-sidebar {
  position: sticky;
  top: 0;
  max-width: 385px;
}


.blog-button-wrap {
    display: flex;
    gap: 30px;
    align-items: center;
}

/* careers css */
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.career .card-header p {
    margin: 0;
}
.career-modal{overflow:hidden}
.career-meta > div {
    display: flex;
    gap: 10px;
}

.career-meta {
    gap: 0px;
}

.career-stats > div {
    display: flex;
    padding: var(--wp--preset--spacing--small);
    flex-direction: column;
    align-items: center;
    background:var(--wp--preset--color--white);
    border-radius:4px;
    gap: 10px;
}
.career-stats p {margin:0;}
.career-stats {margin:30px 0;}
.career .card-body > div {
    display: flex;
    gap: 10px;
}
.after-careers-notice > div {
    grid-column: span 3;
    text-align: center;
    padding: 16px;
    background: white;
    border-radius: 4px;
}
.after-careers-notice {
    margin-top: var(--wp--preset--spacing--medium);
}
.career a.open-modal {
    width: 100%;
    text-align: center;
    display: block;
    text-decoration: none;
    margin: 20px 0 0 0;
    background: var(--wp--preset--color--tertiary);
    padding: 10px 10px;
    color: var(--wp--preset--color--white);
    border-radius: 8px;
}
/* filter for posts */
div#filter-bar .filter {
    /* width: 200px; */
}

div#filter-bar {
    display: flex;
    gap: 30px;
    justify-content: space-between;
    margin-bottom: var(--wp--preset--spacing--small);
}

#filter-bar .cat-and-tax {
    display: flex;
    gap: 0 30px;
    flex-wrap: wrap;
}
.cat-and-tax select {
    width: fit-content;
    padding-right: 50px;
}



/*Header search*/
#search-container {
    position: absolute;
    top: 0px;
    right: 225px;
    width: 100%;
    opacity: 0;
    z-index: -15;
    max-width: 250px;
}
.search-result p {
    margin:0;
}
form#search-form {
    position: relative;
}

a#search-close {
    position: absolute;
    right: 18px;
    top: 13px;
    cursor: pointer;
}
li.menu-item.search.active > .search-close {
    border-radius: 0;
    border: 0;
}
.search-close{opacity:0;visibility: hidden;position: absolute;}
a.search-close.active {
    opacity: 1;
    visibility: visible;
}
li.menu-item.search {
    /* width: 53px; */
    /* height: 51px; */
    position: relative;
    display: flex;
}
a.search-icon.active {
    opacity: 1;
    visibility: visible;
    left: 0px;
}

.search-result a {text-decoration:none;width:100%;display:block;}
.search-result a:hover {text-decoration:underline;}

#search-results {
    padding: var(--wp--preset--spacing--small);
    position: absolute;
    width: 100%;
    transition: opacity 0.5s ease-in-out;
    opacity: 0;
    top: 65px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--wp--custom--color--neutral--600);
    font-weight: 600;
    visibility: hidden;
    background: var(--wp--preset--color--white);
    border-radius: var(--wp--custom--border--radius--small);
    box-shadow: 0px 0px 10px #00000042;
}

#search-container.active {
    opacity: 1;
    z-index: 15;
}

#search-results.active {
    opacity: 1;
    visibility: visible;
}

#search-form input {
    margin: 0;
    height: 55px;
    border: 3px solid #000;
    border-radius: 50px;
}


/*Footer widget*/
.footer-newsletter {
    background: #f5f5f5;
    color: black;
    padding: 30px 0;
    border-bottom: 2px solid #ffffff2b;
}
.footer-newsletter > .wrap {display:flex;justify-content:space-between;flex-direction:row;align-items: center;}
.footer-newsletter .content, 
.footer-newsletter .newsletter-form {max-width: 50%;width: 100%;}
.footer-newsletter .newsletter-form {display:flex;justify-content: flex-end;}
.footer-newsletter .newsletter-form > div {max-width: 74%;width: 100%;}

/* 404 css */
/* 404 Page Styling */
.nebula-404 {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  text-align: center;
  background: linear-gradient(135deg, var(--wp--preset--color--background, #f9fafb), var(--wp--preset--color--muted, #eceef1));
  padding: 2rem;
  box-sizing: border-box;
}

.nebula-404__inner {
  max-width: 600px;
  width: 100%;
}

.nebula-404__circle {
  position: relative;
  width: 250px;
  height: 250px;
  margin: 0 auto 2rem;
}

.nebula-404__pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: nebulaPulse 3s infinite ease-in-out;
}

.nebula-404__pulse--one {
  width: 200px;
  height: 200px;
  background-color: rgba(100, 149, 237, 0.25); /* soft blue */
  animation-delay: 0s;
}



@keyframes nebulaPulse {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
  50% { transform: translate(-50%, -50%) scale(1.15); opacity: 0.5; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
}

.nebula-404__image img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  height: 200px;
  object-fit: contain;
  transform: translate(-50%, -50%);
  opacity: 0.9;
}

.nebula-404__text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 5rem;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.7);
  text-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.nebula-404 h1.entry-title {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.nebula-404 .entry-content p {
  color: #555;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}






@media all and (max-width: 1350px) {
	.site-header .wrap {
		display: flex;
		flex-direction: row;
		justify-content: space-between;
	}

	.site-header .wrap img {
		width: 175px;
	}

	.btn-wrap {
		right: 70px;
	}
}


@media all and (max-width: 1200px) {
	.grid.columns-4 {
    	grid-template-columns: repeat(3,1fr);
	} 
	.is-layout-grid.columns-4 {
		grid-template-columns: repeat(3, 1fr);
	}
}


@media all and (max-width: 1100px) {
.content-sidebar .entry-content {
    display: grid;
    grid-template-columns: repeat(1,1fr);
}

.content-sidebar .sidebar-primary {
    margin:0;
    width:100%;
}

.content-sidebar .sidebar-primary .latest-news-grid.grid.columns-1 {grid-template-columns:repeat(3,1fr);}

.content-sidebar .sidebar-primary .block-area.block-area-sidebar {max-width:100%;}




}

@media all and (max-width: 1000px) {
	.grid.columns-4 {
    	grid-template-columns: repeat(2,1fr);
	} 
	.grid.columns-3 {
    	grid-template-columns: repeat(2,1fr);
	} 
	.is-layout-grid.columns-3 {
		grid-template-columns: repeat(2, 1fr);
	}
}


@media all and (max-width: 900px) {
.content-sidebar .sidebar-primary .latest-news-grid.grid.columns-1 {grid-template-columns:repeat(2,1fr);}

}

@media all and (max-width: 800px) {
}

@media all and (max-width: 781px) {
	.is-style-reverse-mobile {flex-direction:column-reverse;}
}

@media all and (max-width: 600px) {
		.grid.columns-4 {
    	grid-template-columns: repeat(1,1fr);
	} 
	.grid.columns-3 {
		grid-template-columns: repeat(1,1fr);
	} 
	.is-layout-grid.columns-2 {
		grid-template-columns: repeat(1, 1fr);
	}
	.is-layout-grid.columns-3 {
		grid-template-columns: repeat(1, 1fr);
	}
	.content-sidebar .sidebar-primary .latest-news-grid.grid.columns-1 {grid-template-columns:repeat(1,1fr);}

}

@media all and (min-width: 550px) {

	li.menu-item.donate.mobile {
		display: none;
	}
}

@media all and (max-width: 550px) {

	li.menu-item.donate.desktop {
		display: none;
	}
	#search-container {
		right: 70px;
		width: 200px;
	}
}


@media all and (max-width: 450px) {
	#search-container {
    width: 160px;
}
}