/**
 * Asia Property Reviews — header, footer, and homepage hero styling.
 * Loaded after style.css so it takes precedence for shared elements.
 *
 * Brand palette sampled from the APR logo:
 *   navy  #0d2149 (ASIA / REVIEWS wordmark, category strip, footer)
 *   gold  #b8873e / #c19a4d (PROPERTY wordmark, accents, icons)
 */

:root {
	--apr-navy: #0d2149;
	--apr-navy-deep: #0a1730;
	--apr-navy-hero: #071433;
	--apr-gold: #c19a4d;
	--apr-gold-strong: #b8873e;
	--apr-gold-dark: #a9803a;
	--apr-ink: #0d2149;
	--apr-body: #3a4250;
	--apr-line: #e7e9ee;
	--apr-soft: #f5f6f8;
	--apr-sans: 'Montserrat', 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	--apr-shell: 1280px;

	/* Remap the legacy palette (style.css) onto the APR brand so every
	   inherited component — post cards, pagination, single content, sidebar
	   widgets, contact forms — adopts the navy/gold scheme automatically. */
	--apr-red: #b8873e;
	--apr-red-dark: #a9803a;
	--apr-ink: #0d2149;
	--apr-muted: #7a828f;
	--apr-line: #e7e9ee;
	--apr-warm: #f5f6f8;
}

/* Let full-width sections span the viewport regardless of parent-theme rules. */
.site-main.apr-main {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}

body {
	font-family: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ===================================================================
   Top bar
   =================================================================== */
.apr-topbar {
	background: var(--apr-navy-deep);
	color: #ffffff;
	font-family: var(--apr-sans);
}

.apr-topbar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: min(100%, var(--apr-shell));
	margin: 0 auto;
	padding: 9px 48px;
}

.apr-topbar-links {
	display: flex;
	align-items: center;
	gap: 22px;
}

.apr-topbar-links a {
	color: rgba(255, 255, 255, 0.88);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
	text-decoration: none;
	transition: color 160ms ease;
}

.apr-topbar-links a:hover,
.apr-topbar-links a:focus {
	color: var(--apr-gold);
}

.apr-topbar-social {
	display: flex;
	align-items: center;
	gap: 6px;
}

.apr-social {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	color: #ffffff;
	background: rgba(255, 255, 255, 0.08);
	border-radius: 50%;
	text-decoration: none;
	transition: color 160ms ease, background 160ms ease;
}

.apr-social:hover,
.apr-social:focus {
	color: var(--apr-navy-deep);
	background: var(--apr-gold);
	outline: 0;
}

/* ===================================================================
   Main header
   =================================================================== */
.apr-site-header {
	position: sticky;
	top: 0;
	z-index: 999;
	background: #ffffff;
	border-bottom: 1px solid var(--apr-line);
	box-shadow: 0 6px 20px rgba(13, 33, 73, 0.05);
	font-family: var(--apr-sans);
}

.apr-header-inner {
	display: flex;
	align-items: center;
	gap: 32px;
	width: min(100%, var(--apr-shell));
	margin: 0 auto;
	padding: 12px 48px;
}

.apr-brand {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
}

.apr-brand-link {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
}

.apr-brand-logo,
.apr-brand img,
.apr-brand .custom-logo {
	display: block;
	width: auto;
	max-width: 260px;
	height: 60px;
	object-fit: contain;
}

.apr-primary-nav {
	display: flex;
	flex: 1 1 auto;
	justify-content: flex-end;
	min-width: 0;
}

