:root {
	--otth-primary: #1B2A4A;
	--otth-accent: #F2A93B;
	--otth-new: #2E9E6B;
	--otth-bg: #F7F7F5;
	--otth-text: #1F2328;
	--otth-white: #FFFFFF;
	--otth-border: #E4E3DE;
	--otth-font-heading: 'Sora', sans-serif;
	--otth-font-body: 'Inter', sans-serif;
	--radius: 10px;
	--shadow-card: 0 1px 3px rgba(0,0,0,0.08);
	--shadow-card-hover: 0 8px 20px rgba(0,0,0,0.12);
}

body {
	background-color: var(--otth-bg);
	color: var(--otth-text);
	font-family: var(--otth-font-body);
}

h1, h2, h3, h4, h5, h6,
.site-title,
.hero-search__title,
.job-card__title,
.guide-card__title {
	font-family: var(--otth-font-heading);
	font-weight: 700;
	color: var(--otth-primary);
}

a {
	color: var(--otth-primary);
}

/* Without its own z-index, .site-header creates no stacking context, so its
   nav dropdowns (z-index: 99999) get compared against .otth-searchbar at the
   body level by z-index alone and lose to a lower value in some browsers. */
.site-header {
	position: relative;
	z-index: 1000;
}

/* ---------- Sticky search bar (header) ---------- */
.otth-searchbar {
	position: sticky;
	top: 0;
	z-index: 999;
	background: var(--otth-white);
	border-bottom: 1px solid var(--otth-border);
	padding: 10px 20px;
	box-shadow: 0 2px 6px rgba(27, 42, 74, 0.06);
}

.otth-searchbar__form {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	max-width: 1100px;
	margin: 0 auto;
	align-items: center;
}

.otth-searchbar__form input[type="text"],
.otth-searchbar__form select {
	font-family: var(--otth-font-body);
	font-size: 14px;
	padding: 10px 14px;
	border: 1px solid var(--otth-border);
	border-radius: 8px;
	background: var(--otth-bg);
	color: var(--otth-text);
}

.otth-searchbar__form input[type="text"] {
	flex: 2 1 240px;
}

.otth-searchbar__form select {
	flex: 1 1 160px;
}

.otth-searchbar__form button {
	flex: 0 0 auto;
	font-family: var(--otth-font-heading);
	font-weight: 600;
	font-size: 14px;
	padding: 10px 22px;
	border: none;
	border-radius: 8px;
	background: var(--otth-accent);
	color: var(--otth-primary);
	cursor: pointer;
	transition: opacity 0.15s ease;
}

.otth-searchbar__form button:hover {
	opacity: 0.85;
}

/* ---------- Hero (home page search) ---------- */
.otth-hero {
	background: radial-gradient(circle at 15% 20%, #24365c 0%, var(--otth-primary) 45%, #131f38 100%);
	padding: 56px 20px 72px;
	text-align: center;
	border-radius: var(--radius, 10px);
}

.otth-hero__stats {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 28px;
	margin-top: 26px;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.15);
	color: #C9D2E3;
	font-size: 13px;
}

.otth-hero__stats strong {
	color: var(--otth-accent);
	font-family: var(--otth-font-heading);
	font-size: 16px;
	margin-right: 4px;
}

.otth-hero__title {
	color: var(--otth-white);
	font-size: clamp(26px, 4vw, 40px);
	margin: 0 0 10px;
}

.otth-hero__subtitle {
	color: #C9D2E3;
	font-family: var(--otth-font-body);
	font-size: 16px;
	margin: 0 0 28px;
}

.otth-hero .otth-searchbar__form {
	position: static;
	box-shadow: none;
	background: transparent;
	max-width: 760px;
}

.otth-hero .otth-searchbar__form input[type="text"],
.otth-hero .otth-searchbar__form select {
	background: var(--otth-white);
	padding: 14px 16px;
	font-size: 15px;
}

.otth-hero .otth-searchbar__form button {
	padding: 14px 28px;
	font-size: 15px;
}

/* ---------- Chips ---------- */
.otth-chip-section {
	max-width: 1100px;
	margin: 0 auto;
	padding: 28px 20px 8px;
}

.otth-chip-section--card {
	background: var(--otth-white);
	border-radius: var(--radius, 10px);
	box-shadow: var(--shadow-card, 0 1px 3px rgba(0,0,0,0.08));
	margin-top: -20px;
	position: relative;
	z-index: 2;
	padding: 24px 24px 16px;
}

.otth-chip-label {
	font-family: var(--otth-font-heading);
	font-weight: 600;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--otth-primary);
	margin: 0 0 10px;
}

