/*!
Theme Name: Robinia
Theme URI: http://underscores.me/
Author: Effix
Author URI: http://underscores.me/
Description: Description
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: robinia
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.

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

@font-face {
    font-family: SourceSans3;
    src: url('fonts/SourceSans3.ttf');
    font-display: block;
}

:root {
    --color-main-green: #4A730D;
    --color-main-brown: #51311A;
}

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: SourceSans3, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 1rem;
    line-height: 1.5;
}

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

p, a, span {
    letter-spacing: 1px;
}

.site-button {
    letter-spacing: 2px;
}

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

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

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

/* Links
--------------------------------------------- */
a {
    color: #4169e1;
}

a:visited {
    color: #800080;
}

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

.has-icon-before {
    position: relative;
    padding-left: 28px;
}

.has-icon-before::before {
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 20px;
}

.icon--web::before {
    background-image: url(img/web-icon.svg);
}

/* Navigation
--------------------------------------------- */
.site-header nav ul, .mobile-nav-overlay ul {
    margin: 0;
    list-style: none;
    padding-inline-start: 0;
    display: flex;
    flex-wrap: wrap;
}

.site-header .menu-item {
    padding: 0.2rem 0.2rem;
    margin: 0 12px;

}

.site-header .menu-item a {
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    position: relative;
    font-weight: 600;
}

.site-header .menu-item.current-menu-item > a::before,
.site-header .menu-item.current_page_ancestor > a::before {
    /*
    content: "";
    position: absolute;
    left: -16px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background-color: #ffffff;
    border-radius: 50%;

     */
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    border-radius: 50%;
}

.aside-navigation .nav-link.active::before {

}

.site-header nav .sub-menu {
    flex-direction: column;
    position: absolute;
    opacity: 0;
    pointer-events: none;
    transition: all 300ms ease-in-out;
}

.site-header .menu-item.menu-item-has-children:hover .sub-menu {
    opacity: 1;
    pointer-events: revert;
    background-color: #fff;
    border: 1px solid grey;
    border-radius: 3px;
}

.header-navigation {
    align-items: center;
    max-width: 40%;
    width: 100%;
}

.header-navigation--right { /* language selector */
    display: flex;
    justify-content: flex-end;
}

.header-navigation--right .menu {
    justify-content: flex-end;
}


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

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

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

.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
--------------------------------------------- */
/* Reset WordPress Gallery Styles */
.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* Adjust spacing between images */
    justify-content: center;
    padding: 0;
    list-style: none;
}

/* Individual gallery items */
.gallery-item {
    flex: 1 1 auto;
    text-align: center; /* Center captions */
    box-sizing: border-box;
}

/* Responsive columns based on WordPress class */
.gallery-columns-1 .gallery-item {
    flex-basis: calc(100% - 10px);
}

.gallery-columns-2 .gallery-item {
    flex-basis: calc(50% - 10px);
}

.gallery-columns-3 .gallery-item {
    flex-basis: calc(33.333% - 10px);
}

.gallery-columns-4 .gallery-item {
    flex-basis: calc(25% - 10px);
}

.gallery-columns-5 .gallery-item {
    flex-basis: calc(20% - 10px);
}

.gallery-columns-6 .gallery-item {
    flex-basis: calc(16.666% - 10px);
}

.gallery-columns-7 .gallery-item {
    flex-basis: calc(14.285% - 10px);
}

.gallery-columns-8 .gallery-item {
    flex-basis: calc(12.5% - 10px);
}

.gallery-columns-9 .gallery-item {
    flex-basis: calc(11.111% - 10px);
}

/* Ensure images fill their container */
.gallery-item img {
    width: 100%;
    height: 200px; /* Adjust this as needed */
    object-fit: contain; /* Crop to fill the space */
    display: block;
    border-radius: 1px; /* Optional: Rounded corners */
}

/* Captions */
.gallery-caption {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .gallery-columns-3 .gallery-item,
    .gallery-columns-4 .gallery-item,
    .gallery-columns-5 .gallery-item,
    .gallery-columns-6 .gallery-item,
    .gallery-columns-7 .gallery-item,
    .gallery-columns-8 .gallery-item,
    .gallery-columns-9 .gallery-item {
        flex-basis: calc(50% - 10px); /* Two columns on tablets */
    }
}