.apr-menu {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0 30px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.apr-menu li {
	position: relative;
	margin: 0;
	padding: 0;
}

.apr-menu a {
	position: relative;
	display: inline-flex;
	align-items: center;
	min-height: 46px;
	color: var(--apr-navy);
	font-size: 13.5px;
	font-weight: 600;
	letter-spacing: 0.04em;
	line-height: 1.2;
	text-decoration: none;
	text-transform: uppercase;
	transition: color 160ms ease;
	white-space: nowrap;
}

.apr-menu a::after {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 6px;
	height: 2px;
	content: "";
	background: var(--apr-gold);
	transform: scaleX(0);
	transform-origin: center;
	transition: transform 180ms ease;
}

.apr-menu > li > a:hover,
.apr-menu > li > a:focus,
.apr-menu > .current-menu-item > a,
.apr-menu > .current_page_item > a,
.apr-menu > .current-menu-ancestor > a,
.apr-menu > .current-menu-parent > a {
	color: var(--apr-gold-strong);
}

.apr-menu > li > a:hover::after,
.apr-menu > li > a:focus::after,
.apr-menu > .current-menu-item > a::after,
.apr-menu > .current_page_item > a::after,
.apr-menu > .current-menu-ancestor > a::after,
.apr-menu > .current-menu-parent > a::after {
	transform: scaleX(1);
}

/* Dropdowns — CSS-drawn caret so it is independent of the Font Awesome version. */
.apr-menu .menu-item-has-children > a::before {
	content: "";
	order: 2;
	margin-left: 7px;
	width: 0;
	height: 0;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 5px solid currentColor;
	opacity: 0.65;
}

.apr-menu .sub-menu {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	z-index: 40;
	min-width: 224px;
	margin: 0;
	padding: 10px 0;
	list-style: none;
	background: #ffffff;
	border: 1px solid var(--apr-line);
	border-top: 3px solid var(--apr-gold);
	box-shadow: 0 18px 40px rgba(13, 33, 73, 0.14);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.apr-menu li:hover > .sub-menu,
.apr-menu li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.apr-menu .sub-menu li {
	width: 100%;
}

.apr-menu .sub-menu a {
	justify-content: flex-start;
	width: 100%;
	min-height: 0;
	padding: 10px 20px;
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: none;
}

.apr-menu .sub-menu a::after {
	display: none;
}

.apr-menu .sub-menu a:hover,
.apr-menu .sub-menu a:focus {
	color: var(--apr-gold-strong);
	background: var(--apr-soft);
}

/* Header action buttons */
.apr-header-actions {
	display: flex;
	align-items: center;
	gap: 6px;
	flex: 0 0 auto;
}

.apr-icon-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	color: var(--apr-navy);
	background: transparent;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	transition: color 160ms ease, background 160ms ease;
}

.apr-icon-button:hover,
.apr-icon-button:focus {
	color: var(--apr-gold-strong);
	background: var(--apr-soft);
	outline: 0;
}

.apr-icon-button i {
	font-size: 18px;
}

.apr-menu-toggle {
	display: none;
}

/* Header search panel */
.apr-search-panel {
	background: #ffffff;
	border-top: 1px solid var(--apr-line);
	box-shadow: 0 16px 28px rgba(13, 33, 73, 0.08);
}

.apr-search-panel[hidden] {
	display: none;
}

.apr-search-form {
	display: flex;
	align-items: center;
	gap: 12px;
	width: min(100%, var(--apr-shell));
	margin: 0 auto;
	padding: 16px 48px;
}

.apr-search-form > i {
	color: var(--apr-gold-strong);
	font-size: 15px;
}

.apr-search-form input[type="search"] {
	flex: 1 1 auto;
	min-width: 0;
	height: 48px;
	padding: 0 14px;
	color: var(--apr-ink);
	font: inherit;
	font-size: 15px;
	background: #ffffff;
	border: 1px solid var(--apr-line);
	border-radius: 4px;
}

.apr-search-form input[type="search"]:focus {
	border-color: var(--apr-gold);
	outline: 0;
	box-shadow: 0 0 0 3px rgba(193, 154, 77, 0.18);
}

.apr-search-submit {
	height: 48px;
	padding: 0 22px;
	color: #ffffff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	background: var(--apr-navy);
	border: 0;
	border-radius: 4px;
	cursor: pointer;
	transition: background 160ms ease;
}

.apr-search-submit:hover,
.apr-search-submit:focus {
	background: var(--apr-gold-strong);
}

.apr-search-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 48px;
	color: var(--apr-navy);
	background: transparent;
	border: 0;
	border-radius: 4px;
	cursor: pointer;
}

.apr-search-close:hover,
.apr-search-close:focus {
	color: var(--apr-gold-strong);
	background: var(--apr-soft);
}

/* Mobile menu panel */
.apr-mobile-panel {
	border-top: 1px solid var(--apr-line);
	background: #ffffff;
}

.apr-mobile-panel[hidden] {
	display: none;
}

.apr-mobile-menu {
	width: min(100%, var(--apr-shell));
	margin: 0 auto;
	padding: 8px 24px 24px;
	list-style: none;
}

.apr-mobile-menu li {
	border-bottom: 1px solid var(--apr-line);
}

.apr-mobile-menu a {
	display: flex;
	align-items: center;
	min-height: 48px;
	color: var(--apr-navy);
	font-family: var(--apr-sans);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-decoration: none;
	text-transform: uppercase;
}

.apr-mobile-menu a:hover,
.apr-mobile-menu a:focus,
.apr-mobile-menu .current-menu-item > a {
	color: var(--apr-gold-strong);
}

.apr-mobile-menu .sub-menu {
	margin: 0 0 8px;
	padding: 0 0 0 16px;
	list-style: none;
}

.apr-mobile-menu .sub-menu li {
	border-bottom: 0;
}

.apr-mobile-menu .sub-menu a {
	min-height: 38px;
	color: var(--apr-body);
	font-size: 12px;
	font-weight: 600;
	text-transform: none;
}

/* ===================================================================
   Homepage / archive hero (rendered by archive.php)
   =================================================================== */
.home-hero {
	background-image: linear-gradient(rgba(7, 20, 51, 0.72), rgba(7, 20, 51, 0.55)), url('../images/APR-hero.jpg');
	background-size: cover;
	background-position: center;
	color: #ffffff;
	font-family: var(--apr-sans);
}

.home-hero .hero-inner {
	width: min(100%, var(--apr-shell));
	margin: 0 auto;
	padding: 92px 48px 108px;
}

.home-hero h1 {
	max-width: 640px;
	margin: 0 0 16px;
	font-size: clamp(34px, 5vw, 52px);
	font-weight: 800;
	line-height: 1.06;
	letter-spacing: 0.01em;
}

.home-hero p {
	max-width: 560px;
	margin: 0 0 26px;
	color: rgba(255, 255, 255, 0.9);
	font-size: 17px;
	line-height: 1.65;
}

