/*!
Theme Name: HumanFusions
Theme URI: http://humanfusions.org
Author: Anselm Dastner
Author URI: http://dastner.com
Description: A custom theme for HumanFusions.
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: humanfusions
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

HumanFusions is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Generic
	- Normalize
	- Box sizing
# Base
	- Typography
	- Elements
	- Links
	- Forms
## Layouts
# Components
	- Navigation
	- Posts and pages
	- Comments
	- Widgets
	- Media
	- Captions
	- Galleries
# plugins
	- Jetpack infinite scroll
# Utilities
	- Accessibility
	- Alignments

--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Generic
--------------------------------------------------------------*/
:root {
	--background-color: #F6F5EE;
	--dark-color: #0D0E10;
	--green-color: #B8C73B;
	--darkblue-color: #111D37;
	--darkbluealt-color: #131c30;
	--light-color: #FFFFFF;
	--mediumblue-color: #04798B;/* was #09A2B8, changed it for accessibility*/
	--content-width: 1111px;
  }

* {
	transition: all 0.35 ease-in-out;
	  box-sizing: border-box;
}

/* Normalize
--------------------------------------------- */

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
	 ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
html, body {
	line-height: 1.15;
	-webkit-text-size-adjust: 100%;
	overflow-x: hidden;
	width: 100%;
	margin: 0;
	background-color: var(--background-color);
}

/* Sections
	 ========================================================================== */

/**
 * Remove the margin in all browsers.
 */

p {
	text-wrap: pretty;
}

.nobalance p {
	text-wrap: initial; /* or: text-wrap: pretty; or: unset */
  }
  

/**
 * Render the `main` element consistently in IE.
 */
main {
	display: block;
}

a {
	text-decoration: none;
	transition: color 0.61s ease;
	outline: none;
}
a:hover {
	color: var(--mediumblue-color);
}
a:focus {
	outline: none;
  }

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */


.sectionheader {
	position: relative;
	display: flex;
	align-items: center;
	gap: 2rem; /* space between text and line */
	margin-top: 3.21rem;
	padding-bottom: 1.61rem
  }
  
  .sectionheader::after {
	content: "";
	flex-grow: 1;
	height: 1px;
	background-color: #444; /* or your preferred color */
	margin-top: 25px;
	margin-left: 1.61rem;
  }


/* Grouping content
	 ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
	box-sizing: content-box;
	height: 0;
	overflow: visible;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
	font-family: monospace, monospace;
	font-size: 1em;
}

/* Text-level semantics
	 ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */
a {
	background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */
abbr[title] {
	border-bottom: none;
	text-decoration: underline;
	text-decoration: underline dotted;
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */
b,
strong {
	font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
code,
kbd,
samp {
	font-family: monospace, monospace;
	font-size: 1em;
}

/**
 * Add the correct font size in all browsers.
 */
small {
	font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
sub,
sup {
	font-size: 75%;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}

sub {
	bottom: -0.25em;
}

sup {
	top: -0.5em;
}

/* Embedded content
	 ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */
img {
	border-style: none;
}

/* Forms
	 ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */
button,
input,
optgroup,
select,
textarea {
	font-family: inherit;
	font-size: 100%;
	line-height: 1.15;
	margin: 0;
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
button,
input {
	overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select {
	text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */
button,
[type="button"],
[type="reset"],
[type="submit"] {
	-webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
	border-style: none;
	padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
	outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */
fieldset {
	padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *		`fieldset` elements in all browsers.
 */
legend {
	box-sizing: border-box;
	color: inherit;
	display: table;
	max-width: 100%;
	padding: 0;
	white-space: normal;
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
	vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */
textarea {
	overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */
[type="checkbox"],
[type="radio"] {
	box-sizing: border-box;
	padding: 0;
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
	height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
[type="search"] {
	-webkit-appearance: textfield;
	outline-offset: -2px;
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */
[type="search"]::-webkit-search-decoration {
	-webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */
::-webkit-file-upload-button {
	-webkit-appearance: button;
	font: inherit;
}

.fancy-button {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	min-height: 80px; /* taller to support two lines */
	padding: 1rem;
	text-align: center;
	font-size: 1.23rem;
	font-variation-settings: "wght" 555 !important;
	text-transform: uppercase;
	color: var(--darkblue-color) !important;
	position: relative;
	border-radius: 10px;
	transition: 1s ease;
	z-index: 3;
	border: none;
	line-height: 1.4;
	white-space: normal;
  }
  
  .fancy-button * {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	margin: 0 !important;
	padding: 0 !important;
	width: 100% !important;
	height: 100% !important;
	text-align: center;
  }
  
  .fancy-button:hover {
	background-color: var(--green-color);
	color: #fff!important;
  }
  
  .fancy-button::before,
  .fancy-button::after {
	content: "";
	position: absolute;
	top: 0; left: 0; right: 0; bottom: 0;
	border-radius: 10px;
	pointer-events: none;
  }
  
  .fancy-button::before {
	border: 1px solid var(--green-color);
	top: -4px; left: -4px; right: -4px; bottom: -4px;
	z-index: 1;
  }
  
  .fancy-button::after {
	border: 1px solid var(--green-color);
	z-index: 2;
  }
  
  
  
/*old fancy button
.fancy-button {
	position: relative;
	height: 6rem;
	padding: 0 1rem;
	background: linear-gradient(to bottom right, var(--mediumblue-color), var(--green-color));
	border-radius: 1.21rem;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
	overflow: hidden;
  }
  
  .fancy-button a {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-variation-settings: "wght" 600;
	font-size: 1rem;
	text-transform: uppercase;
	text-decoration: none;
	color: white;
	text-align: center;
	z-index: 1;
	padding: 0 1rem;
	white-space: normal;
  }
  
  .fancy-button a:hover {
	opacity: 0.9;
  }
  
  .fancy-button::before {
	content: '';
	position: absolute;
	top: 8px;
	left: 8px;
	right: 8px;
	bottom: 8px;
	border: 2px solid white;
	border-radius: 0.61rem;
	pointer-events: none;
	z-index: 2;
  }
*/
  



/* Interactive
	 ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */
details {
	display: block;
}

/*
 * Add the correct display in all browsers.
 */
summary {
	display: list-item;
}

/* Misc
	 ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */
template {
	display: none;
}

/**
 * Add the correct display in IE 10.
 */
[hidden] {
	display: none;
}

/* Box sizing
--------------------------------------------- */

/* Inherit box-sizing to more easily change it's value on a component level.
@link http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
*,
*::before,
*::after {
	box-sizing: inherit;
}

html {
	box-sizing: border-box;
}

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/

/* Typography
--------------------------------------------- */
@font-face {
	font-family: "Montserrat";
	src: url("Montserrat/Montserrat-VariableFont_wght.ttf") format("truetype-variations");
	font-weight: 100 900;
	font-style: normal;
  }

body,
button,
input,
select,
optgroup,
textarea {
	color: #404040;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	font-size: 1rem;
	line-height: 1.5;
	font-family: "Montserrat", sans-serif;
	font-variation-settings: "wght" 400;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	clear: both;
}

h1 {
	font-size: 2.32rem!important;
	font-variation-settings: "wght" 123!important;
	margin: 0.67em 0;
	line-height: 2.5rem;
}

h2 {
	font-size: 2.2rem!important;
	font-variation-settings: "wght" 333!important;
	margin-top: 0.61rem!important;
}

h3 {
	font-size: 22px!important;
	font-variation-settings: "wght" 444!important;
}


p {
	margin-bottom: 1.5em;
	line-height: 1.61rem!important;
	font-family: "Montserrat", sans-serif!important;

}

dfn,
cite,
em,
i {
	font-style: italic;
}

blockquote {
	margin: 0 1.5em;
}

address {
	margin: 0 0 1.5em;
}

pre {
	background: #eee;
	font-family: "Courier 10 Pitch", courier, monospace;
	line-height: 1.6;
	margin-bottom: 1.6em;
	max-width: 100%;
	overflow: auto;
	padding: 1.6em;
}

code,
kbd,
tt,
var {
	font-family: monaco, consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
}

abbr,
acronym {
	border-bottom: 1px dotted #666;
	cursor: help;
}

mark,
ins {
	background: #fff9c0;
	text-decoration: none;
}

big {
	font-size: 125%;
}

.mission {
	font-variation-settings: "wght" 561!important;
}

/* Elements
--------------------------------------------- */
body {
	background: #fff;
}

hr {
	background-color: #ccc;
	border: 0;
	height: 1px;
	margin-bottom: 1.5em;
}

ul,
ol {
	margin: 0 0 1.61rem 0em;
}

ul {
	list-style: square;
	list-style-position: outside; /* or use 'none' to remove bullets entirely */
	padding-left: 0;
	margin-left: 0;
}

ul li::marker {
  color: var(--mediumblue-color);
}

.hanging-list  {
	list-style-position: outside!important;  /* Bullet stays in the margin */
	/*padding-left: 1.5em;           /* Indent for bullet */
  }
  
  .hanging-list  li {
	text-indent: -1.5em;           /* Pull first line back */
	padding-left: 1.5em;           /* Push rest of text back in */
	margin-bottom: 1.61rem;
  }

  .hanging-list  li a {
	color: var(--mediumblue-color);
	line-height: 1.5rem!important;
  }
  .hanging-list  li a:hover {
	color: var(--mediumblue-color);
  }

  .elementor-tab-content {
	margin: 2rem 3.3rem;
  }
.elementor-tab-title {
  border-radius: 1rem 0 0 1rem;
}
li {
	margin: 0 0 0.61rem 0;
}

ol {
	list-style: decimal;
}

li > ul,
li > ol {
	margin-bottom: 0;
	margin-left: 1.5em;
}

dt {
	font-weight: 700;
}

dd {
	margin: 0 1.5em 1.5em;
}

/* Make sure embeds and iframes fit their containers. */
embed,
iframe,
object {
	max-width: 100%;
}

img {
	height: auto;
	max-width: 100%;
}

figure {
	margin: 1em 0;
}

table {
	margin: 0 0 1.5em;
	width: 100%;
}

/* Links
--------------------------------------------- */
a {
	color: var(--green-color);
}

a:hover,
a:focus,
a:active {
	color: var(--mediumblue-color);
}

a:focus {
	outline: thin dotted;
}

a:hover,
a:active {
	outline: 0;
}

/* Forms
--------------------------------------------- */
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
	border: 1px solid;
	border-color: #ccc #ccc #bbb;
	border-radius: 3px;
	background: #e6e6e6;
	color: rgba(0, 0, 0, 0.8);
	line-height: 1;
	padding: 0.6em 1em 0.4em;
}
.elementor-button-text {
	font-family: "Montserrat", sans-serif!important;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
	border-color: #ccc #bbb #aaa;
}

button:active,
button:focus,
input[type="button"]:active,
input[type="button"]:focus,
input[type="reset"]:active,
input[type="reset"]:focus,
input[type="submit"]:active,
input[type="submit"]:focus {
	border-color: #aaa #bbb #bbb;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea {
	color: #666;
	border: 1px solid #ccc;
	border-radius: 3px;
	padding: 3px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus {
	color: #111;
}

select {
	border: 1px solid #ccc;
}

textarea {
	width: 100%;
}

/*--------------------------------------------------------------
# Layouts
--------------------------------------------------------------*/
.site-header {
	background-color: color-mix(in srgb, #162d46 65%, transparent);
	position: absolute;
	z-index: 99;
	width: 100%;
	top: 0;
	padding: 0 1rem;
}

.header-grid {
	display: grid;
	grid-template-columns: 1fr 1.61fr;
	grid-gap: 1rem;
	max-width: var(--content-width);
	margin: 0 auto;
	padding: 2rem 0;
}
@media (max-width: 799px) {
	.header-grid {
	grid-template-columns: 1fr ;
  }
	.site-branding img {
	max-width: 234px!important;
}
	.header-grid {
		padding: 2rem 0 0 0;
}
	.home .site-main {
		margin-top: 5.4rem!important;
	}
	.home .site-header {
		background-color: var(--darkblue-color);
	}
}

.site-branding img {
	max-width: 300px;
}

.home .entry-header, .cat-links, .tags-links {
	display: none;
}

.entry-header {
	background-color: var(--darkblue-color);

}
.search-results .entry-header {
	background-color: var(--green-color);
}
.entry-header h2 a,  .search-results .entry-meta a{
	color: var(--darkblue-color);
}

.entry-header h1, .search-results .page-title {
	max-width: var(--content-width);
	color: var(--light-color);
	padding: 11.11rem 0 1.11rem 0;
	margin: 0 auto;
}
.search-results .page-header{
	background-color: var(--darkblue-color)
}
.search-results article .entry-title, .search-results article .entry-summary {
	margin: 0 auto!important;
	max-width: var(--content-width);
	padding: 1rem 0;
}
.searchgrid {
	display: grid;
	grid-template-columns: 1fr 2fr;
	grid-gap: 1rem;
	max-width: var(--content-width);
	margin: 0 auto;
}
.search-results .post-thumbnail img {
	width: 100%;
}

@media (max-width: 1111px) {
	.entry-header h1 {
	padding: 8.88rem 0 1.11rem 1rem;
  }
  .posted-on, .single .entry-content, .single .nav-links {
	padding: 0 1rem!important;
  }
}
.entry-meta {
		color: var(--light-color);
}
.post .post-thumbnail {
  display: none;
}

/* Show only in search results */
.search-results .post .post-thumbnail {
  display: block;
}
.entry-meta, .post .entry-content {
	max-width: var(--content-width);
	padding: 0 0 1rem 0;
	margin: 0 auto;
}


/*nav links*/
.nav-links {
  display: flex;
  justify-content: space-between;
  max-width: var(--content-width);
  margin: 4rem auto;

}

.nav-previous,
.nav-next {
  flex: 1;
}

.nav-previous {
  text-align: left;
}

.nav-next {
  text-align: right;
}

/* Button styling */
.nav-button {
  display: inline-block;
  padding: 0.5rem 1.61rem;
  border: 1px solid var(--green-color);
  border-radius: 4px;
  text-decoration: none;
  font-size: 1rem;
  color: #0f1d40;
  background-color: transparent;
  transition: all 0.3s ease;
  cursor: pointer;
}

.nav-button:hover {
  background-color: #d3d93f;
}

/* Post title below the button */
.nav-title {
  font-size: 1rem;
  margin-top: 0.5rem;
  color: #000;
  font-weight: 400;
  line-height: 1.4;
}

/* Mobile stacking */
@media (max-width: 768px) {
  .nav-links {
    display: none!important;
  }
}





/*nav links end*/

.e-con-boxed:not(.elementor-378 .elementor-element.elementor-element-435030e), .search-results .entry-title, .search-results .searchgrid {
	padding: 0 1rem!important;
}
.search-results .page-title {
	padding-left: 1rem
}
.mobile-search {
	text-align: center;
	margin-top: 2rem;
}
.mobile-search .search-submit {
	color: var(--light-color);
}

/*contactform*/

.contactgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding-top: 1rem;
}

/* Make all labels white and block-level */
.contactgrid label {
  color: white;
  display: block;
}

/* Make the 5th label span 2 columns (message field) */
.contactgrid p:nth-of-type(5) {
  grid-column: span 2;
}
.contactgrid p {
	line-height: 0;
	margin: 0;
	margin-bottom: 0!important;
}

/* Optional: style inputs and textarea */
.contactgrid input,
.contactgrid textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: white;
  color: black;
}

/* Submit button styles — now with white text */
.contactgrid input[type="submit"] {
  grid-column: span 2;
  justify-self: start;
  padding: 0.75rem 1.5rem;
  background: black;
  color: white!important;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

/* Responsive stacking */
@media (max-width: 600px) {
  .contactgrid {
    grid-template-columns: 1fr;
  }

  .contactgrid input[type="submit"] {
    justify-self: stretch;
  }
	.contactgrid p:nth-of-type(5) {
  grid-column: span 1;
}
}



  /*404 page*/

  .error-404 .page-header {
	background-color: var(--darkblue-color);
	padding: 10rem 1rem 0 1rem;
	color: var(--light-color);
  }

  .error-404 .page-content {
	padding: 1rem;
  }
  .search-field {
	padding: 0.44rem 1rem !important;
  }
.search-submit {
	color: white!important;
}

.search-form {
  display: flex;
  align-items: center;
  flex-wrap: nowrap; /* prevents wrapping */
  max-width: 100%;
}

.search-field {
  flex: 1 1 auto; /* allow to shrink */
  min-width: 0;   /* allow shrinking below intrinsic size */
  max-width: 300px; /* or any suitable width */
  margin-right: 0.5rem;
}

.search-submit {
  flex-shrink: 0; /* don't let it shrink */
  white-space: nowrap;
}

/*--------------------------------------------------------------
# Components
--------------------------------------------------------------*/

/* === Navigation Layout === */

.nav-grid {
	display: grid;
	grid-template-rows: auto auto;
	gap: 1rem;
}

/* === Top Row: Donate (left) + Search (right) === */
.top-row {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 1rem;
}

/* === Bottom Row: Navigation Menu === */
.bottom-row {
	/* bottom-row uses the grid row as-is */
}

/* === Donate Button === */
.nav-item {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: fit-content;
	white-space: nowrap;
	border: 1px solid var(--green-color);
	color: #fff;
	padding: 0.5rem 1.61rem;
	text-decoration: none;
	border-radius: 4px;
	background: transparent;
	transition: background 0.61s ease, border 0.61s ease;
	box-sizing: border-box;
}

.main-navigation a {
	color: var(--light-color)!important;
}
.nav-item:hover {
	background-color: var(--green-color);
	color: #000!important;
}

/* === Hamburger Toggle === */
#mobile-menu-toggle {
	display: none;
	background: none;
	border: none;
	font-size: 2.5rem;
	color: white;
	cursor: pointer;
	position: absolute;
	right: 1rem;
	top: 1rem;
	z-index: 1001;
}

/* === Nav Menu === */
.nav-menu {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	justify-content: flex-end;
	gap: 1rem;
}

.nav-menu > li {
	display: inline-block;
	position: relative;
}

.nav-menu > li > a {
	color: white;
	text-decoration: none;
	padding: 0.5rem 1rem;
	display: inline-block;
	transition: background-color 0.61s ease;
}

.nav-menu > li > a:hover {
	background-color: var(--green-color);
	color: var(--darkblue-color)!important;
	border-radius: 4px;
}

/* === Dropdown Menu === */
.nav-menu li ul.sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	background-color: var(--darkbluealt-color);
	padding: 0;
	margin: 0;
	list-style: none;
	z-index: 999;
	border-radius: 4px;
}

.nav-menu li:hover > ul.sub-menu {
	display: block;
}

.nav-menu li ul.sub-menu li a {
	color: white;
	text-decoration: none;
	padding: 0.5rem 1rem;
	display: block;
	white-space: nowrap;
	transition: 0.61s ease;
}

.nav-menu li ul.sub-menu li a:hover {
	background-color: var(--green-color);
	color: var(--darkblue-color)!important;
	border-radius: 4px;
}

/* === Search === */
.search-wrapper {
	position: relative;
	display: flex;
	align-items: center;
}

.search-toggle {
	background: none;
	border: none!important;
	color: white;
	font-size: 1.2rem;
	cursor: pointer;
	padding: 0.5rem;
	z-index: 2;
}

.search-toggle svg {
	width: 1.5rem;
	height: 1.5rem;
	display: block;
}

/* === Expanding Search Field === */
.search-form-container {
	position: absolute;
	right: 100%;
	top: 50%;
	transform: translateX(10px) translateY(-50%);
	background: var(--green-color);
	padding: 0.5rem;
	border-radius: 4px;
	white-space: nowrap;
	opacity: 0;
	transition: opacity 0.61s ease, transform 0.61s ease;
	pointer-events: none;
	z-index: 1;
}

.search-wrapper.active .search-form-container {
	opacity: 1;
	transform: translateX(0) translateY(-50%);
	pointer-events: auto;
}

.search-form-container form {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.search-form-container input[type="search"] {
	padding: 0.5rem;
	border: 1px solid #ccc;
	border-radius: 4px;
	width: 200px;
	max-width: 50vw;
}

.search-form-container input[type="submit"] {
	display: none;
}

/* === Desktop / Mobile Menu Control === */
.desktop-menu {
	display: block;
}
.mobile-menu {
	display: none;
}

/* === Responsive Layout === */
@media (max-width: 799px) {
	/* Show hamburger button */
	#mobile-menu-toggle {
		display: block;
	}

	/* Hide desktop menu */
	.desktop-menu {
		display: none;
	}

	/* Hide mobile menu by default */
	.mobile-menu {
		display: none;
	}

	/* Show mobile menu when toggled */
	.mobile-menu.active {
		display: block;
		background-color: var(--darkblue-color);
		padding: 1rem;
	}

	/* Grid behavior remains the same */
	.nav-grid {
		grid-template-rows: auto auto;
	}

	/* Stack Donate and Search vertically */
	.top-row {
		flex-direction: column;
		align-items: center;
		gap: 1rem;
		text-align: center;
	}

	.bottom-row {
		text-align: center;
	}

	/* Stack menu items vertically */
	.nav-menu {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.nav-menu > li {
		margin: 0.5rem 0;
	}

	/* Submenus become static */
	.nav-menu li ul.sub-menu {
		position: static;
		margin: 0 auto;
		display: none;
		text-align: center;
	}

	/* Expand submenu on hover (optional for touch, or can toggle via JS) */
	.nav-menu li:hover > ul.sub-menu {
		display: block;
	}

	.search-form-container {
		right: 0;
		top: 100%;
		transform: translateY(0);
	}
		.elementor-tab-content {
		border: 0!important;
	}
	/* Fix for mobile menu expansion causing scroll */
.mobile-menu.active {
  display: block;
  background-color: var(--darkblue-color);
  padding: 1rem;
  overflow-x: hidden;
  width: 100vw;
  box-sizing: border-box;
}
	html, body {
  overflow-x: hidden;
  width: 100%;
}

body {
  position: relative;
  max-width: 100vw;
  overflow-x: hidden;
}

body * {
  box-sizing: border-box;
  max-width: 100vw;
}

}




--------------------------------------------- */



.site-main .comment-navigation,
.site-main
.posts-navigation,
.site-main
.post-navigation {
	margin: 0 0 1.5em;
}

.comment-navigation .nav-links,
.posts-navigation .nav-links,
.post-navigation .nav-links {
	display: flex;
}

.comment-navigation .nav-previous,
.posts-navigation .nav-previous,
.post-navigation .nav-previous {
	flex: 1 0 50%;
}

.comment-navigation .nav-next,
.posts-navigation .nav-next,
.post-navigation .nav-next {
	text-align: end;
	flex: 1 0 50%;
}


.elementor-element-7111744 a {
	color: var(--dark-color)!important;
}


/* Posts and pages
--------------------------------------------- */
.sticky {
	display: block;
}

.post,
.page {
	margin: 0;
}

.updated:not(.published) {
	display: none;
}

.page-content,
.entry-content,
.entry-summary {
	margin: 0 ;
}

.page-links {
	clear: both;
	margin: 0 0 1.5em;
}


/*style newsfeed*/

.custom-post-list {
	display: flex;
	flex-direction: column;
	gap: 2rem;
	padding: 1rem 0;
  }
  
  .custom-post-item {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
  }
  
  .thumbnail img {
	width: 64px;
	height: 64px;
	object-fit: cover;
	border-radius: 50%!important;
	border: 2px solid #eee;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  }
  
  .content {
	flex: 1;
	font-family: "Work Sans", sans-serif;
	font-size: 0.95rem;
	color: #333;
  }
  
  .content p {
	margin: 0 0 0.5rem;
	font-family: "Montserrat", sans-serif;

  }
  
  .read-more-btn {
	display: inline-block;		
	padding: 6px 14px;
	font-size: 0.85rem;
	color: var(--dark-color);
	border: 1px solid var(--green-color);
	border-radius: 4px;
	text-decoration: none;
	transition: all 0.3s ease;
	font-family: "Montserrat", sans-serif;

  }
  
  .read-more-btn:hover {
	background-color: var(--green-color);
	color: var(--dark-color);
  }
  

/* Footer
--------------------------------------------- */
.site-footer {
	background-color: var(--darkblue-color);
	color: var(--light-color)
}

.site-info, .footer-bottom {
	width: var(--content-width);
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr 2fr;
	padding: 4rem 0;
	grid-gap: 4rem;
}


.site-footer *, 
.site-footer a {
	color: var(--light-color);
}

.contact-item {
	display: flex;
	margin-bottom: 0.61rem;
}

.social-media {
	display: flex;
	justify-content: space-between;
	align-items: center; /* Optional: vertically center items */
	gap: 1rem; /* Optional: add space between items */
	margin: 2rem 0 0.61rem 0;
}
.contact-item img {
	max-width: 30px;
	margin-right: 1rem;
}
.contact-item a {
	text-decoration: none;
}

@media (max-width: 1111px) {
	.site-info, .footer-bottom {
		grid-template-columns: 1fr;
		width: 100%!important;
		padding: 1rem!important;
	}
	.social-media {
		justify-content: flex-start;
		width: 100%;
	}
.google-map, iframe, .google-map {
  width: 100% !important;
  max-width: 100% !important;
}
.google-map {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 ratio */
  height: 0;
  overflow: hidden;
}

.google-map iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
}

/* Comments
--------------------------------------------- */
.comment-content a {
	word-wrap: break-word;
}

.bypostauthor {
	display: block;
}

/* Widgets
--------------------------------------------- */
.widget {
	margin: 0 0 1.5em;
}

.widget select {
	max-width: 100%;
}

/* Media
--------------------------------------------- */
.page-content .wp-smiley,
.entry-content .wp-smiley,
.comment-content .wp-smiley {
	border: none;
	margin-bottom: 0;
	margin-top: 0;
	padding: 0;
}

/* Make sure logo link wraps around logo image. */
.custom-logo-link {
	display: inline-block;
	max-width: 333px;
}

/* Captions
--------------------------------------------- */

h6 {
	color: var(--mediumblue-color);
	margin: 0.61rem 0!important;
	font-size: 1rem
}

/* Galleries
--------------------------------------------- */
.gallery {
	margin-bottom: 1.5em;
	display: grid;
	grid-gap: 1.5em;
}

.gallery-item {
	display: inline-block;
	text-align: center;
	width: 100%;
}

.gallery-columns-2 {
	grid-template-columns: repeat(2, 1fr);
}

.gallery-columns-3 {
	grid-template-columns: repeat(3, 1fr);
}

.gallery-columns-4 {
	grid-template-columns: repeat(4, 1fr);
}

.gallery-columns-5 {
	grid-template-columns: repeat(5, 1fr);
}

.gallery-columns-6 {
	grid-template-columns: repeat(6, 1fr);
}

.gallery-columns-7 {
	grid-template-columns: repeat(7, 1fr);
}

.gallery-columns-8 {
	grid-template-columns: repeat(8, 1fr);
}

.gallery-columns-9 {
	grid-template-columns: repeat(9, 1fr);
}

.gallery-caption {
	display: block;
}

/*--------------------------------------------------------------
# Plugins
--------------------------------------------------------------*/

/* Jetpack infinite scroll
--------------------------------------------- */

/* Hide the Posts Navigation and the Footer when Infinite Scroll is in use. */
.infinite-scroll .posts-navigation,
.infinite-scroll.neverending .site-footer {
	display: none;
}

/* Re-display the Theme Footer when Infinite Scroll has reached its end. */
.infinity-end.neverending .site-footer {
	display: block;
}

/*--------------------------------------------------------------
# Utilities
--------------------------------------------------------------*/

/* Accessibility
--------------------------------------------- */

/* Text meant only for screen readers. */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* Do not show the outline on the skip link target. */
#primary[tabindex="-1"]:focus {
	outline: 0;
}

/* Alignments
--------------------------------------------- */
.alignleft {

	/*rtl:ignore*/
	float: left;

	/*rtl:ignore*/
	margin-right: 1.5em;
	margin-bottom: 1.5em;
}

.alignright {

	/*rtl:ignore*/
	float: right;

	/*rtl:ignore*/
	margin-left: 1.5em;
	margin-bottom: 1.5em;
}

.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 1.5em;
}
