/*!
Theme Name: MTEF
Theme URI: http://underscores.me/
Author: Orion Taylor
Author URI: http://underscores.me/
Description: Theme for Midwest Tennis Foundation
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: mtef
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.

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

/* 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 {
	line-height: 1.15;
	-webkit-text-size-adjust: 100%;
}

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

/**
 * Remove the margin in all browsers.
 */
body {
	margin: 0;
}

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

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */
h1 {
	font-size: 2em;
	margin: 0.67em 0;
}

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

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

/* General Reset for Default Font */
body {
	font-family: "Hanken Grotesk", sans-serif;
	font-optical-sizing: auto;
	font-weight: 500; /* Medium */
	font-style: normal;
	margin: 0;
	padding: 0;
	line-height: 1.6;
  }
  
  /* Headings H1-H3: Poltawski Nowy, Medium */
  h1, h2, h3 {
	font-family: "Poltawski Nowy", serif;
	font-optical-sizing: auto;
	font-weight: 500; /* Medium */
	font-style: normal;
	margin: 0 0 1em;
  }
  
  /* Headings H4-H6: Hanken Grotesk, Bold */
  h4, h5, h6 {
	font-family: "Hanken Grotesk", sans-serif;
	font-optical-sizing: auto;
	font-weight: 700; /* Bold */
	font-style: normal;
	margin: 0 0 1em;
  }
  
  /* Body Text (p, li, etc.): Hanken Grotesk, Medium */
  p, li, a, span, input, button, label, blockquote {
	font-family: "Hanken Grotesk", sans-serif;
	font-optical-sizing: auto;
	font-weight: 500; /* Medium */
	font-style: normal;
	margin: 0 0 1em;
  }
  
  /* Lists */
  ul, ol {
	font-family: "Hanken Grotesk", sans-serif;
	font-optical-sizing: auto;
	font-weight: 500; /* Medium */
	font-style: normal;
	margin: 0 0 1em;
	padding-left: 1.5em;
	list-style: disc;
  }
  
  /* Default Font Fallback */
  :root {
	font-family: "Hanken Grotesk", sans-serif;
	font-optical-sizing: auto;
	font-weight: 500; /* Medium */
	font-style: normal;
  }

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

p {
	margin-bottom: 1.5em;
}

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%;
}

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

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

ul,
ol {
	margin: 0 0 1.5em 3em;
}

ul {
	list-style: disc;
}

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: #4169e1;
}

a:visited {
	color: #3555b6;
}

a:hover,
a:focus,
a:active {
	color: #191970;
}

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

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

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

/* Navigation
--------------------------------------------- */
.main-navigation {
    background-color: #086AD2; /* Blue background */
    padding: 5px;
    border-radius: 5px;
    display: inline-flex; /* Shrinks to fit its content */
    justify-content: center; /* Center navigation links */
    flex-basis: content;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation ul li {
    margin: 0;
    padding: 0;
    position: relative;
}

.main-navigation a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    padding: 6px 16px;
    border-radius: 4px;
    transition: background 0.3s ease, color 0.3s ease;
    font-weight: 400;
    margin: 0;
    display: block;
}

/* Dropdown menu styling */
.main-navigation ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #086AD2;
    min-width: 200px;
    padding: 5px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    flex-direction: column;
    gap: 2px;
    z-index: 100;
}

/* Show dropdown on hover */
.main-navigation ul li:hover > ul {
    display: block;
}

/* Dropdown items styling */
.main-navigation ul ul li {
    width: 100%;
    margin: 0;
}

.main-navigation ul ul a {
    padding: 8px 16px;
    width: 100%;
    border-radius: 2px;
}

/* Hover states */
.main-navigation ul li:hover > a {
    background: #F2F7FD;
    color: #0056D2;
}

/* Active states */
.main-navigation .current-menu-item > a {
    background: #fff;
    color: #0F79E8;
}

