/**
 * Hans Friederich — main stylesheet.
 *
 * Values are taken from the live hansfriederich.com (Barrel theme +
 * its CUSTOM block), measured at a 1170px container. Sits on top of
 * Bootstrap 5 (grid/utilities) and WPBakery's own front-end CSS.
 *
 * Contents
 *  1. Fonts & tokens
 *  2. Base / typography
 *  3. Grid tweaks (Bootstrap 5 → 1170px / 30px gutters)
 *  4. Header (logo row, menu bar, slideshow, search)
 *  5. Page title bar
 *  6. Buttons
 *  7. Page-builder elements (promo / header block / post list / social)
 *  8. Home page specifics
 *  9. Blog listing, sidebar & widgets
 * 10. Single post & comments
 * 11. Footer & back-to-top
 * 12. Forms (WPForms)
 * 13. Animations & hover effects
 * 14. Responsive
 */

/* 1. Fonts & tokens ------------------------------------------------------ */

@font-face { font-family: "Karma"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/karma/karma-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Karma"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/karma/karma-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Karma"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/karma/karma-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Karma"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/karma/karma-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Karma"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/karma/karma-latin-700-normal.woff2") format("woff2"); }

:root {
	--hf-green: #5b8c51;
	--hf-green-dark: #404a3d;
	--hf-forest: #3b4436;
	--hf-ink: #2a2f35;
	--hf-text: #727570;
	--hf-muted: #828282;
	--hf-excerpt: #878986;
	--hf-cream: #f7f0ea;
	--hf-sand: #f5f0e9;
	--hf-mint: #f2f8f1;
	--hf-line: #eeeeee;
	--hf-font: "Karma", Georgia, serif;
	--hf-about-bg: none;
	--hf-footer-bg: none;
}

/* 2. Base / typography ---------------------------------------------------- */

html { -webkit-text-size-adjust: 100%; }

body {
	font-family: var(--hf-font);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.7;
	color: var(--hf-text);
	background-color: #ffffff;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--hf-font);
	font-weight: 600;
	line-height: 1.25;
	color: var(--hf-ink);
	margin: 0 0 15px;
}
h1 { font-size: 35px; }
h2 { font-size: 24px; }
h3 { font-size: 21px; }
h4 { font-size: 18px; }
h5 { font-size: 16px; }
h6 { font-size: 14px; }

p { margin: 0 0 10px; }

a {
	color: var(--hf-green);
	font-weight: 600;
	text-decoration: none;
	transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}
a:hover, a:focus { color: var(--hf-green-dark); text-decoration: none; }

strong, b { font-weight: 700; }

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

blockquote {
	border-left: 3px solid var(--hf-green);
	margin: 0 0 20px;
	padding: 5px 0 5px 25px;
	font-size: 18px;
	font-style: italic;
}

hr { border-color: var(--hf-line); opacity: 1; }

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

.skip-link {
	position: absolute; top: -40px; left: 0; z-index: 10000;
	background: var(--hf-ink); color: #fff; padding: 8px 16px;
}
.skip-link:focus { top: 0; color: #fff; }

.clear { clear: both; }

/* WordPress core alignment / captions */
.alignleft { float: left; margin: 5px 25px 15px 0; }
.alignright { float: right; margin: 5px 0 15px 25px; }
.aligncenter { display: block; margin: 5px auto 15px; }
.wp-caption { max-width: 100%; color: #8e8e8e; margin: 0 0 30px; }
.wp-caption img { display: block; }
.wp-caption-text, .wp-caption .wp-caption-text { font-size: 14px; line-height: 1.6; margin: 8px 0 0; }
.gallery-caption { font-size: 14px; }
.sticky, .bypostauthor { }

/* 3. Grid tweaks ---------------------------------------------------------- */

.container, .container-fluid, .row { --bs-gutter-x: 30px; }

/* The original content measure is 1170px (750 / 970 on smaller screens)
   *inside* the 15px side padding, so the max-widths include it. */
@media (min-width: 768px)  { .container { max-width: 780px; } }
@media (min-width: 992px)  { .container { max-width: 1000px; } }
@media (min-width: 1200px) { .container { max-width: 1200px; } }

/* WPBakery spacing as on the original */
.wpb_content_element, .wpb_text_column, .vc_single_image-wrapper + p { margin-bottom: 30px; }
.wpb_text_column :last-child, .wpb_text_column p:last-child { margin-bottom: 0; }
.vc_row.vc_row-flex { box-sizing: border-box; }

/* 4. Header --------------------------------------------------------------- */

.main-header {
	position: relative;
	z-index: 100;
	background-color: #ffffff;
}

.main-header .header-inner {
	display: flex;
	align-items: center;
	min-height: 120px;
}

.main-header .header-left,
.main-header .header-right {
	flex: 0 0 37.5%;
	max-width: 37.5%;
}
.main-header .header-right { text-align: right; }

.main-header .header-center {
	flex: 1 1 auto;
	min-width: 0;
	padding: 30px 0;
	text-align: center;
}

.main-header .logo-link { display: inline-block; line-height: 0; }
.main-header .logo-link img { width: 440px; max-width: 100%; height: auto; }
.main-header .logo-text { font-size: 28px; color: var(--hf-green-dark); line-height: 1.2; }

/* Social icons (header, footer, [barrel_social_icons]) */
.social-icons-wrapper ul { list-style: none; margin: 0; padding: 0; }
.social-icons-wrapper li { display: inline-block; margin: 0; }
.social-icons-wrapper a {
	display: inline-block;
	padding: 0 10px 12px;
	font-size: 18px;
	line-height: 30.6px;
	color: var(--hf-green);
}
.social-icons-wrapper li:first-child a { padding-left: 0; }
.social-icons-wrapper a .fa { line-height: 18px; vertical-align: middle; }
.social-icons-wrapper a:hover { color: var(--hf-green-dark); }
.text-center .social-icons-wrapper li:first-child a,
.footer-sidebar .social-icons-wrapper li:first-child a { padding-left: 0; }

/* Search toggle */
.header-nav { list-style: none; margin: 0; padding: 0; display: inline-block; }
.header-nav li { display: inline-block; margin: 0 0 0 15px; line-height: 28px; }
.search-toggle-btn { color: var(--hf-ink); font-size: 18px; }
.search-toggle-btn:hover { color: var(--hf-green); }

/* Menu bar */
.mainmenu-belowheader {
	position: relative;
	background-color: var(--hf-cream);
}

@media (min-width: 768px) {
	.mainmenu-belowheader::before {
		content: "";
		display: block;
		position: absolute;
		top: -40px;
		left: 0;
		width: 100%;
		height: 41px;
		z-index: 200;
		background: url("../images/paper-cream-up.svg") repeat-x center top;
		pointer-events: none;
	}
}

.mainmenu-belowheader .navbar {
	padding: 0;
	position: relative;
	z-index: 201;
}
.mainmenu-belowheader .navbar > .container { justify-content: center; }
.mainmenu-belowheader .navbar-collapse { justify-content: center; }

.mainmenu-belowheader .nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	list-style: none;
	margin: 0;
	padding: 0;
}

.mainmenu-belowheader .nav > li { position: relative; display: block; }

.mainmenu-belowheader .nav > li > a {
	display: block;
	position: relative;
	padding: 20px;
	font-size: 15px;
	font-weight: 600;
	line-height: 21.43px;
	color: var(--hf-green-dark);
}

.mainmenu-belowheader .nav > li > a:hover,
.mainmenu-belowheader .nav > li > a:focus,
.mainmenu-belowheader .nav > li.current-menu-item > a,
.mainmenu-belowheader .nav > li.current_page_item > a,
.mainmenu-belowheader .nav > li.current-menu-ancestor > a,
.mainmenu-belowheader .nav > li.current-page-ancestor > a {
	color: var(--hf-green);
}

/* Drop-downs (none in use today; styled as the original custom CSS) */
.mainmenu-belowheader .nav .sub-menu {
	list-style: none;
	margin: 0;
	padding: 10px 0;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	background: #c2cbd4;
	box-shadow: 0 5px 15px rgba(0, 0, 0, .1);
	text-align: left;
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: all .2s ease;
	z-index: 300;
}
.mainmenu-belowheader .nav .sub-menu .sub-menu { top: 0; left: 100%; }
.mainmenu-belowheader .nav li:hover > .sub-menu,
.mainmenu-belowheader .nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.mainmenu-belowheader .nav .sub-menu li { position: relative; }
.mainmenu-belowheader .nav .sub-menu a { display: block; padding: 8px 20px; font-size: 14px; color: #28367f; }
.mainmenu-belowheader .nav .sub-menu a:hover,
.mainmenu-belowheader .nav .sub-menu .current-menu-item > a { color: #c0ee25 !important; }

/* Mobile menu toggle */
.hf-menu-toggle {
	display: none;
	border: 0;
	background: transparent;
	color: var(--hf-green-dark);
	font-weight: 600;
	font-size: 15px;
	padding: 18px 10px;
	box-shadow: none !important;
}
.hf-menu-toggle .fa { font-size: 18px; margin-right: 8px; }

/* Sticky menu bar (Theme Settings → Header → Sticky) */
.main-header.is-sticky .mainmenu-belowheader.is-fixed {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1030;
	box-shadow: 0 2px 15px rgba(0, 0, 0, .08);
}
.admin-bar .main-header.is-sticky .mainmenu-belowheader.is-fixed { top: 32px; }
.main-header.is-sticky .mainmenu-belowheader.is-fixed::before { display: none; }

/* Header slideshow (home) */
.header-slideshow-wrap { position: relative; }
.header-slideshow { position: relative; }
.header-slideshow ul { list-style: none; margin: 0; padding: 0; }
.header-slideshow .widget { margin: 0; }
.header-slideshow::after,
.container-bg::after {
	content: "";
	display: block !important;
	position: absolute;
	left: 0;
	bottom: -1px;
	width: 100%;
	height: 53px;
	z-index: 1000;
	background: url("../images/paper-white-up.svg") repeat-x center bottom;
	pointer-events: none;
}
.hf-hero {
	height: 582px;
	background-size: cover;
	background-position: center center;
}

/* Full-screen search */
.search-fullscreen-container {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	background: rgba(247, 240, 234, .97);
	opacity: 0;
	visibility: hidden;
	transition: opacity .25s ease, visibility .25s ease;
}
.search-fullscreen-container.is-open { opacity: 1; visibility: visible; }
.search-fullscreen-container input[type="search"] {
	width: 100%;
	border: 0;
	border-bottom: 2px solid var(--hf-green);
	background: transparent;
	font-family: var(--hf-font);
	font-size: 34px;
	font-weight: 600;
	color: var(--hf-green-dark);
	padding: 10px 0;
	outline: none;
}
.search-fullscreen-container input[type="search"]::placeholder { color: #a7a29a; font-weight: 400; }
.search-close-btn {
	position: absolute;
	top: 30px;
	right: 40px;
	border: 0;
	background: transparent;
	color: var(--hf-green-dark);
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
}
.search-close-btn:hover { color: var(--hf-green); }

/* Preloader */
#hftheme-preloader {
	position: fixed; inset: 0; z-index: 99999;
	display: flex; align-items: center; justify-content: center;
	background: #ffffff;
	transition: opacity .3s ease;
}
body.hftheme-loaded #hftheme-preloader { opacity: 0; pointer-events: none; }
.hf-spinner {
	width: 40px; height: 40px; border-radius: 50%;
	border: 3px solid var(--hf-cream); border-top-color: var(--hf-green);
	animation: hf-spin .8s linear infinite;
}
@keyframes hf-spin { to { transform: rotate(360deg); } }

/* 5. Page title bar -------------------------------------------------------- */

.container-bg {
	position: relative;
	background-color: var(--hf-cream);
	margin: 0 0 30px;
	padding: 0;
}
.container-bg .container { padding-top: 0; padding-bottom: 0; display: flow-root; }
.page-item-title { padding-top: 15px; }
.page-item-title h1 {
	color: var(--hf-green-dark);
	font-size: 30px;
	line-height: 37.5px;
	padding: 20px 0;
	margin: 0 0 55px;
	text-transform: none;
	position: relative;
	z-index: 1001;
}

.page-container,
.post-container { position: relative; }

/* 6. Buttons --------------------------------------------------------------- */

a.btn,
.btn,
.btn:focus,
input[type="submit"],
button[type="submit"],
.wp-block-button a {
	display: inline-block;
	font-family: var(--hf-font);
	font-size: 16px;
	font-weight: 600;
	line-height: 16px;
	padding: 16px 30px;
	border: 0;
	border-radius: 0;
	background: var(--hf-green) !important;
	color: var(--hf-sand);
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	box-shadow: none;
	transition: background-color .3s ease, color .3s ease, transform .3s ease;
}
a.btn:hover,
.btn:hover,
input[type="submit"]:hover,
button[type="submit"]:hover,
.wp-block-button a:hover {
	background: var(--hf-green-dark) !important;
	color: var(--hf-sand);
}

.mgt-button-wrapper { display: inline-block; }
.mgt-button-wrapper.mgt-button-display-newline { display: block; }
.mgt-button-wrapper + .mgt-button-wrapper { margin-left: 10px; }
.mgt-button-wrapper.mgt-button-display-newline + .mgt-button-wrapper { margin-left: 0; }

.mgt-button { margin: 0 0 10px; }
.mgt-button-round-edges-small .mgt-button { border-radius: 5px; }
.mgt-button-round-edges-medium .mgt-button { border-radius: 10px; }
.mgt-button-round-edges-large .mgt-button { border-radius: 30px; }
.mgt-button-size-small { padding: 10px 20px; }
.mgt-button-size-large { padding: 20px 40px; font-size: 18px; }

/* 7. Page-builder elements ---------------------------------------------------- */

/* Promo block */
.mgt-promo-block-container { position: relative; }
.mgt-promo-block-wrapper {
	position: relative;
	border-radius: 10px;
	overflow: hidden;
	transition: transform .3s ease, box-shadow .3s ease;
	backface-visibility: hidden;
}
.mgt-promo-block-wrapper.mgt-promo-block-shadow { box-shadow: 0 0 19px -1px rgba(0, 0, 0, .06); }
.mgt-promo-block-wrapper.mgt-promo-block-shadow.mgt-promo-block-hover:hover { box-shadow: 0 9px 25px 0 rgba(0, 0, 0, .15); }
.mgt-promo-block-wrapper.mgt-promo-block-hover:hover { transform: translate3d(0, -6px, 0); }

.mgt-promo-block {
	display: table;
	width: 100%;
	height: 317px;
	background-color: #f5f5f5;
	background-repeat: no-repeat;
	background-position: 50% 50%;
	border-radius: 10px;
}
.mgt-promo-block.cover-image { background-size: cover; }
.mgt-promo-block-link { display: table; width: 100%; height: 100%; color: inherit; font-weight: inherit; }
.mgt-promo-block-link:hover { color: inherit; }
.mgt-promo-block-content {
	display: table-cell;
	vertical-align: middle;
	position: relative;
	text-align: left;
}
.mgt-promo-block-content.text-center { text-align: center; }
.mgt-promo-block-content-inside { padding: 30px; }
.mgt-promo-block-content-inside > :last-child { margin-bottom: 15px; }
.mgt-promo-block.white-text .mgt-promo-block-content,
.mgt-promo-block.white-text .mgt-promo-block-content h1,
.mgt-promo-block.white-text .mgt-promo-block-content h2,
.mgt-promo-block.white-text .mgt-promo-block-content h3,
.mgt-promo-block.white-text .mgt-promo-block-content h4,
.mgt-promo-block.white-text .mgt-promo-block-content h5,
.mgt-promo-block.white-text .mgt-promo-block-content p { color: #ffffff; }
.mgt-promo-block.black-text .mgt-promo-block-content { color: var(--hf-ink); }
.mgt-promo-block-content h1 { font-size: 35px; line-height: 43.75px; margin: 0 0 15px; }

/* Header block */
.mgt-header-block { margin: 45px 0 30px; }
.mgt-header-block.text-left { text-align: left; }
.mgt-header-block.text-center { text-align: center; }
.mgt-header-block.text-right { text-align: right; }
.mgt-header-block .mgt-header-block-title { margin: 0; }
p.mgt-header-block-subtitle {
	color: var(--hf-green);
	font-size: 25px;
	line-height: 42.5px;
	font-weight: 400;
	margin: 0;
}
h1.mgt-header-block-title { color: var(--hf-green-dark) !important; font-weight: 600; }
.mgt-header-block.text-white .mgt-header-block-title,
.mgt-header-block.text-white .mgt-header-block-subtitle { color: #ffffff; }
.mgt-header-texttransform-uppercase .mgt-header-block-title { text-transform: uppercase; }
.mgt-header-line { width: 50px; height: 2px; background: var(--hf-green); margin: 20px 0 0; }
.mgt-header-block.text-center .mgt-header-line { margin-left: auto; margin-right: auto; }

/* Post list (home carousel / grid) */
.mgt-post-list-wrapper { margin: 0 -15px; }
.mgt-post-list { position: relative; margin: 0 0 30px; }
.mgt-post-item { padding: 0 15px; }
.mgt-post { text-align: center; position: relative; }

.mgt-post-image-link { display: block; }
.mgt-post-list .mgt-post-image {
	position: relative;
	height: 230px;
	margin: 0 0 25px;
	background-color: #d7d7d7;
	background-size: cover;
	background-position: center center;
	border-radius: 10px;
	overflow: hidden;
}
.mgt-post-list .mgt-post-image-wrapper {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	background: rgba(0, 0, 0, 0);
	transition: background-color .3s ease;
}
.mgt-post-list .mgt-post-wrapper-icon {
	width: 50px;
	height: 50px;
	line-height: 50px;
	border-radius: 25px;
	background-color: rgba(0, 0, 0, .6);
	color: #ffffff;
	font-size: 18px;
	text-align: center;
	opacity: 0;
	transform: scale(.7);
	transition: opacity .3s ease, transform .3s ease;
}
.mgt-post-list .mgt-post-image-link:hover .mgt-post-image-wrapper { background: rgba(0, 0, 0, .15); }
.mgt-post-list .mgt-post-image-link:hover .mgt-post-wrapper-icon { opacity: 1; transform: none; }

.mgt-post-list .mgt-post-details .mgt-post-date {
	font-size: 14px;
	line-height: 23.8px;
	color: var(--hf-green);
	margin: 0 0 5px;
	text-align: center;
}
.mgt-post-list .mgt-post-details .mgt-post-title a { color: var(--hf-green-dark); text-align: center; }
.mgt-post-list .mgt-post-details .mgt-post-title h5 {
	font-size: 21px;
	line-height: 26.25px;
	font-weight: 600;
	margin: 0;
	transition: color .2s ease;
}
.mgt-post-list .mgt-post-details .mgt-post-title a:hover h5 { color: var(--hf-green); }
.mgt-post-list .mgt-post-details .mgt-post-text { color: var(--hf-excerpt); margin-top: 16px; text-align: center; }
.mgt-post-list .mgt-post-categories {
	display: inline-block;
	font-size: 12px;
	line-height: 20px;
	padding: 2px 12px;
	margin: 0 0 10px;
	border-radius: 5px;
	background: var(--hf-green);
	color: #fff;
}
.mgt-post-list .mgt-post .mgt-button.mgt-style-borderedgrey {
	color: #ffffff;
	padding: 9px 17px;
	margin: 20px 0 10px;
	border-radius: 10px;
}

.mgt-post-list-grid { display: flex; flex-wrap: wrap; }
.mgt-post-list-grid .mgt-post-item { flex: 0 0 33.3333%; max-width: 33.3333%; margin-bottom: 40px; }
.mgt-post-list-grid.mgt-post-list-size-large .mgt-post-item { flex-basis: 50%; max-width: 50%; }
.mgt-post-list-grid.mgt-post-list-size-large .mgt-post-image { height: 330px; }

/* Carousel */
.hf-carousel .hf-carousel-viewport { overflow: hidden; }
.hf-carousel .hf-carousel-track {
	display: flex;
	align-items: flex-start;
	transition: transform .8s ease;
	will-change: transform;
}
.hf-carousel .mgt-post-item { flex: 0 0 33.3333%; max-width: 33.3333%; }
.hf-carousel.mgt-post-list-size-large .mgt-post-item { flex-basis: 50%; max-width: 50%; }

.hf-carousel-dots { text-align: center; margin: 35px 0 40px; line-height: 0; }
.hf-carousel-dots button {
	display: inline-block;
	padding: 5px 7px;
	border: 0;
	background: transparent;
	cursor: pointer;
	line-height: 0;
}
.hf-carousel-dots button span {
	display: block;
	width: 12px;
	height: 12px;
	border-radius: 20px;
	background-color: var(--hf-green);
	box-sizing: border-box;
	transition: background-color .2s ease;
}
.hf-carousel-dots button.active span { background-color: #ffffff; border: 2.4px solid var(--hf-green); }
.hf-carousel-dots:empty { display: none; }

/* 8. Home page specifics (from the original CUSTOM block) ---------------------- */

#about {
	background: #f5f0e9 var(--hf-about-bg) no-repeat;
	background-size: cover;
	margin-top: 200px;
	overflow: unset !important;
}
.home-sections .mgt-promo-block .mgt-promo-block-content.va-middle { vertical-align: bottom !important; }
.home-sections .mgt-promo-block-wrapper { border-radius: 10px; margin-top: -150px; }
.home-sections .vc_column-inner { margin: 0; }
.home-sections .mgt-promo-block .mgt-promo-block-content .mgt-promo-block-content-inside {
	background: linear-gradient(to bottom, rgba(60, 70, 57, 0) 0%, rgba(60, 70, 57, 1) 81%);
	padding: 40px 25px 10px 25px;
}
.home-sections .mgt-promo-block .mgt-promo-block-content .mgt-promo-block-content-inside h1 { font-weight: 600; }

/* 9. Blog listing, sidebar & widgets ----------------------------------------- */

.blog-post {
	padding: 0 0 30px;
	margin: 0 0 30px;
	border-bottom: 1px solid var(--hf-line);
}
.blog-post .blog-post-thumb {
	position: relative;
	margin: 0 0 30px;
	text-align: center;
}
.blog-post .blog-post-thumb img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 10px;
}
.blog-post .post-categories {
	position: absolute;
	top: 15px;
	left: 15px;
	z-index: 2;
	padding: 5px 20px;
	border-radius: 5px;
	background-color: var(--hf-green);
	color: #ffffff;
	font-size: 12px;
	line-height: 20.4px;
	text-align: left;
}
.blog-post .post-categories a { color: #ffffff; }
.blog-post .post-categories a:hover { color: var(--hf-sand); }

.post-info {
	color: var(--hf-muted);
	margin: 0 0 10px;
}
.post-info > span { margin: 0 10px 0 0; }
.post-info a { color: inherit; }
.post-info a:hover { color: var(--hf-green); }

.blog-post .post-header-title { font-size: 24px; line-height: 30px; margin: 0 0 15px; }
.blog-post .post-header-title a { color: var(--hf-ink); }
.blog-post .post-header-title a:hover { color: var(--hf-green); }

.archive-description { margin: 0 0 30px; }

.navigation-paging {
	margin: 0 0 50px;
	border-top: 1px solid var(--hf-line);
	border-bottom: 1px solid var(--hf-line);
	overflow: hidden;
}
.navigation-paging .col-md-12 { display: flex; }
.navigation-paging .nav-previous,
.navigation-paging .nav-next { flex: 0 0 50%; }
.navigation-paging .nav-next { margin-left: auto; }
.navigation-paging a {
	display: block;
	line-height: 50px;
	text-align: center;
	color: var(--hf-ink);
}
.navigation-paging a:hover { color: var(--hf-green); }

/* Sidebar */
.sidebar ul,
#main-sidebar,
#footer-sidebar { list-style: none; margin: 0; padding: 0; }
.main-sidebar .widget { margin: 0 0 40px; }
.sidebar .widgettitle,
.sidebar .widget-title {
	font-size: 18px;
	line-height: 22.5px;
	color: var(--hf-ink);
	margin: 0 0 20px;
}
.main-sidebar .widget ul li { padding: 6px 0; border-bottom: 1px solid var(--hf-line); }
.main-sidebar .widget ul li a { color: var(--hf-ink); }
.main-sidebar .widget ul li a:hover { color: var(--hf-green); }
.main-sidebar .widget ul ul { padding-left: 15px; }

.searchform .field,
.main-sidebar select,
.main-sidebar input[type="text"],
.main-sidebar input[type="search"] {
	display: inline-block;
	width: 100%;
	padding: 14px;
	margin: 0 0 10px;
	font-family: var(--hf-font);
	font-size: 14px;
	line-height: 23.8px;
	color: var(--hf-ink);
	background-color: #ffffff;
	border: 1px solid var(--hf-line);
	border-radius: 0;
	outline: none;
}
.searchform .field:focus,
.main-sidebar select:focus { border-color: var(--hf-green); }
.searchform .submit { width: 100%; color: #ffffff; }
.page-404 .searchform { max-width: 420px; margin: 0 auto 20px; }

/* Recent posts with images */
.sidebar .widget_barrel_recent_entries ul li {
	padding: 0 0 15px;
	margin: 0 0 20px;
	border-bottom: 1px solid var(--hf-line);
}
.sidebar .widget_barrel_recent_entries li:last-child { margin-bottom: 0; }
.widget_barrel_recent_entries .widget-post-thumb-wrapper { margin: 0 0 10px; }
.widget_barrel_recent_entries .widget-post-thumb-wrapper img { display: block; width: 100%; height: auto; }
.widget_barrel_recent_entries .post-title { line-height: 18px; }
.widget_barrel_recent_entries .post-title a { color: var(--hf-ink); }
.widget_barrel_recent_entries .post-title a:hover { color: var(--hf-green); }
.widget_barrel_recent_entries .post-date {
	color: var(--hf-muted);
	font-size: 12px;
	line-height: 20.4px;
	margin: 5px 0 0;
}

/* Calendar */
.widget_calendar table { width: 100%; border-collapse: collapse; }
.widget_calendar caption { caption-side: top; color: var(--hf-ink); font-weight: 600; padding: 0 0 10px; }
.widget_calendar th,
.widget_calendar td {
	text-align: center;
	padding: 5px;
	border: 1px solid var(--hf-line);
	background: #ffffff;
}
.sidebar .widget_calendar th,
.sidebar .widget_calendar tfoot td { background-color: var(--hf-green); color: #ffffff; border-color: var(--hf-green); }
.sidebar .widget_calendar tbody td a { color: var(--hf-green); }
.widget_calendar .wp-calendar-nav { display: flex; justify-content: space-between; padding: 8px 0 0; }

/* Tag cloud */
.widget_tag_cloud a {
	display: inline-block;
	font-size: 12px !important;
	line-height: 20.4px;
	padding: 3px 12px;
	margin: 0 5px 5px 0;
	background: var(--hf-ink);
	color: #ffffff;
}
.widget_tag_cloud a:hover { background: var(--hf-green); color: #ffffff; }

/* 10. Single post & comments --------------------------------------------------- */

.blog-post-single { margin: 0 0 20px; padding: 0; border: 0; }
.blog-post-single .post-content-wrapper {
	padding: 0 0 20px;
	margin: 0 0 20px;
	border-bottom: 1px solid var(--hf-line);
}
.blog-post-single .entry-content::after { content: ""; display: table; clear: both; }

.blog-post .tags,
.blog-post-single .tags { display: block; margin: 0 0 20px; }
.blog-post .tags a {
	display: inline-block;
	font-size: 12px;
	line-height: 20.4px;
	padding: 3px 12px;
	margin: 2px 5px 2px 0;
	background-color: var(--hf-ink);
	color: #ffffff;
}
.blog-post .tags a:first-child { margin-left: 10px; }
.blog-post .tags a:hover { background-color: var(--hf-green); color: #ffffff; }

.post-meta-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}
.blog-post-single .post-info { line-height: 16px; margin: 0 0 15px; }

.post-social-wrapper { margin: -7px 0 15px; }
.post-social { display: inline-block; font-size: 14px; line-height: 23.8px; }
.post-social a {
	display: inline-block;
	margin-left: 5px;
	padding: 3px 12px;
	border-radius: 3px;
	color: #ffffff;
	font-weight: 600;
}
.post-social a .fa { margin-right: 6px; }
.post-social a:hover { color: #ffffff; opacity: .85; }
.post-social .facebook-share { background-color: #3b5998; }
.post-social .twitter-share { background-color: #00aced; }
.post-social .linkedin-share { background-color: #007bb6; }

.post-navigation { margin: 10px 0 40px; }
.post-navigation .nav-links { display: flex; justify-content: space-between; gap: 30px; }
.post-navigation .nav-previous,
.post-navigation .nav-next { flex: 1 1 50%; }
.post-navigation .nav-next { text-align: right; }
.post-navigation a { display: block; color: var(--hf-ink); }
.post-navigation .nav-label { display: block; font-size: 13px; color: var(--hf-muted); font-weight: 400; text-transform: uppercase; letter-spacing: 1px; }
.post-navigation .nav-title { display: block; font-size: 18px; line-height: 1.3; }
.post-navigation a:hover .nav-title { color: var(--hf-green); }

/* Comments */
.comments-area { margin: 30px 0 50px; }
.comments-area .comments-title,
.comment-reply-title { font-size: 24px; margin: 0 0 25px; }
.comment-list { list-style: none; padding: 0; margin: 0 0 30px; }
.comment-list .children { list-style: none; padding-left: 40px; }
.comment-body { padding: 20px 0; border-bottom: 1px solid var(--hf-line); }
.comment-meta .avatar { float: left; margin: 0 15px 0 0; border-radius: 50%; }
.comment-metadata, .comment-metadata a { font-size: 13px; color: var(--hf-muted); font-weight: 400; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 12px 15px;
	border: 1px solid #dddddd;
	border-radius: 6px;
	font-family: var(--hf-font);
	color: var(--hf-ink);
}

/* 11. Footer & back-to-top ------------------------------------------------------ */

.footer-wrapper {
	position: relative;
	margin-top: 50px;
	padding: 0;
	background: #3b4436 var(--hf-footer-bg) no-repeat;
	background-size: cover;
	--bs-gutter-x: 0;
}
.footer-wrapper::before {
	content: "";
	display: block !important;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 55px;
	z-index: 200;
	background: url("../images/paper-white-down.svg") repeat-x center top;
	pointer-events: none;
}

.footer-sidebar {
	padding: 110px 15px 10px;
	color: var(--hf-mint);
}
.footer-sidebar .widget { text-align: center; margin: 0; }
.footer-sidebar .widget p { margin: 0 0 10px; }
.footer-sidebar .widget img { margin: 5px 0; }
.footer-sidebar .widgettitle { color: #ffffff; }
.footer-sidebar a { color: var(--hf-mint); }
.footer-sidebar .widget_barrel_social_icons .social-icons-wrapper a { color: var(--hf-mint); }
.footer-sidebar .widget_barrel_social_icons .social-icons-wrapper a:hover { color: var(--hf-green) !important; }

.site-footer {
	color: var(--hf-sand);
	font-size: 14px;
	line-height: 23.8px;
	padding: 25px 0;
	text-align: center;
}
.site-footer a { color: var(--hf-sand); }
.site-footer a:hover { color: var(--hf-green); }

.footer-menu { max-width: 796px; margin: 0 auto 25px; }
.footer-menu ul { list-style: none; margin: 0; padding: 0; }
.footer-menu li {
	display: inline-block;
	line-height: 21px;
	padding: 0 20px;
	margin: 3px 0 !important;
	border-right: 1px solid var(--hf-sand);
}
.footer-menu li:last-child { border: none; }
.footer-menu a { font-weight: 500; font-size: 16px; }
.footer-copyright p { margin: 0 0 10px; }

.scroll-to-top {
	position: fixed;
	right: 40px;
	bottom: 40px;
	z-index: 1050;
	width: 50px;
	height: 50px;
	line-height: 50px;
	text-align: center;
	background-color: var(--hf-green);
	color: #ffffff;
	font-size: 26px;
	opacity: 0;
	visibility: hidden;
	transition: opacity .3s ease, visibility .3s ease, background-color .3s ease;
}
.scroll-to-top .fa { line-height: 48px; }
.scroll-to-top.is-visible { opacity: 1; visibility: visible; }
.scroll-to-top:hover, .scroll-to-top:focus { background-color: var(--hf-green-dark); color: #ffffff; }

/* 12. Forms (WPForms — from the original custom CSS) ------------------------- */

.wpforms-confirmation-container-full,
div[submit-success] > .wpforms-confirmation-container-full:not(.wpforms-redirection-message) {
	font-size: 20px;
	padding: 50px 0 !important;
	text-align: center;
	background: unset !important;
	border: 0 !important;
}
div.wpforms-container-full .wpforms-form input[type=submit],
div.wpforms-container-full .wpforms-form button[type=submit],
div.wpforms-container-full .wpforms-form .wpforms-page-button {
	background-color: var(--hf-green) !important;
	border: 0 solid var(--hf-green) !important;
	color: #ffffff !important;
	padding: 8px 20px !important;
	font-weight: 600;
	border-radius: 10px;
}
div.wpforms-container-full .wpforms-form input[type=date],
div.wpforms-container-full .wpforms-form input[type=datetime],
div.wpforms-container-full .wpforms-form input[type=datetime-local],
div.wpforms-container-full .wpforms-form input[type=email],
div.wpforms-container-full .wpforms-form input[type=month],
div.wpforms-container-full .wpforms-form input[type=number],
div.wpforms-container-full .wpforms-form input[type=password],
div.wpforms-container-full .wpforms-form input[type=range],
div.wpforms-container-full .wpforms-form input[type=search],
div.wpforms-container-full .wpforms-form input[type=tel],
div.wpforms-container-full .wpforms-form input[type=text],
div.wpforms-container-full .wpforms-form input[type=time],
div.wpforms-container-full .wpforms-form input[type=url],
div.wpforms-container-full .wpforms-form input[type=week],
div.wpforms-container-full .wpforms-form select,
div.wpforms-container-full .wpforms-form textarea {
	background-color: #ffffff !important;
	color: #2a2f35 !important;
	border: 1px solid #dddddd !important;
	font-size: 15px !important;
	padding: 22px 15px;
	border-radius: 6px !important;
}
div.wpforms-container-full .wpforms-form input[type=submit]:hover,
div.wpforms-container-full .wpforms-form input[type=submit]:active,
div.wpforms-container-full .wpforms-form button[type=submit]:hover,
div.wpforms-container-full .wpforms-form button[type=submit]:active,
div.wpforms-container-full .wpforms-form .wpforms-page-button:hover,
div.wpforms-container-full .wpforms-form .wpforms-page-button:active {
	background: var(--hf-green-dark) !important;
	color: #ffffff !important;
}
div.wpforms-container-full .wpforms-form .wpforms-field input.wpforms-error,
div.wpforms-container-full .wpforms-form .wpforms-field textarea.wpforms-error,
div.wpforms-container-full .wpforms-form .wpforms-field select.wpforms-error { border-bottom: 2px solid #cc0000 !important; }
div.wpforms-container-full { text-align: center; }
::placeholder { color: #999999; }

/* 13. Animations & hover effects ---------------------------------------------- */

.hf-animate { opacity: 0; transition: opacity 1s ease, transform 1s ease; }
.hf-animate.hf-fadeInDown { transform: translateY(-20px); }
.hf-animate.hf-fadeInUp { transform: translateY(20px); }
.hf-animate.hf-fadeInLeft { transform: translateX(-20px); }
.hf-animate.hf-fadeInRight { transform: translateX(20px); }
.hf-animate.hf-in { opacity: 1; transform: none; }
.no-js .hf-animate,
.vc_editor .hf-animate { opacity: 1; transform: none; }

/* hover.css "bob" (used on the blog-carousel buttons) */
@keyframes hvr-bob {
	0% { transform: translateY(-8px); }
	50% { transform: translateY(-4px); }
	100% { transform: translateY(-8px); }
}
@keyframes hvr-bob-float { 100% { transform: translateY(-8px); } }
.hvr-bob { display: inline-block; vertical-align: middle; transform: translateZ(0); }
.hvr-bob:hover, .hvr-bob:focus, .hvr-bob:active {
	animation-name: hvr-bob-float, hvr-bob;
	animation-duration: .3s, 1.5s;
	animation-delay: 0s, .3s;
	animation-timing-function: ease-out, ease-in-out;
	animation-iteration-count: 1, infinite;
	animation-fill-mode: forwards;
	animation-direction: normal, alternate;
}

@media (prefers-reduced-motion: reduce) {
	.hf-animate { opacity: 1; transform: none; transition: none; }
	.hf-carousel .hf-carousel-track { transition: none; }
	.hvr-bob:hover { animation: none; }
	.mgt-promo-block-wrapper.mgt-promo-block-hover:hover { transform: none; }
}

/* 14. Responsive --------------------------------------------------------------- */

@media (max-width: 1199.98px) {
	.mainmenu-belowheader .nav > li > a { padding: 20px 12px; }
}

@media (max-width: 991.98px) {
	.hf-menu-toggle { display: inline-flex; align-items: center; }
	.mainmenu-belowheader .navbar > .container { flex-direction: column; }
	.mainmenu-belowheader .navbar-collapse { width: 100%; }
	.mainmenu-belowheader .nav { flex-direction: column; padding: 0 0 15px; text-align: center; }
	.mainmenu-belowheader .nav > li > a { padding: 10px 15px; }
	.mainmenu-belowheader .nav .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		background: transparent;
		text-align: center;
		padding: 0;
	}
	.mainmenu-belowheader .nav .sub-menu a { color: var(--hf-green-dark); }

	.hf-carousel .mgt-post-item,
	.mgt-post-list-grid .mgt-post-item { flex-basis: 50%; max-width: 50%; }

	.hf-hero { height: 420px; }
}

@media (max-width: 767.98px) {
	.main-header .header-inner { flex-wrap: wrap; min-height: 0; }
	.main-header .header-left { display: none; }
	.main-header .header-right { display: none; }
	.main-header .header-center { flex: 0 0 100%; max-width: 100%; padding: 20px 0; }
	.main-header .logo-link img { width: 293px; }

	.page-item-title h1 { font-size: 26px; line-height: 1.3; margin-bottom: 45px; }

	#about { margin-top: 50px; }
	.home-sections .mgt-promo-block-wrapper { margin-top: 20px; }

	.hf-carousel .mgt-post-item,
	.mgt-post-list-grid .mgt-post-item,
	.mgt-post-list-grid.mgt-post-list-size-large .mgt-post-item { flex-basis: 100%; max-width: 100%; }

	.main-sidebar { margin-top: 30px; }

	.hf-hero { height: 260px; }
	.header-slideshow::after,
	.container-bg::after { height: 30px; background-size: auto 30px; }
	.footer-wrapper::before { height: 35px; background-size: auto 35px; }
	.footer-sidebar { padding-top: 80px; }

	.footer-menu li { padding: 0 12px; }
	.scroll-to-top { right: 20px; bottom: 20px; width: 44px; height: 44px; line-height: 44px; }
	.scroll-to-top .fa { line-height: 42px; }

	.search-fullscreen-container input[type="search"] { font-size: 22px; }
	.post-navigation .nav-links { flex-direction: column; gap: 15px; }
	.post-navigation .nav-next { text-align: left; }
}