.otth-chip-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 20px;
}

.otth-chip {
	display: inline-block;
	padding: 8px 16px;
	border-radius: 999px;
	background: var(--otth-white);
	border: 1px solid var(--otth-border);
	color: var(--otth-primary);
	font-size: 13px;
	font-weight: 500;
	text-decoration: none;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.otth-chip:hover {
	background: var(--otth-accent);
	border-color: var(--otth-accent);
	color: var(--otth-primary);
}

/* ---------- Jobs grid ---------- */
.otth-jobs-section {
	max-width: 1100px;
	margin: 0 auto;
	padding: 16px 20px 40px;
}

.otth-jobs-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
	margin-top: 16px;
}

.otth-job-card {
	background: var(--otth-white);
	border: 1px solid var(--otth-border);
	border-radius: 12px;
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	box-shadow: 0 1px 3px rgba(27, 42, 74, 0.05);
}

.otth-job-card__company {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--otth-accent);
}

.otth-job-card__title {
	font-family: var(--otth-font-heading);
	font-weight: 700;
	font-size: 17px;
	color: var(--otth-primary);
	margin: 0;
}

.otth-job-card__meta {
	font-size: 13px;
	color: #5B6472;
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.otth-job-card__cta {
	margin-top: 10px;
	display: inline-block;
	align-self: flex-start;
	padding: 9px 18px;
	border-radius: 8px;
	background: var(--otth-primary);
	color: var(--otth-white) !important;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
}

.otth-job-card__cta:hover {
	background: #26385f;
}

/* ---------- Guides section ---------- */
.otth-guides-section {
	background: var(--otth-white);
	padding: 48px 20px;
	border-top: 1px solid var(--otth-border);
	border-bottom: 1px solid var(--otth-border);
}

.otth-guides-inner {
	max-width: 1100px;
	margin: 0 auto;
}

.otth-guides-inner > .otth-section-title {
	text-align: center;
	margin-bottom: 28px;
}

.otth-section-title {
	font-size: clamp(22px, 3vw, 28px);
}

.otth-guides-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 18px;
}

.otth-guide-card {
	background: var(--otth-bg);
	border-radius: 12px;
	padding: 22px 18px;
	text-decoration: none;
	display: block;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.otth-guide-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(27, 42, 74, 0.08);
}

.otth-guide-card__title {
	font-family: var(--otth-font-heading);
	font-weight: 600;
	font-size: 15px;
	color: var(--otth-primary);
	margin: 0 0 6px;
}

.otth-guide-card__desc {
	font-size: 13px;
	color: #5B6472;
	margin: 0;
}

/* ---------- Footer sitemap ---------- */
.otth-footer-sitemap {
	background: var(--otth-primary);
	color: #C9D2E3;
	padding: 40px 20px 16px;
}

.otth-footer-inner {
	max-width: 1100px;
	margin: 0 auto;
}

.otth-footer-columns {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	margin-bottom: 24px;
}

.otth-footer-col h4 {
	color: var(--otth-white);
	font-size: 14px;
	margin: 0 0 12px;
}

.otth-footer-col ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.otth-footer-col li {
	margin-bottom: 8px;
}

.otth-footer-col a {
	color: #C9D2E3;
	font-size: 13px;
	text-decoration: none;
}

.otth-footer-col a:hover {
	color: var(--otth-accent);
}

.otth-footer-legal {
	border-top: 1px solid rgba(255,255,255,0.15);
	padding-top: 16px;
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	justify-content: space-between;
	font-size: 12px;
}

.otth-footer-legal a {
	color: #C9D2E3;
	text-decoration: none;
}

.otth-footer-legal a:hover {
	color: var(--otth-accent);
}

/* ---------- Responsive ---------- */
@media (max-width: 782px) {
	.otth-jobs-grid,
	.otth-guides-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.otth-footer-columns {
		grid-template-columns: repeat(2, 1fr);
	}
	.otth-searchbar__form input[type="text"],
	.otth-searchbar__form select,
	.otth-searchbar__form button {
		flex: 1 1 100%;
	}
}

@media (max-width: 480px) {
	.otth-jobs-grid,
	.otth-guides-grid,
	.otth-footer-columns {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   Post cards (home grid, archive/category/search loops, related articles)
   ========================================================================== */
.otth-cards-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin-top: 16px;
}

.otth-cards-grid--archive {
	max-width: 1100px;
	margin: 24px auto;
	padding: 0 20px;
}

.otth-post-card {
	background: var(--otth-white);
	border: 1px solid var(--otth-border);
	border-radius: var(--radius, 10px);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: var(--shadow-card, 0 1px 3px rgba(0,0,0,0.08));
	transition: transform 200ms ease, box-shadow 200ms ease;
}

.otth-post-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-card-hover, 0 8px 20px rgba(0,0,0,0.12));
}

