/*
Theme Name: Ciputra IVF
Theme URI: https://ciputraivf.com
Author: Ciputra IVF
Author URI: https://ciputraivf.com
Description: Custom block theme for Ciputra IVF clinic — premium fertility care with modern technology and compassionate approach.
Version: 1.2.20
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ciputra-ivf
Tags: full-site-editing, block-patterns, custom-colors, custom-fonts
*/

/* ==========================================================================
   Sticky Header — scroll behavior
   ========================================================================== */

/* When JS activates scroll tracking, switch to fixed positioning */
header.wp-block-group.header--scrolled {
	position: fixed !important;
	top: 0;
	left: 0;
	right: 0;
	z-index: 50;
	transition: transform 0.35s ease-in-out;
}

/* Scrolling down — slide header off-screen */
header.wp-block-group.header--hidden {
	transform: translateY(-100%);
}

/* Scrolling up, away from top — compact header */
header.wp-block-group.header--compact .wp-block-site-logo img {
	width: 150px !important;
	height: auto !important;
}

header.wp-block-group.header--compact > .wp-block-group {
	padding-top: 4px !important;
	padding-bottom: 4px !important;
}

/* Desktop expanded: bottom-align nav so logo dominates top, nav sits at bottom */
@media (min-width: 1200px) {
	header.wp-block-group:not(.header--compact) > .wp-block-group > .wp-block-group {
		align-items: flex-end !important;
	}

	header.wp-block-group.header--compact > .wp-block-group > .wp-block-group {
		align-items: center !important;
	}
}

/* Nav + CTA group fills remaining space so nav can push to right edge */
@media (min-width: 1200px) {
	header.wp-block-group .wp-block-group:has(> .wp-block-navigation) {
		flex: 1 !important;
	}
}

/* Force inline nav display on desktop (overrides overlayMenu:"always") */
@media (min-width: 1200px) {
	.wp-block-navigation__responsive-container {
		display: flex !important;
		position: static !important;
		width: auto !important;
		height: auto !important;
		overflow: visible !important;
		background: transparent !important;
		padding: 0 !important;
	}
	.wp-block-navigation__responsive-container-open,
	.wp-block-navigation__responsive-container-close {
		display: none !important;
	}
}

/* Push nav to the right within the expanded group */
header.wp-block-group .wp-block-navigation {
	margin-left: auto !important;
	margin-right: 0 !important;
}

/* Backdrop for compact/scrolled header */
header.wp-block-group.header--scrolled > .wp-block-group {
	background-color: #fff !important;
	box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

/* ==========================================================================
   Header — WhatsApp Icon Button
   ========================================================================== */

.header-wa-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 9999px;
	background-color: #25D366;
	transition: transform 0.2s ease, background-color 0.2s ease;
	text-decoration: none;
	flex-shrink: 0;
}

.header-wa-btn:hover {
	transform: scale(1.08);
	background-color: #20bd5a;
}

/* "Buat Janji" — solid primary instead of gradient */
.header-ctas .wp-block-button__link.has-primary-gradient-gradient-background {
	background: var(--wp--preset--color--primary) !important;
}

/* WhatsApp icon only visible on mobile */
@media (min-width: 1200px) {
	.header-wa-btn {
		display: none;
	}
}

/* ==========================================================================
   Header — Mobile Layout (≤1099px)
   ========================================================================== */

@media (max-width: 1199px) {
	/* Reduce header padding on mobile */
	header.wp-block-group > .wp-block-group {
		padding-left: 16px !important;
		padding-right: 16px !important;
		padding-top: 4px !important;
		padding-bottom: 4px !important;
	}

	/* Dissolve Nav+CTA group so hamburger, logo, and CTAs are all
	   direct flex participants of the Header Row */
	header.wp-block-group .wp-block-group:has(> .wp-block-navigation) {
		display: contents;
	}

	/* Hamburger — leftmost, tight against logo */
	header.wp-block-group .wp-block-navigation {
		order: -1;
		margin: 0 !important;
	}

	/* Logo — pull close to hamburger (counteract the 32px row gap) */
	header.wp-block-group .wp-block-site-logo {
		order: 0;
		flex: 1 1 0%;
		min-width: 120px;
		margin-left: -24px !important;
	}

	header.wp-block-group .wp-block-site-logo img {
		height: 48px !important;
		width: auto !important;
		max-width: 100%;
		object-fit: contain;
	}

	/* CTAs — rightmost */
	header.wp-block-group .header-ctas {
		order: 2;
		margin-left: auto;
		flex-shrink: 0;
	}

	/* Custom hamburger icon — 3 teal rounded lines (top/bottom wider, middle shorter) */
	header.wp-block-group .wp-block-navigation__responsive-container-open {
		background: none !important;
		border: none !important;
		padding: 0 !important;
		width: 28px;
		height: 28px;
	}

	header.wp-block-group .wp-block-navigation__responsive-container-open svg {
		display: none !important;
	}

	header.wp-block-group .wp-block-navigation__responsive-container-open::before {
		content: "";
		display: block;
		width: 28px;
		height: 28px;
		background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Crect x='4' y='7' width='20' height='2.5' rx='1.25' fill='%2300696b'/%3E%3Crect x='4' y='13' width='16' height='2.5' rx='1.25' fill='%2300696b'/%3E%3Crect x='4' y='19' width='20' height='2.5' rx='1.25' fill='%2300696b'/%3E%3C/svg%3E");
		background-repeat: no-repeat;
		background-size: 28px 28px;
	}

	/* Compact "Buat Janji" on mobile */
	header.wp-block-group .header-ctas .wp-block-button__link {
		padding: 8px 12px !important;
		font-size: 12px !important;
		white-space: nowrap;
	}

	/* Smaller WhatsApp icon on mobile */
	header.wp-block-group .header-wa-btn {
		width: 32px;
		height: 32px;
		margin-left: -4px;
	}

	header.wp-block-group .header-wa-btn svg {
		width: 16px;
		height: 16px;
	}

}

/* ==========================================================================
   Header — Mobile Navigation Overlay
   ========================================================================== */

