/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Generic
	- root
	- layout

# Header
	- site-header
	- drop down
	- menu and sub menu
	- menu (main-navigation ul ...)
	- sub menu (main-navigation ul ul ...)
	- sub sub menu (main-navigation ul ul ul ...)
	- sub menu close btn
	- toggle menu

# Footer
	- site-footer

# Page elements
	
# Base
	- navigation
	- errror 404
	- text
	- links
	- list
	- table

# Media
	- image
	- gallery
	- video

# Text
	- text tags
	- alignment

# Forms
	- Basic settings 
	- Settings for other browsers

# Buttons
	- basic settings 
	- settings for other browsers

# Other
	- other
	- scroll
	- screen reader
	- widget

# Wp
	- wp-smiley 
	- wp-caption
--------------------------------------------------------------
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Generic
	- root
	- layout
--------------------------------------------------------------*/

/* Generic: root */
:root {
	/* header heights */
	--headerL: 60px;
	--headerM: 50px;
	--headerS: 40px;
	/*colors */
	--clrMA: #dff2eb;
	--clrMB: #b9e5e8;
	--clrMC: #7ab2d3;
	--clrMD: #4a628a;
	/*Transparent colors*/
	--clrMAT: rgb(223, 242, 235, 0.5);
	/* font sizes */
	--fszXL: clamp(1.5rem, 5vw, 2.5rem);
    --fszL: clamp(1.3rem, 4vw, 2rem);
    --fszM: clamp(1.1rem, 3.5vw, 1.5rem);
    --fszS: clamp(0.9rem, 2vw, 1rem);
	--fszXS: clamp(0.7rem, 1.5vw, 0.9rem);
}

