/*
Theme Name: JobAlertHub
Author: JobAlertHub
Description: A fast, mobile-first job alert theme with a stats strip, closing-soon bar, category boxes, last-date badges and a sidebar.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jobalerthub
Tags: blog, news, two-columns, right-sidebar, custom-logo, custom-menu
*/

/* Montserrat (SIL Open Font License, see assets/fonts/OFL.txt). Hosted locally: no external requests. */
@font-face {
	font-family: "Montserrat";
	src: url("assets/fonts/montserrat.woff") format("woff");
	font-weight: 400 700;
	font-style: normal;
	font-display: swap;
}

/* Base styles. Component styles live in the assets/ folder. */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { max-width: 100%; overflow-x: clip; }

body {
	margin: 0;
	font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans Devanagari", sans-serif;
	font-size: 16px;
	line-height: 1.6;
	color: #1d1d1f;
	background: #f7f8fa;
	-webkit-font-smoothing: antialiased;
	overflow-wrap: break-word;
}

/* Buttons and form fields do not inherit the font by default */
button, input, select, textarea { font-family: inherit; }

img, video, iframe { max-width: 100%; height: auto; }
iframe { border: 0; }
pre, code { max-width: 100%; }
pre { overflow-x: auto; }

a { color: #0b3d91; }
a:hover { color: #e8590c; }

h1, h2, h3, h4 { line-height: 1.3; }

.site-content { display: block; min-height: 50vh; }

/* Screen reader text (used by WordPress search forms) */
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* WordPress core alignment and captions */
.alignleft { float: left; margin: 0 16px 8px 0; }
.alignright { float: right; margin: 0 0 8px 16px; }
.aligncenter { display: block; margin: 0 auto 12px; }
.wp-caption { max-width: 100%; }
.wp-caption-text, figcaption { font-size: 13px; color: #666; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}

/* Keyboard focus (tab order) */
:focus-visible { outline: 2px solid #e8590c; outline-offset: 2px; }

/* Form messages and loading state */
.jah-form-msg { color: #b91c1c; font-size: 13px; margin: 6px 0 0; }
.search-form.is-loading .search-submit { opacity: .7; cursor: progress; }

/* ---------------------------------------------------------------
   Theme layout (Appearance > Customize > Layout)
   full | boxed | framed | bordered
   --------------------------------------------------------------- */
:root { --jah-site-width: 1200px; --jah-sidebar: 25%; }

.jah-site { background: #ffffff; }
body.jah-layout-full { background: #ffffff; }

@media (min-width: 700px) {
	body.jah-layout-boxed .jah-site,
	body.jah-layout-bordered .jah-site { max-width: var(--jah-site-width); margin: 0 auto; }

	body.jah-layout-boxed .jah-site { box-shadow: 0 0 28px rgba(0, 0, 0, .10); }

	body.jah-layout-framed { padding: 18px; background: #dfe3ea; }

	body.jah-layout-bordered { padding: 18px 0; }
	body.jah-layout-bordered .jah-site { border: 1px solid #c9ced8; }
}

/* ---------------------------------------------------------------
   Page loader (Appearance > Customize > Layout > Loader icon)
   --------------------------------------------------------------- */
[hidden] { display: none !important; }

.jah-loader { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; gap: 8px; background: rgba(255, 255, 255, .75); }
.jah-loader--spinner span { width: 46px; height: 46px; border: 4px solid #d9dde5; border-top-color: #e8590c; border-radius: 50%; animation: jah-spin .8s linear infinite; }
.jah-loader--dots span { width: 12px; height: 12px; border-radius: 50%; background: #0b3d91; animation: jah-pulse 1s ease-in-out infinite; }
.jah-loader--dots span:nth-child(2) { animation-delay: .15s; }
.jah-loader--dots span:nth-child(3) { animation-delay: .3s; }

@keyframes jah-spin { to { transform: rotate(360deg); } }
@keyframes jah-pulse { 0%, 80%, 100% { transform: scale(.5); opacity: .5; } 40% { transform: scale(1); opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
	.jah-loader span { animation: none; }
}
