/* -------------------------------------------------------------------------
   Inner pages / blog / 404 — uses brand tokens from homepage.css
   ------------------------------------------------------------------------- */

/* Sticky header sits over content — pad main on non-home templates */
.raban-main {
	padding: 2.5rem 0 4rem;
	min-height: 50vh;
	position: relative;
	z-index: 1;
}

/* When header is sticky/transparent, give page titles breathing room */
body.raban-theme:not(.raban-home) .raban-header {
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(16px) saturate(160%);
	-webkit-backdrop-filter: blur(16px) saturate(160%);
	border-bottom: 1px solid var(--raban-border, #e8eef4);
	box-shadow: 0 8px 30px rgba(17, 29, 79, 0.06);
}

.raban-entry__content h1,
.raban-entry__content h2,
.raban-entry__content h3,
.raban-entry__content h4,
.raban-entry__title {
	font-family: var(--raban-font-heading, Manrope, system-ui, sans-serif);
	color: var(--raban-navy, #111d4f);
	font-weight: 800;
	letter-spacing: -0.01em;
	line-height: 1.2;
}

.raban-entry__content p {
	margin: 0 0 1.1em;
	color: var(--raban-text, #1b2238);
}

.raban-entry__content ul,
.raban-entry__content ol {
	margin: 0 0 1.1em;
	padding-left: 1.35em;
}

.raban-entry__content a {
	color: var(--raban-blue, #1f68d8);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.raban-entry__content a:hover {
	color: var(--raban-navy, #111d4f);
}

.raban-container--narrow {
	max-width: 760px;
}

.raban-entry__header,
.raban-archive__header {
	margin-bottom: 1.75rem;
}

.raban-entry__title {
	font-family: Manrope, system-ui, sans-serif;
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	line-height: 1.2;
	color: var(--raban-navy, #111d4f);
	margin: 0 0 0.5rem;
}

.raban-entry__meta {
	color: var(--raban-slate, #64748b);
	font-size: 0.925rem;
	margin: 0;
}

.raban-entry__thumb {
	margin: 0 0 1.75rem;
	border-radius: 16px;
	overflow: hidden;
}

.raban-entry__thumb img {
	display: block;
	width: 100%;
	height: auto;
}

.raban-entry__content {
	font-size: 1.05rem;
	line-height: 1.75;
	color: var(--raban-ink, #0f172a);
}

.raban-entry__content > *:first-child {
	margin-top: 0;
}

.raban-entry__content a {
	color: var(--raban-blue, #1f68d8);
}

.raban-archive__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1.5rem;
}

.raban-card {
	background: #fff;
	border: 1px solid color-mix(in srgb, var(--raban-navy, #111d4f) 8%, transparent);
	border-radius: 16px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.raban-card__media img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.raban-card__body {
	padding: 1.25rem 1.35rem 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	flex: 1;
}

.raban-card__title {
	font-family: Manrope, system-ui, sans-serif;
	font-size: 1.15rem;
	margin: 0;
	line-height: 1.35;
}

.raban-card__title a {
	color: inherit;
	text-decoration: none;
}

.raban-card__title a:hover {
	color: var(--raban-blue, #1f68d8);
}

.raban-card__excerpt {
	font-size: 0.95rem;
	color: var(--raban-slate, #64748b);
	flex: 1;
}

.raban-card__excerpt p {
	margin: 0;
}

.raban-404,
.raban-empty {
	text-align: left;
	padding: 1rem 0 2rem;
}

.raban-404 p,
.raban-empty p {
	color: var(--raban-slate, #64748b);
	font-size: 1.05rem;
	max-width: 40rem;
}

.raban-page-links {
	margin-top: 2rem;
}

/* Search form */
.raban-theme .search-form {
	display: flex;
	gap: 0.5rem;
	max-width: 28rem;
}

.raban-theme .search-form input[type="search"] {
	flex: 1;
	border: 1px solid color-mix(in srgb, var(--raban-navy, #111d4f) 15%, transparent);
	border-radius: 999px;
	padding: 0.75rem 1.1rem;
	font: inherit;
}

.raban-theme .search-form input[type="submit"] {
	border: 0;
	border-radius: 999px;
	background: var(--raban-blue, #1f68d8);
	color: #fff;
	padding: 0.75rem 1.25rem;
	font: inherit;
	cursor: pointer;
}

/* Pagination */
.raban-theme .navigation.pagination {
	margin-top: 2.5rem;
}

.raban-theme .navigation.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.raban-theme .navigation.pagination a,
.raban-theme .navigation.pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	height: 2.5rem;
	padding: 0 0.75rem;
	border-radius: 999px;
	border: 1px solid color-mix(in srgb, var(--raban-navy, #111d4f) 12%, transparent);
	text-decoration: none;
	color: var(--raban-navy, #111d4f);
}

.raban-theme .navigation.pagination .current {
	background: var(--raban-navy, #111d4f);
	color: #fff;
	border-color: transparent;
}

/* Custom logo from Site Identity */
.raban-logo .custom-logo-link {
	display: inline-flex;
	align-items: center;
	line-height: 0;
}

.raban-logo .custom-logo {
	height: 65px;
	width: auto;
	max-width: 200px;
	object-fit: contain;
}

@media (max-width: 1024px) {
	.raban-logo .custom-logo {
		height: 48px;
		max-width: 168px;
	}
}

@media (max-width: 360px) {
	.raban-logo .custom-logo {
		height: 42px;
		max-width: 148px;
	}
}

/* CTA Button widget / shortcode */
.raban-cta-widget {
	display: flex;
	width: 100%;
}

.raban-cta-widget--left {
	justify-content: flex-start;
}

.raban-cta-widget--center {
	justify-content: center;
}

.raban-cta-widget--right {
	justify-content: flex-end;
}

/* Header right CTA widget area */
.raban-header__actions .widget-header-cta,
.raban-header__actions .widget_raban_cta_button,
.raban-header__actions .widget_block {
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
}

.raban-header__actions .raban-cta-widget {
	width: auto;
}

.raban-header__actions .widget-title {
	display: none;
}

/* Core Button block → brand gradient CTA (matches design) */
.raban-header__actions .wp-block-buttons {
	display: flex;
	align-items: center;
	gap: 0;
	margin: 0;
}

.raban-header__actions .wp-block-button {
	margin: 0;
}

.raban-header__actions .wp-block-button__link,
.raban-header__actions .wp-element-button,
.widget-header-cta .wp-block-button__link {
	--raban-btn-x: 0px;
	--raban-btn-y: 0px;
	position: relative !important;
	z-index: 1;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0 !important;
	padding: 11px 22px !important;
	border: none !important;
	border-radius: 999px !important;
	background: linear-gradient(120deg, #1a5fd0 0%, #1f68d8 28%, #6c3dbd 72%, #7b4ad0 100%) !important;
	background-size: 220% 100% !important;
	background-position: 0% 0% !important;
	background-color: transparent !important;
	color: #fff !important;
	font-family: var(--raban-font-heading, Manrope, system-ui, sans-serif) !important;
	font-size: 0.85rem !important;
	font-weight: 700 !important;
	letter-spacing: 0.01em !important;
	line-height: 1.2 !important;
	text-decoration: none !important;
	text-align: center !important;
	white-space: nowrap !important;
	box-shadow:
		0 10px 28px rgba(31, 104, 216, 0.28),
		0 0 0 0 rgba(31, 104, 216, 0.4) !important;
	animation: raban-btn-pulse 2.4s cubic-bezier(0.22, 1, 0.36, 1) infinite;
	transition: box-shadow 0.35s ease, background-position 0.6s ease, filter 0.35s !important;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}

.raban-header__actions .wp-block-button__link::before,
.widget-header-cta .wp-block-button__link::before {
	content: '';
	position: absolute;
	top: -18px;
	left: -18px;
	right: -18px;
	bottom: -18px;
	z-index: -1;
	border-radius: inherit;
	background: inherit;
	opacity: 0.45;
	transform: scale3d(0.8, 0.5, 1);
	pointer-events: none;
}

.raban-header__actions .wp-block-button__link:hover,
.raban-header__actions .wp-block-button__link:focus,
.raban-header__actions .wp-block-button__link.is-moema,
.widget-header-cta .wp-block-button__link:hover,
.widget-header-cta .wp-block-button__link:focus,
.widget-header-cta .wp-block-button__link.is-moema {
	background-position: 100% 0% !important;
	color: #fff !important;
	animation: raban-moema-1 0.6s forwards;
	filter: brightness(1.05);
	box-shadow:
		0 22px 48px rgba(108, 61, 189, 0.36),
		0 0 0 4px rgba(31, 104, 216, 0.12) !important;
}

.raban-header__actions .wp-block-button__link:hover::before,
.raban-header__actions .wp-block-button__link.is-moema::before,
.widget-header-cta .wp-block-button__link:hover::before,
.widget-header-cta .wp-block-button__link.is-moema::before {
	animation: raban-moema-2 0.6s 0.25s forwards;
}

.raban-header__actions .wp-block-button.is-style-outline .wp-block-button__link {
	border: none !important;
}

/* Keep in sync with homepage.css nav/hamburger breakpoint */
@media (max-width: 1024px) {
	.raban-header__actions .widget-header-cta,
	.raban-header__actions .widget_raban_cta_button,
	.raban-header__actions .widget_block,
	.raban-header__actions .raban-btn,
	.raban-header__actions .wp-block-buttons {
		display: none !important;
	}
}

.widget_raban_cta_button .widget-title {
	font-family: var(--raban-font-heading, Manrope, system-ui, sans-serif);
	font-size: 1rem;
	font-weight: 800;
	color: var(--raban-navy, #111d4f);
	margin: 0 0 0.75rem;
}

/* -------------------------------------------------------------------------
   Footer Widgets area (above light footer)
   ------------------------------------------------------------------------- */
.raban-footer-widgets {
	background: transparent;
	border-top: none;
	position: relative;
	z-index: 3;
}

.raban-footer-widgets .widget {
	margin: 0;
}

.raban-footer-widgets .widget_block .wp-block-image {
	margin: 0;
}

.raban-footer-widgets .widget_block .wp-block-image img {
	display: block;
	width: 100%;
	height: auto;
}

/* Footer CTA Banner widget */
.raban-footer-cta {
	padding: 56px 0;
}

.raban-footer-cta__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	gap: 40px;
	align-items: center;
}

.raban-footer-cta__eyebrow {
	display: inline-block;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #8b95a8;
	margin-bottom: 12px;
}

.raban-footer-cta__title {
	font-family: var(--raban-font-heading, Manrope, system-ui, sans-serif);
	font-size: clamp(2rem, 3.5vw, 2.75rem);
	font-weight: 800;
	line-height: 1.15;
	color: var(--raban-navy, #111d4f);
	margin: 0 0 14px;
	letter-spacing: -0.02em;
}

.raban-footer-cta__accent {
	color: var(--raban-blue, #1f68d8);
}

.raban-footer-cta__desc {
	margin: 0 0 28px;
	max-width: 34rem;
	font-size: 1.05rem;
	line-height: 1.65;
	color: var(--raban-text-muted, #5b6478);
}

.raban-footer-cta__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 18px 28px;
}

.raban-footer-cta__btn {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 14px 22px 14px 26px;
	border-radius: 999px;
	background: linear-gradient(120deg, var(--raban-blue, #1f68d8), var(--raban-purple, #6c3dbd));
	color: #fff !important;
	font-family: var(--raban-font-heading, Manrope, system-ui, sans-serif);
	font-weight: 700;
	font-size: 0.88rem;
	letter-spacing: 0.04em;
	text-decoration: none !important;
	text-transform: uppercase;
	box-shadow: 0 16px 36px rgba(31, 104, 216, 0.28);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.raban-footer-cta__btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 22px 44px rgba(108, 61, 189, 0.32);
	color: #fff !important;
}

.raban-footer-cta__btn-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.22);
}

.raban-footer-cta__btn-icon .raban-icon {
	width: 14px;
	height: 14px;
}

.raban-footer-cta__link {
	color: var(--raban-blue, #1f68d8) !important;
	font-weight: 600;
	text-decoration: underline !important;
	text-underline-offset: 3px;
}

.raban-footer-cta__link:hover {
	color: var(--raban-navy, #111d4f) !important;
}

.raban-footer-cta__media {
	display: flex;
	justify-content: center;
}

.raban-footer-cta__img {
	display: block;
	width: 100%;
	max-width: 560px;
	height: auto;
	border-radius: 20px;
}

@media (max-width: 900px) {
	.raban-footer-cta__grid {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.raban-footer-cta__media {
		order: -1;
	}
}

@media (max-width: 600px) {
	.raban-footer-cta {
		padding: 40px 0;
	}

	.raban-footer-cta__actions {
		flex-direction: column;
		align-items: flex-start;
	}
}