/* Parent of current menu item - only highlight the anchor */
.main-navigation .current-menu-parent > a {
    background: #fff;
    color: #0F79E8;
}

/* Hide dropdowns on mobile */
@media (max-width: 768px) {
    .main-navigation ul ul {
        display: none !important; /* Force hide dropdowns on mobile */
    }
}

/* Small menu. */
.menu-toggle,
.main-navigation.toggled ul {
	display: block;
}

.menu-toggle {
	display: none;
}

.main-navigation ul {
	display: flex;
}

.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%;
}

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

.post,
.page {
	margin: 0 0 1.5em;
}

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

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

.search-page .entry-header {
	padding-bottom: 0;
	border-bottom: none;
	margin-bottom: 0;
}

.search-page .entry-footer {
	border-bottom: 1px solid #dddddd;
	padding-bottom: 20px;
}

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

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

/* Captions
--------------------------------------------- */
.wp-caption {
	margin-bottom: 1.5em;
	max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption .wp-caption-text {
	margin: 0.8075em 0;
}

.wp-caption-text {
	text-align: center;
}

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

/* General container */
.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Site header styling */
.site-header {
    background: #0F79E8; /* Blue background */
    padding: 20px 0;
	background-image: url("/wp-content/themes/mtef/images/tennis-rack3.png");
	background-position: top center;
	background-size: cover;
	background-repeat: no-repeat;
}

.header-content {
    display: flex;
    justify-content: space-between; /* Logo and Contact Button */
    align-items: center;
}

/* Logo styling */
.header-content .logo img {
    max-height: 80px;
    height: auto;
    width: auto;
}

/* Navigation styling */
.main-navigation {
    background-color: #086AD2; /* Blue background */
    padding: 5px;
    border-radius: 5px;
    display: inline-flex; /* Shrinks to fit its content */
    justify-content: center; /* Center navigation links */
	flex-basis: content;
	position: relative;
}

.main-navigation a {
    color: #fff; /* Default white text */
    text-decoration: none;
    font-size: 16px;
    padding: 6px 16px;
    border-radius: 4px; /* Rounded corners for links */
    transition: background 0.3s ease, color 0.3s ease;
	font-weight: 400;
	margin: 0;
}

.main-navigation ul li  {
	margin:0;
	padding: 0;
}

.main-navigation a:hover {
    background: #F2F7FD; /* Gold hover effect */
    color: #0056D2; /* Blue text */
}

/* Highlighted current/parent page link */
.main-navigation .current-menu-item>a {
    background: #fff; /* White background */
    color: #0F79E8; /* Blue text */
}

/* Contact button styling */
.contact-button {
    background: #fff;
    color: #0056D2;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px; /* Rounded corners */
    font-size: 16px;
    transition: background 0.3s ease, color 0.3s ease;
	margin: 0;
}

.contact-button:hover {
    background: #0056D2; /* Gold hover effect */
    color: #fff;
}


.hero-slider {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    height: auto; /* Ensure it adjusts with the aspect ratio */
}

.slider-container {
    display: flex;
    transition: transform 0.5s ease;
}

.slider-container img,
.slider-container a {
    flex-shrink: 0;
    width: 100%; /* Ensure images take the full width of the container */
    height: auto; /* Maintain aspect ratio */
}

.hero-slider img {
    object-fit: cover; /* Maintain the aspect ratio within the container */
    display: block; /* Remove any inline spacing issues */
}

.hero-section .slider-container a {
    font-size: 0;
	line-height: 0;
	margin:0;
	padding: 0;
}

.hero-section {
    margin-bottom: -220px;
}

.hero-spacer-section {
	height: 220px;
}

/* Navigation Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.left-arrow {
    left: 10px;
}

.right-arrow {
    right: 10px;
}

.slider-arrow img {
    width: 40px;
    height: 40px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .slider-arrow img {
        width: 30px; /* Scale down arrow size */
        height: 30px;
    }
}
  
  .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
  }
  
  .headline-svg {
	display: block;
	width: 100%; /* Adjust as needed */
	height: auto;
  }
  .headline {
	max-width: 780px;
	margin: 0 auto;
	padding: 20px;
  }

  .site-footer {
    background: #0F79E8;
    color: #fff;
    padding: 40px 20px;
    text-align: center;
}