@media (max-width: 1199px) {
	/* Full-screen overlay background */
	.wp-block-navigation__responsive-container.is-menu-open {
		background-color: #fff !important;
		padding: 0 !important;
	}

	/* Overlay content wrapper */
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
		padding: 72px 24px 0;
		display: flex !important;
		flex-direction: column !important;
		gap: 0;
		align-items: stretch !important;
	}

	/* Nav list inside overlay — left-align items */
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
		align-items: stretch !important;
		text-align: left;
	}

	/* All nav items — override WP default column + center alignment */
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
		align-items: stretch !important;
	}

	/* Reset letter-spacing inherited from desktop nav block */
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content,
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-submenu__toggle {
		letter-spacing: 0 !important;
	}

	/* Kill focus outline on nav links in overlay */
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:focus,
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:focus-visible {
		outline: none;
		box-shadow: none;
	}

	/* === Level 1: Top-level nav items === */
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
		font-family: var(--wp--preset--font-family--heading, 'Manrope', sans-serif);
		font-size: 17px !important;
		font-weight: 600 !important;
		color: var(--wp--preset--color--heading, #191c1d);
		padding: 14px 0 !important;
		display: block;
		width: 100%;
		border-bottom: 1px solid var(--wp--preset--color--border, #edeeef);
		text-decoration: none;
		text-align: left;
	}

	/* Parent items with submenus — flex row for label + chevron */
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-submenu {
		flex-direction: row !important;
		flex-wrap: wrap !important;
		align-items: center !important;
	}

	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-submenu > .wp-block-navigation-item__content {
		flex: 1;
		border-bottom: none;
	}

	/* Submenu toggle chevron button */
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-submenu__toggle {
		display: flex !important;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		background: transparent !important;
		border: none !important;
		outline: none !important;
		box-shadow: none !important;
		cursor: pointer;
		color: #94a3b8;
		transition: transform 0.25s ease, color 0.25s ease;
		flex-shrink: 0;
	}

	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-submenu__toggle svg {
		width: 10px;
		height: 10px;
		stroke-width: 1.2;
	}

	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-submenu__toggle[aria-expanded="true"] {
		transform: rotate(180deg);
		color: var(--wp--preset--color--primary, #00696b);
	}

	/* Add bottom border to the parent row (submenu item wrapper) */
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-submenu {
		border-bottom: 1px solid var(--wp--preset--color--border, #edeeef);
	}

	/* Hide floating WhatsApp bubble when overlay is open */
	.wp-block-navigation__responsive-container.is-menu-open ~ *,
	body:has(.wp-block-navigation__responsive-container.is-menu-open) a[aria-label="Chat on WhatsApp"] {
		z-index: auto;
	}

	body:has(.wp-block-navigation__responsive-container.is-menu-open) a[aria-label="Chat on WhatsApp"],
	body:has(.wp-block-navigation__responsive-container.is-menu-open) .floating-cta {
		display: none !important;
	}

	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:hover,
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item--current .wp-block-navigation-item__content {
		color: var(--wp--preset--color--primary, #00696b);
	}

	/* Submenu containers — collapsed by default, accordion style */
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
		background: transparent !important;
		box-shadow: none !important;
		border: none !important;
		border-radius: 0 !important;
		padding: 0 !important;
		min-width: unset !important;
		position: static !important;
		width: 100% !important;
		display: none !important;
		overflow: hidden;
	}

	/* Show submenu when toggle is expanded */
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-submenu__toggle[aria-expanded="true"] + .wp-block-navigation__submenu-container {
		display: block !important;
	}

	/* === Level 2: Sub-category headers (e.g. Program Hamil) === */
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
		font-size: 15px !important;
		font-weight: 500 !important;
		color: var(--wp--preset--color--nav, #475569);
		padding: 12px 0 12px 20px !important;
		border-bottom-color: rgba(0, 0, 0, 0.06);
	}

	/* === Level 3: Leaf service links (e.g. Bayi Tabung, ICSI) === */
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
		font-size: 14px !important;
		font-weight: 400 !important;
		color: #78869b;
		padding-left: 40px !important;
	}

	/* Nested submenu parent items — smaller chevron area */
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-submenu__toggle {
		width: 36px;
		height: 36px;
	}

	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-submenu {
		border-bottom-color: rgba(0, 0, 0, 0.06);
	}

	/* Close button — style as X in top-right */
	.wp-block-navigation__responsive-container-close {
		position: fixed !important;
		top: 12px;
		right: 16px;
		z-index: 100;
		background: transparent !important;
		border: none;
		color: var(--wp--preset--color--heading, #191c1d) !important;
	}

	/* Hide the "Buat Janji" button inside the overlay (it's already in the header bar) */
	.wp-block-navigation__responsive-container.is-menu-open .header-ctas {
		display: none;
	}
}

/* Mobile overlay AI Quiz CTA — hidden on desktop, shown in overlay */
.mobile-overlay-quiz-cta {
	display: none !important;
}

@media (max-width: 1199px) {
	.wp-block-navigation__responsive-container.is-menu-open .mobile-overlay-quiz-cta {
		display: block !important;
		margin: 0 !important;
	}
}

.mobile-quiz-card {
	background: var(--wp--preset--color--primary-surface);
	border: 1px solid rgba(0, 105, 107, 0.22);
	border-radius: 20px;
	padding: 20px;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}

.mobile-quiz-card__icon {
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
}

.mobile-quiz-card__heading {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 16px;
	font-weight: 700;
	color: var(--wp--preset--color--heading);
	margin: 0;
}

.mobile-quiz-card__desc {
	font-family: var(--wp--preset--font-family--body);
	font-size: 13px;
	line-height: 1.38;
	color: var(--wp--preset--color--heading);
	margin: 0;
	opacity: 0.7;
}

.mobile-quiz-card__btn {
	display: block;
	width: 100%;
	padding: 12px 16px;
	background: var(--wp--preset--color--primary);
	color: #fff !important;
	border-radius: 12px;
	font-family: var(--wp--preset--font-family--body);
	font-size: 14px;
	font-weight: 700;
	text-align: center;
	text-decoration: none !important;
	transition: background-color 0.2s;
}

.mobile-quiz-card__btn:hover,
.mobile-quiz-card__btn:focus {
	background: #005153;
	color: #fff !important;
}

/* Mobile overlay bottom CTAs — hidden on desktop, shown in overlay */
.mobile-overlay-ctas {
	display: none !important;
}

@media (max-width: 1199px) {
	.wp-block-navigation__responsive-container.is-menu-open .mobile-overlay-ctas {
		display: flex !important;
		align-items: stretch !important;
		border-radius: 0;
		margin: 0 !important;
		padding: 16px 0 !important;
	}

	.wp-block-navigation__responsive-container.is-menu-open .mobile-overlay-ctas .wp-block-buttons {
		width: 100%;
	}

	.wp-block-navigation__responsive-container.is-menu-open .mobile-overlay-ctas .wp-block-button__link {
		padding: 12px 24px !important;
		font-size: 15px !important;
	}

	.wp-block-navigation__responsive-container.is-menu-open .mobile-overlay-ctas .wp-block-button__link.has-primary-gradient-gradient-background {
		background: var(--wp--preset--color--primary) !important;
	}
}

/* ==========================================================================
   Navigation — Submenu Dropdown
   ========================================================================== */

.wp-block-navigation-submenu .wp-block-navigation__submenu-container {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
	padding: 8px 0;
	min-width: 240px;
	border: 1px solid rgba(0, 0, 0, 0.04);
}

.wp-block-navigation-submenu .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 8px 20px;
	font-size: 13.5px;
	font-weight: 500;
	color: var(--wp--preset--color--body, #3c4043);
	transition: color 0.15s ease, background 0.15s ease;
	display: block;
}

.wp-block-navigation-submenu .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--primary, #00696b);
	background: var(--wp--preset--color--surface, #f4f8f8);
}

/* ==========================================================================
   Single Post — In-Content Headings (teal)
   ========================================================================== */

.single .wp-block-post-content h2,
.single .wp-block-post-content h3,
.single .wp-block-post-content h4 {
	color: var(--wp--preset--color--primary, #00696b);
}

/* ==========================================================================
   Single Post — Category Pill
   ========================================================================== */

.wp-block-post-terms.is-style-pill {
	display: inline-block !important;
}

/* ==========================================================================
   Single Post — Author & Date
   ========================================================================== */

.ivf-post-author .wp-block-post-author__avatar img {
	border-radius: 9999px;
	border: 2px solid var(--wp--preset--color--primary-light, #6ec6c8);
	object-fit: cover;
}

.ivf-post-author .wp-block-post-author__name {
	white-space: nowrap;
}

/* ==========================================================================
   Related Posts (rp4wp plugin) — "Artikel Terkait"
   ========================================================================== */

.rp4wp-related-posts {
	margin-top: 3rem;
	padding-top: 3rem;
	border-top: 1px solid var(--wp--preset--color--border, #edeeef);
}

.rp4wp-related-posts > h3 {
	font-family: var(--wp--preset--font-family--heading, 'Manrope', sans-serif);
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--wp--preset--color--heading, #191c1d);
	letter-spacing: -0.01em;
	margin: 0 0 1.5rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.rp4wp-related-posts > h3::before {
	content: "";
	display: inline-block;
	width: 5px;
	height: 1.25rem;
	border-radius: 9999px;
	background: var(--wp--preset--color--primary, #00696b);
	flex-shrink: 0;
}

.rp4wp-related-posts > ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.25rem;
}

.rp4wp-related-posts > ul > li:nth-child(n+7) {
	display: none;
}

.rp4wp-related-posts > ul > li {
	background: var(--wp--preset--color--white, #fff);
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 6px 24px rgba(25, 28, 29, 0.05);
	transition: box-shadow 0.25s ease, transform 0.25s ease;
	display: flex;
	flex-direction: column;
}

.rp4wp-related-posts > ul > li:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06), 0 12px 36px rgba(25, 28, 29, 0.08);
	transform: translateY(-2px);
}

.rp4wp-related-posts .rp4wp-related-post-image {
	aspect-ratio: 16 / 10;
	overflow: hidden;
}

.rp4wp-related-posts .rp4wp-related-post-image a {
	display: block;
	height: 100%;
}

.rp4wp-related-posts .rp4wp-related-post-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.rp4wp-related-posts > ul > li:hover .rp4wp-related-post-image img {
	transform: scale(1.04);
}

.rp4wp-related-posts .rp4wp-related-post-content {
	padding: 1rem 1.25rem 1.25rem;
}

.rp4wp-related-posts .rp4wp-related-post-content a {
	font-family: var(--wp--preset--font-family--heading, 'Manrope', sans-serif);
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.4;
	color: var(--wp--preset--color--heading, #191c1d);
	text-decoration: none;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	transition: color 0.2s ease;
}

.rp4wp-related-posts .rp4wp-related-post-content a:hover {
	color: var(--wp--preset--color--primary, #00696b);
}

@media (max-width: 600px) {
	.rp4wp-related-posts {
		margin-top: 1.5rem;
		padding-top: 1.5rem;
	}

	.rp4wp-related-posts > ul {
		grid-template-columns: 1fr;
		gap: 1rem;
	}

	.rp4wp-related-posts > ul > li {
		flex-direction: row;
		border-radius: 16px;
		padding-bottom: 0 !important;
	}

	.rp4wp-related-posts .rp4wp-related-post-image {
		width: 110px !important;
		min-height: 110px;
		aspect-ratio: auto;
		flex-shrink: 0;
		margin-bottom: 0 !important;
	}

	.rp4wp-related-posts .rp4wp-related-post-content {
		padding: 0.875rem 1rem;
		display: flex;
		align-items: center;
		min-width: 0;
	}

	.rp4wp-related-posts .rp4wp-related-post-content a {
		-webkit-line-clamp: 3;
	}
}

/* ==========================================================================
   Blog Archive — Hero
   ========================================================================== */

@media (min-width: 769px) {
	.archive-hero {
		min-height: 380px;
		display: flex;
		align-items: center;
	}
}

@media (max-width: 768px) {
	.archive-hero {
		padding-top: 48px !important;
		padding-bottom: 56px !important;
	}

	.archive-hero h1 {
		font-size: 32px !important;
	}
}

/* ==========================================================================
   Blog Archive — Category Filter Pills
   ========================================================================== */

/* All pills: make link fill entire pill for full click target */
.category-filter-bar .filter-pill {
	padding: 0 !important;
	border-radius: 12px;
	transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.category-filter-bar .filter-pill a {
	display: block;
	padding: 12px 24px;
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
}

.category-filter-bar .filter-pill p {
	pointer-events: none;
}

.category-filter-bar .filter-pill a {
	pointer-events: auto;
}

/* Inactive pills — subtle border for definition */
.category-filter-bar .filter-pill {
	border: 1px solid rgba(0, 105, 107, 0.08);
}

/* Blog home (/artikel/) → "Semua Artikel" active */
.blog .filter-pill-all {
	background-color: var(--wp--preset--color--primary, #00696b) !important;
	border-color: transparent;
	box-shadow: 0 2px 8px rgba(0, 105, 107, 0.25);
}
.blog .filter-pill-all p,
.blog .filter-pill-all a {
	color: #ffffff !important;
}

/* Category pages → matching pill active */
.category-kehamilan .filter-pill-kehamilan,
.category-kesehatan-reproduksi .filter-pill-kesehatan-reproduksi,
.category-bayi-tabung .filter-pill-bayi-tabung,
.category-kesuburan .filter-pill-kesuburan,
.category-event .filter-pill-event,
.category-inseminasi .filter-pill-inseminasi {
	background-color: var(--wp--preset--color--primary, #00696b) !important;
	border-color: transparent;
	box-shadow: 0 2px 8px rgba(0, 105, 107, 0.25);
}

.category-kehamilan .filter-pill-kehamilan p,
.category-kehamilan .filter-pill-kehamilan a,
.category-kesehatan-reproduksi .filter-pill-kesehatan-reproduksi p,
.category-kesehatan-reproduksi .filter-pill-kesehatan-reproduksi a,
.category-bayi-tabung .filter-pill-bayi-tabung p,
.category-bayi-tabung .filter-pill-bayi-tabung a,
.category-kesuburan .filter-pill-kesuburan p,
.category-kesuburan .filter-pill-kesuburan a,
.category-event .filter-pill-event p,
.category-event .filter-pill-event a,
.category-inseminasi .filter-pill-inseminasi p,
.category-inseminasi .filter-pill-inseminasi a {
	color: #ffffff !important;
}

/* On category pages, "Semua Artikel" should NOT be active */
.category .filter-pill-all {
	background-color: transparent !important;
	border-color: rgba(0, 105, 107, 0.08);
	box-shadow: none;
}
.category .filter-pill-all p,
.category .filter-pill-all a {
	color: var(--wp--preset--color--body, #3c4043) !important;
}

/* Hover state — only for inactive pills */
.blog .category-filter-bar .filter-pill:not(.filter-pill-all):hover,
.category .category-filter-bar .filter-pill:hover {
	background-color: var(--wp--preset--color--surface, #f4f8f8) !important;
	border-color: rgba(0, 105, 107, 0.15);
}

/* Active pills keep primary bg on hover */
.blog .filter-pill-all:hover,
.category-kehamilan .filter-pill-kehamilan:hover,
.category-kesehatan-reproduksi .filter-pill-kesehatan-reproduksi:hover,
.category-bayi-tabung .filter-pill-bayi-tabung:hover,
.category-kesuburan .filter-pill-kesuburan:hover,
.category-event .filter-pill-event:hover,
.category-inseminasi .filter-pill-inseminasi:hover {
	background-color: var(--wp--preset--color--primary, #00696b) !important;
	border-color: transparent;
}

/* Mobile: wrap pills into rows, compact sizing */
@media (max-width: 768px) {
	.category-filter-bar {
		flex-wrap: wrap !important;
		gap: 6px !important;
		padding: 16px !important;
		margin-top: -20px !important;
		margin-left: 16px !important;
		margin-right: 16px !important;
		border-radius: 16px !important;
		position: relative !important;
		z-index: 1 !important;
	}

	.category-filter-bar .filter-pill {
		border-radius: 10px;
	}

	.category-filter-bar .filter-pill a {
		padding: 8px 14px;
		font-size: 13px;
	}

	/* Reduce gap between pill bar and article grid */
	.category-filter-bar + .wp-block-group {
		padding-top: 32px !important;
	}
}

/* ==========================================================================
   Blog Archive — Mobile Article List (vertical list with thumbnails)
   ========================================================================== */

@media (max-width: 768px) {
	/* Switch from 3-col grid to single column list */
	.wp-block-query .wp-block-post-template {
		grid-template-columns: 1fr !important;
		gap: 0 !important;
	}

	/* Each article card: horizontal row layout */
	.wp-block-query .wp-block-post-template > .wp-block-post > .wp-block-group {
		display: flex !important;
		flex-direction: row !important;
		border-radius: 0 !important;
		overflow: visible !important;
		border-bottom: 1px solid rgba(190, 201, 200, 0.25);
		padding: 16px 0 !important;
		background: transparent !important;
	}

	/* Thumbnail: small fixed square on left */
	.wp-block-query .wp-block-post-template .wp-block-post-featured-image {
		width: 100px !important;
		min-width: 100px;
		height: 100px !important;
		flex-shrink: 0;
		margin: 0 !important;
		border-radius: 12px;
		overflow: hidden;
	}

	.wp-block-query .wp-block-post-template .wp-block-post-featured-image img {
		width: 100%;
		height: 100%;
		object-fit: cover;
	}

	/* Content area: flows to the right */
	.wp-block-query .wp-block-post-template > .wp-block-post > .wp-block-group > .wp-block-group:not(:first-child) {
		padding: 0 0 0 14px !important;
		flex: 1;
		min-width: 0;
		display: flex;
		flex-direction: column;
		justify-content: center;
	}

	/* Title: compact sizing */
	.wp-block-query .wp-block-post-template .wp-block-post-title {
		font-size: 15px !important;
		line-height: 1.35 !important;
		margin-top: 8px !important;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}

	/* Category badge: smaller */
	.wp-block-query .wp-block-post-template .wp-block-post-terms {
		font-size: 9px !important;
		padding: 3px 8px !important;
	}

	/* Excerpt: compact, clamp to 2 lines */
	.wp-block-query .wp-block-post-template .wp-block-post-excerpt {
		margin-top: 6px !important;
		font-size: 13px !important;
		line-height: 1.5 !important;
	}

	.wp-block-query .wp-block-post-template .wp-block-post-excerpt__excerpt {
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}

	/* Hide the date/read-more footer row on mobile */
	.wp-block-query .wp-block-post-template > .wp-block-post > .wp-block-group > .wp-block-group:last-child > .wp-block-group:last-child {
		display: none;
	}

	/* Reduce outer section padding on mobile */
	.wp-block-query .wp-block-post-template + .wp-block-group {
		margin-top: var(--wp--preset--spacing--40) !important;
	}

	/* Tighten article grid section margins on mobile */
	.wp-block-group:has(> .wp-block-query) {
		padding-left: 16px !important;
		padding-right: 16px !important;
		padding-top: 24px !important;
		padding-bottom: 40px !important;
	}
}

/* ==========================================================================
   Homepage — Service Cards (Bold & Modern)
   ========================================================================== */

.service-card-header {
	position: relative;
	height: 120px;
	background: linear-gradient(135deg, #00696b 0%, #008c8e 100%);
	display: flex;
	align-items: center;
	padding-left: 28px;
	overflow: hidden;
}

.service-card-icon {
	position: relative;
	z-index: 1;
}

.service-card-deco {
	position: absolute;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
}

.service-card-deco-1 {
	width: 80px;
	height: 80px;
	right: -10px;
	top: -20px;
}

.service-card-deco-2 {
	width: 40px;
	height: 40px;
	right: 10px;
	bottom: -5px;
	background: rgba(255, 255, 255, 0.06);
}

.service-card {
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
	transform: translateY(-4px);
	box-shadow: 0px 8px 32px 0px rgba(0, 0, 0, 0.12), 0px 2px 8px 0px rgba(0, 0, 0, 0.06) !important;
}

@media (max-width: 782px) {
	.service-card-header {
		height: 70px;
	}
}

/* ==========================================================================
   Homepage — Articles Carousel
   ========================================================================== */

.ivf-articles-carousel .ivf-carousel-track {
	display: flex !important;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	gap: 24px;
	padding-bottom: 8px;
}

.ivf-articles-carousel .ivf-carousel-track::-webkit-scrollbar {
	display: none;
}

.ivf-articles-carousel .ivf-carousel-track > li {
	flex: 0 0 calc((100% - 72px) / 4);
	scroll-snap-align: start;
	min-width: 280px;
	margin-block-start: 0 !important;
}

/* Carousel wrapper — position context for arrows + fades */
.ivf-articles-carousel {
	position: relative;
	overflow: hidden;
}

/* Fade edges — hint that content continues */
.ivf-articles-carousel::before,
.ivf-articles-carousel::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	width: 56px;
	z-index: 2;
	pointer-events: none;
	transition: opacity 0.35s ease;
}

.ivf-articles-carousel::before {
	left: 0;
	background: linear-gradient(to right, var(--wp--preset--color--background, #f8f8f6) 8%, transparent);
}

.ivf-articles-carousel::after {
	right: 0;
	background: linear-gradient(to left, var(--wp--preset--color--background, #f8f8f6) 8%, transparent);
}

.ivf-articles-carousel.at-start::before {
	opacity: 0;
}

.ivf-articles-carousel.at-end::after {
	opacity: 0;
}

/* Arrow nav — overlays left/right edges of carousel */
.ivf-carousel-nav {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	pointer-events: none;
	z-index: 3;
}

.ivf-carousel-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 48px;
	height: 48px;
	border-radius: 9999px;
	border: none;
	background: var(--wp--preset--color--white, #fff);
	color: var(--wp--preset--color--heading, #191c1d);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: auto;
	transition: all 0.25s ease;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(0, 0, 0, 0.06);
}

.ivf-carousel-prev {
	left: -8px;
}

.ivf-carousel-next {
	right: -8px;
}

.ivf-carousel-btn:hover {
	background: var(--wp--preset--color--primary, #00696b);
	color: #fff;
	box-shadow: 0 4px 16px rgba(0, 105, 107, 0.25);
	transform: translateY(-50%) scale(1.08);
}

.ivf-carousel-btn.is-hidden {
	opacity: 0;
	pointer-events: none;
	transform: translateY(-50%) scale(0.8);
}

@media (max-width: 768px) {
	.ivf-carousel-nav {
		display: none;
	}

	.ivf-articles-carousel::before,
	.ivf-articles-carousel::after {
		width: 28px;
	}
}

.ivf-articles-carousel .ivf-carousel-track .wp-block-post-title {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

@media (max-width: 1024px) {
	.ivf-articles-carousel .ivf-carousel-track > li {
		flex: 0 0 calc((100% - 48px) / 3);
	}
}

@media (max-width: 768px) {
	.ivf-articles-carousel .ivf-carousel-track > li {
		flex: 0 0 calc((100% - 24px) / 2);
		min-width: 240px;
	}
}

@media (max-width: 480px) {
	.ivf-articles-carousel .ivf-carousel-track > li {
		flex: 0 0 85%;
		min-width: 0;
	}
}

/* ==========================================================================
   Mobile side padding — single posts + pages
   ========================================================================== */

@media (max-width: 768px) {
	.single main > .wp-block-group,
	.page main > .wp-block-group {
		padding-left: 16px !important;
		padding-right: 16px !important;
	}
}

/* ==========================================================================
   Breadcrumbs — mobile layout
   ========================================================================== */

.ivf-breadcrumbs {
	align-items: baseline;
}

/* On mobile, shift breadcrumbs left and truncate post title */
@media (max-width: 768px) {
	.ivf-breadcrumbs {
		padding-left: 0 !important;
		padding-right: 0 !important;
	}

	.ivf-breadcrumbs > .wp-block-post-title {
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
		max-width: 50vw;
	}

	.ivf-breadcrumbs > p {
		flex-shrink: 0;
	}
}

@media (max-width: 480px) {
	.ivf-breadcrumbs > .wp-block-post-title {
		max-width: 40vw;
	}
}

/* Yoast breadcrumbs in archive hero */
.archive-hero .yoast-breadcrumb {
	font-family: var(--wp--preset--font-family--body);
	font-size: 14px;
	color: var(--wp--preset--color--body);
}

.archive-hero .yoast-breadcrumb a {
	color: var(--wp--preset--color--primary);
	text-decoration: none;
}

.archive-hero .yoast-breadcrumb a:hover {
	text-decoration: underline;
}

/* ==========================================================================
   Footer — link hover states
   ========================================================================== */

footer.wp-block-group a {
	transition: color 0.2s ease;
}

footer.wp-block-group a:hover {
	color: #fff !important;
}

/* Reduce footer top padding on mobile */
@media (max-width: 781px) {
	footer.wp-block-group > .wp-block-group:first-child {
		padding-top: var(--wp--preset--spacing--50) !important;
	}
}

/* ==========================================================================
   Page Template — Hero Header
   ========================================================================== */

/* Page hero header columns — hide empty right column so it doesn't take vertical space */
.ivf-page-header-cols {
	margin-bottom: 0 !important;
}

/* ==========================================================================
   Doctor Profile — Profile Header (photo + name in hero)
   ========================================================================== */

/* Photo column — fixed width circle */
.ivf-doctor-photo-col {
	flex-shrink: 0 !important;
	flex-grow: 0 !important;
}

.ivf-doctor-photo-col .wp-block-post-featured-image img {
	width: 180px;
	height: 180px;
	border-radius: 50%;
	object-fit: cover;
	box-shadow: 0 8px 24px rgba(0, 105, 107, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Mobile: stack photo above name, center photo */
@media (max-width: 768px) {
	.ivf-doctor-profile-header {
		flex-direction: column !important;
		align-items: center !important;
		text-align: center;
		gap: 24px !important;
	}

	.ivf-doctor-photo-col {
		flex-basis: auto !important;
	}

	.ivf-doctor-photo-col .wp-block-post-featured-image img {
		width: 140px;
		height: 140px;
	}

	.ivf-doctor-profile-header .ivf-accent-bar {
		margin-left: auto;
		margin-right: auto;
	}

	.ivf-doctor-profile-header .wp-block-buttons {
		justify-content: center;
	}
}

/* Two-column details grid inside post-content */
.ivf-doctor-content .wp-block-columns.ivf-doctor-details {
	gap: 48px;
}

@media (max-width: 768px) {
	.ivf-doctor-content .wp-block-columns.ivf-doctor-details {
		flex-direction: column !important;
		gap: 0 !important;
	}
}

/* ==========================================================================
   Doctor Profile — Content Styling
   ========================================================================== */

/* H2 section headings — matches blog post H2 style (primary color) */
.ivf-doctor-content h2 {
	font-family: var(--wp--preset--font-family--heading, 'Manrope', sans-serif);
	font-size: clamp(1.5rem, 1.25rem + 1.25vw, 2.25rem);
	font-weight: 700;
	color: var(--wp--preset--color--primary, #00696b);
	line-height: 1.2;
	letter-spacing: -0.5px;
	margin-top: 3rem;
	margin-bottom: 1rem;
	padding-top: 0.5rem;
}

.ivf-doctor-content h2:first-child {
	margin-top: 0;
	padding-top: 0;
}

/* Paragraphs */
.ivf-doctor-content p {
	font-family: var(--wp--preset--font-family--body, 'Plus Jakarta Sans', sans-serif);
	font-size: 1.0625rem;
	line-height: 1.8;
	color: var(--wp--preset--color--body, #3f4948);
	margin-bottom: 1.25rem;
}

/* Lists */
.ivf-doctor-content ul,
.ivf-doctor-content ol {
	font-family: var(--wp--preset--font-family--body, 'Plus Jakarta Sans', sans-serif);
	font-size: 1.0625rem;
	line-height: 1.8;
	color: var(--wp--preset--color--body, #3f4948);
	margin-bottom: 1.25rem;
	padding-left: 1.5rem;
}

.ivf-doctor-content li {
	margin-bottom: 0.5rem;
}

.ivf-doctor-content li::marker {
	color: var(--wp--preset--color--primary, #00696b);
}

/* Links */
.ivf-doctor-content a {
	color: var(--wp--preset--color--primary, #00696b);
	text-decoration: underline;
	text-decoration-color: rgba(0, 105, 107, 0.3);
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
	transition: text-decoration-color 0.2s ease;
}

.ivf-doctor-content a:hover {
	text-decoration-color: var(--wp--preset--color--primary, #00696b);
}

/* Schedule table — refined styling */
.ivf-doctor-content .wp-block-table {
	margin-top: 0.5rem;
	margin-bottom: 2rem;
}

.ivf-doctor-content .wp-block-table table {
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid var(--wp--preset--color--border, #edeeef);
	border-radius: 16px;
	overflow: hidden;
	width: 100%;
}

.ivf-doctor-content .wp-block-table thead th {
	background: var(--wp--preset--color--primary, #00696b);
	color: #ffffff;
	font-family: var(--wp--preset--font-family--body, 'Plus Jakarta Sans', sans-serif);
	font-size: 0.875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	padding: 14px 20px;
	border: none;
	text-align: left;
}

.ivf-doctor-content .wp-block-table tbody td {
	font-family: var(--wp--preset--font-family--body, 'Plus Jakarta Sans', sans-serif);
	font-size: 0.9375rem;
	color: var(--wp--preset--color--body, #3f4948);
	padding: 14px 20px;
	border-top: 1px solid var(--wp--preset--color--border, #edeeef);
	border-left: none;
	border-right: none;
	border-bottom: none;
}

.ivf-doctor-content .wp-block-table tbody tr:nth-child(even) td {
	background-color: var(--wp--preset--color--primary-surface, #f0f9f9);
}

.ivf-doctor-content .wp-block-table tbody tr:first-child td {
	border-top: none;
}

.ivf-doctor-content .wp-block-table tbody td:first-child {
	font-weight: 600;
	color: var(--wp--preset--color--heading, #191c1d);
}

/* Doctor CTA — same as page CTA */
.ivf-doctor-cta {
	transition: transform 0.3s ease;
}

@media (max-width: 600px) {
	.ivf-doctor-cta {
		padding: 40px 24px 32px !important;
		border-radius: 24px !important;
	}

	.ivf-doctor-cta .wp-block-buttons {
		flex-direction: column !important;
	}

	.ivf-doctor-cta .wp-block-button {
		width: 100%;
	}

	.ivf-doctor-cta .wp-block-button__link {
		width: 100%;
		text-align: center;
	}
}

/* Doctor location chips */
.ivf-location-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1;
	color: var(--wp--preset--color--primary, #00696b);
	background: rgba(0, 105, 107, 0.08);
	padding: 7px 14px;
	border-radius: 20px;
}

.ivf-location-chip svg {
	flex-shrink: 0;
	opacity: 0.7;
}

/* Doctor sidebar schedule */
.ivf-sidebar-schedule {
	display: flex;
	flex-direction: column;
	gap: 20px;
	position: sticky;
	top: 80px;
}

.ivf-schedule-section {
	margin-top: var(--wp--preset--spacing--60, 3rem);
}

.ivf-schedule-card {
	background: #fff;
	border: 1px solid rgba(0, 105, 107, 0.1);
	border-radius: 20px;
	padding: 0;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 6px 24px rgba(0, 105, 107, 0.06);
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.ivf-schedule-card:hover {
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06), 0 12px 32px rgba(0, 105, 107, 0.1);
	transform: translateY(-2px);
}

.ivf-schedule-card__header {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 20px 24px;
	background: var(--wp--preset--color--primary-surface, #f0fafa);
	border-bottom: 1px solid rgba(0, 105, 107, 0.08);
}

.ivf-schedule-card__pin {
	display: flex;
	color: var(--wp--preset--color--primary, #00696b);
	flex-shrink: 0;
	opacity: 0.7;
}

.ivf-schedule-card__location {
	font-family: var(--wp--preset--font-family--heading, 'Manrope', sans-serif);
	font-size: 0.9375rem;
	font-weight: 700;
	color: var(--wp--preset--color--primary, #00696b);
	margin: 0;
	letter-spacing: -0.01em;
}

.ivf-schedule-card__grid {
	padding: 8px 24px;
}

.ivf-schedule-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.ivf-schedule-row:last-child {
	border-bottom: none;
}

.ivf-schedule-day {
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--wp--preset--color--heading, #212827);
}

.ivf-schedule-row--off .ivf-schedule-day {
	color: #b0b8b4;
}

.ivf-schedule-time {
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.8125rem;
	font-weight: 700;
	color: var(--wp--preset--color--primary, #00696b);
	background: rgba(0, 105, 107, 0.07);
	padding: 5px 14px;
	border-radius: 20px;
	letter-spacing: 0.02em;
}

.ivf-schedule-time--off {
	background: transparent;
	color: #ccc;
	font-weight: 400;
}

a.ivf-schedule-card__cta,
a.ivf-schedule-card__cta:hover,
a.ivf-schedule-card__cta:visited {
	display: block;
	margin: 8px 24px 24px;
	padding: 14px 24px;
	text-align: center;
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.875rem;
	font-weight: 700;
	color: #fff !important;
	background: linear-gradient(135deg, #00696b, #008486) !important;
	border-radius: 14px;
	text-decoration: none;
	transition: opacity 0.2s ease, transform 0.15s ease;
}

a.ivf-schedule-card__cta:hover {
	opacity: 0.9;
	transform: translateY(-1px);
}

/* Doctor hero — mobile adjustments */
@media (max-width: 768px) {
	.ivf-doctor-hero {
		padding-top: 32px !important;
		padding-bottom: 48px !important;
	}

	.ivf-schedule-cards {
		grid-template-columns: 1fr;
	}

	.ivf-schedule-card__grid {
		padding: 8px 20px;
	}

	.ivf-schedule-card__header {
		padding: 16px 20px;
	}

	.ivf-schedule-card__cta {
		margin: 8px 20px 20px;
	}
}

/* ==========================================================================
   Page Template — Service/Generic Page Content
   ========================================================================== */

/* Collapse empty WPBakery migration artifacts (empty groups/columns) */
.ivf-page-content .wp-block-group:empty,
.ivf-page-content .wp-block-columns:empty,
.ivf-page-content .wp-block-group:not(:has(img, p, h1, h2, h3, h4, h5, h6, ul, ol, table, figure, iframe, a)),
.ivf-page-content .wp-block-columns:not(:has(img, p, h1, h2, h3, h4, h5, h6, ul, ol, table, figure, iframe, a)) {
	display: none;
}

/* Content typography and spacing */
.ivf-page-content h2 {
	font-family: var(--wp--preset--font-family--heading, 'Manrope', sans-serif);
	font-size: var(--wp--preset--font-size--heading-4);
	font-weight: 700;
	color: var(--wp--preset--color--primary, #00696b);
	line-height: 1.15;
	letter-spacing: -0.01em;
	margin-top: 2rem;
	margin-bottom: 0.75rem;
	padding-top: 0;
}

.ivf-page-content h3 {
	font-family: var(--wp--preset--font-family--heading, 'Manrope', sans-serif);
	font-size: var(--wp--preset--font-size--body-large);
	font-weight: 700;
	color: var(--wp--preset--color--primary, #00696b);
	line-height: 1.3;
	margin-top: 1.5rem;
	margin-bottom: 0.5rem;
}

.ivf-page-content h4 {
	font-family: var(--wp--preset--font-family--heading, 'Manrope', sans-serif);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 700;
	color: var(--wp--preset--color--primary, #00696b);
}

.ivf-page-content h2:first-child,
.ivf-page-content h3:first-child,
.ivf-page-content .wp-block-group:first-child h2:first-child,
.ivf-page-content .wp-block-group:first-child h3:first-child {
	margin-top: 0;
	padding-top: 0;
}

/* Paragraphs */
.ivf-page-content p,
.wp-block-post-content p {
	font-family: var(--wp--preset--font-family--body, 'Plus Jakarta Sans', sans-serif);
	font-size: 1.0625rem;
	line-height: 1.8;
	color: var(--wp--preset--color--body, #3f4948);
	margin-bottom: 1.375rem;
}

/* Lists */
.ivf-page-content ul,
.ivf-page-content ol,
.wp-block-post-content ul,
.wp-block-post-content ol {
	font-family: var(--wp--preset--font-family--body, 'Plus Jakarta Sans', sans-serif);
	font-size: 1.0625rem;
	line-height: 1.6;
	color: var(--wp--preset--color--body, #3f4948);
	margin-bottom: 1.375rem;
	padding-left: 1.5rem;
}

.ivf-page-content li,
.wp-block-post-content li {
	margin-bottom: 0.25rem;
}

/* Override WordPress flow-layout gap on list items */
.ivf-page-content ul > li,
.ivf-page-content ol > li,
.wp-block-post-content ul > li,
.wp-block-post-content ol > li {
	margin-block-start: 0.25rem;
}

/* Collapse gap between consecutive list blocks (authored as separate blocks) */
.ivf-page-content .wp-block-list + .wp-block-list,
.wp-block-post-content .wp-block-list + .wp-block-list {
	margin-block-start: 0 !important;
}

.ivf-page-content .wp-block-list:has(+ .wp-block-list),
.wp-block-post-content .wp-block-list:has(+ .wp-block-list) {
	margin-block-end: 0 !important;
}

.ivf-page-content li::marker,
.wp-block-post-content li::marker {
	color: var(--wp--preset--color--primary, #00696b);
}

/* Links */
.ivf-page-content a:not(.wp-element-button):not(.wp-block-button__link) {
	color: var(--wp--preset--color--primary, #00696b);
	text-decoration: underline;
	text-decoration-color: rgba(0, 105, 107, 0.3);
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
	transition: text-decoration-color 0.2s ease, color 0.2s ease;
}

.ivf-page-content a:not(.wp-element-button):not(.wp-block-button__link):hover {
	text-decoration-color: var(--wp--preset--color--primary, #00696b);
}

/* Images — rounded corners, full-width within content */
.ivf-page-content .wp-block-image img {
	border-radius: 20px;
	height: auto;
}

.ivf-page-content .wp-block-image {
	margin-top: 2rem;
	margin-bottom: 2rem;
}

/* Team member cards — horizontal photo + text layout */
.ivf-team-card > .wp-block-image {
	flex-shrink: 0;
	margin-top: 0;
	margin-bottom: 0;
}

.ivf-team-card > .wp-block-image img {
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: 9999px !important;
}

.ivf-team-card > .wp-block-group {
	flex: 1;
	min-width: 0;
}

@media (max-width: 600px) {
	.ivf-team-card {
		gap: 20px !important;
	}
	.ivf-team-card > .wp-block-image {
		width: 100%;
		display: flex;
		justify-content: center;
	}
}

/* Columns — spacing */
.ivf-page-content .wp-block-columns {
	margin-top: 2rem;
	margin-bottom: 2rem;
	gap: 2rem;
}

@media (max-width: 768px) {
	.ivf-page-content .wp-block-columns {
		flex-direction: column;
	}
}

/* Groups — vertical spacing between content sections */
.ivf-page-content > .wp-block-post-content > .wp-block-group + .wp-block-group {
	margin-top: 1rem;
}

/* Clean up Word/Office paste artifacts (inline spans) */
.ivf-page-content span[data-contrast],
.ivf-page-content span[data-ccp-props] {
	color: inherit !important;
	font-family: inherit !important;
	font-size: inherit !important;
}

/* Latest Posts block (sometimes embedded in service content) */
.ivf-page-content .wp-block-latest-posts {
	list-style: none;
	padding-left: 0;
	margin-top: 2rem;
}

.ivf-page-content .wp-block-latest-posts__post-title {
	font-family: var(--wp--preset--font-family--heading, 'Manrope', sans-serif);
	font-weight: 700;
	color: var(--wp--preset--color--heading, #191c1d);
	text-decoration: none;
}

.ivf-page-content .wp-block-latest-posts__post-title:hover {
	color: var(--wp--preset--color--primary, #00696b);
}

/* ==========================================================================
   Layanan Terkait — Cross-link card at end of service pages
   ========================================================================== */

/* The heading — top of the unified card */
.ivf-page-content .layanan-terkait-heading {
	font-family: var(--wp--preset--font-family--heading, 'Manrope', sans-serif);
	font-size: 0.8125rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--primary, #00696b);
	line-height: 1;
	background: var(--wp--preset--color--primary-surface, #f0f9f9);
	border: 1px solid rgba(0, 105, 107, 0.10);
	border-bottom: none;
	border-radius: 16px 16px 0 0;
	margin: 3rem 0 0;
	padding: 20px 24px 0;
	position: relative;
}

/* Top separator line before the card */
.ivf-page-content .layanan-terkait-heading::before {
	content: "";
	position: absolute;
	top: -1.5rem;
	left: 0;
	right: 0;
	height: 1px;
	background: linear-gradient(to right, var(--wp--preset--color--border, #edeeef), transparent 80%);
}

/* The paragraph — bottom of the unified card */
.ivf-page-content .layanan-terkait-heading + p {
	background: var(--wp--preset--color--primary-surface, #f0f9f9);
	border: 1px solid rgba(0, 105, 107, 0.10);
	border-top: none;
	border-radius: 0 0 16px 16px;
	font-size: 0.9375rem;
	line-height: 1.7;
	color: var(--wp--preset--color--body, #3f4948);
	padding: 6px 24px 20px;
	margin-top: 0 !important;
	margin-bottom: 0;
}

/* Links inside the card — bolder, with arrow hint */
.ivf-page-content .layanan-terkait-heading + p a {
	color: var(--wp--preset--color--primary, #00696b);
	font-weight: 600;
	text-decoration: none;
	background: rgba(0, 105, 107, 0.07);
	padding: 2px 8px;
	border-radius: 6px;
	transition: background 0.2s ease, color 0.15s ease;
	white-space: nowrap;
}

.ivf-page-content .layanan-terkait-heading + p a:hover {
	background: rgba(0, 105, 107, 0.14);
	text-decoration: none;
}

@media (max-width: 768px) {
	.ivf-page-content .layanan-terkait-heading {
		margin-top: 2rem;
		padding: 16px 18px 10px;
		border-radius: 12px 12px 0 0;
	}
	.ivf-page-content .layanan-terkait-heading + p {
		padding: 0 18px 16px;
		font-size: 0.875rem;
		border-radius: 0 0 12px 12px;
	}
	.ivf-page-content .layanan-terkait-heading + p a {
		white-space: normal;
	}
}

/* ==========================================================================
   Content Visual Enhancements — D1/D2
   Applied to .ivf-page-content on all service detail pages.
   This entire section can be removed to revert the visual changes.
   Figma ref: "Service Detail — Content Styling (D1/D2)" in IVF-Design-v1
   ========================================================================== */

/* --- H2 Section Dividers ---
   Adds a top border + gradient accent bar before each H2 for visual rhythm.
   Skips the first H2 (already close to the hero). */
.ivf-page-content h2:not(:first-child) {
	margin-top: 3rem;
	padding-top: 2.5rem;
	border-top: 1px solid var(--wp--preset--color--border, #edeeef);
	position: relative;
}

.ivf-page-content h2:not(:first-child)::before {
	content: "";
	position: absolute;
	top: 1.25rem;
	left: 0;
	width: 40px;
	height: 4px;
	border-radius: 9999px;
	background: linear-gradient(to right, var(--wp--preset--color--primary, #00696b), var(--wp--preset--color--primary-light, #6ec6c8));
}

/* Also target H2 inside first-child groups (WP wraps content in groups) */
.ivf-page-content > .wp-block-post-content > .wp-block-group + .wp-block-group > h2:first-child {
	margin-top: 3rem;
	padding-top: 2.5rem;
	border-top: 1px solid var(--wp--preset--color--border, #edeeef);
	position: relative;
}

.ivf-page-content > .wp-block-post-content > .wp-block-group + .wp-block-group > h2:first-child::before {
	content: "";
	position: absolute;
	top: 1.25rem;
	left: 0;
	width: 40px;
	height: 4px;
	border-radius: 9999px;
	background: linear-gradient(to right, var(--wp--preset--color--primary, #00696b), var(--wp--preset--color--primary-light, #6ec6c8));
}

/* --- Ordered Lists → Step Cards ---
   Turns <ol> into visually distinct step cards with teal numbered circles. */
.ivf-page-content ol {
	list-style: none;
	padding-left: 0;
	counter-reset: step-counter;
}

.ivf-page-content ol > li {
	counter-increment: step-counter;
	position: relative;
	padding: 16px 20px 16px 56px;
	margin-bottom: 12px;
	background: var(--wp--preset--color--surface, #f8fafc);
	border-radius: 16px;
	border-left: 3px solid var(--wp--preset--color--primary-light, #6ec6c8);
}

.ivf-page-content ol > li::before {
	content: counter(step-counter);
	position: absolute;
	left: 16px;
	top: 16px;
	width: 28px;
	height: 28px;
	border-radius: 9999px;
	background: var(--wp--preset--color--primary, #00696b);
	color: #fff;
	font-family: var(--wp--preset--font-family--body, 'Plus Jakarta Sans', sans-serif);
	font-size: 0.8125rem;
	font-weight: 600;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

/* --- Unordered Lists → Teal Checkmarks --- */
.ivf-page-content ul {
	list-style: none;
	padding-left: 0;
}

.ivf-page-content ul > li {
	position: relative;
	padding-left: 28px;
	margin-bottom: 0.5rem;
}

.ivf-page-content ul > li::before {
	content: "";
	position: absolute;
	left: 4px;
	top: 0.45em;
	width: 14px;
	height: 14px;
	background: var(--wp--preset--color--primary, #00696b);
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 8.5L6.5 12L13 4' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 8.5L6.5 12L13 4' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	-webkit-mask-size: contain;
	mask-size: contain;
}

/* --- Blockquotes → Callout Boxes --- */
.ivf-page-content blockquote {
	border-left: 4px solid var(--wp--preset--color--primary, #00696b);
	background: var(--wp--preset--color--primary-surface, #f0f9f9);
	padding: 20px 24px;
	border-radius: 0 16px 16px 0;
	margin: 1.5rem 0;
	font-style: normal;
}

.ivf-page-content blockquote p {
	margin-bottom: 0;
}

.ivf-page-content blockquote p:first-child {
	font-weight: 600;
	color: var(--wp--preset--color--primary, #00696b);
}

/* --- Tables → Rounded with Header Stripe --- */
.ivf-page-content table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid var(--wp--preset--color--border, #edeeef);
	border-radius: 12px;
	overflow: hidden;
	margin: 1.5rem 0;
}

.ivf-page-content table thead th,
.ivf-page-content table th {
	background: var(--wp--preset--color--primary-surface, #f0f9f9);
	font-weight: 700;
	color: var(--wp--preset--color--primary, #00696b);
	padding: 12px 16px;
	text-align: left;
	border-bottom: 1px solid var(--wp--preset--color--border, #edeeef);
}

.ivf-page-content table td {
	padding: 12px 16px;
	border-bottom: 1px solid var(--wp--preset--color--border, #edeeef);
}

.ivf-page-content table tr:last-child td {
	border-bottom: none;
}

.ivf-page-content table tbody tr:nth-child(even) td {
	background: var(--wp--preset--color--surface, #f8fafc);
}

/* --- Figcaptions --- */
.ivf-page-content figcaption {
	text-align: center;
	font-size: 0.8125rem;
	color: var(--wp--preset--color--body-muted, #64748b);
	margin-top: 8px;
}

/* --- Stat / Cost Callout Cards (Bayi Tabung) --- */
.ivf-stat-callout {
	background: var(--wp--preset--color--primary-surface, #f0f9f9);
	border: 1px solid rgba(0, 105, 107, 0.12);
	border-radius: 20px;
	padding: 28px;
	margin: 1.5rem 0;
}

.ivf-stat-callout .stat-label {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--wp--preset--color--body, #3f4948);
	margin-bottom: 4px;
}

.ivf-stat-callout .stat-value {
	font-family: var(--wp--preset--font-family--heading, 'Manrope', sans-serif);
	font-size: 2rem;
	font-weight: 800;
	color: var(--wp--preset--color--primary, #00696b);
	line-height: 1.2;
	margin-bottom: 8px;
}

.ivf-stat-callout p {
	font-size: 0.875rem;
	line-height: 1.6;
	margin-bottom: 0;
}

/* --- Mobile adjustments --- */
@media (max-width: 768px) {
	.ivf-page-content ol > li {
		padding: 14px 16px 14px 48px;
	}

	.ivf-page-content ol > li::before {
		left: 12px;
		top: 14px;
		width: 24px;
		height: 24px;
		font-size: 0.75rem;
	}

	.ivf-stat-callout {
		padding: 20px;
	}

	.ivf-stat-callout .stat-value {
		font-size: 1.5rem;
	}
}

/* --- Transparency Checklist Card --- */
.ivf-transparency-card {
	background: linear-gradient(135deg, #f2fafa 0%, #f5fbfb 100%);
	border: 1px solid rgba(0, 105, 107, 0.1);
	border-radius: 24px;
	padding: 32px 36px;
	margin: 2rem 0;
}

.ivf-transparency-card .card-heading {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 20px;
}

.ivf-transparency-card .card-heading .heart-icon {
	width: 32px;
	height: 32px;
	border-radius: 10px;
	background: rgba(0, 105, 107, 0.1);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	font-size: 18px;
	line-height: 1;
}

.ivf-transparency-card .card-heading h3 {
	font-family: var(--wp--preset--font-family--heading, 'Manrope', sans-serif);
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--wp--preset--color--primary, #00696b);
	margin: 0;
	line-height: 1.3;
}

.ivf-transparency-card .card-intro {
	font-size: 0.9375rem;
	line-height: 1.7;
	color: var(--wp--preset--color--body, #3f4948);
	margin-bottom: 20px;
}

.ivf-transparency-card .card-transition {
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--wp--preset--color--body, #3f4948);
	margin-bottom: 16px;
}

.ivf-transparency-card .checklist {
	list-style: none;
	padding: 0;
	margin: 0 0 20px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ivf-transparency-card .checklist li {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.5;
	color: var(--wp--preset--color--body, #3f4948);
	padding: 0;
	margin: 0;
}

.ivf-transparency-card .checklist li::before {
	content: "";
	width: 22px;
	height: 22px;
	border-radius: 6px;
	border: 1.5px solid rgba(0, 105, 107, 0.35);
	background: #fff;
	flex-shrink: 0;
	position: static;
	-webkit-mask-image: none;
	mask-image: none;
}

.ivf-transparency-card .card-punchline {
	font-size: 0.875rem;
	font-weight: 600;
	color: #8c2619;
	line-height: 1.6;
	margin-bottom: 20px;
}

.ivf-transparency-card .card-divider {
	height: 1px;
	background: rgba(0, 105, 107, 0.12);
	margin-bottom: 20px;
}

.ivf-transparency-card .card-closing {
	font-size: 0.9375rem;
	line-height: 1.7;
	color: var(--wp--preset--color--body, #3f4948);
	margin: 0;
}

@media (max-width: 768px) {
	.ivf-transparency-card {
		padding: 24px 20px;
		border-radius: 20px;
	}

	.ivf-transparency-card .card-heading h3 {
		font-size: 1.125rem;
	}
}

/* === End D1/D2 Content Visual Enhancements === */

/* ==========================================================================
   Quiz CTA Section
   ========================================================================== */

.ivf-quiz-cta {
	background: var(--wp--preset--color--primary, #00696b);
	border-radius: 20px;
	box-shadow: 0 12px 40px rgba(0, 64, 65, 0.25);
	padding: 48px 40px;
	text-align: center;
	margin-top: 20px;
	position: relative;
	overflow: hidden;
}

.ivf-quiz-cta::before {
	content: "";
	position: absolute;
	top: -40px;
	right: -40px;
	width: 200px;
	height: 200px;
	border-radius: 9999px;
	background: rgba(154, 241, 243, 0.12);
	filter: blur(60px);
	pointer-events: none;
}

.ivf-quiz-cta h2 {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	font-size: 1.5rem;
	color: #fff;
	margin: 0 0 8px;
	line-height: 1.3;
	position: relative;
}

.ivf-quiz-cta > p {
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.9375rem;
	color: rgba(192, 232, 233, 0.85);
	margin: 0 0 24px;
	line-height: 1.6;
	position: relative;
}

#ciputra-quiz {
	min-height: 320px;
	max-width: 640px;
	margin-left: auto;
	margin-right: auto;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
	position: relative;
}

#ciputra-quiz iframe {
	border-radius: 14px;
}

@media (max-width: 600px) {
	.ivf-quiz-cta {
		padding: 36px 20px;
		border-radius: 16px;
	}

	.ivf-quiz-cta h2 {
		font-size: 1.25rem;
	}
}

.ivf-quiz-cta--hero {
	padding: 64px 24px;
}

.ivf-quiz-cta--hero > h2,
.ivf-quiz-cta--hero > p {
	display: none;
}

@media (max-width: 600px) {
	.ivf-quiz-cta--hero {
		padding: 40px 20px;
	}
}

.ivf-quiz-cta--inline {
	max-width: calc((1080px - 48px) * 0.6666);
	margin: 0;
	padding: 28px 24px;
	border-radius: 16px;
	box-shadow: 0 6px 24px rgba(0, 64, 65, 0.18);
}

.ivf-quiz-cta--inline h2 {
	font-size: 1.125rem;
	margin-bottom: 4px;
}

.ivf-quiz-cta--inline > p {
	font-size: 0.8125rem;
	margin-bottom: 16px;
}

.ivf-quiz-cta--inline #ciputra-quiz {
	min-height: 240px;
	max-width: 100%;
	border-radius: 10px;
}

@media (max-width: 600px) {
	.ivf-quiz-cta--inline {
		max-width: 100%;
		padding: 24px 16px;
	}
}

/* ==========================================================================
   Article Metadata Footer
   ========================================================================== */

.ivf-article-meta {
    margin-top: 24px;
    padding: 16px 24px;
    border-radius: 16px;
    background: var(--wp--preset--color--surface-high, #f8fafa);
    border: 1px solid rgba(190, 201, 200, 0.15);
    font-family: var(--wp--preset--font-family--body);
    font-size: 13px;
    color: var(--wp--preset--color--body);
    line-height: 1.5;
}

.ivf-article-meta__reviewer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(190, 201, 200, 0.15);
}

.ivf-article-meta__reviewer svg {
    flex-shrink: 0;
    color: var(--wp--preset--color--primary);
}

.ivf-article-meta__reviewer span {
    font-size: 14px;
    color: var(--wp--preset--color--body);
}

.ivf-article-meta__reviewer strong {
    color: var(--wp--preset--color--heading);
    font-weight: 700;
}

.ivf-article-meta__reviewer a {
    color: var(--wp--preset--color--primary);
    text-decoration: underline;
    text-decoration-color: rgba(0, 105, 107, 0.3);
    text-underline-offset: 2px;
    transition: text-decoration-color 0.2s;
}

.ivf-article-meta__reviewer a:hover {
    text-decoration-color: var(--wp--preset--color--primary);
}

.ivf-article-meta__dates {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
    font-size: 13px;
    color: var(--wp--preset--color--body);
}

.ivf-article-meta__author {
    color: var(--wp--preset--color--primary);
    text-decoration: none;
    font-weight: 600;
}

.ivf-article-meta__separator {
    color: rgba(190, 201, 200, 0.5);
    user-select: none;
}

.ivf-article-meta__sources {
    margin-top: 6px;
    border-top: 1px solid rgba(190, 201, 200, 0.15);
    padding-top: 0;
}

.ivf-article-meta__sources summary {
    padding: 6px 0;
    font-weight: 600;
    font-size: 13px;
    color: var(--wp--preset--color--primary);
    cursor: pointer;
    list-style: none;
}

.ivf-article-meta__sources summary::-webkit-details-marker {
    display: none;
}

.ivf-article-meta__sources summary::before {
    content: '▸ ';
    font-size: 11px;
}

.ivf-article-meta__sources[open] summary::before {
    content: '▾ ';
}

.ivf-article-meta__sources ol {
    margin: 0;
    padding: 0 0 4px 20px;
    font-size: 12px;
    line-height: 1.7;
}

.ivf-article-meta__sources ol li {
    color: var(--wp--preset--color--body);
    padding: 2px 0;
}

.ivf-article-meta__sources ol a {
    color: var(--wp--preset--color--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: rgba(0, 105, 107, 0.3);
}

.ivf-article-meta__sources ol a:hover {
    text-decoration-color: var(--wp--preset--color--primary);
}

@media (max-width: 600px) {
    .ivf-article-meta {
        margin-top: 16px;
        padding: 16px 20px;
    }

    .ivf-article-meta__dates {
        gap: 4px 6px;
    }
}

/* ==========================================================================
   Page Template — Mobile Hero Adjustments
   ========================================================================== */

@media (max-width: 781px) {
	.ivf-page-hero {
		padding-top: 32px !important;
	}
}

/* ── Floating Quiz CTA (SJC-473) ── */
.floating-cta {
	position: fixed;
	bottom: 28px;
	right: 16px;
	z-index: 9999;
}

.floating-cta__card {
	display: inline-flex;
	align-items: stretch;
	background: #fff;
	border-radius: 12px;
	border: 1px solid rgba(0, 105, 107, 0.15);
	box-shadow:
		0 6px 20px -4px rgba(0, 64, 65, 0.12),
		0 2px 4px rgba(0, 64, 65, 0.06);
	overflow: hidden;
	transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
	            opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
	transform: translateX(0);
	opacity: 1;
}

.floating-cta--dismissed .floating-cta__card {
	transform: translateX(calc(100% + 32px));
	opacity: 0;
	pointer-events: none;
}

.floating-cta__content {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 10px 4px 10px 12px;
}

.floating-cta__header {
	display: flex;
	align-items: center;
	gap: 6px;
}

.floating-cta__dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #00696b;
	flex-shrink: 0;
}

.floating-cta__title {
	font-size: 13px;
	font-weight: 700;
	color: #00696b;
	line-height: 1.2;
}

.floating-cta__subtitle {
	font-size: 11px;
	font-weight: 500;
	color: #6b7280;
}

.floating-cta__btn {
	display: inline-block;
	padding: 7px 12px;
	background: #00696b;
	color: #fff !important;
	font-size: 12px;
	font-weight: 600;
	border-radius: 8px;
	text-decoration: none;
	text-align: center;
	transition: background 0.2s;
	align-self: flex-start;
	white-space: nowrap;
}

.floating-cta__btn:hover {
	background: #005153;
}

.floating-cta__handle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	padding: 0;
	border: 0;
	background: #f3f4f4;
	cursor: pointer;
	flex-shrink: 0;
	transition: background 0.2s;
}

.floating-cta__handle:hover {
	background: #e5e7e7;
}

.floating-cta__chevron {
	font-size: 16px;
	color: #9ca3af;
	line-height: 1;
}

.floating-cta__tab {
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 36px;
	height: 72px;
	padding: 0;
	border: 0;
	background: #00696b;
	border-radius: 12px 0 0 12px;
	cursor: pointer;
	box-shadow: -2px 2px 10px rgba(0, 64, 65, 0.2);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-cta--dismissed .floating-cta__tab {
	opacity: 1;
	pointer-events: auto;
}

.floating-cta__tab:hover {
	background: #005153;
}

.floating-cta__tab-chevron {
	font-size: 20px;
	font-weight: 700;
	color: #fff;
	line-height: 1;
}

.floating-cta__tab-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #fed65b;
}

@media (max-width: 480px) {
	.floating-cta {
		right: 8px;
		bottom: 16px;
	}
}

/* Accessibility: visually hidden but screen-reader accessible */
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Lead capture form (sidebar) */
.ivf-lead-form {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.ivf-lead-form input {
	width: 100%;
	padding: 14px 16px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 12px;
	background-color: var(--wp--preset--color--white);
	font-family: var(--wp--preset--font-family--body);
	font-size: 14px;
	color: var(--wp--preset--color--heading);
	outline: none;
	box-sizing: border-box;
}
.ivf-lead-form input::placeholder {
	color: #6b7280;
}
.ivf-lead-form input:focus {
	box-shadow: 0 0 0 2px var(--wp--preset--color--primary);
	outline: 2px solid transparent;
}
@media (forced-colors: active) {
	.ivf-lead-form input:focus {
		outline: 2px solid ButtonText;
	}
}
.ivf-lead-form button {
	width: 100%;
	padding: 14px 24px;
	box-sizing: border-box;
	border: 1px solid transparent;
	border-radius: 12px;
	background-color: var(--wp--preset--color--primary);
	color: #ffffff;
	font-family: var(--wp--preset--font-family--body);
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 0.2s;
}
.ivf-lead-form button:hover {
	background-color: #005153;
}
.ivf-lead-form button:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}
.ivf-lead-form__hp {
	position: absolute;
	left: -9999px;
	opacity: 0;
	height: 0;
	width: 0;
	overflow: hidden;
}
.ivf-lead-form__success {
	text-align: center;
	color: var(--wp--preset--color--primary);
	font-weight: 600;
	font-size: 14px;
	padding: 12px 0;
	margin: 0;
}

/* Cek Kesuburan engagement block (sidebar) */
.ivf-kesuburan-actions {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.ivf-kesuburan-btn {
	display: block;
	text-align: center;
	padding: 12px 16px;
	border-radius: 12px;
	font-family: var(--wp--preset--font-family--body);
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	transition: background-color 0.2s, border-color 0.2s;
}
.ivf-kesuburan-btn--primary {
	background-color: var(--wp--preset--color--primary);
	color: #ffffff;
}
.ivf-kesuburan-btn--primary:hover {
	background-color: #005153;
}
.ivf-kesuburan-btn--outline {
	background-color: var(--wp--preset--color--white);
	color: var(--wp--preset--color--primary);
	border: 1.5px solid rgba(0, 105, 107, 0.3);
}
.ivf-kesuburan-btn--outline:hover {
	background-color: var(--wp--preset--color--primary-surface);
	border-color: var(--wp--preset--color--primary);
}

/* Sidebar: force top-alignment with content column on desktop */
@media (min-width: 783px) {
	.ivf-sidebar {
		margin-top: 0 !important;
		padding-top: 0 !important;
	}

	.ivf-sidebar-cta {
		position: sticky;
		top: 100px;
	}
}

/* Mobile sidebar reorder: show lead form, kesuburan, testimonial before pillar articles */
@media (max-width: 781px) {
	.ivf-sidebar {
		display: flex;
		flex-direction: column;
		gap: 32px;
	}
	.ivf-sidebar-pillar {
		order: 4;
	}
}

/* ==========================================================================
   Kesuburan Section
   ========================================================================== */

/* Desktop: horizontal card layout */
@media (min-width: 783px) {
	.ivf-kesuburan-section .ivf-tool-card {
		display: grid !important;
		grid-template-columns: 56px 1fr;
		grid-template-rows: auto auto auto auto;
		column-gap: 20px;
		row-gap: 0;
		align-items: start;
		padding: 32px 36px !important;
		border-radius: 28px !important;
	}
	/* Accent bar spans full width */
	.ivf-kesuburan-section .ivf-tool-card > div:first-child {
		grid-column: 1 / -1;
		margin-bottom: 16px;
	}
	/* Icon in left column, spanning title + desc rows */
	.ivf-kesuburan-section .ivf-tool-card > div:nth-child(2) {
		grid-column: 1;
		grid-row: 2 / 4;
		margin-top: 2px;
	}
	/* Title */
	.ivf-kesuburan-section .ivf-tool-card > h3 {
		grid-column: 2;
		grid-row: 2;
		margin: 0 !important;
	}
	/* Description */
	.ivf-kesuburan-section .ivf-tool-card > p {
		grid-column: 2;
		grid-row: 3;
		margin: 6px 0 0 !important;
	}
	/* Button spans full width below */
	.ivf-kesuburan-section .ivf-tool-card > .wp-block-buttons {
		grid-column: 1 / -1;
		grid-row: 4;
		margin-top: 20px !important;
	}
}

/* Mobile */
@media (max-width: 782px) {
	.ivf-kesuburan-section {
		border-radius: 0 !important;
		padding: 40px 20px 32px !important;
	}
	.ivf-kesuburan-section > .wp-block-group[style*="max-width"] {
		margin-bottom: 24px !important;
	}
	.ivf-kesuburan-section .wp-block-columns {
		gap: 16px !important;
	}
	.ivf-kesuburan-section .ivf-tool-card {
		border-radius: 20px !important;
		padding: 24px 20px !important;
		gap: 16px !important;
	}
}

/* ==========================================================================
   Location Page — mobile spacing
   ========================================================================== */

@media (max-width: 781px) {
	.ivf-location-hero {
		min-height: auto !important;
		padding-top: 32px !important;
		padding-bottom: 16px !important;
	}
	.ivf-location-cards {
		padding-top: 16px !important;
	}
}

/* ==========================================================================
   Services Page — tighter spacing on mobile
   ========================================================================== */

@media (max-width: 781px) {
	/* Hero: tight padding on mobile */
	.page-template-page-services main > .wp-block-cover {
		padding-top: 24px !important;
		padding-bottom: 24px !important;
	}

	/* Hero inner: reduce blockGap and side padding */
	.page-template-page-services main > .wp-block-cover .wp-block-cover__inner-container > .wp-block-group {
		padding-left: 20px !important;
		padding-right: 20px !important;
		gap: 12px !important;
	}

	/* Hero description: smaller on mobile (exclude badge text) */
	.page-template-page-services main > .wp-block-cover .wp-block-cover__inner-container > .wp-block-group > p {
		font-size: 16px !important;
	}

	/* Section padding on mobile */
	.page-template-page-services main > .wp-block-group {
		padding-top: 24px !important;
		padding-bottom: 24px !important;
	}

	/* Card padding on mobile */
	.page-template-page-services .wp-block-column > .wp-block-group[style*="border-radius"] {
		padding: 16px !important;
	}

	/* Column stacking gap on mobile */
	.page-template-page-services .wp-block-columns {
		gap: 12px !important;
	}

	/* Section header to content gap */
	.page-template-page-services .wp-block-group[style*="margin-bottom"] {
		margin-bottom: 12px !important;
	}

	/* Reduce icon container size on mobile */
	.page-template-page-services .wp-block-column > .wp-block-group[style*="border-radius"] div[style*="56px"] {
		width: 44px !important;
		height: 44px !important;
		border-radius: 10px !important;
	}

	/* Reduce icon SVG size on mobile */
	.page-template-page-services .wp-block-column > .wp-block-group[style*="border-radius"] div[style*="56px"] svg {
		width: 24px !important;
		height: 24px !important;
	}

	/* Reduce title margin-top on mobile */
	.page-template-page-services .wp-block-column > .wp-block-group[style*="border-radius"] h3 {
		margin-top: 4px !important;
	}

	/* Tighten card internal blockGap on mobile */
	.page-template-page-services .wp-block-column > .wp-block-group[style*="border-radius"] > * + * {
		margin-top: 6px !important;
	}

	/* Remove extra padding on "Pelajari Selengkapnya" link */
	.page-template-page-services .wp-block-column > .wp-block-group[style*="border-radius"] p[style*="padding-top"] {
		padding-top: 0 !important;
	}

	/* Tighter section header blockGap */
	.page-template-page-services main > .wp-block-group > .wp-block-group[style*="max-width"] {
		gap: 6px !important;
	}

	/* Smaller section headings on mobile */
	.page-template-page-services main h2.has-heading-2-font-size {
		font-size: 24px !important;
	}

	/* Smaller hero heading on mobile */
	.page-template-page-services main .wp-block-cover h1 {
		font-size: 32px !important;
	}

	/* Process step columns: tighter */
	.page-template-page-services .wp-block-columns[style*="48px"] {
		gap: 24px !important;
	}
}

/* ==========================================================================
   Buat Janji — Appointment Cards
   ========================================================================== */

.ivf-doctor-grid.wp-block-columns {
	margin-bottom: 0;
}

.ivf-doctor-grid .wp-block-column {
	display: flex;
	flex-direction: column;
}

.ivf-appointment-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 24px;
	border-radius: 16px;
	border: 1px solid var(--wp--preset--color--border);
	background: #fff;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
	flex: 1;
}

.ivf-appointment-card p {
	margin-top: 0;
	margin-bottom: 0;
}

.ivf-appointment-card h3 {
	margin-top: 0;
	margin-bottom: 0;
}

.ivf-appointment-card__photo {
	width: 100px;
	height: 100px;
	border-radius: 50%;
	object-fit: cover;
	margin-bottom: 14px;
	box-shadow: 0 4px 12px rgba(0, 105, 107, 0.12);
}

.ivf-appointment-card__name {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--wp--preset--color--heading);
	margin: 0 0 8px !important;
	min-height: 47px;
}

.ivf-appointment-card__specialty {
	font-family: var(--wp--preset--font-family--body);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--wp--preset--color--primary);
	margin: 0 0 24px !important;
	min-height: 40px;
}

.ivf-appointment-card__btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	background: var(--wp--preset--color--primary);
	color: #fff;
	font-family: var(--wp--preset--font-family--body);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	padding: 12px;
	border-radius: 8px;
	margin-top: auto;
	transition: opacity 0.2s ease;
	text-align: center;
	align-self: stretch;
}

.ivf-appointment-card__btn:hover {
	opacity: 0.88;
	color: #fff;
}

.ivf-appointment-card__btn-location {
	font-size: 11px;
	font-weight: 400;
	opacity: 0.7;
}

.ivf-appointment-card__btn-group {
	display: flex;
	gap: 8px;
	margin-top: auto;
	width: 100%;
}

.ivf-appointment-card > .ivf-appointment-card__btn {
	height: 86px;
}

.ivf-appointment-card__btn-group .ivf-appointment-card__btn {
	margin-top: 0;
	flex: 1;
	height: 86px;
}

/* Mobile: vertical card layout */
@media (max-width: 781px) {
	.ivf-doctor-grid {
		flex-direction: column !important;
	}

	.ivf-appointment-card {
		flex-direction: column;
		align-items: center;
		padding: 20px 16px;
		border-radius: 12px;
		text-align: center;
	}

	.ivf-appointment-card__photo {
		width: 72px;
		height: 72px;
		margin-bottom: 12px;
	}

	.ivf-appointment-card__name {
		font-size: 15px;
		margin-bottom: 4px !important;
		min-height: 0;
	}

	.ivf-appointment-card__specialty {
		font-size: 12px;
		margin-bottom: 16px !important;
		min-height: 0;
	}

	.ivf-appointment-card__btn {
		font-size: 12px;
		padding: 10px 12px;
		border-radius: 6px;
		height: auto;
		min-height: 0;
		align-self: stretch;
	}

	.ivf-appointment-card > .ivf-appointment-card__btn {
		height: auto;
	}

	.ivf-appointment-card__btn-group {
		width: 100%;
		gap: 8px;
	}

	.ivf-appointment-card__btn-group .ivf-appointment-card__btn {
		font-size: 12px;
		padding: 10px 8px;
		height: auto;
	}

	.ivf-appointment-card__btn-location {
		font-size: 10px;
	}
}

/* ==========================================================================
   Medical Disclaimer Card (F2)
   ========================================================================== */

.ivf-disclaimer {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 20px 24px;
	background: #E6F5F5;
	border-radius: 10px;
	margin-top: 32px;
	margin-bottom: 8px;
}

.ivf-disclaimer__icon {
	flex-shrink: 0;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: rgba(0, 105, 107, 0.10);
}

.ivf-disclaimer__icon svg {
	width: 16px;
	height: 16px;
	color: #00696B;
}

.ivf-disclaimer__content {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.ivf-disclaimer .ivf-disclaimer__title {
	font-size: 13px;
	font-weight: 600;
	color: #00696B;
	letter-spacing: 0.01em;
}

.ivf-disclaimer p.ivf-disclaimer__text {
	font-size: 15px;
	font-weight: 400;
	line-height: 1.7;
	color: #5C6868;
	margin: 0;
}

@media (max-width: 600px) {
	.ivf-disclaimer {
		padding: 16px;
		gap: 12px;
	}

	.ivf-disclaimer .ivf-disclaimer__title {
		font-size: 12.5px;
	}

	.ivf-disclaimer p.ivf-disclaimer__text {
		font-size: 14px;
		line-height: 1.6;
	}
}

/* ==========================================================================
   About page — prevent stat badge overflow on mobile
   ========================================================================== */

.page-template-page-about .has-surface-background-color {
	overflow: hidden;
}

/* ==========================================================================
   Tim Konten Medis page — doctor profile cards
   ========================================================================== */

/* Profile photo: centered circle with subtle shadow */
.page-id-22320 .entry-content > .wp-block-group > p > .alignleft {
	float: none !important;
	display: block;
	margin: 0 auto 16px !important;
	border-radius: 50%;
	width: 120px !important;
	height: 120px !important;
	object-fit: cover;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* The paragraph containing image + name: center everything */
.page-id-22320 .entry-content > .wp-block-group > p:has(> .alignleft) {
	text-align: center;
	padding: 32px 0 0;
}

/* Name/role span wrapper: block layout, hide underscore overflow */
.page-id-22320 .entry-content > .wp-block-group > p > span[style*="font-size"] {
	display: block;
	text-align: center;
	font-weight: 600;
	line-height: 1.3;
	font-size: 17px !important;
	overflow: hidden;
	max-height: 3.6em;
}

/* Role label (Editor Medis / Editor Konten / Penulis Konten): force own line */
.page-id-22320 .entry-content > .wp-block-group > p > span[style*="font-size"] > span[style*="color"] {
	display: block;
	font-size: 13px !important;
	font-weight: 500;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	margin-top: 4px;
}

/* Bio paragraphs: cleaner spacing */
.page-id-22320 .entry-content > .wp-block-group > p[style*="justify"] {
	max-width: 680px;
	margin-left: auto;
	margin-right: auto;
}

/* Mobile adjustments */
@media (max-width: 600px) {
	.page-id-22320 .entry-content > .wp-block-group > p > .alignleft {
		width: 100px !important;
		height: 100px !important;
	}

	.page-id-22320 .entry-content > .wp-block-group > p > span[style*="font-size"] {
		font-size: 15px !important;
	}
}