.hero-cta {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 26px;
	color: #ffffff;
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	text-decoration: none;
	background: var(--apr-navy);
	border-radius: 3px;
	transition: background 160ms ease;
}

.hero-cta:hover,
.hero-cta:focus {
	background: var(--apr-gold-strong);
}

/* Navy category strip */
.hero-categories {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	width: min(100%, var(--apr-shell));
	margin: -56px auto 0;
	position: relative;
	z-index: 2;
	background: var(--apr-navy);
	box-shadow: 0 22px 44px rgba(7, 20, 51, 0.28);
	font-family: var(--apr-sans);
}

.hero-categories .category {
	padding: 24px 26px;
	color: #ffffff;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-categories .category:first-child {
	border-left: 0;
}

.hero-categories .category span {
	display: block;
	margin-top: 8px;
	color: rgba(255, 255, 255, 0.68);
	font-size: 12.5px;
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
}

/* ===================================================================
   Footer
   =================================================================== */
.apr-site-footer {
	color: #c2cad8;
	background: var(--apr-navy);
	border-top: 4px solid var(--apr-gold);
	font-family: var(--apr-sans);
}

.blog .apr-site-footer,
.archive .apr-site-footer,
.search .apr-site-footer,
.single .apr-site-footer,
.page .apr-site-footer {
	margin-top: 0;
}

.apr-footer-inner {
	width: min(100%, var(--apr-shell));
	margin: 0 auto;
	padding: 64px 48px 30px;
}

.apr-footer-top {
	display: grid;
	grid-template-columns: minmax(260px, 1fr) minmax(0, 2fr);
	gap: 56px;
	align-items: start;
}

.apr-footer-brand {
	min-width: 0;
}

.apr-footer-logo-link {
	display: inline-block;
	text-decoration: none;
}

.apr-footer-logo {
	display: block;
	width: auto;
	max-width: 230px;
	height: auto;
	/* Render the two-tone logo as a clean white mark on the navy footer. */
	filter: brightness(0) invert(1);
}

.apr-footer-intro {
	max-width: 360px;
	margin: 22px 0 22px;
	color: #a7b1c4;
	font-size: 14px;
	line-height: 1.75;
	font-family: 'Source Sans 3', system-ui, sans-serif;
}

.apr-footer-social {
	display: flex;
	align-items: center;
	gap: 8px;
}

.apr-footer-social .apr-social {
	background: rgba(255, 255, 255, 0.08);
}

.apr-footer-social .apr-social:hover,
.apr-footer-social .apr-social:focus {
	color: var(--apr-navy);
	background: var(--apr-gold);
}

.apr-footer-cols {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 36px 40px;
}

.apr-footer-col {
	min-width: 0;
}

.apr-footer-title,
.apr-footer-cols .widget-title,
.apr-footer-cols .apr-footer-widget-title {
	position: relative;
	margin: 0 0 20px;
	padding-bottom: 12px;
	color: #ffffff;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.apr-footer-title::after,
.apr-footer-cols .widget-title::after,
.apr-footer-cols .apr-footer-widget-title::after {
	position: absolute;
	left: 0;
	bottom: 0;
	width: 34px;
	height: 2px;
	content: "";
	background: var(--apr-gold);
}

.apr-footer-col ul,
.apr-footer-cols .widget ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.apr-footer-col li,
.apr-footer-cols .widget li {
	margin: 0 0 11px;
}

.apr-footer-col a,
.apr-footer-cols .widget a {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	color: #c2cad8;
	font-size: 14px;
	line-height: 1.5;
	text-decoration: none;
	transition: color 160ms ease;
}

.apr-footer-col a i {
	color: var(--apr-gold);
	font-size: 9px;
}

.apr-footer-col a:hover,
.apr-footer-col a:focus,
.apr-footer-cols .widget a:hover,
.apr-footer-cols .widget a:focus {
	color: #ffffff;
}

.apr-footer-col-text {
	margin: 0 0 18px;
	color: #a7b1c4;
	font-size: 14px;
	line-height: 1.7;
	font-family: 'Source Sans 3', system-ui, sans-serif;
}

.apr-footer-cta {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	color: var(--apr-gold);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	text-decoration: none;
	transition: color 160ms ease;
}

.apr-footer-cta:hover,
.apr-footer-cta:focus {
	color: #ffffff;
}

.apr-footer-cols .widget {
	margin: 0;
}

/* Keep any widget type (text, list, menu, block) readable on the navy footer. */
.apr-footer-cols .widget,
.apr-footer-cols .widget p,
.apr-footer-cols .widget li,
.apr-footer-cols .widget td,
.apr-footer-cols .widget label,
.apr-footer-cols .widget h1,
.apr-footer-cols .widget h2,
.apr-footer-cols .widget h3 {
	color: #c2cad8;
}

.apr-footer-cols .widget a {
	color: #c2cad8;
}

.apr-footer-cols .widget a:hover,
.apr-footer-cols .widget a:focus {
	color: #ffffff;
}

.apr-footer-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-top: 48px;
	padding-top: 24px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.apr-footer-copy {
	margin: 0;
	color: #8f9bb0;
	font-size: 13px;
	line-height: 1.6;
	font-family: 'Source Sans 3', system-ui, sans-serif;
}

.apr-footer-top-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #c2cad8;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	text-decoration: none;
	transition: color 160ms ease;
}