.footer-container {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(4, 1fr); /* Default 4 columns */
}

.footer-section h4 {
    margin-bottom: 20px;
	text-transform: uppercase;
	font-weight: 800;
	font-size: 20px;
}

.footer-section {
    text-align: left;
}

.footer-section ul {
    list-style: none;
    padding: 0;
	margin: 0;
}

.footer-section ul li a {
    color: #fff;
    text-decoration: none;
	font-size: 16px;
}

.footer-section ul li a:hover {
    text-decoration: underline;
}

.footer-section ul li {
	margin: 0;
}

p {
	font-size: 16px;
}

.input-container {
    display: flex;
    max-width: 400px;
    margin: 0 auto 20px;
    overflow: hidden;
}

.input-container input {
    flex: 1;
    padding: 12px;
    font-size: 16px;
    font-style: italic;
    border: none;
    outline: none;
	border-radius: 4px 0 0 4px;
	margin: 0;
}

.input-container button {
    background-color: #2690FF;
    border-radius: 0px 4px 4px 0px;
	border:none;
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
	margin: 0;
}

.input-container button:hover {
    background-color: #0772E1;
}

.input-container button img {
    width: 25px;
    height: 25px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.social-icons a:hover {
	opacity: .8;
}

.social-icons img {
    width: 32px;
    height: auto;
}

.wp-block-file object {
	display: none;
}

.footer-bottom {
    text-align: center;
    font-size: 14px;
	padding: 40px;
	background:#0772E1;
	color:white;
}

.wp-block-separator {
    border: none;
    border-top: 2px solid #0772E1;
}

.recent-news h2, .what-we-do h2 {
	color: #233A51;
    font-size: 36px;
    margin: 0 0 15px;
}

/* General Container for Centering and Width */
.container {
    max-width: 1400px;
    margin: 0 auto; /* Centers the content horizontally */
}

.post-container {
    max-width: 1000px;
    margin: 40px auto; /* Centers the content horizontally */
	padding: 0 20px;
}

/* Single Post Layout */
.single-post-container {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
    display: flex;
    gap: 40px;
}

.post-content {
    flex: 1;
}

.post-sidebar {
    width: 300px;
    flex-shrink: 0;
}

.post-sidebar h2 {
    color: #233A51;
    font-size: 24px;
    margin: 0 0 20px;
}

.sidebar-news-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-news-grid .news-item {
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.sidebar-news-grid .news-item:last-child {
    border-bottom: none;
}

.sidebar-news-grid .news-item img {
    width: 100%;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 10px;
}

.sidebar-news-grid .news-item h4 {
    font-size: 18px;
    margin: 0 0 10px 0;
    color: #233A51;
}

.sidebar-news-grid .news-item p {
    font-size: 14px;
    color: #666;
    margin: 10px 0;
}

.sidebar-news-grid .news-item a {
    color: #0F79E8;
    text-decoration: none;
    font-weight: 500;
}

.sidebar-news-grid .news-item a:hover {
    text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 920px) {
	.news-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 wide on tablets */
    }
	.footer-container {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablet */
    }
	.hero-section {
		margin-bottom: 0;
		padding: 10px 10px 0px 10px;
	}
	
	.hero-spacer-section {
		height: 0;
	}

    .single-post-container {
        flex-direction: column;
    }

    .post-content {
        max-width: 100%;
    }

    .post-sidebar {
        width: 100%;
        margin-top: 40px;
    }

    .sidebar-news-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .sidebar-news-grid .news-item {
        border-bottom: none;
        padding-bottom: 0;
    }
}

@media (max-width: 768px) {
	.news-grid {
        grid-template-columns: 1fr; /* 1 wide on mobile */
    }
	.footer-container {
        grid-template-columns: 1fr; /* 1 column on mobile */
    }
	.header-content {
		align-items: start;
		flex-wrap: wrap;
		gap: 10px;
	}
.news-listing {
	padding: 10px;
}
	.main-navigation {
		display: none; /* Hide desktop navigation */
	}

	.contact-button {
		order: 2; /* Position after logo */
	}

	/* Override the default display: none for mobile */
	.mobile-menu-toggle {
		display: block !important;
		background: none;
		border: none;
		padding: 0;
		cursor: pointer;
		order: 3; /* Position after contact button */
		width: 100%; /* Full width */
		text-align: right;
		line-height: 0;
		margin: -15px 0 0 0;
	}

	.hamburger {
		display: inline-block;
		width: 25px;
		height: 3px;
		background-color: #fff;
		margin: 3px 0;
		line-height: 0;
		transition: all 0.3s ease;
	}

	/* Override the default display: none for mobile */
	.mobile-navigation {
		display: block !important;
		position: fixed;
		top: 0;
		right: -100%;
		width: 80%;
		max-width: 400px;
		height: 100vh;
		background-color: #086AD2;
		z-index: 1000;
		transition: right 0.3s ease;
		overflow-y: auto;
	}

	.mobile-navigation.active {
		right: 0;
		box-shadow: -5px 0 50px rgba(0, 0, 0, 0.4);
	}

	.mobile-nav-header {
		padding: 20px;
		display: flex;
		justify-content: flex-end;
	}

	.close-menu {
		background: none;
		border: none;
		padding: 10px;
		cursor: pointer;
		margin-right: 10px;
	}

	.close-icon {
		display: none; /* Hide the old close icon */
	}

	.close-menu::before,
	.close-menu::after {
		content: '';
		position: absolute;
		width: 24px;
		height: 2px;
		background-color: #fff;
	}

	.close-menu::before {
		transform: rotate(45deg);
	}

	.close-menu::after {
		transform: rotate(-45deg);
	}

	.mobile-nav-menu {
		padding: 20px;
	}

	/* Mobile Search Styles */
	.mobile-search {
		padding: 0 20px 20px;
		border-bottom: 1px solid rgba(255, 255, 255, 0.1);
		margin-bottom: 20px;
	}

	.mobile-search .search-form {
		display: block;
		width: 100%;
	}

	.mobile-search .search-field {
		flex: 1;
		background: #fff;
		border: none;
		border-radius: 20px;
		padding: 10px 15px;
		font-size: 16px;
		width: 100%;
		transition: all 0.3s ease;
		margin: 0;
	}

	.mobile-search .search-field:focus {
		outline: none;
		box-shadow: 0 0 0 2px rgba(255,255,255,0.3);
	}

	.mobile-search .search-submit {
		display: none;
	}

	.mobile-nav-menu ul {
		list-style: none;
		padding: 0;
		margin: 0;
	}

	.mobile-nav-menu li {
		margin: 0;
		padding: 0;
		position: relative;
	}

	.mobile-nav-menu a {
		color: #fff;
		text-decoration: none;
		font-size: 18px;
		padding: 12px 0;
		display: block;
		border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	}

	.mobile-nav-menu .menu-item-has-children {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
	}

	.mobile-nav-menu .menu-item-has-children > a {
		flex: 1;
		padding-right: 40px;
	}

	.mobile-nav-menu .submenu-toggle {
		position: absolute;
		right: 0;
		top: 12px; /* Match the padding of the link */
		background: none;
		border: none;
		padding: 0 10px;
		cursor: pointer;
		color: #fff;
		font-size: 24px;
		line-height: 1;
		height: 24px;
		transition: transform 0.3s ease;
		z-index: 2;
	}

	.mobile-nav-menu .menu-item-has-children.active .submenu-toggle {
		transform: rotate(45deg);
	}

	.mobile-nav-menu .sub-menu {
		display: none;
		padding-left: 20px;
		width: 100%;
		order: 3;
	}

	.mobile-nav-menu .sub-menu.active {
		display: block;
	}

	.hero-section {
		padding: 10px 10px 0px 10px;
	}
}

@media (max-width: 480px) {
	.contact-button {
		padding: 8px 16px;
	}
	.main-navigation a {
		padding: 6px 10px;
	}
}


/* Header Search Styling */
.header-search {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #086AD2;
    padding: 15px;
    margin: 0;
    border-radius: 0 0 4px 4px;
}

.header-search.show {
    display: block;
}

.header-search .search-form {
    display: inline-block;
    align-items: center;
    width: 100%;
    max-width: 100%;
    min-width: 100%;
    margin: 0 auto;
}

.header-search .search-field {
    background: #fff;
    border: none;
    border-radius: 4px;
    padding: 10px 15px;
    font-size: 16px;
    width: 100%;
    transition: all 0.3s ease;
	margin: 0;
}

.search-form label {
	margin: 0;
}

.header-search .search-field:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.3);
}

