/* =============================================================
   DrWatt 2026 — custom styles (static HTML frames)
   Font: DM Sans | Brand colours below
   ============================================================= */

:root {
	--dw-navy:        #042C42;  /* primary dark */
	--dw-navy-2:      #094465;  /* secondary blue */
	--dw-teal:        #48B6B7;  /* accent teal */
	--dw-gold:        #D8B06D;  /* accent gold */
	--dw-ink:         #02111a;  /* body/nav text */
	--dw-body:        #4a5560;  /* muted body copy */
}

body {
	font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	color: var(--dw-ink);
	font-size: 1rem;
	line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
	font-family: 'DM Sans', sans-serif;
	color: var(--dw-navy);
	font-weight: 700;
}

a { text-decoration: none; }

/* Brand colour helpers */
.text-navy    { color: var(--dw-navy)   !important; }
.text-navy-2  { color: var(--dw-navy-2) !important; }
.text-teal    { color: var(--dw-teal)   !important; }
.text-gold    { color: var(--dw-gold)   !important; }
.bg-navy      { background-color: var(--dw-navy)   !important; }
.bg-navy-2    { background-color: var(--dw-navy-2) !important; }
.bg-teal      { background-color: var(--dw-teal)   !important; }
.bg-gold      { background-color: var(--dw-gold)   !important; }

/* Gold pill button */
.btn-gold {
	background-color: var(--dw-gold);
	color: #fff;
	border: 0;
	border-radius: 50rem;
	font-weight: 500;
	padding: 0.85rem 2.25rem;
	transition: background-color .2s ease;
}
.btn-gold:hover,
.btn-gold:focus { background-color: #c99e56; color: #fff; }

/* =============================================================
   LAYOUT — container max-widths (override Bootstrap)
   ============================================================= */
@media (min-width: 1600px) {
	.container,
	.container-sm,
	.container-md,
	.container-lg,
	.container-xl,
	.container-xxl { max-width: 1440px; }
}
@media (min-width: 2020px) {
	.container,
	.container-sm,
	.container-md,
	.container-lg,
	.container-xl,
	.container-xxl { max-width: 1820px; }
}
/* More breathing room at the screen edges on small devices */
@media (max-width: 767.98px) {
	.container,
	.container-sm,
	.container-md,
	.container-lg,
	.container-xl,
	.container-xxl,
	.container-fluid {
		padding-left: 1.5rem;
		padding-right: 1.5rem;
	}
}

/* =============================================================
   MASTER HEAD / NAV
   ============================================================= */
.site-header {
	background: #fff;
	padding: 0.5rem 0;
}
.site-header .navbar-brand img { height: 80px; width: auto; }

/* Toggler — no border or focus ring */
.navbar-toggler,
.navbar-toggler:focus,
.navbar-toggler:active {
	border: 0;
	outline: 0;
	box-shadow: none;
}

.main-nav .nav-link {
	color: var(--dw-ink);
	font-weight: 400;
	font-size: 1.05rem;
	padding: 0.25rem 0;
	position: relative;
}
.main-nav .nav-item + .nav-item { margin-left: 2rem; }

.main-nav .nav-link.active { font-weight: 500; }
.main-nav .nav-link.active::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: -8px;
	width: 28px;
	height: 4px;
	margin-left: -14px;
	border-radius: 3px;
	background: var(--dw-gold);
}
.main-nav .nav-link:hover { color: var(--dw-navy-2); }

@media (max-width: 1199.98px) {
	/* Collapsed dropdown panel */
	#mainNav {
		margin-top: 1rem;
		padding-top: 0.5rem;
		border-top: 1px solid #e6edf2;
	}
	.main-nav { margin-top: 0 !important; width: 100%; }
	.main-nav .nav-item + .nav-item { margin-left: 0; }

	/* Stacked links with light dividers + comfortable tap targets */
	.main-nav .nav-item { border-bottom: 1px solid #eef2f5; }
	.main-nav .nav-link {
		padding: 0.6rem 0.25rem 0.6rem 0.9rem;
		font-size: 1.1rem;
		border-left: 3px solid transparent;
		border-radius: 0 6px 6px 0;
		transition: color .15s ease, background-color .15s ease, border-color .15s ease;
	}
	.main-nav .nav-link:hover,
	.main-nav .nav-link:focus {
		color: var(--dw-navy-2);
		background: #f5fbff;
	}
	/* Active item — gold accent bar instead of the underline */
	.main-nav .nav-link.active {
		color: var(--dw-navy-2);
		font-weight: 600;
		border-left-color: var(--dw-gold);
		background: #f5fbff;
	}
	.main-nav .nav-link.active::after { display: none; }

	/* Book Consultation — full-width button below the links */
	.main-nav .nav-item:last-child { border-bottom: 0; }
	.main-nav .nav-item:last-child .btn-gold {
		display: block;
		width: 100%;
		text-align: center;
		margin-top: 0.75rem;
	}
}