.apr-footer-top-link i {
	color: var(--apr-gold);
}

.apr-footer-top-link:hover,
.apr-footer-top-link:focus {
	color: #ffffff;
}

/* ===================================================================
   Responsive
   =================================================================== */
@media (max-width: 1100px) {
	.apr-topbar-inner,
	.apr-header-inner,
	.apr-search-form,
	.apr-footer-inner,
	.home-hero .hero-inner {
		padding-left: 30px;
		padding-right: 30px;
	}

	.apr-menu {
		gap: 0 20px;
	}

	.apr-menu a {
		font-size: 12.5px;
	}
}

@media (max-width: 980px) {
	.apr-primary-nav {
		display: none;
	}

	.apr-menu-toggle {
		display: inline-flex;
	}

	.apr-header-inner {
		gap: 16px;
	}

	.apr-brand {
		flex: 1 1 auto;
	}

	.apr-brand-logo,
	.apr-brand img,
	.apr-brand .custom-logo {
		max-width: 210px;
		height: 52px;
	}

	.apr-footer-top {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.hero-categories {
		grid-template-columns: repeat(2, 1fr);
	}

	.hero-categories .category:nth-child(odd) {
		border-left: 0;
	}
}

@media (max-width: 620px) {
	.apr-topbar-inner {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
		padding-top: 8px;
		padding-bottom: 8px;
	}

	.apr-topbar-inner,
	.apr-header-inner,
	.apr-search-form,
	.apr-footer-inner,
	.home-hero .hero-inner {
		padding-left: 16px;
		padding-right: 16px;
	}

	.apr-search-form {
		flex-wrap: wrap;
	}

	.apr-search-submit {
		flex: 1 1 auto;
	}

	.home-hero .hero-inner {
		padding-top: 64px;
		padding-bottom: 88px;
	}

	.hero-categories {
		grid-template-columns: 1fr;
		margin-top: -40px;
	}

	.hero-categories .category {
		border-left: 0;
		border-top: 1px solid rgba(255, 255, 255, 0.1);
	}

	.hero-categories .category:first-child {
		border-top: 0;
	}

	.apr-footer-cols {
		grid-template-columns: 1fr;
		gap: 30px;
	}

	.apr-footer-bottom {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}
}

/* ===================================================================
   Archive list overrides (kept from the APR prototype)
   =================================================================== */
.apr-archive-section {
	padding: 44px 0 80px;
}

.apr-post-list {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}

.apr-archive-main {
	width: 100%;
}

@media (max-width: 1100px) {
	.apr-post-list {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 768px) {
	.apr-post-list {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 560px) {
	.apr-post-list {
		grid-template-columns: 1fr;
	}
}

/* ===================================================================
   Shared layout: shell, page banner, breadcrumb, section heading
   =================================================================== */
.apr-shell {
	width: min(100%, var(--apr-shell));
	margin: 0 auto;
	padding: 0 48px;
}

.apr-section-heading {
	position: relative;
	margin: 0 0 22px;
	padding-bottom: 14px;
	color: var(--apr-navy);
	font-family: var(--apr-sans);
	font-size: 28px;
	font-weight: 800;
	line-height: 1.2;
}

.apr-section-heading::after {
	position: absolute;
	left: 0;
	bottom: 0;
	width: 54px;
	height: 3px;
	content: "";
	background: var(--apr-gold);
}

.apr-page-banner {
	display: flex;
	align-items: center;
	min-height: 190px;
	color: #ffffff;
	background-color: var(--apr-navy);
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
}

.apr-page-banner .apr-shell {
	padding-top: 40px;
	padding-bottom: 40px;
}

.apr-page-banner-title {
	margin: 0;
	color: #ffffff;
	font-family: var(--apr-sans);
	font-size: clamp(28px, 3.4vw, 38px);
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.apr-page-banner-sub {
	max-width: 640px;
	margin: 12px 0 0;
	color: rgba(255, 255, 255, 0.82);
	font-size: 16px;
	line-height: 1.6;
}

/* Single-post banners keep the article title in sentence case. */
.single .apr-page-banner-title {
	font-size: clamp(24px, 3vw, 34px);
	text-transform: none;
}

.apr-breadcrumb {
	background: var(--apr-soft);
	border-bottom: 1px solid var(--apr-line);
	font-family: var(--apr-sans);
}

.apr-breadcrumb .apr-shell {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	padding-top: 12px;
	padding-bottom: 12px;
}

.apr-breadcrumb a,
.apr-breadcrumb .apr-breadcrumb-current {
	font-size: 13px;
	line-height: 1.4;
	text-decoration: none;
}

.apr-breadcrumb a {
	color: var(--apr-body);
	transition: color 160ms ease;
}

.apr-breadcrumb a:hover,
.apr-breadcrumb a:focus {
	color: var(--apr-gold-strong);
}

.apr-breadcrumb-current {
	color: var(--apr-navy);
	font-weight: 600;
}

.apr-breadcrumb-sep {
	color: #9aa3b2;
	font-size: 14px;
}

/* ===================================================================
   Blog & News listing (categories sidebar + article list)
   =================================================================== */
.apr-blog {
	padding: 56px 0 80px;
	background: #ffffff;
}

.apr-blog-grid {
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	gap: 44px;
	align-items: start;
}

.apr-blog-aside {
	min-width: 0;
}

.apr-blog-main {
	min-width: 0;
}

.apr-widget {
	margin: 0 0 30px;
	padding: 26px 24px;
	background: #ffffff;
	border: 1px solid var(--apr-line);
	border-radius: 6px;
}

.apr-blog-aside {
	position: sticky;
	top: 120px;
}

.apr-widget-title {
	position: relative;
	margin: 0 0 18px;
	padding-bottom: 12px;
	color: var(--apr-navy);
	font-family: var(--apr-sans);
	font-size: 17px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.apr-widget-title::after {
	position: absolute;
	left: 0;
	bottom: 0;
	width: 36px;
	height: 2px;
	content: "";
	background: var(--apr-gold);
}

.apr-cat-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.apr-cat-list li {
	border-bottom: 1px solid var(--apr-line);
}

.apr-cat-list li:last-child {
	border-bottom: 0;
}

.apr-cat-list a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 11px 0;
	color: var(--apr-body);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: color 160ms ease, padding 160ms ease;
}

.apr-cat-list a i {
	color: #c2c8d2;
	font-size: 10px;
	transition: color 160ms ease;
}

.apr-cat-list a:hover,
.apr-cat-list a:focus,
.apr-cat-list a.is-active {
	color: var(--apr-gold-strong);
	padding-left: 6px;
}

.apr-cat-list a.is-active {
	font-weight: 700;
}

.apr-cat-list a:hover i,
.apr-cat-list a:focus i,
.apr-cat-list a.is-active i {
	color: var(--apr-gold-strong);
}

/* Article grid cards (Latest News style) */
.apr-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 24px;
	margin: 0 0 40px;
}

.apr-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: #ffffff;
	border: 1px solid var(--apr-line);
	border-radius: 8px;
	box-shadow: 0 12px 26px rgba(13, 33, 73, 0.05);
}

.apr-card-media {
	position: relative;
	display: block;
	overflow: hidden;
	background: #eef0f4;
}

.apr-card-img {
	display: block;
	width: 100%;
	height: 190px;
	object-fit: cover;
	transition: transform 240ms ease;
}

.apr-card-media:hover .apr-card-img,
.apr-card-media:focus .apr-card-img {
	transform: scale(1.04);
}

.apr-card-badge {
	position: absolute;
	left: 0;
	bottom: 0;
	padding: 6px 12px;
	color: #ffffff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	background: var(--apr-gold-strong);
}

.apr-card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 10px;
	padding: 18px 18px 20px;
}

.apr-card-title {
	margin: 0;
	font-family: var(--apr-sans);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.35;
}

.apr-card-title a {
	color: var(--apr-navy);
	text-decoration: none;
}

.apr-card-title a:hover,
.apr-card-title a:focus {
	color: var(--apr-gold-strong);
}

.apr-card-date {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-top: auto;
	color: #8a92a0;
	font-size: 13px;
}

.apr-card-date i {
	color: var(--apr-gold-strong);
	font-size: 12px;
}

/* Article list cards */
.apr-post-list {
	display: grid;
	gap: 24px;
	margin: 0 0 36px;
}

.apr-post-list .apr-post-card-list {
	display: grid;
	grid-template-columns: minmax(200px, 240px) minmax(0, 1fr);
	overflow: hidden;
	background: #ffffff;
	border: 1px solid var(--apr-line);
	border-radius: 6px;
	box-shadow: 0 12px 26px rgba(13, 33, 73, 0.05);
}

.apr-post-list .apr-post-card-media,
.apr-post-list .apr-post-card-image {
	height: 100%;
	min-height: 200px;
}

.apr-post-list .apr-post-card-body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 24px 26px;
}