.otth-post-card__media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-top-left-radius: var(--radius, 10px);
	border-top-right-radius: var(--radius, 10px);
}

.otth-post-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.otth-post-card__placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 40px;
}

.otth-post-card__pill {
	position: absolute;
	top: 12px;
	left: 12px;
	color: var(--otth-white);
	font-family: var(--otth-font-heading);
	font-size: 12px;
	font-weight: 600;
	padding: 4px 10px;
	border-radius: 20px;
	text-decoration: none;
}

.otth-post-card__badge--new {
	position: absolute;
	top: 12px;
	right: 12px;
	background-color: var(--otth-new);
	color: var(--otth-white);
	font-family: var(--otth-font-heading);
	font-size: 11px;
	font-weight: 600;
	padding: 4px 10px;
	border-radius: 20px;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.otth-post-card__body {
	padding: 18px 20px 20px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
}

.otth-post-card__title {
	font-size: 17px;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	line-height: 1.35;
}

.otth-post-card__title a {
	color: var(--otth-primary);
	text-decoration: none;
}

.otth-post-card__excerpt {
	font-size: 13px;
	color: #6B7280;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.otth-post-card__meta {
	display: flex;
	gap: 14px;
	font-size: 12px;
	color: #6B7280;
	margin-top: auto;
}

.otth-post-card__cta {
	margin-top: 4px;
	display: inline-block;
	align-self: flex-start;
	padding: 9px 18px;
	border-radius: var(--radius, 8px);
	background: var(--otth-primary);
	color: var(--otth-white) !important;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
}

.otth-post-card__cta:hover {
	background: #26385f;
}

/* ==========================================================================
   Single post template
   ========================================================================== */
body.single-post .content-area {
	max-width: 720px;
	margin-left: auto;
	margin-right: auto;
	float: none;
}

body.single-post .entry-header h1.entry-title {
	font-size: clamp(28px, 4vw, 38px);
	line-height: 1.2;
}

.otth-single-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 14px;
	font-size: 13px;
	color: #6B7280;
	margin: 10px 0 20px;
}

.otth-single-meta__pill {
	color: var(--otth-white) !important;
	font-family: var(--otth-font-heading);
	font-weight: 600;
	font-size: 12px;
	padding: 4px 10px;
	border-radius: 20px;
	text-decoration: none;
}

.otth-single-featured-image {
	margin: 0 0 28px;
}

.otth-single-featured-image img {
	width: 100%;
	height: 420px;
	object-fit: cover;
	border-radius: var(--radius, 10px);
	display: block;
}

.otth-single-featured-image figcaption,
.otth-inline-figure figcaption {
	font-size: 12px;
	color: #9AA0A9;
	margin-top: 6px;
	text-align: right;
}

.otth-inline-figure {
	margin: 1.8em 0;
}

.otth-inline-figure img {
	width: 100%;
	height: auto;
	max-height: 380px;
	object-fit: cover;
	border-radius: var(--radius, 10px);
	display: block;
}

body.single-post .entry-content {
	font-size: 18px;
	line-height: 1.7;
	color: var(--otth-text);
}

body.single-post .entry-content p {
	margin: 0 0 1.2em;
}

body.single-post .entry-content blockquote {
	background: rgba(242, 169, 59, 0.1);
	border-left: 4px solid var(--otth-accent);
	padding: 16px;
	border-radius: 6px;
	margin: 1.5em 0;
	font-style: normal;
}

.otth-related-section {
	margin-top: 48px;
	padding-top: 32px;
	border-top: 1px solid var(--otth-border);
}

/* ==========================================================================
   Sidebar widgets
   ========================================================================== */
.widget-area .widget h2.widget-title,
.widget-area .widget .wp-block-heading {
	font-family: var(--otth-font-heading);
	font-size: 16px;
	color: var(--otth-primary);
}

.widget-area .wp-block-categories li,
.widget-area .wp-block-latest-posts__list li {
	border-bottom: 1px solid var(--otth-border);
	padding: 8px 0;
	list-style: none;
}

.widget-area .wp-block-categories,
.widget-area .wp-block-latest-posts__list {
	margin: 0;
	padding: 0;
}

@media (max-width: 782px) {
	.otth-cards-grid {
		grid-template-columns: 1fr;
	}
}