/* Generic: layout */
*,
*::before,
*::after {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html, body {
	overflow-y: auto;
	overflow-x: hidden;
}

html {
	line-height: 1.5;
	box-sizing: border-box;
	-webkit-text-size-adjust: 100%;
}

body {
	font-size: 1rem;
	color: #404040;
	background: #fff;
	font-family: var(--fontP);
}

main {
	display: block;
	line-height: 1.5;
	min-height: 100vh;
	margin-top: var(--headerL);
}


/*--------------------------------------------------------------
# Header
	- site-header
	- drop down
	- menu and sub menu
	- menu (main-navigation ul ...)
	- sub menu (main-navigation ul ul ...)
	- sub sub menu (main-navigation ul ul ul ...)
	- sub menu close btn
	- toggle menu
--------------------------------------------------------------*/

/* Header: site-header */
header.site-header {
	top: 0;
	width: 100%;
	display: block;
	z-index: 99999;
	position: fixed;
}

.navbar-container {
	gap: 15px;
	width: 100%;
	display: flex;
	position: relative;
	align-items: center;
	height: var(--headerL);
	background-color: #fff;
	flex-direction: row-reverse;
	justify-content: space-between;
}

.custom-logo-link {
	display: inline-block;
}

.custom-logo-link img {
	width: auto;
	object-fit: contain;
	height: calc(var(--headerL) - 5px);
}

nav.main-navigation {
	width: 100%;
	display: flex;
	direction: ltr;
	align-items: center;
	justify-content: space-between;
	
}

.navbar-container.scrolled {
  transition: box-shadow 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.main-navigation .site-branding {
	margin-top: 5px;
}

/* Header: drop down */
.menu-item-has-children > a:after {
	padding: 0 5px;
	font-size: 12px;
	content: "\f107";
	font-weight: 900;
	font-family: "Font Awesome 5 Free";
}

.menu-item-has-children.open > a:after {
	content: "\f106";
}

/* Header: menu and sub menu */
.main-navigation ul {
	gap: 20px;
	margin: auto;
	display: flex;
	list-style: none;
	flex-direction: row;
}

/* Header: menu */ 
.main-navigation ul.menu li {
	display: flex;
	align-items: center;
}

.main-navigation ul li.focus > ul {
	display: flex;	
}

/* Header: sub menu */
.main-navigation ul ul {
	right: 0;
	top: 100%;
	width: 100%;
	z-index: 9999;
	display: none;
	padding: 10px;
	position: absolute;
	background-color: var(--clrMA);
	height: calc(100vh - var(--headerL));
	box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
}

.main-navigation ul ul li {
	position: relative;
}

.main-navigation ul ul li.focus > ul {
	display: flex;
}

/* Header: sub sub menu */
.main-navigation ul ul ul {
	gap: 10px;
	margin: 0;
	padding: 10px;
	position: absolute;
	width: fit-content;
	white-space: nowrap;
	top: calc(100% + 10px);
	flex-direction: column;
}

/* Header: sub menu close btn */
.sub-menu-close-btn {
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border: none;
	display: flex;
	color: brown;
    font-size: 16px;
    cursor: pointer;
	position: absolute;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
	background-color: var(--clrMC);
}

/* Header: toggle menu */
.menu-toggle {
	display: none;
}

.main-navigation.toggled ul.menu {
	left: 0;
	width: 100%;
	padding: 20px;
	display: flex;
	position: fixed;
	align-items: end;
	top: var(--headerL);
	justify-content: end;
	flex-direction: column;
	background-color: var(--clrMB);
}

.main-navigation.toggled ul li.focus > ul {
	display: flex;
	align-items: end;
	box-shadow: none;
	position: relative;
	justify-content: end;
	flex-direction: column;
}

.main-navigation.toggled ul li {
	display: block;
	text-align: end;
}

.main-navigation.toggled ul li a {
	text-align: end;
}

/*--------------------------------------------------------------
# Footer
	- site-footer
--------------------------------------------------------------*/

/* Footer: site-footer  */
.site-footer {
	text-align: center;
	background-color: #fff;
	box-shadow: 0 -5px 5px rgba(0, 0, 0, 0.1);
}

.site-footer .site-branding {
	padding: 1.5em;
}

.site-footer ul.menu {
	gap: 10px;
	display: flex;
	flex-wrap: wrap;
	margin: 1.5em auto;
	align-items: center;
	flex-direction: row;
	justify-content: center;
}

.site-footer > p {
	margin-top: 1.5em;
}

/*--------------------------------------------------------------
# Page elements
--------------------------------------------------------------*/
.page-header,
.entry-header {
	text-align: center;
}

.entry-content {
	text-align: justify;
}

.page-content,
.entry-content,
.entry-summary {
	/* margin: 1.5em 0 0; */
}

.entry-meta {
	gap: 1em;
	margin: 1em;
	display: flex;
	justify-content: center;
}

.entry-footer span {
	display: inline-block;
	margin-inline-end: 1em;
}

.sticky {
	display: block;
}

.bypostauthor {
	display: block;
}

.updated:not(.published) {
	display: none;
}

/*--------------------------------------------------------------
# Base
	- navigation
	- errror 404
	- text
	- links
	- list
	- table
--------------------------------------------------------------*/

/* Base: navigation */
.site-main .comment-navigation,
.site-main .posts-navigation,
.site-main .post-navigation {
	margin: 1rem 0;
}

.comment-navigation .nav-links,
.posts-navigation .nav-links,
.post-navigation .nav-links {
	gap: 5px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;

}

.comment-navigation .nav-previous,
.posts-navigation .nav-previous,
.post-navigation .nav-previous {
	border-radius: 5px;
	padding: 0.3em 0.5em;
	background-color: #fff;
	border: 1px solid green;
}

.comment-navigation .nav-next,
.posts-navigation .nav-next,
.post-navigation .nav-next {
	border-radius: 5px;
	padding: 0.3em 0.5em;
	background-color: #fff;
	border: 1px solid green;
}

.page-links {
	clear: both;
	margin: 0 0 1.5em;
}

/* Base: errror 404 */
.error-404 .page-content {
	padding: 1em;
	border-radius: 12px;
	border: 1px solid var(--clrMA);
}

.error-404 .search-form {
	margin: 1em;
	text-align: center;
	
}

/* Base: text */
h1,
h2,
h3,
h4,
h5,
h6 {
	clear: both;
	font-family: var(--fontH);
}

h1 {
	font-size: 2em;
	margin: 0.67em 0;
}

p {
	margin-bottom: 1.5em;
}

/* Base: links */
a {
	cursor: pointer;
	color: var(--clrMD);
	text-decoration: none;
	background-color: transparent;
	font-family: var(--fontP) !important;
}

a:visited {
	/* color: brown; */
}

a:hover,
a:focus,
a:active {
	outline: 0;
	color: #191970;
}

/* Base: list */
ul {
	list-style: disc;
}

ol {
	list-style: decimal;
}

li {
	list-style-type: none;
}

li > ul,
li > ol {
	margin-bottom: 0;
}

/* Base: table */
table {
	width: 100%;
	margin: 0 0 1.5em;
}

dt {
	font-weight: 700;
}

dd {
	margin: 0 1.5em 1.5em;
}

/*--------------------------------------------------------------
# Media
	- image
	- gallery
	- video
--------------------------------------------------------------*/

/* Media: image */
figure {}

img {
	height: auto;
	max-width: 100%;
	border-style: none;
}

/* Media: gallery */
.gallery {
	display: grid;
	grid-gap: 1.5em;
	margin-bottom: 1.5em;
}

.gallery-item {
	width: 100%;
	text-align: center;
	display: inline-block;
}

.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;
}

/* Media: video */
video {
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
}

/*--------------------------------------------------------------
# Text
	- text tags
	- alignment
--------------------------------------------------------------*/
/* Text: text tags */
hr {
	height: 0;
	border: 0;
	height: 1px;
	overflow: visible;
	margin-bottom: 1.5em;
	box-sizing: content-box;
	background-color: #ccc;
}

details {
	width: 100%;
  	padding: 10px;
	display: block;
  	border-radius: 6px;
  	margin-bottom: 15px;
  	border: 1px solid #ccc;
  	background-color: #f9f9f9;
}

details summary {
	cursor: pointer;
  	font-weight: bold;
  	display: list-item;
}

details[open] {
  background-color: #e8f4ff;
}

pre {
	font-size: 1em;
	overflow: auto;
	padding: 1.6em;
	max-width: 100%;
	line-height: 1.6;
	margin-bottom: 1.6em;
	background-color: #eee;
	font-family: var(--fontP);
}

b,
strong {
	font-weight: bolder;
}

blockquote {
	margin: 0 1.5em;
}

small {
	font-size: 80%;
}

big {
	font-size: 125%;
}

sub,
sup {
	font-size: 75%;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}

sub {
	bottom: -0.25em;
}

sup {
	top: -0.5em;
}

address {
	margin: 0 0 1.5em;
}

abbr[title] {
	border-bottom: none;
	text-decoration: underline;
	text-decoration: underline dotted;
}

abbr,
acronym {
	cursor: help;
	border-bottom: 1px dotted #666;
}

mark,
ins {
	text-decoration: none;
	background: #fff9c0;
}

dfn,
cite,
em,
i {
	font-style: italic;
}

code,
kbd,
tt,
var,
samp {
	font-size: var(--fszXS);
	font-family: Consolas, 'Courier New', monospace !important;
}

/* Text: * alignment */
.alignleft {
	float: left;
	margin-right: 1.5em;
	margin-bottom: 1.5em;
}

.alignright {
	float: right;
	margin-left: 1.5em;
	margin-bottom: 1.5em;
}

.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 1.5em;
}