.apr-post-list .apr-post-meta {
	align-items: center;
	justify-content: flex-start;
	gap: 14px;
	margin-bottom: 12px;
}

.apr-post-list .apr-post-category {
	padding: 5px 11px;
	color: #ffffff;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.06em;
	background: var(--apr-gold-strong);
	border-radius: 3px;
}

.apr-post-list .apr-post-category:hover,
.apr-post-list .apr-post-category:focus {
	background: var(--apr-gold-dark);
	text-decoration: none;
}

.apr-post-list .apr-post-meta time {
	color: #8a92a0;
	font-size: 12.5px;
}

.apr-post-list .apr-post-card-title {
	margin: 0 0 10px;
	color: var(--apr-navy);
	font-family: var(--apr-sans);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.28;
}

.apr-post-list .apr-post-card-title a {
	color: inherit;
	text-decoration: none;
}

.apr-post-list .apr-post-card-title a:hover,
.apr-post-list .apr-post-card-title a:focus {
	color: var(--apr-gold-strong);
}

.apr-post-list .apr-post-card p {
	margin: 0 0 16px;
	color: var(--apr-body);
	font-size: 14px;
	line-height: 1.7;
}

.apr-post-list .apr-read-more {
	margin-top: auto;
	color: var(--apr-gold-strong);
	font-size: 12px;
}

.apr-post-list .apr-read-more:hover,
.apr-post-list .apr-read-more:focus {
	color: var(--apr-gold-dark);
}

/* ===================================================================
   Single post
   =================================================================== */
.apr-post {
	padding: 56px 0 80px;
	background: #ffffff;
}