/* Sticky header on larger screens (>=992px) */
@media (min-width: 992px) {
	.site-header {
		position: sticky;
		top: 0;
		z-index: 1030;
		transition: box-shadow .25s ease;
	}
	.site-header.is-stuck {
		box-shadow: 0 6px 20px rgba(4, 44, 66, 0.10);
	}
}

/* =============================================================
   HERO
   ============================================================= */
.hero {
	position: relative;
	background-color: var(--dw-navy);
	overflow: hidden;
}
.hero-img { display: block; width: 100%; height: auto; }
.hero-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
}
.hero-overlay .container { width: 100%; }

.hero-inner { max-width: 900px; }

.hero-eyebrow {
	color: var(--dw-gold);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	font-size: clamp(0.9rem, 1.1vw, 1.25rem);
	margin-bottom: 1.25rem;
}
.hero-title {
	color: #fff;
	font-weight: 700;
	line-height: 1.05;
	font-size: clamp(2.5rem, 5.4vw, 5.25rem);
	margin-bottom: 1.75rem;
}
.hero-title .teal { color: var(--dw-teal); }

.hero-lead { color: #fff; max-width: 620px; }
.hero-lead .lead-1 { font-size: clamp(1.05rem, 1.4vw, 1.35rem); margin-bottom: 1rem; }
.hero-lead .lead-2 { font-size: clamp(1rem, 1.15vw, 1.15rem); line-height: 1.5; opacity: 0.95; }

/* Hero WYSIWYG content (single editable block) */
.hero-content { color: #fff; max-width: 720px; }
.hero-content > *:first-child { margin-top: 0; }
.hero-content .eyebrow { margin-bottom: 1.25rem; }
.hero-content h1,
.hero-content h2 {
	color: #fff;
	font-weight: 700;
	line-height: 1.05;
	font-size: clamp(2.5rem, 5.4vw, 5.25rem);
	margin-bottom: 1.75rem;
}
.hero-content h1 strong, .hero-content h1 b,
.hero-content h2 strong, .hero-content h2 b { color: var(--dw-teal); font-weight: 700; }
.hero-content p:not(.hero-eyebrow) { color: #fff; font-size: clamp(1rem, 1.15vw, 1.15rem); line-height: 1.5; }
.hero-content p:last-child { margin-bottom: 0; }

.hero .btn-gold { margin-top: 2.25rem; font-size: 1.1rem; padding: 1rem 2.75rem; }

@media (max-width: 991.98px) {
	.hero-overlay { position: static; display: block; }
	.hero-inner { padding: 2.5rem 0; }
}

/* =============================================================
   SHARED — section headings / eyebrow / rounded media
   ============================================================= */
.eyebrow {
	color: var(--dw-gold);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-size: 1rem;
	margin-bottom: 0.75rem;
}
.section-title {
	color: var(--dw-navy-2);
	font-weight: 600;
	line-height: 1.1;
	font-size: clamp(2rem, 3.4vw, 3.25rem);
}
.section-title .teal { color: var(--dw-teal); }

.rounded-media {
	border-radius: 2.5rem;
	border: 1px solid #d3d3d3;
	overflow: hidden;
}
.rounded-media img { width: 100%; height: 100%; object-fit: cover; }

/* =============================================================
   SPECIALISED CARE (text + image split)
   ============================================================= */
.section-split { background: #f5fbff; }
.section-split .split-copy { max-width: 640px; }
.section-split .split-copy p:not(.eyebrow) { font-size: 1.1rem; }

/* =============================================================
   ORTHOPAEDIC SERVICES (3 cards in one panel)
   ============================================================= */
.section-services { background: #fafafa; }

.services-panel {
	background: #fff;
	border-radius: 2.5rem;
	box-shadow: -1px 6px 24px rgba(0, 0, 0, 0.08);
	overflow: hidden;
}
.service-card {
	padding: 2.75rem 2.5rem 3rem;
	height: 100%;
}
/* vertical dividers between columns (desktop) */
.services-panel .row > [class*="col-"] + [class*="col-"] .service-card {
	border-left: 1px solid #d3d3d3;
}
.service-card .service-img {
	border-radius: 1.25rem;
	border: 1px solid #d3d3d3;
	overflow: hidden;
	aspect-ratio: 3 / 2;
	margin-bottom: 1.75rem;
}
.service-card .service-img img { width: 100%; height: 100%; object-fit: cover; }
.service-card h3 {
	color: var(--dw-navy-2);
	font-weight: 600;
	font-size: 1.5rem;
	margin-bottom: 1rem;
}
.service-card p { color: #4b4b4b; font-size: 1.05rem; margin-bottom: 1.75rem; }

@media (max-width: 991.98px) {
	.services-panel .row > [class*="col-"] + [class*="col-"] .service-card {
		border-left: 0;
		border-top: 1px solid #d3d3d3;
	}
}

/* =============================================================
   TECHNIQUE BAND (dark navy, image left / text right)
   ============================================================= */
.section-technique { background: var(--dw-navy); }
.section-technique .split-copy { max-width: 640px; }
.section-technique .section-title { color: #fff; }
.section-technique .split-copy p { color: rgba(255, 255, 255, 0.9); font-size: 1.1rem; }

/* =============================================================
   SERVICES CAROUSEL
   ============================================================= */
.section-carousel { background: #f5fbff; }
.carousel-intro { max-width: 1000px; color: #4b4b4b; font-size: 1.1rem; }

.carousel-card {
	position: relative;
	border-radius: 2rem;
	border: 1px solid #d3d3d3;
	overflow: hidden;
}
.carousel-card img {
	width: 100%;
	height: 470px;
	object-fit: cover;
	display: block;
}
.carousel-caption-box {
	position: absolute;
	left: 1.75rem;
	right: 1.75rem;
	bottom: 1.75rem;
	background: #fff;
	border-radius: 1.25rem;
	padding: 1.5rem 1.75rem;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.carousel-caption-box p {
	margin: 0;
	color: var(--dw-navy-2);
	font-weight: 600;
	font-size: 1.35rem;
	line-height: 1.25;
}

/* --- Owl nav arrows (white circular buttons, sit over the sides) --- */
.services-carousel.owl-theme .owl-nav { margin-top: 0; }
.services-carousel.owl-theme .owl-nav [class*="owl-"] {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	margin: 0;
	padding: 0;
	background: transparent;
	line-height: 0;
}
.services-carousel.owl-theme .owl-nav [class*="owl-"]:hover { background: transparent; }
.services-carousel.owl-theme .owl-nav .owl-prev { left: -30px; }
.services-carousel.owl-theme .owl-nav .owl-next { right: -30px; }
.services-carousel.owl-theme .owl-nav img { width: 60px; height: 60px; }

/* --- Owl dots styled as the dash indicator (navy pill active, gold dashes) --- */
.services-carousel.owl-theme .owl-dots { margin-top: 2rem; text-align: center; line-height: 0; }
.services-carousel.owl-theme .owl-dots .owl-dot { display: inline-block; }
.services-carousel.owl-theme .owl-dots .owl-dot span {
	display: block;
	width: 24px;
	height: 9px;
	margin: 0 3px;
	border-radius: 4.5px;
	background: var(--dw-gold);
	transition: width .25s ease, background-color .25s ease;
}
.services-carousel.owl-theme .owl-dots .owl-dot.active span {
	width: 55px;
	background: var(--dw-navy);
}
.services-carousel.owl-theme .owl-dots .owl-dot:focus { outline: 0; }

@media (max-width: 991.98px) {
	.services-carousel.owl-theme .owl-nav .owl-prev { left: 4px; }
	.services-carousel.owl-theme .owl-nav .owl-next { right: 4px; }
	.carousel-card img { height: 400px; }
}

/* =============================================================
   SURGICAL PROCEDURES (dark navy, 8-tile grid)
   ============================================================= */
.section-process { background: var(--dw-navy); }
.section-process .section-title { color: #fff; text-align: center; }

.process-tile {
	background: #fff;
	border-radius: 1.75rem;
	height: 100%;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}
.process-tile .tile-body {
	padding: 1.75rem;
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
}
.process-tile .tile-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
}
.process-tile h3 {
	color: var(--dw-navy-2);
	font-weight: 600;
	font-size: 1.35rem;
	line-height: 1.15;
	margin: 0;
}
.process-tile .tile-num {
	flex-shrink: 0;
	width: 48px;
	height: 48px;
	border: 1px solid var(--dw-teal);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--dw-teal);
	font-weight: 600;
	font-size: 1.15rem;
}
.process-tile .tile-desc {
	color: #4b4b4b;
	font-size: 1rem;
	margin: 1rem 0 0rem;
	max-width: 70%;
}
.process-tile .tile-img {
	overflow: hidden;
	aspect-ratio: 16 / 10;
}
.process-tile .tile-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* =============================================================
   MEET YOUR SURGEON (light-grey split, teal subtitle)
   ============================================================= */
.section-surgeon { background: #fafafa; }
.section-surgeon .split-copy { max-width: 640px; }
.section-surgeon .split-copy p { font-size: 1.1rem; }
.section-surgeon .split-copy p.surgeon-subtitle {
	color: var(--dw-teal);
	font-weight: 600;
	font-size: clamp(1.15rem, 1.5vw, 1.4rem);
	margin-bottom: 1.5rem;
}
.section-surgeon .rounded-media {}

/* =============================================================
   BOOKING CTA BAND (dark, photo right, gradient — hero variant)
   ============================================================= */
.section-booking {
	position: relative;
	background-color: #01121b;
	overflow: hidden;
}
.booking-img { display: block; width: 100%; height: auto; }
.booking-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
}
.booking-overlay .container { width: 100%; }
.section-booking .booking-inner { max-width: 900px; }
.section-booking .booking-title {
	color: #fff;
	font-weight: 700;
	line-height: 1.05;
	font-size: clamp(2.25rem, 4.4vw, 4rem);
	margin-bottom: 1.5rem;
}
.section-booking .booking-title .teal { color: var(--dw-teal); }
.section-booking .booking-lead {
	color: #fff;
	max-width: 640px;
	font-size: clamp(1rem, 1.2vw, 1.2rem);
	opacity: 0.95;
}
.section-booking .btn-gold { margin-top: 2.25rem; font-size: 1.1rem; padding: 1rem 2.75rem; }
@media (max-width:1600px) {
	.process-tile .tile-desc {max-width: 100%;	}
}

@media (max-width: 991.98px) {
	.booking-overlay { position: static; display: block; }
	.booking-img { display: none;}
	.section-booking .booking-inner { padding: 2.5rem 0; }
}

/* =============================================================
   FOOTER
   ============================================================= */
.site-footer .footer-main { background: #f5fbff; }
.site-footer .footer-logo { height: 96px; width: auto; }

/* Link columns — gold dash above each */
.footer-links ul { position: relative; padding-top: 1.5rem; }
.footer-links ul::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 25px;
	height: 4px;
	border-radius: 2px;
	background: var(--dw-gold);
}
.footer-links li + li { margin-top: 0.85rem; }
.footer-links a {
	color: var(--dw-ink);
	font-size: 1.02rem;
}
.footer-links a:hover { color: var(--dw-navy-2); }

/* Social */
.footer-social { color: #313436; font-size: 1.02rem; }
.footer-social a { color: var(--dw-navy); font-size: 1.5rem; line-height: 1; }
.footer-social a:hover { color: var(--dw-teal); }

/* Contact block */
.footer-contact { border-left: 1px solid #d3d3d3; padding-left: 2rem; }
.footer-contact.contact-page {border-left:none; }
.footer-contact .contact-icon {
	flex-shrink: 0;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: var(--dw-gold);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
	margin-right: 1.25rem;
}
.footer-contact .c-label { margin: 0; font-weight: 500; color: var(--dw-ink); font-size: 1.02rem; }
.footer-contact .c-value { margin: 0; color: rgba(2, 17, 26, 0.75); font-size: 1.02rem; }
.footer-contact .c-value a { color: inherit; }
.footer-contact .c-value a:hover { color: var(--dw-navy-2); }
.footer-contact .hours-col { min-width: 110px; }
.footer-contact .hours-divider {
	width: 1px;
	background: #d3d3d3;
	align-self: stretch;
	margin: 0 1.25rem;
}

/* Bottom bar */
.site-footer .footer-bar { background: var(--dw-navy); color: #fff; }
.site-footer .footer-bar a { color: #fff; }
.site-footer .footer-bar .energise-credit img { display: block; }

@media (max-width: 991.98px) {
	.footer-contact { border-left: 0; padding-left: calc(var(--bs-gutter-x) * .5); }
	.footer-contact .contact-icon { width: 40px; height: 40px; }
}

/* =============================================================
   THEME — flexible "split" block modifiers (ACF-driven)
   Base look inherits .section-split (bg #f5fbff). Modifiers vary it.
   ============================================================= */
.section-split.bg-light { background: #fafafa; }
.section-split.is-dark { background: var(--dw-navy); }
.section-split.is-dark .section-title { color: #fff; }
.section-split.is-dark .split-copy p:not(.eyebrow) { color: rgba(255, 255, 255, 0.9); }
.section-split .split-copy p.split-subtitle {
	color: var(--dw-teal);
	font-weight: 600;
	font-size: clamp(1.15rem, 1.5vw, 1.4rem);
	margin-bottom: 1.5rem;
}

/* =============================================================
   THEME — WYSIWYG content blocks (ACF single-editor modules)
   Buttons via "Button" format (.btn.btn-gold); teal accent via
   bold text inside headings, or the "Teal text" format.
   ============================================================= */

/* Teal accent from bold text inside headings (all content wrappers) */
.hero-content :is(h1,h2,h3) :is(strong,b),
.split-copy :is(h1,h2,h3) :is(strong,b),
.section-head :is(h1,h2,h3) :is(strong,b),
.service-card .rte :is(h2,h3,h4) :is(strong,b),
.booking-content :is(h1,h2,h3) :is(strong,b) { color: var(--dw-teal); font-weight: 700; }

/* Centred section header (services / carousel / process) */
.section-head {
	text-align: center;
	max-width: 960px;
	margin: 0 auto 2.5rem;
}
.section-head :last-child { margin-bottom: 0; }
.section-head h1, .section-head h2 {
	color: var(--dw-navy-2);
	font-weight: 600;
	line-height: 1.1;
	font-size: clamp(2rem, 3.4vw, 3.25rem);
	margin-bottom: 0;
}
.section-head p:not(.eyebrow) { color: #4b4b4b; font-size: 1.1rem; margin: 1rem auto 0; }
.section-process .section-head h1,
.section-process .section-head h2 { color: #fff; }

/* Split copy headings/paragraphs (Specialised Care / Technique / Surgeon) */
.split-copy h1, .split-copy h2 {
	color: var(--dw-navy-2);
	font-weight: 600;
	line-height: 1.1;
	font-size: clamp(2rem, 3.4vw, 3.25rem);
	margin-bottom: 1.5rem;
}
.split-copy p:last-child { margin-bottom: 0; }
.section-split.is-dark .split-copy h1,
.section-split.is-dark .split-copy h2 { color: #fff; }

/* Service card rich text */
.service-card .rte h2, .service-card .rte h3, .service-card .rte h4 {
	color: var(--dw-navy-2);
	font-weight: 600;
	font-size: 1.5rem;
	margin-bottom: 1rem;
}
.service-card .rte p { color: #4b4b4b; font-size: 1.05rem; margin-bottom: 1.75rem; }
.service-card .rte > :last-child { margin-bottom: 0; }

/* Booking CTA content */
.booking-content { color: #fff; }
.booking-content > :first-child { margin-top: 0; }
.booking-content .eyebrow { margin-bottom: 1.25rem; }
.booking-content h1, .booking-content h2 {
	color: #fff;
	font-weight: 700;
	line-height: 1.05;
	font-size: clamp(2.25rem, 4.4vw, 4rem);
	margin-bottom: 1.5rem;
}
.booking-content p:not(.eyebrow) { color: #fff; opacity: 0.95; max-width: 640px; font-size: clamp(1rem, 1.2vw, 1.2rem); }
.booking-content .btn-gold { margin-top: 2.25rem; }

/* Process footer (centred content / button below the grid) */
.process-footer { text-align: center; margin-top: 3rem; }
.process-footer > :last-child { margin-bottom: 0; }

/* =============================================================
   INNER-PAGE MODULES
   ============================================================= */

/* Generic rich text (WYSIWYG) — used by inner-page modules */
.rte > :first-child { margin-top: 0; }
.rte > :last-child { margin-bottom: 0; }
.rte :is(h1,h2,h3,h4,h5,h6) { color: var(--dw-navy-2); font-weight: 600; line-height: 1.15; }
.rte :is(h1,h2,h3,h4,h5,h6) :is(strong,b) { color: var(--dw-teal); font-weight: 700; }
.rte h1 { font-size: clamp(2rem, 4vw, 3.25rem); margin-bottom: 1rem; }
.rte h2 { font-size: clamp(1.6rem, 2.6vw, 2.25rem); margin-bottom: 1rem; }
.rte h3 { font-size: 1.4rem; margin-bottom: 0.75rem; }
.rte p, .rte ul, .rte ol { color: #4b4b4b; font-size: 1.05rem; margin-bottom: 1rem; }
.rte ul, .rte ol { padding-left: 1.25rem; }
.rte a:not(.btn) { color: var(--dw-navy-2); text-decoration: underline; }
.rte .btn-gold { margin-top: 0.5rem; }

/* Inline media inserted via the editor's Add Media button */
.rte img { max-width: 100%; height: auto; border-radius: 0.5rem; }
.rte figure { margin: 0 0 1rem; }
.rte figure img { display: block; }
.rte figcaption, .rte .wp-caption-text { font-size: 0.9rem; color: #6b7680; margin-top: 0.4rem; }
.rte .wp-caption { max-width: 100%; }
/* Clear floated (aligned) media so it never overflows its container */
.rte::after,
.hero-content::after,
.split-copy::after,
.booking-content::after { content: ""; display: table; clear: both; }

/* =============================================================
   WordPress media alignment classes
   Large screens: alignleft/right float and wrap text.
   Small screens: all become centred blocks (no wrapping).
   ============================================================= */
.alignnone   { max-width: 100%; height: auto; margin-bottom: 1rem; }
.aligncenter { display: block; margin: 0.5rem auto 1.25rem; max-width: 100%; height: auto; }
.alignright, .alignleft { max-width: 100%; height: auto; }
.wp-caption  { max-width: 100%; }

@media (min-width: 768px) {
	.alignright,
	.wp-caption.alignright { float: right; margin: 0.5rem 0 1rem 1.75rem; max-width: 48%; }
	.alignleft,
	.wp-caption.alignleft  { float: left;  margin: 0.5rem 1.75rem 1rem 0; max-width: 48%; }
}
@media (max-width: 767.98px) {
	.alignright, .alignleft,
	.wp-caption.alignright, .wp-caption.alignleft {
		float: none;
		display: block;
		margin: 0.5rem auto 1.25rem;
		max-width: 100%;
	}
}

/* Inverted (on dark / image backgrounds) */
.rte-invert :is(h1,h2,h3,h4,h5,h6) { color: #fff; }
.rte-invert :is(h1,h2,h3,h4,h5,h6) :is(strong,b) { color: var(--dw-teal); }
.rte-invert p, .rte-invert ul, .rte-invert ol { color: rgba(255, 255, 255, 0.92); }
.rte-invert a:not(.btn) { color: #fff; }

/* Shared image overlays (page hero + text-over-image) */
.ov-none .ph-overlay, .ov-none .ti-overlay { display: none; }
.ph-overlay, .ti-overlay { position: absolute; inset: 0; background: rgba(4, 44, 66, 0.6); }
.ov-light .ph-overlay, .ov-light .ti-overlay { background: rgba(4, 44, 66, 0.35); }
.ov-medium .ph-overlay, .ov-medium .ti-overlay { background: rgba(4, 44, 66, 0.6); }
.ov-dark .ph-overlay, .ov-dark .ti-overlay { background: rgba(4, 44, 66, 0.82); }

/* Inner page hero (title banner) */
.section-page-hero {
	position: relative;
	background: var(--dw-navy) center / cover no-repeat;
	color: #fff;
}
.section-page-hero .container { position: relative; z-index: 1; }

/* Text over background image */
.section-text-image {
	position: relative;
	background: var(--dw-navy) center / cover no-repeat;
	color: #fff;
	display: flex;
	align-items: center;
}
.section-text-image .container { position: relative; z-index: 1; padding-top: 3rem; padding-bottom: 3rem; }
.section-text-image.h-small  { min-height: 320px; }
.section-text-image.h-medium { min-height: 460px; }
.section-text-image.h-large  { min-height: 600px; }
.section-text-image.text-right .rte { margin-left: auto; }

/* Multi-column text */
.section-text-columns.bg-tint  { background: #f5fbff; }
.section-text-columns.bg-light { background: #fafafa; }
.section-text-columns.is-dark  { background: var(--dw-navy); }
.section-text-columns.is-dark .rte :is(h1,h2,h3,h4,h5,h6) { color: #fff; }
.section-text-columns.is-dark .rte p,
.section-text-columns.is-dark .rte ul,
.section-text-columns.is-dark .rte ol { color: rgba(255, 255, 255, 0.9); }
.section-text-columns.is-dark .rte a:not(.btn) { color: #fff; }

/* Horizontal line */
.hr-module.hr-none   { margin: 0; }
.hr-module.hr-small  { margin: 1rem 0; }
.hr-module.hr-medium { margin: 2rem 0; }
.hr-module.hr-large  { margin: 3.5rem 0; }

/* Spacing */
.spacer { width: 100%; }
.spacer-small  { height: 1.5rem; }
.spacer-medium { height: 3rem; }
.spacer-large  { height: 5rem; }
.spacer-xlarge { height: 7rem; }
@media (max-width: 767.98px) {
	.spacer-large  { height: 3.5rem; }
	.spacer-xlarge { height: 4.5rem; }
}

/* =============================================================
   POSTS BY CATEGORY (dynamic Procedures Grid)
   ============================================================= */

/* Clickable post tiles */
.process-tile-link {
	text-decoration: none;
	color: inherit;
	transition: transform .2s ease, box-shadow .2s ease;
}
.process-tile-link:hover,
.process-tile-link:focus {
	transform: translateY(-4px);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
	color: inherit;
}
.process-tile-link .tile-head h3 { color: var(--dw-navy-2); }

/* =============================================================
   SINGLE POST
   ============================================================= */
.single-post .post-navigation { border-top: 1px solid #e6edf2; }
.single-post .post-navigation .nav-links {
	display: flex;
	justify-content: space-between;
	gap: 1.5rem;
	flex-wrap: wrap;
}
.single-post .post-navigation .nav-next { text-align: right; margin-left: auto; }
.single-post .post-navigation a { color: var(--dw-navy-2); }
.single-post .post-navigation a:hover { color: var(--dw-teal); }
.single-post .post-navigation .nav-label {
	display: block;
	color: var(--dw-gold);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-size: 0.85rem;
	font-weight: 600;
}
.single-post .post-navigation .nav-title { font-weight: 600; }

/* =============================================================
   FAQs (accordion)
   ============================================================= */
.section-faqs.bg-tint  { background: #f5fbff; }
.section-faqs.bg-light { background: #fafafa; }

.faq-accordion {
	--bs-accordion-border-color: #e2e8ee;
	--bs-accordion-color: #4b4b4b;
	--bs-accordion-btn-color: var(--dw-navy-2);
	--bs-accordion-active-color: var(--dw-navy-2);
	--bs-accordion-active-bg: #f5fbff;
	--bs-accordion-btn-focus-box-shadow: none;
	--bs-accordion-btn-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23094465'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
	--bs-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2348B6B7'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}
.faq-accordion .accordion-item {
	border: 1px solid var(--bs-accordion-border-color);
	border-radius: 1rem;
	margin-bottom: 1rem;
	overflow: hidden;
	background: #fff;
}
.faq-accordion .accordion-item:not(:first-of-type) { border-top: 1px solid var(--bs-accordion-border-color); }
.faq-accordion .accordion-button {
	font-weight: 600;
	font-size: 1.1rem;
	padding: 1.15rem 1.5rem;
}
.faq-accordion .accordion-button:not(.collapsed) { box-shadow: none; }
.faq-accordion .accordion-body { padding: 0 1.5rem 1.4rem; }
.faq-accordion .accordion-body.rte > :last-child { margin-bottom: 0; }