.header-search .search-submit {
    display: none;
}

/* Search Icon Styling */
.search-icon {
    margin-left: 0 !important;
}

.search-icon a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px !important;
}

.search-icon img {
    width: 25px;
    height: 25px;
    transition: all 0.3s ease;
    filter: brightness(0) saturate(100%) invert(100%);
}

.search-icon:hover img {
    filter: brightness(0) saturate(100%) invert(24%) sepia(97%) saturate(1970%) hue-rotate(204deg) brightness(95%) contrast(101%);
}

/* Responsive adjustments for search */
@media (max-width: 768px) {
    .header-search {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 100;
    }

    .search-icon {
        margin-left: 0 !important;
    }
}

/* Pagination Styling */
.pagination {
    width: 100%;
    text-align: center;
    margin: 40px 0;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    background: #fff;
    color: #0F79E8;
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid #0F79E8;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination .page-numbers.current {
    background: #0F79E8;
    color: #fff;
    border-color: #0F79E8;
}

.pagination .page-numbers:hover {
    background: #F2F7FD;
    color: #0056D2;
    border-color: #0056D2;
}

.pagination .page-numbers.next,
.pagination .page-numbers.prev {
    padding: 0 16px;
}

/* Tag Filter Section */
.tag-filter-section {
    margin: 30px 0;
}

