/* =========================================================================
   Health Tips Express — Custom Theme Stylesheet
   Mobile-first. Breakpoints: 375 / 480 / 768 / 1024 / 1200 / 1440
   ========================================================================= */

/* ---------- 1. Design tokens ---------- */
:root{
	/* Brand colors (overridable from Customizer → Brand Colors) */
	--hte-primary: #0f5d4f;
	--hte-primary-dark: #0a4238;
	--hte-secondary: #7fb885;
	--hte-accent: #d98e2b;
	--hte-bg: #fbfaf6;
	--hte-surface: #ffffff;
	--hte-text: #22282b;
	--hte-text-muted: #5b6663;
	--hte-border: #e6e2d8;
	--hte-focus: #1b7d67;

	/* Type */
	--hte-font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--hte-font-display: "Fraunces", Georgia, "Times New Roman", serif;

	/* 8px spacing system */
	--sp-1: 8px;
	--sp-2: 16px;
	--sp-3: 24px;
	--sp-4: 32px;
	--sp-5: 40px;
	--sp-6: 48px;
	--sp-7: 64px;
	--sp-8: 80px;

	/* Radius + shadow */
	--radius-sm: 8px;
	--radius-md: 14px;
	--radius-lg: 22px;
	--shadow-sm: 0 1px 2px rgba(15, 30, 25, 0.06), 0 1px 1px rgba(15, 30, 25, 0.04);
	--shadow-md: 0 10px 30px rgba(15, 30, 25, 0.08);

	--container-max: 1280px;
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after{ box-sizing: border-box; }
html{ -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body{
	margin: 0;
	font-family: var(--hte-font-body);
	color: var(--hte-text);
	background: var(--hte-bg);
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}
img{ max-width: 100%; height: auto; display: block; }
ul, ol{ margin: 0; padding: 0; list-style: none; }
a{ color: inherit; text-decoration: none; }
button{ font-family: inherit; cursor: pointer; }
input, textarea, select, button{ font: inherit; color: inherit; }
h1, h2, h3, h4, h5, h6{ font-family: var(--hte-font-display); margin: 0 0 var(--sp-2); line-height: 1.2; font-weight: 600; }
p{ margin: 0 0 var(--sp-2); }

@media (prefers-reduced-motion: reduce){
	html{ scroll-behavior: auto; }
	*, *::before, *::after{ animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------- 3. Accessibility helpers ---------- */
.screen-reader-text{
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px,1px,1px,1px);
	white-space: nowrap;
	border: 0; padding: 0; margin: -1px;
}
.hte-skip-link{
	position: absolute;
	left: -999px;
	top: 0;
	background: var(--hte-primary);
	color: #fff;
	padding: var(--sp-2) var(--sp-3);
	z-index: 200;
	border-radius: 0 0 var(--radius-sm) 0;
}
.hte-skip-link:focus{ left: 0; }

:focus-visible{
	outline: 3px solid var(--hte-focus);
	outline-offset: 2px;
}

/* ---------- 4. Layout ---------- */
.hte-container{
	max-width: var(--container-max);
	margin: 0 auto;
	padding: 0 var(--sp-2);
}
.hte-container--narrow{ max-width: 820px; }

.hte-layout{
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--sp-6);
	padding: var(--sp-5) var(--sp-2);
}
.hte-layout__main{ min-width: 0; }

.hte-section{ padding: var(--sp-6) 0; }
.hte-section--hero{ padding-top: var(--sp-4); }
.hte-section__head{
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--sp-2);
	margin-bottom: var(--sp-4);
	flex-wrap: wrap;
}
.hte-section__title{ font-size: 1.6rem; margin: 0; }
.hte-section__lede{ color: var(--hte-text-muted); margin: var(--sp-1) 0 0; max-width: 60ch; }
.hte-section__more{
	font-weight: 600;
	color: var(--hte-primary);
	white-space: nowrap;
	border-bottom: 2px solid var(--hte-secondary);
	padding-bottom: 2px;
}

/* ---------- 5. Buttons ---------- */
.hte-btn{
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 22px;
	border-radius: var(--radius-sm);
	font-weight: 600;
	font-size: 0.95rem;
	border: 2px solid transparent;
	transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.hte-btn--primary{
	background: var(--hte-primary);
	color: #fff;
}
.hte-btn--primary:hover{ background: var(--hte-primary-dark); }
.hte-btn--outline{
	border-color: currentColor;
	color: var(--hte-primary);
	background: transparent;
}
.hte-btn--outline:hover{ background: var(--hte-primary); color: #fff; }

/* ---------- 6. Header ---------- */
.hte-header{
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(251, 250, 246, 0.92);
	backdrop-filter: saturate(180%) blur(10px);
	border-bottom: 1px solid var(--hte-border);
	transition: box-shadow 0.2s ease;
}
.hte-header.is-scrolled{ box-shadow: var(--shadow-sm); }
.hte-header__bar{
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--sp-3);
	padding: 14px var(--sp-2);
}
.hte-header__brand img{ max-height: 44px; width: auto; }
.hte-header__logo-text{
	font-family: var(--hte-font-display);
	font-size: 1.4rem;
	font-weight: 700;
	color: var(--hte-primary);
}
.hte-nav{ display: none; }
.hte-nav__list{ display: flex; gap: var(--sp-3); flex-wrap: wrap; }
.hte-nav__list a{
	font-weight: 500;
	font-size: 0.95rem;
	padding: 8px 2px;
	border-bottom: 2px solid transparent;
	transition: border-color 0.15s ease, color 0.15s ease;
}
.hte-nav__list a:hover,
.hte-nav__list .current-menu-item > a{
	color: var(--hte-primary);
	border-bottom-color: var(--hte-secondary);
}
.hte-header__actions{ display: flex; align-items: center; gap: var(--sp-1); }
.hte-icon-btn{
	width: 40px; height: 40px;
	display: inline-flex; align-items: center; justify-content: center;
	background: transparent; border: 1px solid var(--hte-border);
	border-radius: 50%;
	color: var(--hte-text);
}
.hte-icon-btn:hover{ background: var(--hte-secondary); border-color: var(--hte-secondary); color: #fff; }

.hte-hamburger{ display: flex; flex-direction: column; gap: 4px; width: 18px; }
.hte-hamburger span{ display: block; height: 2px; background: currentColor; border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
.hte-menu-toggle[aria-expanded="true"] .hte-hamburger span:nth-child(1){ transform: translateY(6px) rotate(45deg); }
.hte-menu-toggle[aria-expanded="true"] .hte-hamburger span:nth-child(2){ opacity: 0; }
.hte-menu-toggle[aria-expanded="true"] .hte-hamburger span:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }

.hte-search-panel{
	border-top: 1px solid var(--hte-border);
	background: var(--hte-surface);
	padding: var(--sp-2);
}
.hte-search-panel[hidden]{ display: none; }

.hte-mobile-menu{
	position: fixed;
	inset: 0;
	top: 0;
	z-index: 150;
	background: var(--hte-surface);
	padding: var(--sp-6) var(--sp-3) var(--sp-3);
	overflow-y: auto;
}
.hte-mobile-menu[hidden]{ display: none; }
.hte-mobile-menu__list li{ border-bottom: 1px solid var(--hte-border); }
.hte-mobile-menu__list a{ display: block; padding: 16px 4px; font-size: 1.1rem; font-weight: 600; }
.hte-mobile-menu__footer{ margin-top: var(--sp-4); }
body.hte-menu-open{ overflow: hidden; }

/* ---------- 7. Search form ---------- */
.hte-search-form{ display: flex; gap: 8px; }
.hte-search-form__field{
	flex: 1;
	padding: 12px 16px;
	border: 1px solid var(--hte-border);
	border-radius: var(--radius-sm);
	background: var(--hte-bg);
}
.hte-search-form__submit{
	width: 46px;
	border: none;
	background: var(--hte-primary);
	color: #fff;
	border-radius: var(--radius-sm);
}

/* ---------- 8. Badges / breadcrumbs ---------- */
.hte-badge{
	display: inline-flex;
	align-items: center;
	background: rgba(15, 93, 79, 0.09);
	color: var(--hte-primary);
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 6px 12px;
	border-radius: 999px;
}
.hte-badge--on-media{
	position: absolute;
	top: 12px; left: 12px;
	background: var(--hte-surface);
}
.hte-breadcrumbs{ margin-bottom: var(--sp-2); font-size: 0.85rem; color: var(--hte-text-muted); }
.hte-breadcrumbs ol{ display: flex; flex-wrap: wrap; gap: 6px; }
.hte-breadcrumbs li:not(:last-child)::after{ content: "/"; margin-left: 6px; color: var(--hte-border); }
.hte-breadcrumbs a{ color: var(--hte-text-muted); }
.hte-breadcrumbs a:hover{ color: var(--hte-primary); }

/* ---------- 9. Hero ---------- */
.hte-hero{
	position: relative;
	border-radius: var(--radius-lg);
	overflow: hidden;
	background: var(--hte-primary-dark);
	color: #fff;
	min-height: 420px;
	display: flex;
	align-items: flex-end;
	box-shadow: var(--shadow-md);
}
.hte-hero__media{ position: absolute; inset: 0; }
.hte-hero__media img{ width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.hte-hero::after{
	content: "";
	position: absolute; inset: 0;
	background: linear-gradient(0deg, rgba(10,27,22,0.92) 0%, rgba(10,27,22,0.35) 65%, rgba(10,27,22,0.1) 100%);
}
.hte-hero__content{ position: relative; padding: var(--sp-4); max-width: 720px; }
.hte-hero .hte-badge{ background: var(--hte-accent); color: #241705; }
.hte-hero__title{ font-size: clamp(1.6rem, 4vw, 2.6rem); margin: var(--sp-2) 0; }
.hte-hero__title a{ color: #fff; }
.hte-hero__excerpt{ color: rgba(255,255,255,0.85); max-width: 60ch; }
.hte-hero__meta{ color: rgba(255,255,255,0.7); font-size: 0.85rem; margin-bottom: var(--sp-3); display:flex; gap:8px; }

/* ---------- 10. Category grid ---------- */
.hte-cat-grid{
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--sp-2);
}
.hte-cat-card{
	position: relative;
	background: var(--hte-surface);
	border: 1px solid var(--hte-border);
	border-radius: var(--radius-md);
	padding: var(--sp-3);
	display: flex;
	flex-direction: column;
	gap: 6px;
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.hte-cat-card:hover{ transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--hte-secondary); }
.hte-cat-card__num{
	font-family: var(--hte-font-display);
	font-size: 0.8rem;
	color: var(--hte-secondary);
	font-weight: 600;
}
.hte-cat-card__icon{ color: var(--hte-primary); width: 28px; height: 28px; }
.hte-cat-card__icon svg{ width: 100%; height: 100%; }
.hte-cat-card__name{ font-family: var(--hte-font-display); font-size: 1.15rem; font-weight: 600; color: var(--hte-text); }
.hte-cat-card__count{ color: var(--hte-text-muted); font-size: 0.85rem; }
.hte-cat-card__cta{ margin-top: auto; font-weight: 600; color: var(--hte-primary); font-size: 0.85rem; padding-top: 8px; }
.hte-cat-grid--compact{ grid-template-columns: repeat(2, 1fr); margin-top: var(--sp-3); }

/* ---------- 11. Cards / grids ---------- */
.hte-grid{ display: grid; gap: var(--sp-3); grid-template-columns: 1fr; }
.hte-card{
	background: var(--hte-surface);
	border: 1px solid var(--hte-border);
	border-radius: var(--radius-md);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.hte-card:hover{ transform: translateY(-3px); box-shadow: var(--shadow-md); }
.hte-card__media{ position: relative; display: block; aspect-ratio: 16/10; background: var(--hte-secondary); overflow: hidden; }
.hte-card__media img{ width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.hte-card:hover .hte-card__media img{ transform: scale(1.04); }
.hte-card__media-fallback{ display:flex; align-items:center; justify-content:center; height:100%; color:#fff; }
.hte-card__media-fallback svg{ width: 40px; height: 40px; }
.hte-card__body{ padding: var(--sp-2) var(--sp-2) var(--sp-3); display: flex; flex-direction: column; gap: 6px; flex: 1; }
.hte-card__meta{ font-size: 0.78rem; color: var(--hte-text-muted); display: flex; gap: 6px; align-items: center; }
.hte-card__title{ font-size: 1.08rem; margin: 0; }
.hte-card__title a:hover{ color: var(--hte-primary); }
.hte-card__excerpt{ color: var(--hte-text-muted); font-size: 0.92rem; margin: 0; flex: 1; }
.hte-card__link{ font-weight: 600; color: var(--hte-primary); font-size: 0.88rem; margin-top: 6px; }

/* ---------- 12. Search results row ---------- */
.hte-search-row{ display: flex; gap: var(--sp-2); padding: var(--sp-3) 0; border-bottom: 1px solid var(--hte-border); }
.hte-search-row__media{ flex: 0 0 140px; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4/3; background: var(--hte-secondary); }
.hte-search-row__media img{ width: 100%; height: 100%; object-fit: cover; }
.hte-search-row__body{ flex: 1; min-width: 0; }

/* ---------- 13. Sidebar / widgets ---------- */
.hte-sidebar{ display: flex; flex-direction: column; gap: var(--sp-4); }
.hte-widget{ background: var(--hte-surface); border: 1px solid var(--hte-border); border-radius: var(--radius-md); padding: var(--sp-3); }
.hte-widget__title{ font-size: 1.05rem; margin-bottom: var(--sp-2); padding-bottom: var(--sp-1); border-bottom: 2px solid var(--hte-secondary); }
.hte-popular__list{ display: flex; flex-direction: column; gap: var(--sp-2); }
.hte-popular__item{ display: flex; align-items: center; gap: 10px; }
.hte-popular__num{ font-family: var(--hte-font-display); color: var(--hte-secondary); font-weight: 700; width: 24px; }
.hte-popular__thumb{ flex: 0 0 56px; height: 56px; border-radius: var(--radius-sm); overflow: hidden; background: var(--hte-secondary); }
.hte-popular__thumb img{ width: 100%; height: 100%; object-fit: cover; }
.hte-popular__body{ display: flex; flex-direction: column; min-width: 0; }
.hte-popular__title{ font-size: 0.9rem; font-weight: 600; line-height: 1.3; }
.hte-popular__title:hover{ color: var(--hte-primary); }
.hte-popular__date{ font-size: 0.75rem; color: var(--hte-text-muted); }

/* ---------- 14. Newsletter ---------- */
.hte-newsletter{
	background: var(--hte-primary);
	color: #fff;
	border-radius: var(--radius-lg);
	padding: var(--sp-4);
	text-align: center;
}
.hte-newsletter__title{ color: #fff; font-size: 1.5rem; }
.hte-newsletter__copy{ color: rgba(255,255,255,0.85); }
.hte-newsletter__form{ display: flex; gap: 8px; max-width: 440px; margin: var(--sp-2) auto 0; flex-wrap: wrap; }
.hte-newsletter__form input{
	flex: 1;
	min-width: 200px;
	padding: 12px 16px;
	border-radius: var(--radius-sm);
	border: none;
}
.hte-newsletter__soon{ opacity: 0.85; font-style: italic; }
.hte-widget .hte-newsletter{ text-align: left; padding: var(--sp-3); border-radius: var(--radius-md); }
.hte-widget .hte-newsletter__form{ margin-left: 0; flex-direction: column; }

/* ---------- 15. Article ---------- */
.hte-article__header{ padding-top: var(--sp-4); }
.hte-article__title{ font-size: clamp(1.7rem, 4vw, 2.5rem); margin: var(--sp-2) 0; }
.hte-article__meta{ display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--hte-text-muted); font-size: 0.88rem; }
.hte-article__author{ display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--hte-text); }
.hte-article__author img{ border-radius: 50%; }
.hte-article__thumb{ margin: var(--sp-3) auto; }
.hte-article__thumb img{ border-radius: var(--radius-lg); width: 100%; max-height: 520px; object-fit: cover; }

.hte-toc{ background: var(--hte-surface); border: 1px solid var(--hte-border); border-left: 4px solid var(--hte-secondary); border-radius: var(--radius-md); padding: var(--sp-3); margin-bottom: var(--sp-3); }
.hte-toc__title{ font-family: var(--hte-font-display); font-weight: 700; margin-bottom: 8px; }
.hte-toc ol{ display: flex; flex-direction: column; gap: 6px; }
.hte-toc__item a{ color: var(--hte-primary); font-size: 0.92rem; }
.hte-toc__item--h3{ padding-left: var(--sp-2); }

.hte-takeaways{ background: rgba(127,184,133,0.14); border-radius: var(--radius-md); padding: var(--sp-3); margin-bottom: var(--sp-3); }
.hte-takeaways__title{ font-size: 1.1rem; margin-bottom: 8px; }
.hte-takeaways ul{ display: flex; flex-direction: column; gap: 8px; }
.hte-takeaways li{ position: relative; padding-left: 26px; }
.hte-takeaways li::before{ content: "✓"; position: absolute; left: 0; color: var(--hte-primary); font-weight: 700; }

.hte-article__content{ font-size: 1.05rem; color: var(--hte-text); }
.hte-article__content h2{ font-size: 1.5rem; margin-top: var(--sp-5); }
.hte-article__content h3{ font-size: 1.2rem; margin-top: var(--sp-4); }
.hte-article__content p{ margin-bottom: var(--sp-3); }
.hte-article__content ul, .hte-article__content ol{ margin: 0 0 var(--sp-3); padding-left: 1.3em; list-style: disc; }
.hte-article__content ol{ list-style: decimal; }
.hte-article__content li{ margin-bottom: 6px; }
.hte-article__content img{ border-radius: var(--radius-md); margin: var(--sp-2) 0; }
.hte-article__content a{ color: var(--hte-primary); text-decoration: underline; text-decoration-color: var(--hte-secondary); }
.hte-article__content blockquote{
	border-left: 4px solid var(--hte-secondary);
	padding: var(--sp-1) var(--sp-3);
	margin: var(--sp-3) 0;
	font-family: var(--hte-font-display);
	font-style: italic;
	color: var(--hte-text-muted);
}
.hte-article__content table{ width: 100%; border-collapse: collapse; margin-bottom: var(--sp-3); }
.hte-article__content table th, .hte-article__content table td{ border: 1px solid var(--hte-border); padding: 8px 12px; text-align: left; }

.hte-article__share{ display: flex; align-items: center; gap: 8px; margin: var(--sp-4) 0; flex-wrap: wrap; }
.hte-article__share-label{ font-weight: 600; margin-right: 4px; }
.hte-share-btn{
	width: 36px; height: 36px;
	display: inline-flex; align-items: center; justify-content: center;
	border-radius: 50%;
	background: var(--hte-primary);
	color: #fff;
	font-weight: 700;
	font-size: 0.85rem;
}
.hte-share-btn:hover{ background: var(--hte-accent); color: #241705; }

.hte-article__disclaimer, .hte-footer__disclaimer{
	background: #fff6e8;
	border: 1px solid #f1d9a8;
	border-radius: var(--radius-md);
	padding: var(--sp-2) var(--sp-3);
	font-size: 0.88rem;
	color: #6b4f15;
	margin-bottom: var(--sp-4);
}

.hte-author-box{ display: flex; gap: var(--sp-2); background: var(--hte-surface); border: 1px solid var(--hte-border); border-radius: var(--radius-md); padding: var(--sp-3); margin-bottom: var(--sp-5); }
.hte-author-box__avatar img{ border-radius: 50%; }
.hte-author-box__label{ font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--hte-text-muted); margin: 0; }
.hte-author-box__name{ font-weight: 700; font-size: 1.05rem; display: block; margin-bottom: 4px; }
.hte-author-box__bio{ color: var(--hte-text-muted); font-size: 0.92rem; margin: 0; }

.hte-related{ padding-top: 0; }

/* ---------- 16. Comments ---------- */
.hte-comments{ margin-top: var(--sp-6); }
.hte-comments__title{ font-size: 1.3rem; }
.hte-comments__list > li{ padding: var(--sp-3) 0; border-bottom: 1px solid var(--hte-border); }
.hte-comments__list .children{ margin-left: var(--sp-4); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea{
	width: 100%; padding: 10px 14px; border: 1px solid var(--hte-border); border-radius: var(--radius-sm); margin-bottom: var(--sp-2); background: var(--hte-surface);
}

/* ---------- 17. Pages: About / Contact / Write for us / 404 / Search empty ---------- */
.hte-page-header{ padding: var(--sp-5) 0 var(--sp-3); }
.hte-page-title{ font-size: clamp(1.6rem, 4vw, 2.4rem); }
.hte-page-description{ color: var(--hte-text-muted); }

.hte-about__stats{ display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-2); margin-bottom: var(--sp-5); }
.hte-stat{ background: var(--hte-surface); border: 1px solid var(--hte-border); border-radius: var(--radius-md); padding: var(--sp-3); text-align: center; }
.hte-stat__num{ display: block; font-family: var(--hte-font-display); font-size: 2rem; color: var(--hte-primary); font-weight: 700; }
.hte-stat__label{ color: var(--hte-text-muted); font-size: 0.85rem; }
.hte-about__content h2{ margin-top: var(--sp-5); }

.hte-contact__grid{ display: grid; grid-template-columns: 1fr; gap: var(--sp-4); padding-bottom: var(--sp-5); }
.hte-contact__list{ display: flex; flex-direction: column; gap: var(--sp-2); margin-top: var(--sp-2); }
.hte-contact__list a{ color: var(--hte-primary); font-weight: 600; }
.hte-contact-form{ display: flex; flex-direction: column; gap: 6px; margin-top: var(--sp-2); }
.hte-contact-form label{ font-weight: 600; font-size: 0.88rem; margin-top: 6px; }
.hte-contact-form input, .hte-contact-form textarea{
	padding: 12px 14px; border: 1px solid var(--hte-border); border-radius: var(--radius-sm); background: var(--hte-surface);
}
.hte-contact-form button{ margin-top: var(--sp-2); align-self: flex-start; }
.hte-hp-wrap{ position: absolute; left: -9999px; }
.hte-notice{ padding: var(--sp-2) var(--sp-3); border-radius: var(--radius-sm); margin-bottom: var(--sp-2); font-size: 0.92rem; }
.hte-notice--success{ background: rgba(127,184,133,0.2); color: var(--hte-primary-dark); }
.hte-notice--error{ background: #fdeceb; color: #a3372a; }

.hte-cta-box{ background: rgba(15,93,79,0.06); border-radius: var(--radius-md); padding: var(--sp-4); text-align: center; margin-top: var(--sp-5); }

.hte-404{ text-align: center; padding: var(--sp-7) var(--sp-2); }
.hte-404__icon{ width: 56px; height: 56px; color: var(--hte-secondary); margin: 0 auto var(--sp-2); }
.hte-404__code{ font-family: var(--hte-font-display); font-size: 3rem; color: var(--hte-border); margin: 0; }
.hte-404 .hte-search-form{ max-width: 420px; margin: var(--sp-3) auto; }
.hte-404__cats{ margin-top: var(--sp-6); }

.hte-no-results{ text-align: center; padding: var(--sp-6) var(--sp-2); }
.hte-no-results__icon{ width: 48px; height: 48px; color: var(--hte-secondary); margin: 0 auto var(--sp-2); }
.hte-no-results .hte-search-form{ max-width: 420px; margin: var(--sp-3) auto; }
.hte-no-results__cats{ display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: var(--sp-2); }

/* ---------- 18. Pagination ---------- */
.hte-pagination{ margin-top: var(--sp-5); }
.hte-pagination ul{ display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.hte-pagination a, .hte-pagination span{
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 40px; height: 40px; padding: 0 10px;
	border: 1px solid var(--hte-border); border-radius: var(--radius-sm);
}
.hte-pagination .current{ background: var(--hte-primary); color: #fff; border-color: var(--hte-primary); }
.hte-pagination a:hover{ border-color: var(--hte-primary); color: var(--hte-primary); }

/* ---------- 19. Footer ---------- */
.hte-footer{ background: var(--hte-primary-dark); color: rgba(255,255,255,0.85); margin-top: var(--sp-7); padding-top: var(--sp-6); }
.hte-footer__grid{ display: grid; grid-template-columns: 1fr; gap: var(--sp-4); padding-bottom: var(--sp-5); }
.hte-footer__logo-text{ font-family: var(--hte-font-display); font-size: 1.3rem; color: #fff; font-weight: 700; }
.hte-footer__logo img{ max-height: 40px; filter: brightness(0) invert(1); }
.hte-footer__tagline{ color: rgba(255,255,255,0.65); font-size: 0.9rem; margin-top: 6px; }
.hte-footer__social{ display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--sp-2); }
.hte-footer__social a{ font-size: 0.82rem; padding: 6px 12px; border: 1px solid rgba(255,255,255,0.25); border-radius: 999px; }
.hte-footer__social a:hover{ background: rgba(255,255,255,0.12); }
.hte-footer__heading{ color: #fff; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: var(--sp-2); }
.hte-footer__list{ display: flex; flex-direction: column; gap: 10px; }
.hte-footer__list a:hover{ color: #fff; }
.hte-footer__disclaimer{ background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.15); color: rgba(255,255,255,0.75); margin: 0 auto var(--sp-3); max-width: var(--container-max); }
.hte-footer__bottom{ border-top: 1px solid rgba(255,255,255,0.12); padding: var(--sp-3) var(--sp-2); font-size: 0.85rem; text-align: center; }

/* =========================================================================
   Responsive — mobile-first min-width breakpoints
   ========================================================================= */

/* 480px — large phones */
@media (min-width: 480px){
	.hte-cat-grid{ grid-template-columns: repeat(2, 1fr); }
	.hte-about__stats{ grid-template-columns: repeat(3, 1fr); }
}

/* 768px — tablet */
@media (min-width: 768px){
	.hte-container{ padding: 0 var(--sp-4); }
	.hte-grid--3{ grid-template-columns: repeat(2, 1fr); }
	.hte-grid--4{ grid-template-columns: repeat(2, 1fr); }
	.hte-cat-grid{ grid-template-columns: repeat(3, 1fr); }
	.hte-search-row{ align-items: flex-start; }
	.hte-contact__grid{ grid-template-columns: 1.1fr 1.4fr; }
	.hte-footer__grid{ grid-template-columns: 1.3fr 1fr 1fr; }
}

/* 1024px — small desktop / large tablet landscape */
@media (min-width: 1024px){
	.hte-nav{ display: block; }
	.hte-menu-toggle{ display: none; }
	.hte-layout{ grid-template-columns: 2.4fr 1fr; align-items: start; }
	.hte-grid--3{ grid-template-columns: repeat(3, 1fr); }
	.hte-grid--4{ grid-template-columns: repeat(4, 1fr); }
	.hte-cat-grid{ grid-template-columns: repeat(6, 1fr); }
	.hte-cat-grid--compact{ grid-template-columns: repeat(3, 1fr); }
	.hte-hero{ min-height: 480px; }
	.hte-hero__content{ padding: var(--sp-6); }
	.hte-sidebar{ position: sticky; top: 96px; }
	.hte-footer__grid{ grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

/* 1200px — desktop */
@media (min-width: 1200px){
	.hte-section{ padding: var(--sp-7) 0; }
	.hte-hero{ min-height: 540px; }
}

/* 1440px — large desktop */
@media (min-width: 1440px){
	:root{ --container-max: 1360px; }
}