/*--------------------------------------------------------------
# Forms
	- Basic settings 
	- Settings for other browsers
--------------------------------------------------------------*/
/* Forms: Basic settings */
input,
select,
textarea,
optgroup {
	font-size: 100%;
	line-height: 1.15;
	font-family: inherit;
}

input {
	overflow: visible;
}

select {
	text-transform: none;
	border: 1px solid #ccc;
}

textarea {
	width: 100%;
	overflow: auto;
}

fieldset {
	padding: 0.35em 0.75em 0.625em;
}

legend {
	color: inherit;
	display: table;
	max-width: 100%;
	white-space: normal;
	box-sizing: border-box;
}

progress {
	vertical-align: baseline;
}

textarea,
input[type="url"],
input[type="tel"],
input[type="text"],
input[type="date"],
input[type="week"],
input[type="time"],
input[type="month"],
input[type="email"],
input[type="range"],
input[type="color"],
input[type="search"],
input[type="number"],
input[type="password"],
input[type="datetime"],
input[type="datetime-local"] {
	width: 100%;
	color: #666;
	padding: 0.45em;
	border-radius: 3px;
	border: 1px solid #ccc;
}

textarea:focus,
input[type="url"]:focus,
input[type="tel"]:focus,
input[type="text"]:focus,
input[type="date"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="month"]:focus,
input[type="email"]:focus,
input[type="range"]:focus,
input[type="color"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus {
	color: #111;
}

/* Forms: Settings for other browsers */
[type="radio"],
[type="checkbox"] {}

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
	height: auto;
}