@media (max-width: 480px) {
    .gallery-item {
        flex-basis: calc(100% - 10px); /* Single column on small screens */
    }
}

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

/* custom */
h1, h2, h3, h4 {
    margin: 0;
    text-transform: uppercase;
    line-height: 1;
    letter-spacing: 3px;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.6rem;
}

.sub-title {
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.h3-sub-title {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.site-header, .site-main, .site-footer {
    max-width: 1800px;
    margin: 0 auto;
}

h1 {
    font-size: 2.5rem;
}


.site-main__archives h1 {
    font-size: 2.5rem;
    color: var(--color-main-brown);
}

.site-main__archives {
    padding-top: 50px;
    padding-bottom: 100px;
    background-image: url("img/hatter_dekoracio_low_opacity.png");
    background-size: 1200px auto;
    background-repeat: no-repeat;
    background-position: top right;
}

.site-section__inner, .site-header__inner {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.site-header__inner {
    max-width: 1500px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-header {
    background-color: var(--color-main-green);
    padding: 0;
}

.site-header .header-navigation {
    padding: 1.6rem 1.2rem;
}


.custom-logo-link {

}

.custom-logo-link .custom-logo {
    width: 240px;
    height: 100%;
    display: block;
}

.site-main {
    min-height: 1000px;

}

/* scroll */

::-webkit-scrollbar {
    width: 16px
}

::-webkit-scrollbar-track {
    background: #f1f1f1
}

::-webkit-scrollbar-thumb {
    background: #4a730d;
}

::-webkit-scrollbar-thumb:hover {
    background: #6b8f33;
}

.aside-navigation::-webkit-scrollbar {
    width: 6px
}

/* utilities */
.excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Limit to 3 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.text-align--end {
    text-align: end;
}

/* site link */
.site-link {
    position: relative;
    display: inline-block;
    font-weight: 600;
    color: #000;
    text-decoration: none;
}

a.site-link--url {
    position: relative;
    display: inline-block;
    font-weight: 600;
    color: var(--color-main-brown);
}

.site-link.site-link--white {
    color: #fff;
}

.site-link.site-link--brown {
    color: var(--color-main-brown);
}

.site-link.site-link--arrow {
    padding-right: 20px;
}

.site-link.site-link--arrow::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    width: 10px;
    height: 100%;
    background-image: url("img/white-arrow.svg");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.site-link--brown.site-link--arrow::after {
    background-image: url("img/brown-arrow.svg");
}

/* button */

a.site-button {
    color: #fff;
    background-color: var(--color-main-green);
    font-weight: 700;
    font-size: 0.875rem;
    display: inline-block;
    padding: 0.75rem 2.5rem;
    border-radius: 2rem;
    text-decoration: none;
    text-transform: uppercase;
    text-align: center;
}

/* aside nav */

.aside-navigation {
    background-image: url("img/wood_background_decoration.png");
    background-size: 1000px 1000px;
    background-position: top center;
    box-shadow: 4px 2px 4px 0px #00000040;
    min-width: 280px;
    padding: 3rem 1.5rem;
    margin-left: 20px;
    margin-top: 20px;
    border-radius: 4px;
    max-height: 80vh;
    overflow: auto;
    color: #fff;
}

.aside-navigation ul {
    list-style: none;
    margin: 0;
    padding-inline-start: 0;
}

.aside-navigation .nav-link {
    color: #fff;
    text-decoration: none;
}

.aside-navigation .nav-link:hover {
    color: #dcdcdc;
}

.aside-navigation .nav-link {
    position: relative;
}

.aside-navigation .nav-link.active {
    color: #bebebe;
}

.aside-navigation .nav-link.active::before {
    content: "";
    position: absolute;
    left: -16px; /* Aligns to the left of the nav link */
    top: 50%;
    transform: translateY(-50%); /* Centers the circle vertically */
    width: 8px; /* Adjust size */
    height: 8px; /* Adjust size */
    background-color: #bebebe; /* Change color as needed */
}

/* language selector */


.language-chooser {
    flex: revert !important;
    align-items: center;
    text-transform: uppercase;
    margin-left: auto;
    flex-wrap: nowrap !important;
}

.language-chooser a {
    color: #fff;
    text-decoration: none;
}

.language-chooser .active a {
    font-weight: 800;
}

.language-chooser li:first-of-type {
    border-right: 2px solid #fff;
}

.language-chooser li a {
    padding: 0.2rem 0.5rem !important;
}

/* sections */
.fp-section {

}

.fp-section .site-button {
    margin-top: 1.5rem;
}

.fp-section a.site-link {
    margin-top: 1.5rem;
    font-size: 1.125rem;
    padding-right: 30px;
}

.fp-section h2 {
    font-weight: 600;
}

.fp-section .sub-title {
    display: block;
    margin-bottom: 2rem;
}

.site-breadcrumbs {
    display: none;
}

.site-banner {
    min-height: 400px;
    background-color: #198754;
    display: flex;
    position: relative;
}

.single-page .site-banner {
    min-height: revert;
    height: 240px;
}

.site-banner--single {
    background-image: url("img/parent_view_banner.jpg");
    background-size: cover;
}

.site-banner__bg-wrapper {

}

.site-banner--fp img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.site-banner__content {
    margin-top: 130px;
    margin-bottom: 130px;
    padding: 2rem 0;
    color: #fff;
    max-width: 600px;
    width: 100%;
    position: relative;
}


.site-banner__content h1 {
    margin-bottom: 0;
    margin-top: 0;
}

.site-banner__content p {
    margin-bottom: 0;
}

.site-banner__content .sub-title {
    margin-bottom: 1rem;
}

.site-banner__content .site-button {
    margin-top: 2.5rem;
}

/* introduction section */

.introduction-section {
    padding-top: 100px;
    padding-bottom: 100px;
    background-image: url("img/hatter_dekoracio_low_opacity.png");
    background-size: 1200px auto;
    background-repeat: no-repeat;
    background-position: top right;
}

.introduction-section .site-section__inner {
    display: flex;
    align-items: center;
}

.image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    gap: 20px; /* Optional spacing */
}


.image-grid img {
    object-fit: cover;
    min-width: 0;
    min-height: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.image-grid img:first-child,
.image-grid img:nth-child(2) {
    grid-row: span 1;
    grid-column: 1;
}

.image-grid img:nth-child(3) {
    grid-column: 2;
    grid-row: 1/ span 2;
}

.introduction__images-wrapper {
    flex: 1.2;
}

.introduction__content {
    flex: 0.8;
    margin-left: -120px;
    padding: 3rem 2rem;
    background-size: cover;
    color: #fff;
    box-shadow: 4px 2px 4px 0px #00000040;
}

.introduction__content h2 {
    color: #fff;
}

.introduction__content p {
    margin-bottom: 0;
}

/* partners section */
.partners-product-gallery__item {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 20px;
}

@media screen and (max-width: 600px) {
    .partners-product-gallery__item {
        grid-template-columns: 1fr;
    }
}

.partners-section {
    color: #fff;
    display: flex;
    flex-direction: column;
    background-image: url("img/hatter_dekoracio_fa.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    min-height: 420px;
    padding: 3rem 0;
}

.partners-section h2 {
    color: #fff;
}

/* products section */
.products-section {
    background-image: url("img/hatter_dekoracio_low_opacity_mirror.png");
    background-size: 1600px auto;
    background-repeat: no-repeat;
    background-position: top left;
    padding: 70px 0 150px;
}

.product-categories {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    width: 100%;
    min-height: 480px;
    gap: 20px; /* Optional spacing */
}

.product-categories > .category-card:first-child {
    grid-row: span 2;
    grid-column: 1;
}

.product-categories > .category-card:first-child .category-card__title {
    font-size: 2rem;
}

.product-categories > .category-card {
    min-width: 0;
    min-height: 0;
    background-color: rgba(128, 128, 128, 0.2);
}

.category-card {
    position: relative;
    padding: 1rem;
    padding-left: 2rem;
    display: flex;
    align-items: flex-end;
    text-decoration: none;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    box-shadow: 2px 1px 2px 0px #00000040;
}

.category-card .category-card__title-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: -2.75rem;
    will-change: margin-bottom;
    transition: margin-bottom 0.3s ease-in-out;
    position: absolute;
    padding-right: 0.5rem;
}

.category-card__title-wrapper .site-link {
    will-change: opacity;
    transition: opacity 0.5s ease-in-out 0.2s;
    margin-top: 1.25rem;
    opacity: 0;
}

.category-card:hover .category-card__title-wrapper {
    margin-bottom: 0;
}

.category-card:hover .site-link {
    opacity: 1;
}

.category-card__title {
    color: #fff;
    font-size: 1.125rem;
    position: relative;
}

.category-card__img-wrapper {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.category-card__gradient {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(0, 0, 0, 0.1077364539565826) 61%, rgba(45, 65, 89, 0.9200613839285714) 100%);;
}

/* news section */

.news-section {

}

.fp-news-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
    gap: 20px;
}

.fp-news-card, .news-card__date {
    text-decoration: none;
    color: var(--color-main-brown);
}

.news-card__img, .category-card__img {
    will-change: transform;
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the container */
    transition: transform 0.3s ease-in-out;
}

.news-card__img {
    object-position: top;
}

.fp-news-card:hover .news-card__img,
.category-card:hover .category-card__img {
    transform: scale(1.1); /* Zoom effect on hover */
}

.news-card__img-wrapper {
    height: 300px;
    position: relative;
    overflow: hidden;
    box-shadow: 2px 1px 2px 0px #00000040;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(to bottom, rgba(128, 128, 128, 0.05), rgba(128, 128, 128, 0.1));

}

.news-card__content {
    margin-top: 0.25rem;
    padding: 0.75rem;
}

.news-card__content span {
    display: block;
}

.news-card__title {
    color: var(--color-main-green);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

div, img, a {
    border-radius: 2px;
}

/* pages */
/* single pages */

.post-title-section {
    background-image: url("img/wood_background_decoration.png");
    background-size: cover;
    min-height: 200px;
    color: #fff;
    display: flex;
}

.post-title-section > * {
    width: 0;
    flex: 1.6;
}

.post-title-section__content {
    padding: 2rem;
}

.post-title-section__content h1 {
    max-width: 500px;
    margin-top: 2.5rem;
}

.post-title-section > img {
    flex: 1;
    align-self: center;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    margin-top: -20px;
    margin-bottom: -20px;
    margin-right: 2rem;
    z-index: 1;
    box-shadow: 0px 4px 4px 0px #00000040;
}

@media screen and (max-width: 600px) {
    .post-title-section {
        flex-direction: column;

    }

    .post-title-section__content {
        padding: 1rem;
    }

    .post-title-section > * {
        width: revert;
    }

    .post-title-section > img {
        margin: 20px 0 -20px;
        align-self: revert;
    }
}

.single-wrapper {
    padding: 2rem;
}

.single-thumbnail__wrapper {
    background-color: #fff;
    box-shadow: 0px 4px 4px 0px #00000040;
    width: 240px;
    height: 240px;
    display: flex;
    justify-content: center;
    align-items: center;

}

.single-thumbnail {
    object-fit: contain;
    width: 200px;
    height: 200px;
}

.single-title-section {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.single-content-container {
    max-width: 800px;
    margin-bottom: 120px;
    margin-top: 60px;
}

/* product pages */

.product-filters-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding-top: 40px;
}

.filter-card {
    position: relative;
}

.filter-card.active, .filter-card:hover {
    background-color: #2A4700 !important;
}

.filter-card::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 0;
    height: 100%;
    width: 30px;
    background-image: url("img/toy.svg");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.product-filters-container .category-card {
    width: 200px;
    height: 140px;
    padding: 0.5rem;
}

.product-filters-container .category-card__title {
    font-size: 0.85rem;
}

.site-card-container {
    flex: 1;
    margin-top: 50px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 40px 20px;
}

.site-card__image-wrapper {
    position: relative;
    height: 240px;
    background-color: #e0e0e0;
    overflow: hidden;
}

.site-card__image-wrapper .card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.partners-archive .site-card__image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.partners-archive .site-card__image-wrapper .card-image {
    object-fit: contain;
    width: 80%;
    height: 80%;
}

.site-card-tax-icon-list {
    position: absolute;
    bottom: 0.5rem;
    left: 0.5rem;
    display: flex;
    overflow-x: auto;
    width: calc(100% - 1rem);
    scrollbar-width: none;
}

/* Hide scrollbar for Webkit browsers (Chrome, Safari) */
.site-card-tax-icon-list::-webkit-scrollbar {
    width: 0px;
    height: 0px;
}

/* Show scrollbar on hover */
.site-card-tax-icon-list:hover {
    scrollbar-width: thin; /* Firefox */
}

/* Webkit scrollbar styling when hovered */
.site-card-tax-icon-list:hover::-webkit-scrollbar {
    height: 4px;
}

.site-card-tax-icon-list:hover::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
}

.site-card-tax-icon-list:hover::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

/* products card variant */
.site-card-container--products .site-card__title {
    background-color: revert;
    color: var(--color-main-brown);
    text-align: start;
    padding: 0.5rem 0;
    font-weight: 600;
}

.site-card-container--products .site-card {
    background-color: revert;
}

/* akác oldal / parentview */
.site-parentview {
    background-color: #f9f9f9;
}

.site-parentview .sub-section {
    padding: 3rem 2rem;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
    margin-bottom: 40px;
    background-color: #fff;

    border-left: 6px var(--color-main-brown) solid;
}

.site-parentview .sub-section:nth-child(even) {

}

.site-parentview .site-content__container-wrapper, .single-page .site-content__container-wrapper {
    background-image: url("img/hatter_dekoracio_low_opacity.png");
    background-size: 1200px auto;
    background-repeat: no-repeat;
    background-position: top right;
    padding-top: 40px;
}

.single-page .site-content__container-wrapper {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.products-archive .site-content__container, .tax-product_category .site-content__container, .site-parentview .site-content__container {
    display: flex;
    align-items: flex-start;
    position: relative;
}

.filter-aside {
    top: 30px;
    position: sticky;
}

.filter-aside .aside-navigation ul {
    will-change: max-height;
}

#aside-hamburger-button {
    display: none;
}

.sub-section {
    scroll-margin-block-start: 40px;
}

@media screen and (max-width: 1200px) {
    .site-parentview .site-content__container, .tax-product_category .site-content__container, .products-archive .site-content__container {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .site-parentview .site-content__container-wrapper {
        padding-top: 20px;
    }

    .filter-aside {
        top: 20px;
    }

    .aside-navigation {
        padding: 1rem;
        padding-top: 2rem;
        margin: 0;
        margin-bottom: 20px;
    }

    .aside-navigation > ul {
        column-count: 2;
    }

    .aside-navigation .aside-navigation__list {
        padding-inline-start: 1.5rem;
    }

    .filter-aside .aside-navigation hr {

    }

    .filter-aside .aside-navigation ul {
        max-height: 0;
        overflow: hidden;
        transition: max-height 300ms ease-in-out;
    }

    .filter-aside .aside-navigation.menu-open ul {
        max-height: 800px;
        overflow: hidden;
    }

    .sub-section {
        position: relative;
    }

    #aside-hamburger-button {
        display: revert;
    }

    .sub-section {
        scroll-margin-block-start: 140px;
    }
}

/* footer */
.text-bold {
    font-weight: 700;
}
.footer-menu-right .menu {
    margin: 0;
    padding-inline-start: 0;
    list-style: none;
}
.no-decoration, .no-decoration a {
    text-decoration: none;
}

.site-footer-menus {
    display: flex;
    padding-top: 3rem;
    justify-content: space-between;
    width: 100%;
}

.footer-menu-right {
    display: flex;
    flex-direction: column;
    padding: 0 1rem 1rem 1rem;
}

.footer-menu-right a {
    color: #fff;
    margin-top: 4px;
    display: inline-block;
}

.footer-menu-right a:hover {
    text-decoration: revert;
}

.footer-menu-container {
    padding: 0rem 1rem 2rem;
}

.footer-menu-container .menu {
    list-style: none;
    margin: 0;
    padding-inline-start: 0;
}

.footer-menu-container .menu-item a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
}

.site-footer {
    margin-top: 140px;
}

.site-footer .site-info {
    display: block;
    margin-top: auto;
    color: #fff;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.site-footer__top {
    background-image: url("img/footer_decoration.PNG");
    background-size: cover;
    background-position: center;
    height: 80px;
}

.site-footer__bottom {
    padding-top: 60px;
    background-color: var(--color-main-brown);

    background-image: url("img/hatter_dekoracio_low_opacity.png");
    background-size: 1200px auto;
    background-repeat: no-repeat;
    background-position: top right;
}

.site-footer__bottom .site-section__inner {
    display: flex;
    flex-direction: column;
    min-height: 300px;
    align-items: flex-start;
}

@media screen and (max-width: 600px) {
    .site-footer-menus {
        flex-direction: column;
    }
}

@media screen and (max-width: 800px) {
    html {
        font-size: 14px;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .category-card {
        padding: 0.5rem;
    }

    .category-card__title {
        font-size: 1rem;
    }

    .sub-title {
        font-size: 1.2rem;
    }

    .aside-navigation ul {
        column-count: 1;
    }

    .header-navigation .language-chooser {
        display: none;
    }

    .site-main__archives {
        padding-top: 20px;
    }

    .products-archive .site-content__container, .tax-product_category .site-content__container {
        margin-top: 34px;
    }

    .site-main__archives h1 {
        font-size: 2rem;
    }

    .site-card-container {
        margin-top: 20px;
        grid-template-columns: 1fr 1fr;
    }

    .site-banner__content .sub-title {
        margin-bottom: 1.5rem;
    }

    .site-banner--single .site-banner__content {
        margin-top: 40px;
        margin-bottom: 40px;
    }

    .site-banner--single {
        min-height: revert;
    }

    .introduction-section {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .introduction-section .site-section__inner {
        flex-direction: column;
        gap: 20px;

    }

    .products-section {
        padding: 40px 0 60px;
    }

    .introduction__content {
        margin-left: 0;

    }

    .product-categories > .category-card:first-child {
        grid-column: span 2;
    }

    .product-categories {
        height: 800px;
        grid-template-columns: 1fr 1fr;
    }

    .fp-news-container {
        grid-template-columns: 1fr;
    }

    .site-footer {
        margin-top: 80px;
    }

    /* single */
    .single-wrapper {
        padding: 2rem 0;
    }

    .single-title-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .single-title-section a {
        top: 0 !important;
    }

    .single-content-container {
        margin-top: 40px;
        margin-bottom: 50px;
    }

    .site-parentview .sub-section {
        padding: 1rem;
        margin-bottom: 20px;
    }

}

@media screen and (max-width: 480px) {
    .site-card-container {
        grid-template-columns: 1fr;
    }
}


/* mobile */


/* mobile nav */
body.menu-open {
    height: 100vh;
    overflow-y: hidden;
}

.mobile-nav-overlay {
    padding-top: 80px;
    top: 0;
    right: -100%;
    z-index: 9999;
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: var(--color-main-brown);
    background-image: url("img/hatter_dekoracio_low_opacity.png");
    background-size: 1200px auto;
    background-repeat: no-repeat;
    background-position: top right;
    overflow: hidden;
    transition: right 500ms ease-in-out, opacity 500ms ease-in-out;
    opacity: 0;

    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.menu-open .mobile-nav-overlay {
    right: 0;
    opacity: 1;
    transition: right 500ms ease-in-out, opacity 500ms ease-in-out;
}

.mobile-scroll-container {
    padding: 1rem;
    overflow: auto;
    width: 100%;
    max-height: 470px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.player-navigation__mobile {
    margin-top: auto;
}

.mobile-navigation a, .player-navigation__mobile a {
    padding: 0.5rem 1.5rem;
    background-color: var(--site-green);
    border-radius: 50px;
    text-decoration: none;
    color: #FFFFFF;
    font-weight: 600;
    display: block;
    min-width: 240px;
    text-align: center;
    text-transform: uppercase;
    border: 1px solid #FFFFFF;
}

.mobile-navigation a:hover {
    text-decoration: underline;
}

.mobile-navigation .menu {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.site-logo__mobile-nav {
    margin-bottom: 10px;
    width: 200px;
    height: 50px;
    object-position: center;
    object-fit: contain;
    display: block;
}

.mobile-nav-overlay > * {
    opacity: 0;
    transition: opacity 300ms ease-in;
}

.menu-open .mobile-nav-overlay > * {
    opacity: 1;
    transition: opacity 300ms ease-in 500ms;
}

.mobile-nav-overlay #menu-close-button {
    opacity: 0;
    transition: opacity 300ms ease-in;
}

.menu-open .mobile-nav-overlay #menu-close-button {
    opacity: 1;
    transition: opacity 300ms ease-in 500ms;
}

.mobile-navigation li {
    margin-bottom: 14px;
}

.mobile-navigation #primary-menu {
    padding: 0;
    font-size: 1rem;
}

#hamburger-button.is-active {
    position: fixed;
    z-index: 99999;
    top: 20px;
    right: 20px;
    animation: showButtonAnimation;
    animation-duration: 1s;
}

#hamburger-button {
    display: none;
}

@media screen and (max-width: 1024px) {
    #hamburger-button {
        display: flex;
        padding-right: 0;
    }
}

.header__top .hamburger {
    margin-top: 6px; /* vertical fix. */
    padding-right: 0;
}

.mobile-site-header {
    display: none;
}

.mobile-site-header img {
    width: 30px;
    height: 30px;
    margin-right: 20px;
    display: block;
}

/* mid header */
@media screen and (max-width: 1400px) and (min-width: 1025px) {
    .site-header__inner {
        justify-content: center;
        padding-top: 60px;
        position: relative;
    }

    .header-navigation {
        max-width: 100%;
        width: revert;
    }

    .site-header__inner .custom-logo-link {
        top: 10px;
        position: absolute;
    }

    .site-header .header-navigation {
        justify-content: flex-end;
        padding-right: 0;
        padding-bottom: 1rem;
        padding-top: 1rem;
    }

    .header-navigation.header-navigation--right {
        padding-left: 0;
        justify-content: flex-start;
        padding-right: 1.2rem;
    }
}

@media screen and (max-width: 1024px) {
    .header-menu-container {
        display: none;
    }

    .site-header .header-navigation {
        padding: 0.5rem 0;
    }

    .site-header__inner {
        padding: 0.5rem 1rem;
    }

    .mobile-site-header {
        display: flex;
    }

    .site-header {

    }

    .custom-logo-link .custom-logo {
        min-width: 140px;
    }
}

/* slider */
.partners-swiper {

}

.swiper-slide, .site-card {
    box-sizing: border-box;
}

.swiper-slide {
    height: revert;
}

.swiper-slide img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    max-width: calc(100% - 2rem);
}