.apr-post-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 48px;
	align-items: start;
}

.apr-post-article {
	min-width: 0;
}

.apr-post-featured {
	margin: 0 0 26px;
	overflow: hidden;
	border-radius: 8px;
}

.apr-post-featured img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.apr-post-title {
	margin: 0 0 16px;
	color: var(--apr-navy);
	font-family: var(--apr-sans);
	font-size: clamp(26px, 3.4vw, 34px);
	font-weight: 800;
	line-height: 1.18;
}

.apr-post-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px 20px;
	margin: 0 0 26px;
	padding: 0 0 22px;
	border-bottom: 1px solid var(--apr-line);
}

.apr-post-cat {
	padding: 6px 13px;
	color: #ffffff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	text-decoration: none;
	background: var(--apr-gold-strong);
	border-radius: 3px;
}

.apr-post-cat:hover,
.apr-post-cat:focus {
	background: var(--apr-gold-dark);
}

.apr-post-meta-item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #7a828f;
	font-size: 13.5px;
}

.apr-post-meta-item i {
	color: var(--apr-gold-strong);
	font-size: 13px;
}

.apr-post-content {
	color: #333a44;
	font-size: 16px;
	line-height: 1.85;
}

.apr-post-content > *:first-child {
	margin-top: 0;
}

.apr-post-content p,
.apr-post-content ul,
.apr-post-content ol {
	margin: 0 0 22px;
}

.apr-post-content h2,
.apr-post-content h3,
.apr-post-content h4 {
	margin: 34px 0 14px;
	color: var(--apr-navy);
	font-family: var(--apr-sans);
	font-weight: 800;
	line-height: 1.25;
}

.apr-post-content h2 {
	font-size: 26px;
}

.apr-post-content h3 {
	font-size: 21px;
}

.apr-post-content ul,
.apr-post-content ol {
	padding-left: 20px;
}

.apr-post-content ul li,
.apr-post-content ol li {
	margin: 0 0 10px;
	padding-left: 6px;
}

.apr-post-content ul li::marker {
	color: var(--apr-gold-strong);
}

.apr-post-content img {
	max-width: 100%;
	height: auto;
	border-radius: 6px;
}

.apr-post-content blockquote {
	margin: 28px 0;
	padding: 6px 0 6px 22px;
	color: var(--apr-navy);
	font-size: 20px;
	font-weight: 600;
	line-height: 1.55;
	border-left: 3px solid var(--apr-gold);
}

.apr-post-content a {
	color: var(--apr-gold-strong);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.apr-post-tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 30px 0 0;
}

.apr-post-tags-label {
	color: var(--apr-navy);
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.apr-post-tags a {
	display: inline-flex;
	padding: 6px 12px;
	color: var(--apr-navy);
	font-size: 12px;
	text-decoration: none;
	background: var(--apr-soft);
	border: 1px solid var(--apr-line);
	border-radius: 3px;
	transition: color 160ms ease, background 160ms ease;
}

.apr-post-tags a:hover,
.apr-post-tags a:focus {
	color: #ffffff;
	background: var(--apr-gold-strong);
	border-color: var(--apr-gold-strong);
}

.apr-share {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 30px 0 0;
	padding: 22px 0 0;
	border-top: 1px solid var(--apr-line);
}

.apr-share-label {
	color: var(--apr-navy);
	font-size: 14px;
	font-weight: 700;
}

.apr-share-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	color: #ffffff;
	background: var(--apr-navy);
	border-radius: 50%;
	text-decoration: none;
	transition: background 160ms ease, transform 160ms ease;
}

.apr-share-link:hover,
.apr-share-link:focus {
	background: var(--apr-gold-strong);
	transform: translateY(-2px);
}

.apr-post-nav {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
	margin: 40px 0 0;
	padding-top: 24px;
	border-top: 1px solid var(--apr-line);
}

.apr-post-nav-next {
	text-align: right;
}

.apr-post-nav a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--apr-navy);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;
	text-decoration: none;
	transition: color 160ms ease;
}

.apr-post-nav-next a {
	justify-content: flex-end;
}

.apr-post-nav a:hover,
.apr-post-nav a:focus {
	color: var(--apr-gold-strong);
}

.apr-post-nav a i {
	color: var(--apr-gold-strong);
}

/* Single-post sidebar widgets */
.apr-post-aside {
	position: sticky;
	top: 120px;
	min-width: 0;
}

.apr-post-aside .apr-widget {
	margin-bottom: 26px;
}

.apr-widget-search {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 48px;
}

.apr-widget-search input[type="search"] {
	min-width: 0;
	height: 48px;
	padding: 0 14px;
	color: var(--apr-ink);
	font: inherit;
	font-size: 14px;
	background: #ffffff;
	border: 1px solid var(--apr-line);
	border-right: 0;
	border-radius: 4px 0 0 4px;
}

.apr-widget-search input[type="search"]:focus {
	outline: 0;
	border-color: var(--apr-gold);
}

.apr-widget-search button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 48px;
	color: #ffffff;
	background: var(--apr-navy);
	border: 0;
	border-radius: 0 4px 4px 0;
	cursor: pointer;
	transition: background 160ms ease;
}

.apr-widget-search button:hover,
.apr-widget-search button:focus {
	background: var(--apr-gold-strong);
}