[type="search"] {
	outline-offset: -2px;
	-webkit-appearance: textfield;
}

[type="search"]::-webkit-search-decoration {
	-webkit-appearance: none;
}

/*--------------------------------------------------------------
# Buttons
	- basic settings 
	- settings for other browsers
--------------------------------------------------------------*/

/* Buttons: basic settings */
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
	line-height: 1;
	font-size: 100%;
	overflow: visible;
	border: 1px solid;
	border-radius: 3px;
	padding: 0.5em 1em;
	text-transform: none;
	font-family: inherit;
	background: #e6e6e6;
	color: rgba(0, 0, 0, 0.8);
	border-color: #ccc #ccc #bbb;
}
	
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;
}

/* Buttons: settings for other browsers */
button,
[type="button"],
[type="reset"],
[type="submit"] {
	-webkit-appearance: button;
}

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
	border-style: none;
}

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
	outline: 1px dotted ButtonText;
}

::-webkit-file-upload-button {
	font: inherit;
	-webkit-appearance: button;
}

/*--------------------------------------------------------------
# Other
	- other
	- scroll
	- screen reader
	- widget
--------------------------------------------------------------*/

/* Other: other */
embed,
iframe,
object {
	max-width: 100%;
}

template {
	display: none;
}

[hidden] {
	display: none;
}

/* Other: scroll */
.infinite-scroll .posts-navigation,
.infinite-scroll.neverending .site-footer {
	display: none;
}

.infinity-end.neverending .site-footer {
	display: block;
}

/* Other: screen reader */
.screen-reader-text {
	border: 0;
	width: 1px;
	height: 1px;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	word-wrap: normal !important;
	position: absolute !important;
	clip: rect(1px, 1px, 1px, 1px);
}

.screen-reader-text:focus {
	top: 5px;
	width: auto;
	height: auto;
	display: block;
	clip-path: none;
	z-index: 100000;
	font-weight: 700;
	color: #21759b;
	border-radius: 3px;
	font-size: 0.875rem;
	line-height: normal;
	clip: auto !important;
	text-decoration: none;
	padding: 15px 23px 14px;
	background-color: #f1f1f1;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
}

#primary[tabindex="-1"]:focus {
	outline: 0;
}


/* Other: widget */
 .widget {
	margin: 0 0 1.5em;
}

.widget select {
	max-width: 100%;
}

/*--------------------------------------------------------------
# Wp
	- wp-smiley 
	- wp-caption
--------------------------------------------------------------*/
/* Wp: wp-smiley */
.page-content .wp-smiley,
.entry-content .wp-smiley,
.comment-content .wp-smiley {
	padding: 0;
	border: none;
	margin-top: 0;
	margin-bottom: 0;
}

/* Wp: wp-caption */
.wp-caption {
	max-width: 100%;
	margin-bottom: 1.5em;
}

.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;
}
