/*
Theme Name: My Helth Blog Theme
Theme URI: https://example.com/my-helth-blog-theme/
Author: Custom Build
Description: Standalone lightweight WordPress theme for a health blog with custom home, blog, article, author, product-card and 404 layouts. No parent theme required.
Version: 2.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: my-helth-blog-theme
Tags: blog, custom-logo, custom-menu, featured-images, custom-colors, one-column, responsive-layout
*/

:root {
	--hk-navy: #0c2b5d;
	--hk-navy-deep: #08214a;
	--hk-green: #0a9a67;
	--hk-text: #172238;
	--hk-muted: #657084;
	--hk-line: #e1e7ee;
	--hk-soft: #f3f6f8;
	--hk-white: #ffffff;
	--hk-radius: 18px;
	--hk-shadow: 0 16px 40px rgba(15, 35, 70, 0.08);
	--mhb-header-bg: #ffffff;
	--mhb-header-text: #0c2b5d;
	--mhb-header-accent: #f59e3d;
	--mhb-footer-bg: #08214a;
	--mhb-footer-text: #ffffff;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: #fff;
	color: var(--hk-text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: #075fa7;
	text-underline-offset: 2px;
}

a:hover,
a:focus-visible {
	color: var(--hk-green);
}

button,
input,
textarea,
select {
	font: inherit;
}

button,
summary,
a {
	-webkit-tap-highlight-color: transparent;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus,
.mhb-skip-link:focus {
	clip: auto !important;
	clip-path: none;
	width: auto;
	height: auto;
	margin: 0;
	padding: 10px 14px;
	background: #fff;
	color: #111;
	z-index: 100000;
}

.mhb-skip-link {
	position: absolute;
	left: 10px;
	top: 10px;
	transform: translateY(-200%);
}

.mhb-skip-link:focus {
	transform: none;
}

.hk-page,
.hk-page * {
	box-sizing: border-box;
}

.hk-page {
	width: 100%;
	color: var(--hk-text);
}

.hk-shell {
	width: min(1180px, calc(100% - 40px));
	margin-inline: auto;
}

.hk-eyebrow,
.hk-kicker,
.hk-card-category,
.hk-category-pill {
	font-weight: 700;
	letter-spacing: .02em;
}

.hk-eyebrow,
.hk-kicker {
	color: var(--hk-green);
	text-transform: uppercase;
	font-size: 13px;
}

.hk-section-heading {
	text-align: center;
	margin-bottom: 34px;
}

.hk-section-heading h2 {
	margin: 8px 0 0;
	font-size: clamp(30px, 4vw, 42px);
	line-height: 1.1;
	color: var(--hk-navy-deep);
}

.hk-read-more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 700;
	text-decoration: none;
	color: #075fa7;
}

.hk-read-more:hover,
.hk-read-more:focus {
	color: var(--hk-green);
}

.hk-pagination {
	margin-top: 36px;
}

.hk-pagination .nav-links {
	display: flex;
	gap: 8px;
	justify-content: center;
	flex-wrap: wrap;
}

.hk-pagination .page-numbers {
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border: 1px solid var(--hk-line);
	border-radius: 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	background: #fff;
}

.hk-pagination .current {
	background: var(--hk-navy);
	border-color: var(--hk-navy);
	color: #fff;
}

/* Own theme header */
.mhb-site-header {
	position: relative;
	z-index: 30;
	background: var(--mhb-header-bg);
	border-top: 3px solid var(--hk-text);
	box-shadow: 0 1px 0 rgba(15, 35, 70, .08);
}

.mhb-site-header::after {
	content: "";
	display: block;
	height: 4px;
	background: var(--mhb-header-accent);
}

.mhb-header-inner {
	min-height: 84px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 26px;
}

.mhb-branding {
	display: flex;
	align-items: center;
	min-width: 0;
}

.mhb-branding .custom-logo-link {
	display: inline-flex;
	align-items: center;
}

.mhb-branding .custom-logo {
	display: block;
	width: auto;
	max-width: 220px;
	max-height: 60px;
}

.mhb-site-title {
	margin: 0;
	font-size: 28px;
	font-weight: 800;
	line-height: 1.1;
}

.mhb-site-title a {
	color: var(--mhb-header-text);
	text-decoration: none;
}

.mhb-desktop-nav ul,
.mhb-mobile-nav ul,
.mhb-footer-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.mhb-desktop-nav > div > ul,
.mhb-desktop-nav > ul {
	display: flex;
	align-items: center;
	gap: 26px;
}

.mhb-desktop-nav a {
	color: var(--mhb-header-text);
	font-weight: 700;
	text-decoration: none;
}

.mhb-desktop-nav .menu-item-has-children {
	position: relative;
}

.mhb-desktop-nav .sub-menu {
	position: absolute;
	top: calc(100% + 12px);
	left: -16px;
	min-width: 220px;
	padding: 10px;
	background: #fff;
	border: 1px solid var(--hk-line);
	border-radius: 12px;
	box-shadow: var(--hk-shadow);
	display: none;
}

.mhb-desktop-nav .menu-item-has-children:hover > .sub-menu,
.mhb-desktop-nav .menu-item-has-children:focus-within > .sub-menu {
	display: grid;
	gap: 4px;
}

.mhb-desktop-nav .sub-menu a {
	display: block;
	padding: 8px 10px;
}

.mhb-mobile-menu {
	display: none;
	position: relative;
}

.mhb-mobile-menu summary {
	list-style: none;
	width: 44px;
	height: 44px;
	border-radius: 4px;
	background: var(--mhb-header-text);
	color: #fff;
	display: grid;
	place-items: center;
	cursor: pointer;
}

.mhb-mobile-menu summary::-webkit-details-marker {
	display: none;
}

.mhb-menu-icon,
.mhb-menu-icon::before,
.mhb-menu-icon::after {
	display: block;
	width: 18px;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
}

.mhb-menu-icon {
	position: relative;
}

.mhb-menu-icon::before,
.mhb-menu-icon::after {
	content: "";
	position: absolute;
	left: 0;
}

.mhb-menu-icon::before { top: -6px; }
.mhb-menu-icon::after { top: 6px; }

.mhb-mobile-nav {
	position: absolute;
	right: 0;
	top: calc(100% + 10px);
	width: min(320px, calc(100vw - 28px));
	padding: 14px;
	background: #fff;
	border: 1px solid var(--hk-line);
	border-radius: 12px;
	box-shadow: var(--hk-shadow);
}

.mhb-mobile-nav a {
	display: block;
	padding: 10px 8px;
	color: var(--mhb-header-text);
	font-weight: 700;
	text-decoration: none;
}

.mhb-mobile-nav .sub-menu {
	padding-left: 14px;
}

/* Own theme footer */
.mhb-site-footer {
	background: var(--mhb-footer-bg);
	color: #fff;
}

/* Old footer main section hidden */
.mhb-footer-main {
	display: none;
}

/* Copyright footer */
.mhb-footer-bottom {
	width: 100%;
	padding: 18px 15px;
	background: var(--mhb-footer-bg);
	color: #fff;
	font-size: 14px;
	text-align: center;
	border-top: 0;
}

.mhb-footer-bottom .hk-shell {
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
	padding: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	text-align: center;
}

.mhb-footer-bottom p {
	width: 100%;
	margin: 0;
	color: #fff;
	text-align: center;
	line-height: 1.6;
}

.mhb-footer-bottom a {
	color: #fff;
	text-decoration: none;
	font-weight: 500;
}

.mhb-footer-bottom a:hover,
.mhb-footer-bottom a:focus {
	color: #fff;
	text-decoration: underline;
}

/* Tablet */
@media (max-width: 1024px) {
	.mhb-footer-bottom {
		padding: 17px 15px;
	}

	.mhb-footer-bottom p {
		text-align: center;
	}
}

/* Mobile */
@media (max-width: 767px) {
	.mhb-footer-bottom {
		padding: 15px 12px;
		font-size: 13px;
	}

	.mhb-footer-bottom .hk-shell {
		justify-content: center;
		text-align: center;
	}

	.mhb-footer-bottom p {
		text-align: center;
		line-height: 1.7;
	}
}

/* Generic forms */
.mhb-search-form {
	display: flex;
	gap: 10px;
	max-width: 600px;
}

.mhb-search-form label {
	flex: 1;
}

.mhb-search-form input[type="search"] {
	width: 100%;
	min-height: 46px;
	padding: 0 14px;
	border: 1px solid var(--hk-line);
	border-radius: 10px;
}

.mhb-button,
.mhb-search-form input[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0 20px;
	border: 0;
	border-radius: 999px;
	background: var(--hk-green);
	color: #fff;
	font-weight: 800;
	text-decoration: none;
	cursor: pointer;
}

.mhb-button:hover,
.mhb-button:focus-visible,
.mhb-search-form input[type="submit"]:hover,
.mhb-search-form input[type="submit"]:focus-visible {
	background: var(--hk-navy);
	color: #fff;
}

@media (max-width: 860px) {
	.mhb-desktop-nav {
		display: none;
	}
	.mhb-mobile-menu {
		display: block;
	}
	.mhb-footer-main {
		grid-template-columns: 1fr;
	}
	.mhb-footer-nav ul {
		justify-content: flex-start;
	}
}

@media (max-width: 640px) {
	.hk-shell {
		width: min(100% - 28px, 1180px);
	}
	.mhb-header-inner {
		min-height: 76px;
	}
	.mhb-branding .custom-logo {
		max-width: 190px;
		max-height: 52px;
	}
}