.apr-latest-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.apr-latest-list li {
	display: grid;
	grid-template-columns: 78px minmax(0, 1fr);
	gap: 14px;
	padding: 14px 0;
	border-bottom: 1px solid var(--apr-line);
}

.apr-latest-list li:first-child {
	padding-top: 0;
}

.apr-latest-list li:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.apr-latest-media {
	display: block;
	overflow: hidden;
	border-radius: 4px;
	background: #eef0f4;
}

.apr-latest-thumb {
	display: block;
	width: 78px;
	height: 62px;
	object-fit: cover;
}

.apr-latest-body {
	min-width: 0;
}

.apr-latest-title {
	display: block;
	margin: 0 0 6px;
	color: var(--apr-navy);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.35;
	text-decoration: none;
}

.apr-latest-title:hover,
.apr-latest-title:focus {
	color: var(--apr-gold-strong);
}

.apr-latest-date {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #8a92a0;
	font-size: 12px;
}

.apr-latest-date i {
	color: var(--apr-gold-strong);
	font-size: 11px;
}

/* Related articles */
.apr-related {
	padding: 0 0 80px;
	background: #ffffff;
}

.apr-related-title {
	position: relative;
	margin: 0 0 26px;
	padding-bottom: 14px;
	color: var(--apr-navy);
	font-family: var(--apr-sans);
	font-size: 24px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.apr-related-title::after {
	position: absolute;
	left: 0;
	bottom: 0;
	width: 48px;
	height: 3px;
	content: "";
	background: var(--apr-gold);
}

.apr-related-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 26px;
}

/* ===================================================================
   About page
   =================================================================== */
.apr-about {
	padding: 64px 0;
	background: #ffffff;
}

.apr-about-intro {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
	gap: 52px;
	align-items: center;
}

.apr-about-media img {
	display: block;
	width: 100%;
	height: 100%;
	max-height: 440px;
	object-fit: cover;
	border-radius: 8px;
}

.apr-about-copy p {
	margin: 0 0 16px;
	color: var(--apr-body);
	font-size: 16px;
	line-height: 1.8;
}

.apr-value-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 26px;
	margin-top: 34px;
}

.apr-value-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	margin-bottom: 14px;
	color: var(--apr-gold-strong);
	font-size: 20px;
	background: rgba(184, 135, 62, 0.12);
	border-radius: 50%;
}

.apr-value-title {
	margin: 0 0 8px;
	color: var(--apr-navy);
	font-family: var(--apr-sans);
	font-size: 17px;
	font-weight: 800;
}

.apr-value-text {
	margin: 0;
	color: var(--apr-body);
	font-size: 14px;
	line-height: 1.65;
}

.apr-stats {
	padding: 52px 0;
	color: #ffffff;
	background: var(--apr-navy);
}

.apr-stats-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 30px;
}

.apr-stat {
	text-align: center;
}

.apr-stat-number {
	display: block;
	color: var(--apr-gold);
	font-family: var(--apr-sans);
	font-size: 44px;
	font-weight: 800;
	line-height: 1;
}

.apr-stat-label {
	display: block;
	margin-top: 10px;
	color: rgba(255, 255, 255, 0.82);
	font-size: 14px;
	letter-spacing: 0.02em;
}

/* ===================================================================
   Contact page
   =================================================================== */
.apr-contact {
	padding: 64px 0 0;
	background: #ffffff;
}

.apr-contact-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
	gap: 52px;
	align-items: start;
	margin-bottom: 64px;
}

.apr-contact-list {
	margin: 8px 0 0;
	padding: 0;
	list-style: none;
}

.apr-contact-item {
	display: grid;
	grid-template-columns: 46px minmax(0, 1fr);
	gap: 16px;
	align-items: start;
	margin: 0 0 26px;
}

.apr-contact-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	color: var(--apr-gold-strong);
	font-size: 17px;
	background: rgba(184, 135, 62, 0.12);
	border-radius: 50%;
}

.apr-contact-label {
	display: block;
	margin-bottom: 4px;
	color: var(--apr-navy);
	font-size: 15px;
	font-weight: 700;
}

.apr-contact-value {
	display: block;
	color: var(--apr-body);
	font-size: 14.5px;
	line-height: 1.6;
}

.apr-contact-value a {
	color: var(--apr-body);
	text-decoration: none;
}

.apr-contact-value a:hover,
.apr-contact-value a:focus {
	color: var(--apr-gold-strong);
}

.apr-contact-note {
	display: block;
	margin-top: 2px;
	color: #8a92a0;
	font-size: 13px;
}

.apr-contact-follow {
	margin-top: 34px;
}

.apr-contact-follow-title {
	margin: 0 0 14px;
	color: var(--apr-navy);
	font-family: var(--apr-sans);
	font-size: 16px;
	font-weight: 800;
}

.apr-contact-social {
	display: flex;
	gap: 10px;
}

.apr-social-square {
	width: 40px;
	height: 40px;
	color: #ffffff;
	background: var(--apr-navy);
	border-radius: 8px;
}

.apr-social-square:hover,
.apr-social-square:focus {
	color: var(--apr-navy);
	background: var(--apr-gold);
}