.tag-filter-section h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 1.2em;
}

.tag-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-pill {
    background: #fff;
    border: 1px solid #0F79E8;
    color: #0F79E8;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.tag-pill:hover {
    background: #F2F7FD;
    color: #0056D2;
    border-color: #0056D2;
}

.tag-pill.active {
    background: #0F79E8;
    color: #fff;
    border-color: #0F79E8;
}

/* Hide articles when filtered */
.news-item.hidden {
    display: none;
}

/* Mobile Menu Toggle Button - Hidden by default */
.mobile-menu-toggle {
    display: none;
}

/* Mobile Navigation - Hidden by default */
.mobile-navigation {
    display: none;
}

/* NJTL Grid Styles */
.njtl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px auto;
    max-width: 1200px;
    justify-items: center;
}

.njtl-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #F2F7FD;
    width: 100%;
    max-width: 200px;
}

.njtl-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.njtl-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.njtl-image {
    position: relative;
    padding-bottom: 100%;
    overflow: hidden;
}

.njtl-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.njtl-title {
    color: #233A51;
    font-size: 18px;
    margin: 12px 12px 8px;
    font-family: "Poltawski Nowy", serif;
    font-weight: 500;
}

.njtl-location {
    color: #666;
    font-size: 14px;
    margin: 0 12px 12px;
    font-family: "Hanken Grotesk", sans-serif;
}

/* Add background color to text area */
.njtl-item .njtl-link > :not(.njtl-image) {
    padding-top: 2px;
}

/* Responsive adjustments for NJTL grid */
@media (max-width: 768px) {
    .njtl-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .njtl-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}