.partner-slide, .site-card {
    background-color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #fff !important;
    text-decoration: none;
}

.site-card {

}

.site-card-tax-icon {
    background-color: #D9D9D9;
    padding: 0.1rem 0.4rem 0.1rem;
    font-size: 0.6rem;
    color: var(--color-main-brown);
    text-transform: uppercase;
    font-weight: 700;
    border-radius: 1px;
    margin-right: 6px;
}

.single-page .site-card-tax-icon {
    font-size: 1rem;
    margin-bottom: 10px;
}

.partner-slide__title, .site-card__title {
    margin: 0;
    text-align: center;
    padding: 1rem;
    font-size: 1.2rem;
    font-weight: 700;
    flex: 1;
    background-color: var(--color-main-green);
}

.partner-slide img, .site-card img {
    display: block;
}

.partners-swiper-wrapper {
    position: relative;
    margin: 0 auto;
    width: 100%;
    padding: 0 1.5rem;
    max-width: 1500px;
}

.partners-swiper {
    max-width: calc(1200px - 3rem);
}

.swiper-button-prev {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M0%2C22L22%2C0l2.1%2C2.1L4.2%2C22l19.9%2C19.9L22%2C44L0%2C22L0%2C22L0%2C22z'%20fill%3D'%23ffffff'%2F%3E%3C%2Fsvg%3E") !important;
}

.swiper-button-next {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M27%2C22L27%2C22L5%2C44l-2.1-2.1L22.8%2C22L2.9%2C2.1L5%2C0L27%2C22L27%2C22z'%20fill%3D'%23ffffff'%2F%3E%3C%2Fsvg%3E") !important;
}

.swiper-button-next::after, .swiper-button-prev::after {
    content: "";
}

/* post nav */
.post-navigation {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #ddd;
    font-size: 16px;
}

.nav-item {
    display: flex;
    flex-direction: column;
}

.nav-label {
    font-size: 14px;
    color: #888; /* Subtle text */
    margin-bottom: 5px;
}

.post-navigation a {
    text-decoration: none;
    color: var(--color-main-green);
    font-weight: bold;
    transition: opacity 0.3s ease;
}

.post-navigation a:hover {
    opacity: 0.7; /* Subtle hover effect */
}

.next {
    text-align: right; /* Aligns next post to the right */
}