/* Contact form card */
.apr-contact-form-card {
	padding: 34px;
	background: #ffffff;
	border: 1px solid var(--apr-line);
	border-radius: 10px;
	box-shadow: 0 20px 44px rgba(13, 33, 73, 0.08);
}

.apr-contact-form-title {
	margin: 0 0 22px;
	color: var(--apr-navy);
	font-family: var(--apr-sans);
	font-size: 22px;
	font-weight: 800;
}

.apr-contact-form .apr-form-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.apr-form-field {
	margin: 0 0 18px;
}

.apr-form-field label {
	display: block;
	margin: 0 0 7px;
	color: var(--apr-navy);
	font-size: 13px;
	font-weight: 600;
}

.apr-form-field input,
.apr-form-field textarea {
	display: block;
	width: 100%;
	color: var(--apr-ink);
	font: inherit;
	font-size: 14px;
	background: #ffffff;
	border: 1px solid var(--apr-line);
	border-radius: 6px;
	transition: border-color 160ms ease, box-shadow 160ms ease;
}

.apr-form-field input {
	height: 50px;
	padding: 0 15px;
}

.apr-form-field textarea {
	min-height: 150px;
	padding: 13px 15px;
	resize: vertical;
}

.apr-form-field input::placeholder,
.apr-form-field textarea::placeholder {
	color: #9aa3b2;
}

.apr-form-field input:focus,
.apr-form-field textarea:focus {
	outline: 0;
	border-color: var(--apr-gold);
	box-shadow: 0 0 0 3px rgba(193, 154, 77, 0.16);
}

.apr-form-submit,
.apr-contact-form-card .wpcf7-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: 14px 34px;
	color: #ffffff;
	font-family: var(--apr-sans);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	background: var(--apr-gold-strong);
	border: 0;
	border-radius: 6px;
	cursor: pointer;
	transition: background 160ms ease;
}

.apr-form-submit:hover,
.apr-form-submit:focus,
.apr-contact-form-card .wpcf7-submit:hover,
.apr-contact-form-card .wpcf7-submit:focus {
	background: var(--apr-navy);
}

/* Contact map */
.apr-contact-map {
	position: relative;
	height: 420px;
	background: var(--apr-soft);
}

.apr-contact-map iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	filter: grayscale(0.2);
}

.apr-map-card {
	position: absolute;
	top: 50%;
	left: max(48px, calc((100% - var(--apr-shell)) / 2 + 48px));
	transform: translateY(-50%);
	width: min(320px, calc(100% - 96px));
	padding: 28px 26px;
	color: #ffffff;
	background: var(--apr-navy);
	border-radius: 10px;
	box-shadow: 0 22px 44px rgba(7, 20, 51, 0.32);
}

.apr-map-card-title {
	margin: 0 0 8px;
	color: #ffffff;
	font-family: var(--apr-sans);
	font-size: 20px;
	font-weight: 800;
}

.apr-map-card-text {
	margin: 0 0 16px;
	color: rgba(255, 255, 255, 0.8);
	font-size: 14px;
	line-height: 1.6;
}

.apr-map-card-link {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	color: var(--apr-gold);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	text-decoration: none;
	transition: color 160ms ease;
}

.apr-map-card-link:hover,
.apr-map-card-link:focus {
	color: #ffffff;
}

/* ===================================================================
   Inner-page responsive
   =================================================================== */
@media (max-width: 1100px) {
	.apr-shell {
		padding-left: 30px;
		padding-right: 30px;
	}

	.apr-blog-grid {
		grid-template-columns: 230px minmax(0, 1fr);
		gap: 32px;
	}

	.apr-post-grid {
		grid-template-columns: minmax(0, 1fr) 300px;
		gap: 34px;
	}

	.apr-related-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.apr-blog-grid,
	.apr-post-grid,
	.apr-about-intro,
	.apr-contact-grid {
		grid-template-columns: 1fr;
		gap: 34px;
	}

	.apr-blog-aside,
	.apr-post-aside {
		position: static;
	}

	.apr-value-grid,
	.apr-stats-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px;
	}

	.apr-map-card {
		left: 30px;
		transform: translateY(-50%);
	}
}

@media (max-width: 620px) {
	.apr-shell {
		padding-left: 16px;
		padding-right: 16px;
	}

	.apr-blog,
	.apr-post {
		padding: 40px 0 60px;
	}

	.apr-post-list .apr-post-card-list {
		grid-template-columns: 1fr;
	}

	.apr-post-list .apr-post-card-media,
	.apr-post-list .apr-post-card-image {
		min-height: 200px;
	}

	.apr-contact-form .apr-form-row,
	.apr-related-grid {
		grid-template-columns: 1fr;
	}

	.apr-post-nav {
		grid-template-columns: 1fr;
	}

	.apr-post-nav-next,
	.apr-post-nav-next a {
		text-align: left;
		justify-content: flex-start;
	}

	.apr-value-grid,
	.apr-stats-grid {
		grid-template-columns: 1fr;
	}

	.apr-about,
	.apr-contact {
		padding-top: 44px;
	}

	.apr-about {
		padding-bottom: 44px;
	}

	.apr-map-card {
		position: static;
		width: 100%;
		transform: none;
		border-radius: 0;
	}

	.apr-contact-map {
		height: auto;
	}

	.apr-contact-map iframe {
		height: 300px;
	}
}
