/* ==========================================================================
   Patricia Flor — Premium Custom Styles
   A polished, professional psychology practice theme
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Custom properties & base resets
   -------------------------------------------------------------------------- */
:root {
	--pf-ease: cubic-bezier(0.4, 0, 0.2, 1);
	--pf-ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
	--pf-header-height: 80px;
	--pf-header-height-scrolled: 68px;
	--pf-primary-rgb: 18, 36, 134;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--pf-header-height) + 4rem);
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

/* --------------------------------------------------------------------------
   1. Focus & accessibility
   -------------------------------------------------------------------------- */
:focus-visible {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 2px;
	border-radius: 2px;
}

/* Skip-to-content link */
.skip-to-content {
	position: absolute;
	top: -100%;
	left: 50%;
	transform: translateX(-50%);
	z-index: 10000;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
	padding: 0.75em 1.5em;
	border-radius: 0 0 8px 8px;
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
	transition: top 0.2s ease;
}
.skip-to-content:focus {
	top: 0;
	outline: 2px solid var(--wp--preset--color--white);
	outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   2. Header — 3-tier: topbar → brand → sticky nav bar
   -------------------------------------------------------------------------- */

/* Full header wrapper — sticky with slide animation */
.wp-block-template-part:has(.site-header),
header.wp-block-template-part:first-child {
	position: sticky;
	top: 0;
	z-index: 1000;
	transition: transform 0.35s var(--pf-ease), box-shadow 0.35s var(--pf-ease);
	will-change: transform;
}

.site-header {
	position: relative;
	z-index: 1000;
	background: var(--wp--preset--color--white);
}

.header-wrap-sticky {
	position: sticky;
	top: 0;
	z-index: 1000;
	transition: transform 0.35s var(--pf-ease), box-shadow 0.35s var(--pf-ease);
	will-change: transform;
}

.header-wrap-sticky.is-hidden {
	transform: translateY(-100%);
}

.header-wrap-sticky.is-pinned {
	box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

/* Top bar — dark strip with contact info */
.header-topbar {
	max-width: 100%;
	gap: 0 !important;
}
.header-topbar p {
	margin: 0;
	line-height: 1.4;
}
.header-topbar a:hover {
	opacity: 0.8;
}

/* Brand area — centered name, tagline, CTA */
.header-brand {
	max-width: var(--wp--style--global--wide-size, 1400px);
	margin: 0 auto;
	padding-left: var(--wp--preset--spacing--40);
	padding-right: var(--wp--preset--spacing--40);
	gap: var(--wp--preset--spacing--30) !important;
	align-items: center;
	border-bottom: 1px solid var(--wp--preset--color--border);
}

/* Nav bar */
.header-nav-bar {
	transition: box-shadow 0.3s var(--pf-ease);
}

/* Nav links on dark background */
.header-nav-bar .wp-block-navigation-item a {
	color: rgba(255, 255, 255, 0.9) !important;
	padding: 0.7em 0.6em;
	transition: color 0.25s var(--pf-ease), background 0.25s var(--pf-ease);
	position: relative;
	text-decoration: none !important;
}
.header-nav-bar .wp-block-navigation-item a:hover {
	color: #fff !important;
	background: rgba(255, 255, 255, 0.1);
	text-decoration: none !important;
}
/* Underline on hover for nav-bar links */
.header-nav-bar .wp-block-navigation-item a::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 50%;
	width: 0;
	height: 2px;
	background: var(--wp--preset--color--white);
	transition: width 0.3s var(--pf-ease), left 0.3s var(--pf-ease);
}
.header-nav-bar .wp-block-navigation-item a:hover::after {
	width: 80%;
	left: 10%;
}

/* Header CTA buttons */
.header-cta .wp-block-button__link {
	box-shadow: 0 2px 8px rgba(var(--pf-primary-rgb), 0.2);
}
.header-cta .wp-block-button__link:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 14px rgba(var(--pf-primary-rgb), 0.3);
}

/* Push body content below the header (approx topbar + brand + nav) */
body {
	padding-top: 0 !important;
}

/* Header logo/title area */
.site-header .wp-block-site-logo img {
	transition: all 0.4s var(--pf-ease);
}

/* Mobile nav overlay */
.wp-block-navigation__responsive-container.is-menu-open {
	padding: var(--wp--preset--spacing--60) var(--wp--preset--spacing--40);
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item a {
	font-size: 1.1rem;
	padding: 0.6em 0;
	color: #fff !important;
}

/* --------------------------------------------------------------------------
   3. Button hover effects
   -------------------------------------------------------------------------- */
.wp-block-button__link,
.wp-element-button {
	transition: all 0.35s var(--pf-ease);
	position: relative;
}

.wp-block-button__link:hover,
.wp-element-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px -8px rgba(var(--pf-primary-rgb), 0.35);
}

.wp-block-button__link:active,
.wp-element-button:active {
	transform: translateY(0);
	box-shadow: 0 2px 8px -4px rgba(var(--pf-primary-rgb), 0.3);
}

/* Outline button hover fill */
.wp-block-button.is-style-outline .wp-block-button__link {
	border-width: 2px;
	transition: all 0.35s var(--pf-ease);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
	border-color: var(--wp--preset--color--primary);
}

/* Accent-colored buttons */
.wp-block-button__link.has-accent-background-color:hover {
	box-shadow: 0 8px 24px -8px rgba(var(--pf-primary-rgb), 0.4);
}

/* --------------------------------------------------------------------------
   4. Hero section
   -------------------------------------------------------------------------- */
.hero-section {
	position: relative;
}

.hero-section .wp-block-cover {
	min-height: 85vh;
}

.hero-section .wp-block-cover__background {
	background: linear-gradient(
		175deg,
		rgba(var(--pf-primary-rgb), 0.72) 0%,
		rgba(33, 83, 135, 0.6) 50%,
		rgba(26, 32, 44, 0.78) 100%
	) !important;
}

.hero-section .wp-block-cover__inner-container {
	position: relative;
	z-index: 2;
}

/* Hero text enhancements */
.hero-tagline {
	opacity: 0.9;
}

/* --------------------------------------------------------------------------
   5. Section spacing & alternating backgrounds
   -------------------------------------------------------------------------- */
.services-section,
.values-section,
.testimonials-section,
.blog-section,
.cta-section {
	position: relative;
}

/* Section heading decoration */
.services-section > .wp-block-heading,
.values-section > .wp-block-heading,
.testimonials-section > .wp-block-heading,
.blog-section > .wp-block-heading {
	position: relative;
}

.services-section > .wp-block-heading::after,
.values-section > .wp-block-heading::after,
.testimonials-section > .wp-block-heading::after,
.blog-section > .wp-block-heading::after {
	content: '';
	display: block;
	width: 48px;
	height: 3px;
	background: var(--wp--preset--color--primary);
	margin: 0.6em auto 0;
	border-radius: 2px;
}

/* --------------------------------------------------------------------------
   6. Service cards (both image-based and emoji-based)
   -------------------------------------------------------------------------- */
/* Image-based service cards (from pattern) */
.service-card .card-inner {
	transition: all 0.45s var(--pf-ease);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
	overflow: hidden;
}

.service-card .card-inner:hover {
	transform: translateY(-8px);
	box-shadow: 0 24px 48px -14px rgba(var(--pf-primary-rgb), 0.18);
}

.service-card .card-image img {
	transition: transform 0.7s var(--pf-ease);
}

.service-card .card-inner:hover .card-image img {
	transform: scale(1.06);
}

.service-card .card-image {
	overflow: hidden;
}

/* Emoji/text-based service cards (from page content columns) */
.services-section .wp-block-column {
	transition: all 0.4s var(--pf-ease);
	position: relative;
}

.services-section .wp-block-column.has-surface-background-color {
	border: 1px solid transparent;
}

.services-section .wp-block-column.has-surface-background-color:hover {
	transform: translateY(-6px);
	box-shadow: 0 20px 40px -14px rgba(var(--pf-primary-rgb), 0.12);
	border-color: rgba(var(--pf-primary-rgb), 0.08);
	background: var(--wp--preset--color--white) !important;
}

.services-section .wp-block-column .wp-block-heading a {
	text-decoration: none;
	transition: color 0.3s var(--pf-ease);
}

.services-section .wp-block-column:hover .wp-block-heading a {
	color: var(--wp--preset--color--primary);
}

/* --------------------------------------------------------------------------
   7. Value cards
   -------------------------------------------------------------------------- */
.values-section .wp-block-column {
	transition: all 0.4s var(--pf-ease);
	border-radius: var(--wp--custom--border-radius--lg);
	position: relative;
}

.values-section .wp-block-column:hover {
	transform: translateY(-5px);
	background: var(--wp--preset--color--white);
	box-shadow: 0 16px 40px -12px rgba(var(--pf-primary-rgb), 0.1);
}

.value-card {
	transition: all 0.35s var(--pf-ease);
}

.value-card:hover {
	transform: translateY(-4px);
}

.value-icon img {
	transition: transform 0.4s var(--pf-ease-bounce);
}

.value-card:hover .value-icon img {
	transform: scale(1.15) rotate(3deg);
}

/* --------------------------------------------------------------------------
   8. Testimonials / Quotes
   -------------------------------------------------------------------------- */
.testimonial-inner {
	transition: all 0.4s var(--pf-ease);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
	position: relative;
	overflow: hidden;
}

.testimonial-inner::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--wp--preset--color--primary), var(--wp--preset--color--secondary));
	opacity: 0;
	transition: opacity 0.4s var(--pf-ease);
}

.testimonial-inner:hover {
	transform: translateY(-5px);
	box-shadow: 0 20px 40px -10px rgba(var(--pf-primary-rgb), 0.14);
}

.testimonial-inner:hover::before {
	opacity: 1;
}

/* Blockquote testimonials (used on actual homepage) */
.testimonials-section .wp-block-quote {
	background: var(--wp--preset--color--white);
	border-radius: var(--wp--custom--border-radius--lg, 16px);
	border-left: 3px solid var(--wp--preset--color--primary);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
	transition: all 0.4s var(--pf-ease);
	margin-bottom: var(--wp--preset--spacing--30);
	position: relative;
	overflow: hidden;
}

.testimonials-section .wp-block-quote::before {
	content: '\201C';
	position: absolute;
	top: -8px;
	right: 16px;
	font-size: 5rem;
	font-family: var(--wp--preset--font-family--heading);
	color: var(--wp--preset--color--primary);
	opacity: 0.1;
	line-height: 1;
	pointer-events: none;
}

.testimonials-section .wp-block-quote:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 36px -8px rgba(var(--pf-primary-rgb), 0.12);
	border-left-color: var(--wp--preset--color--primary-light);
}

/* --------------------------------------------------------------------------
   9. Blog/post cards
   -------------------------------------------------------------------------- */
.blog-card,
.archive-card {
	transition: all 0.4s var(--pf-ease);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
	overflow: hidden;
}

.blog-card:hover,
.archive-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 20px 40px -12px rgba(var(--pf-primary-rgb), 0.14);
}

.blog-card .wp-block-post-featured-image img,
.archive-card .wp-block-post-featured-image img {
	transition: transform 0.7s var(--pf-ease);
}

.blog-card:hover .wp-block-post-featured-image img,
.archive-card:hover .wp-block-post-featured-image img {
	transform: scale(1.04);
}

.blog-card .wp-block-post-featured-image,
.archive-card .wp-block-post-featured-image {
	overflow: hidden;
}

/* Post title links */
.blog-card .wp-block-post-title a,
.archive-card .wp-block-post-title a {
	text-decoration: none;
	transition: color 0.3s var(--pf-ease);
}

.blog-card:hover .wp-block-post-title a,
.archive-card:hover .wp-block-post-title a {
	color: var(--wp--preset--color--primary);
}

/* --- Blog Search Bar --- */

.blog-search-bar {
	border: 1px solid var(--wp--preset--color--border);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
	margin-bottom: var(--wp--preset--spacing--40);
}

.blog-search-form {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

.blog-search-label {
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--wp--preset--color--primary);
}

.blog-search-field-wrap {
	display: flex;
	position: relative;
}

.blog-search-input {
	flex: 1;
	padding: 0.7rem 1rem;
	padding-right: 3rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 8px;
	font-size: 0.95rem;
	font-family: inherit;
	color: var(--wp--preset--color--dark);
	background: var(--wp--preset--color--surface);
	outline: none;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.blog-search-input:focus {
	border-color: var(--wp--preset--color--primary);
	box-shadow: 0 0 0 3px rgba(var(--pf-primary-rgb), 0.1);
}

.blog-search-input::placeholder {
	color: var(--wp--preset--color--subtle);
}

.blog-search-btn {
	position: absolute;
	right: 4px;
	top: 50%;
	transform: translateY(-50%);
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--wp--preset--color--primary);
	color: #fff;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	transition: background 0.2s;
}

.blog-search-btn:hover {
	background: var(--wp--preset--color--primary-light);
}

@media (max-width: 600px) {
	.blog-search-input {
		font-size: 0.9rem;
		padding: 0.6rem 0.8rem;
		padding-right: 2.8rem;
	}
}

/* --- Blog Page — Featured post, badge, archive grid, pagination --- */

.blog-badge-new {
	display: inline-block;
	background: var(--wp--preset--color--primary);
	color: #fff;
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	padding: 0.2rem 0.7rem;
	border-radius: 20px;
	line-height: 1.4;
}

.blog-featured-card {
	border: 1px solid var(--wp--preset--color--border);
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
	overflow: hidden;
	transition: box-shadow 0.4s var(--pf-ease);
}

.blog-featured-card:hover {
	box-shadow: 0 12px 32px -8px rgba(var(--pf-primary-rgb), 0.14);
}

.blog-featured-card .wp-block-post-featured-image {
	overflow: hidden;
}

.blog-featured-card .wp-block-post-featured-image img {
	transition: transform 0.7s var(--pf-ease);
}

.blog-featured-card:hover .wp-block-post-featured-image img {
	transform: scale(1.03);
}

/* Archive section pagination */
.blog-archive-section .wp-block-query-pagination-numbers .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.2s ease;
	color: var(--wp--preset--color--body);
}

.blog-archive-section .wp-block-query-pagination-numbers .page-numbers:hover,
.blog-archive-section .wp-block-query-pagination-numbers .page-numbers.current {
	background: var(--wp--preset--color--primary);
	color: #fff;
}

@media (max-width: 781px) {
	.blog-archive-section .wp-block-post-template.is-layout-grid {
		grid-template-columns: 1fr;
	}
}

/* Latest posts block (core) */
.wp-block-latest-posts__list {
	list-style: none;
	padding: 0;
}

.wp-block-latest-posts__list li {
	transition: transform 0.3s var(--pf-ease);
}

.wp-block-latest-posts__list li:hover {
	transform: translateX(4px);
}

.wp-block-latest-posts__list a {
	text-decoration: none;
	font-weight: 600;
}

/* --------------------------------------------------------------------------
   10. CTA section
   -------------------------------------------------------------------------- */
.cta-section {
	position: relative;
	overflow: hidden;
}

.cta-section::before {
	content: '';
	position: absolute;
	top: -50%;
	right: -20%;
	width: 400px;
	height: 400px;
	background: rgba(255, 255, 255, 0.04);
	border-radius: 50%;
	pointer-events: none;
}

.cta-section::after {
	content: '';
	position: absolute;
	bottom: -30%;
	left: -10%;
	width: 300px;
	height: 300px;
	background: rgba(255, 255, 255, 0.03);
	border-radius: 50%;
	pointer-events: none;
}

/* White CTA button on gradient */
.cta-section .wp-block-button__link.has-white-background-color:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.3);
}

/* --------------------------------------------------------------------------
   11. Footer
   -------------------------------------------------------------------------- */
.site-footer {
	position: relative;
}

/* Footer link styling */
.site-footer a {
	color: rgba(255, 255, 255, 0.8) !important;
	text-decoration: none;
	transition: color 0.3s var(--pf-ease);
}

.site-footer a:hover {
	color: var(--wp--preset--color--primary-light) !important;
	text-decoration: none;
}

/* Footer list styling */
.footer-links {
	list-style: none;
	padding-left: 0 !important;
}

.footer-links li {
	padding: 0;
}

.footer-links li a {
	display: inline-block;
	position: relative;
	padding: 0.15em 0;
}

.footer-links li a::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 1px;
	background: var(--wp--preset--color--primary-light);
	transition: width 0.3s var(--pf-ease);
}

.footer-links li a:hover::after {
	width: 100%;
}

/* Footer social icons */
.site-footer .wp-block-social-links .wp-social-link {
	transition: transform 0.3s var(--pf-ease-bounce);
}

.site-footer .wp-block-social-links .wp-social-link:hover {
	transform: translateY(-2px) scale(1.15);
}

/* Footer separator */
.site-footer .wp-block-separator {
	opacity: 0.15;
}

/* --------------------------------------------------------------------------
   12. Scroll-triggered animations
   -------------------------------------------------------------------------- */
.animate-fade-up {
	opacity: 0;
	transform: translateY(28px);
	animation: fadeUp 0.8s var(--pf-ease) forwards;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.6s; }

@keyframes fadeUp {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Intersection Observer – elements animate when scrolled into view */
.scroll-reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.7s var(--pf-ease),
	            transform 0.7s var(--pf-ease);
}

.scroll-reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}

/* Staggered children for column grids */
.scroll-reveal-stagger > .wp-block-column {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.6s var(--pf-ease),
	            transform 0.6s var(--pf-ease);
}

.scroll-reveal-stagger.is-visible > .wp-block-column:nth-child(1) { transition-delay: 0s; opacity: 1; transform: translateY(0); }
.scroll-reveal-stagger.is-visible > .wp-block-column:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.scroll-reveal-stagger.is-visible > .wp-block-column:nth-child(3) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.scroll-reveal-stagger.is-visible > .wp-block-column:nth-child(4) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.scroll-reveal-stagger.is-visible > .wp-block-column:nth-child(5) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
.scroll-reveal-stagger.is-visible > .wp-block-column:nth-child(6) { transition-delay: 0.5s; opacity: 1; transform: translateY(0); }

/* --------------------------------------------------------------------------
   13. Page content enhancements
   -------------------------------------------------------------------------- */

/* Internal page top spacing (when no hero) */
.page-content-area {
	padding-top: var(--wp--preset--spacing--60);
}

/* Better image gallery spacing */
.wp-block-gallery {
	gap: var(--wp--preset--spacing--20) !important;
}

.wp-block-gallery .wp-block-image img {
	border-radius: var(--wp--custom--border-radius--md);
}

/* Better separator styling */
.wp-block-separator:not(.is-style-wide):not(.is-style-dots) {
	max-width: 100px;
	margin-left: auto;
	margin-right: auto;
}

/* Pull quote */
.wp-block-pullquote {
	border-top: 3px solid var(--wp--preset--color--primary);
	border-bottom: 3px solid var(--wp--preset--color--primary);
	padding: var(--wp--preset--spacing--40) 0;
}

/* --------------------------------------------------------------------------
   14. Selection color
   -------------------------------------------------------------------------- */
::selection {
	background: rgba(var(--pf-primary-rgb), 0.12);
	color: var(--wp--preset--color--dark);
}

/* --------------------------------------------------------------------------
   15. WordPress.com-specific fixes
   -------------------------------------------------------------------------- */

/* Fix for navigation caching on WP.com */
.wp-block-navigation .wp-block-navigation__container {
	gap: 0.3rem;
}

/* Fix social links color in dark footer */
.site-footer .wp-block-social-links.is-style-logos-only .wp-social-link svg {
	fill: rgba(255, 255, 255, 0.8);
	transition: fill 0.3s var(--pf-ease);
}

.site-footer .wp-block-social-links.is-style-logos-only .wp-social-link:hover svg {
	fill: var(--wp--preset--color--primary-light);
}

/* --------------------------------------------------------------------------
   16. Responsive adjustments
   -------------------------------------------------------------------------- */
@media (max-width: 782px) {
	:root {
		--pf-header-height: 64px;
	}

	.hero-section .wp-block-cover {
		min-height: 70vh;
	}

	/* Stack service cards nicely */
	.services-section .wp-block-columns,
	.values-section .wp-block-columns {
		gap: var(--wp--preset--spacing--30) !important;
	}

	/* Override hover transforms on touch (they're annoying) */
	.service-card .card-inner:hover,
	.services-section .wp-block-column.has-surface-background-color:hover,
	.values-section .wp-block-column:hover,
	.testimonials-section .wp-block-quote:hover,
	.testimonial-inner:hover,
	.blog-card:hover,
	.archive-card:hover {
		transform: none;
	}

	/* Footer columns stack */
	.site-footer .wp-block-columns {
		gap: var(--wp--preset--spacing--50) !important;
	}

	/* CTA section padding */
	.cta-section {
		padding-left: var(--wp--preset--spacing--30);
		padding-right: var(--wp--preset--spacing--30);
	}
}

@media (max-width: 480px) {
	.hero-section .wp-block-cover {
		min-height: 60vh;
	}

	.wp-block-buttons {
		flex-direction: column;
		align-items: center;
	}

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

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

/* --------------------------------------------------------------------------
   17. Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}

	.scroll-reveal {
		opacity: 1;
		transform: none;
	}

	.scroll-reveal-stagger > .wp-block-column {
		opacity: 1;
		transform: none;
	}

	.animate-fade-up {
		opacity: 1;
		transform: none;
	}
}

/* --------------------------------------------------------------------------
   18. Modern service cards (homepage)
   -------------------------------------------------------------------------- */
.service-cards-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--wp--preset--spacing--40);
	max-width: var(--wp--style--global--wide-size, 1400px);
	margin: 0 auto;
	padding: 0 var(--wp--preset--spacing--40);
}

.service-card-link {
	text-decoration: none;
	color: inherit;
	display: block;
}

.service-card-modern {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 16px;
	padding: var(--wp--preset--spacing--50) var(--wp--preset--spacing--40);
	text-align: center;
	transition: all 0.4s var(--pf-ease);
	position: relative;
	overflow: hidden;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.service-card-modern::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--wp--preset--color--primary), var(--wp--preset--color--accent));
	transform: scaleX(0);
	transition: transform 0.4s var(--pf-ease);
	transform-origin: left;
}

.service-card-modern:hover {
	transform: translateY(-6px);
	box-shadow: 0 20px 40px -12px rgba(var(--pf-primary-rgb), 0.14);
	border-color: rgba(var(--pf-primary-rgb), 0.1);
}

.service-card-modern:hover::before {
	transform: scaleX(1);
}

.service-card-modern__icon {
	width: 64px;
	height: 64px;
	margin-bottom: var(--wp--preset--spacing--30);
	color: var(--wp--preset--color--primary);
	transition: transform 0.4s var(--pf-ease-bounce);
}

.service-card-modern:hover .service-card-modern__icon {
	transform: scale(1.1);
}

.service-card-modern__icon svg {
	width: 100%;
	height: 100%;
}

.service-card-modern__title {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.15rem;
	font-weight: 600;
	color: var(--wp--preset--color--dark);
	margin: 0 0 0.5rem;
	transition: color 0.3s var(--pf-ease);
}

.service-card-modern:hover .service-card-modern__title {
	color: var(--wp--preset--color--primary);
}

.service-card-modern__desc {
	font-size: 0.85rem;
	line-height: 1.6;
	color: var(--wp--preset--color--muted);
	margin: 0;
	flex: 1;
}

.service-card-modern__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--wp--preset--color--accent-light);
	color: var(--wp--preset--color--primary);
	font-size: 1.1rem;
	margin-top: var(--wp--preset--spacing--30);
	transition: all 0.3s var(--pf-ease);
}

.service-card-modern:hover .service-card-modern__arrow {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
	transform: translateX(4px);
}

@media (max-width: 900px) {
	.service-cards-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 500px) {
	.service-cards-grid {
		grid-template-columns: 1fr;
		gap: var(--wp--preset--spacing--30);
	}
}

/* --------------------------------------------------------------------------
   19. Testimonial slider
   -------------------------------------------------------------------------- */
.testimonial-slider {
	position: relative;
	overflow: hidden;
	max-width: var(--wp--style--global--wide-size, 1400px);
	margin: 0 auto;
	padding: 0 var(--wp--preset--spacing--40);
}

.testimonial-slider__track {
	display: flex;
	transition: transform 0.5s var(--pf-ease);
	will-change: transform;
}

.testimonial-slider__slide {
	flex: 0 0 33.333%;
	padding: 0 var(--wp--preset--spacing--20);
	box-sizing: border-box;
}

.testimonial-slider__card {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 16px;
	padding: var(--wp--preset--spacing--50) var(--wp--preset--spacing--40);
	text-align: center;
	transition: box-shadow 0.3s var(--pf-ease), border-color 0.3s var(--pf-ease);
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	position: relative;
	overflow: hidden;
}

.testimonial-slider__card::before {
	content: '\201C';
	position: absolute;
	top: 8px;
	right: 20px;
	font-size: 4.5rem;
	font-family: var(--wp--preset--font-family--heading);
	color: var(--wp--preset--color--primary);
	opacity: 0.07;
	line-height: 1;
	pointer-events: none;
}

.testimonial-slider__card:hover {
	box-shadow: 0 12px 32px -8px rgba(var(--pf-primary-rgb), 0.1);
	border-color: rgba(var(--pf-primary-rgb), 0.12);
}

.testimonial-slider__stars {
	color: var(--wp--preset--color--warning);
	font-size: 1rem;
	letter-spacing: 0.1em;
	margin-bottom: var(--wp--preset--spacing--20);
}

.testimonial-slider__quote {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1rem;
	font-style: italic;
	font-weight: 400;
	line-height: 1.7;
	color: var(--wp--preset--color--body);
	margin: 0;
	border: none;
	padding: 0;
	flex: 1;
}

.testimonial-slider__author {
	display: block;
	margin-top: var(--wp--preset--spacing--30);
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.85rem;
	font-weight: 700;
	font-style: normal;
	color: var(--wp--preset--color--primary);
	letter-spacing: 0.02em;
}

.testimonial-slider__controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--wp--preset--spacing--30);
	margin-top: var(--wp--preset--spacing--50);
}

.testimonial-slider__btn {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 2px solid var(--wp--preset--color--border);
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--primary);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.25s var(--pf-ease);
}

.testimonial-slider__btn:hover {
	background: var(--wp--preset--color--primary);
	border-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
}

.testimonial-slider__btn:disabled {
	opacity: 0.3;
	cursor: default;
}

.testimonial-slider__dots {
	display: flex;
	gap: 8px;
}

.testimonial-slider__dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: none;
	background: var(--wp--preset--color--border);
	cursor: pointer;
	padding: 0;
	transition: all 0.3s var(--pf-ease);
}

.testimonial-slider__dot.is-active {
	background: var(--wp--preset--color--primary);
	transform: scale(1.2);
}

@media (max-width: 900px) {
	.testimonial-slider__slide {
		flex: 0 0 50%;
	}
}

@media (max-width: 600px) {
	.testimonial-slider__slide {
		flex: 0 0 100%;
	}

	.testimonial-slider__card {
		padding: var(--wp--preset--spacing--40) var(--wp--preset--spacing--30);
	}
}

/* --------------------------------------------------------------------------
   Breadcrumb bar
   -------------------------------------------------------------------------- */
.breadcrumb-bar {
    border-bottom: 1px solid var(--wp--preset--color--border);
}

.breadcrumb-bar .yoast-breadcrumbs,
.breadcrumb-bar p {
    font-size: 0.8rem;
    color: var(--wp--preset--color--subtle);
    margin: 0;
}

.breadcrumb-bar a {
    color: var(--wp--preset--color--muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-bar a:hover {
    color: var(--wp--preset--color--primary);
    text-decoration: none;
}

.breadcrumb-bar .breadcrumb_last {
    color: var(--wp--preset--color--primary);
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   Contact Form 7 — theme styling
   -------------------------------------------------------------------------- */
.wpcf7 {
	max-width: 100%;
}

.wpcf7-form {
	display: flex;
	flex-direction: column;
	gap: 1.1rem;
}

.cf7-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.1rem;
}

.cf7-col {
	display: flex;
	flex-direction: column;
}

.wpcf7-form-control:not([type="submit"]):not(.wpcf7-acceptance) {
	width: 100%;
	padding: 0.7rem 1rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 8px;
	font-size: 0.95rem;
	font-family: inherit;
	color: var(--wp--preset--color--dark);
	background: var(--wp--preset--color--white);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	outline: none;
}

.wpcf7-form-control:not([type="submit"]):focus {
	border-color: var(--wp--preset--color--primary);
	box-shadow: 0 0 0 3px rgba(var(--pf-primary-rgb), 0.1);
}

.wpcf7-form-control::placeholder {
	color: var(--wp--preset--color--subtle);
}

textarea.wpcf7-form-control {
	min-height: 140px;
	resize: vertical;
}

select.wpcf7-form-control {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234A5568' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 1rem center;
	padding-right: 2.5rem;
}

/* Acceptance checkbox */
.wpcf7-acceptance {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
}

.wpcf7-acceptance input[type="checkbox"] {
	margin-top: 0.2rem;
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	accent-color: var(--wp--preset--color--primary);
}

.wpcf7-acceptance .wpcf7-list-item-label {
	font-size: 0.82rem;
	line-height: 1.5;
	color: var(--wp--preset--color--body);
}

.wpcf7-acceptance a {
	color: var(--wp--preset--color--accent);
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* Submit button */
.wpcf7-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
	border: none;
	border-radius: 50px;
	padding: 0.85em 2.2em;
	font-size: 0.95rem;
	font-weight: 600;
	font-family: inherit;
	letter-spacing: 0.04em;
	cursor: pointer;
	transition: all 0.35s var(--pf-ease);
}

.wpcf7-submit:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px -8px rgba(var(--pf-primary-rgb), 0.35);
}

.wpcf7-submit:active {
	transform: translateY(0);
}

/* Validation */
.wpcf7-not-valid {
	border-color: #e53e3e !important;
}

.wpcf7-not-valid-tip {
	font-size: 0.8rem;
	color: #e53e3e;
	margin-top: 0.3rem;
}

/* Success/error messages */
.wpcf7-response-output {
	border-radius: 8px !important;
	padding: 1rem 1.25rem !important;
	font-size: 0.9rem;
	margin: 1rem 0 0 !important;
}

.wpcf7-mail-sent-ok,
.wpcf7 form.sent .wpcf7-response-output {
	border-color: var(--wp--preset--color--success) !important;
	background: rgba(19, 97, 46, 0.06);
	color: var(--wp--preset--color--success);
}

.wpcf7-validation-errors,
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output {
	border-color: #e53e3e !important;
	background: rgba(229, 62, 62, 0.06);
	color: #e53e3e;
}

/* Spinner */
.wpcf7-spinner {
	margin-left: 0.5rem;
}

@media (max-width: 600px) {
	.cf7-row {
		grid-template-columns: 1fr;
	}

	.wpcf7-submit {
		width: 100%;
	}
}

/* Doctoralia booking button */
.doctoralia-booking-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	width: 100%;
	padding: 0.85em 1.5em;
	background: #00b5b9;
	color: #fff;
	border-radius: 10px;
	font-size: 0.9rem;
	font-weight: 600;
	font-family: inherit;
	text-decoration: none;
	transition: all 0.3s var(--pf-ease);
}

.doctoralia-booking-btn:hover {
	background: #009a9d;
	transform: translateY(-2px);
	box-shadow: 0 8px 24px -8px rgba(0, 181, 185, 0.35);
	color: #fff;
	text-decoration: none;
}

.doctoralia-booking-btn svg {
	flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Recursos grid
   -------------------------------------------------------------------------- */
.recursos-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--wp--preset--spacing--40);
}

.recurso-category {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 14px;
	padding: var(--wp--preset--spacing--40);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	overflow: hidden;
}

.recurso-category::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--wp--preset--color--primary), var(--wp--preset--color--accent));
	transform: scaleX(0);
	transition: transform 0.3s ease;
	transform-origin: left;
}

.recurso-category:hover {
	border-color: rgba(var(--pf-primary-rgb), 0.15);
	box-shadow: 0 12px 32px -8px rgba(var(--pf-primary-rgb), 0.1);
	transform: translateY(-4px);
}

.recurso-category:hover::before {
	transform: scaleX(1);
}

.recurso-category__title {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.15rem;
	font-weight: 600;
	color: var(--wp--preset--color--primary);
	margin: 0 0 1rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.recurso-category__list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.recurso-category__list li {
	padding: 0;
}

.recurso-category__list a {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 0.75rem;
	border-radius: 8px;
	font-size: 0.9rem;
	color: var(--wp--preset--color--body);
	text-decoration: none;
	transition: all 0.2s ease;
}

.recurso-category__list a::before {
	content: '\2192';
	color: var(--wp--preset--color--primary);
	font-weight: 600;
	flex-shrink: 0;
	transition: transform 0.2s ease;
}

.recurso-category__list a:hover {
	background: var(--wp--preset--color--accent-light);
	color: var(--wp--preset--color--primary);
	text-decoration: none;
}

.recurso-category__list a:hover::before {
	transform: translateX(3px);
}

@media (max-width: 900px) {
	.recursos-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.recursos-grid {
		grid-template-columns: 1fr;
	}
}

/* --------------------------------------------------------------------------
   20. FAQ accordion
   -------------------------------------------------------------------------- */
.faq-accordion-list {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.faq-accordion {
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 12px;
	background: var(--wp--preset--color--white);
	overflow: hidden;
	transition: box-shadow 0.3s var(--pf-ease), border-color 0.3s var(--pf-ease);
	margin-bottom: var(--wp--preset--spacing--30);
}

.faq-accordion:hover {
	border-color: rgba(var(--pf-primary-rgb), 0.2);
	box-shadow: 0 4px 20px -4px rgba(var(--pf-primary-rgb), 0.08);
}

.faq-accordion[open] {
	border-color: rgba(var(--pf-primary-rgb), 0.15);
	box-shadow: 0 8px 32px -8px rgba(var(--pf-primary-rgb), 0.1);
}

.faq-accordion__trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.5rem 1.75rem;
	cursor: pointer;
	list-style: none;
	user-select: none;
	transition: background 0.2s var(--pf-ease);
}

.faq-accordion__trigger::-webkit-details-marker,
.faq-accordion__trigger::marker {
	display: none;
	content: '';
}

.faq-accordion__trigger:hover {
	background: var(--wp--preset--color--surface);
}

.faq-accordion__title {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.2rem;
	font-weight: 600;
	color: var(--wp--preset--color--dark);
	line-height: 1.4;
}

.faq-accordion[open] .faq-accordion__title {
	color: var(--wp--preset--color--primary);
}

.faq-accordion__icon {
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--wp--preset--color--accent-light);
	position: relative;
	transition: transform 0.3s var(--pf-ease), background 0.3s var(--pf-ease);
}

.faq-accordion__icon::before,
.faq-accordion__icon::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	background: var(--wp--preset--color--primary);
	border-radius: 1px;
}

.faq-accordion__icon::before {
	width: 12px;
	height: 2px;
	transform: translate(-50%, -50%);
}

.faq-accordion__icon::after {
	width: 2px;
	height: 12px;
	transform: translate(-50%, -50%);
	transition: transform 0.3s var(--pf-ease), opacity 0.3s var(--pf-ease);
}

.faq-accordion[open] .faq-accordion__icon {
	background: var(--wp--preset--color--primary);
}

.faq-accordion[open] .faq-accordion__icon::before,
.faq-accordion[open] .faq-accordion__icon::after {
	background: var(--wp--preset--color--white);
}

.faq-accordion[open] .faq-accordion__icon::after {
	transform: translate(-50%, -50%) rotate(90deg);
	opacity: 0;
}

.faq-accordion__content {
	padding: 0 1.75rem 1.75rem;
}

.faq-accordion__content p {
	font-size: 0.95rem;
	line-height: 1.85;
	color: var(--wp--preset--color--body);
	margin: 0 0 1em;
}

.faq-accordion__content p:last-child {
	margin-bottom: 0;
}

.faq-accordion__content a {
	color: var(--wp--preset--color--primary);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.faq-accordion__content a:hover {
	color: var(--wp--preset--color--primary-light);
}

/* Info cards grid (pricing section) */
.faq-info-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.faq-info-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 1.25rem 1rem;
	background: var(--wp--preset--color--surface);
	border-radius: 10px;
	border: 1px solid var(--wp--preset--color--border);
}

.faq-info-card__value {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.4rem;
	font-weight: 600;
	color: var(--wp--preset--color--primary);
	line-height: 1.3;
	margin-bottom: 0.3rem;
}

.faq-info-card__label {
	font-size: 0.78rem;
	color: var(--wp--preset--color--subtle);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-weight: 500;
}

/* Therapy phases (stepper) */
.faq-phases {
	display: flex;
	flex-direction: column;
	gap: 0;
	margin: 1.5rem 0;
}

.faq-phase {
	display: flex;
	gap: 1.25rem;
	padding: 1.5rem 0;
	border-bottom: 1px solid var(--wp--preset--color--border);
	position: relative;
}

.faq-phase:last-child {
	border-bottom: none;
}

.faq-phase__number {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.1rem;
	font-weight: 600;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 0.1rem;
}

.faq-phase__body {
	flex: 1;
	min-width: 0;
}

.faq-phase__title {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.15rem;
	font-weight: 600;
	color: var(--wp--preset--color--primary);
	margin: 0 0 0.5rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.faq-phase__body p {
	margin: 0 0 0.75em;
}

.faq-phase__body p:last-child {
	margin-bottom: 0;
}

/* Callout blockquote */
.faq-callout {
	background: var(--wp--preset--color--accent-light);
	border-left: 4px solid var(--wp--preset--color--primary);
	border-radius: 0 10px 10px 0;
	padding: 1.25rem 1.5rem;
	margin: 1.5rem 0 0;
}

.faq-callout p {
	font-style: italic;
	font-weight: 600;
	color: var(--wp--preset--color--dark);
	margin: 0;
}

/* Responsive */
@media (max-width: 600px) {
	.faq-accordion__trigger {
		padding: 1.15rem 1.25rem;
	}

	.faq-accordion__title {
		font-size: 1.05rem;
	}

	.faq-accordion__content {
		padding: 0 1.25rem 1.25rem;
	}

	.faq-info-grid {
		grid-template-columns: 1fr;
	}

	.faq-info-card {
		flex-direction: row;
		gap: 0.75rem;
		text-align: left;
		padding: 1rem;
	}

	.faq-info-card__value {
		font-size: 1.2rem;
		margin-bottom: 0;
	}

	.faq-phase {
		gap: 1rem;
	}

	.faq-phase__number {
		width: 34px;
		height: 34px;
		font-size: 0.95rem;
	}
}

/* --------------------------------------------------------------------------
   19. Print styles
   -------------------------------------------------------------------------- */
@media print {
	.site-header,
	.site-footer,
	.nav-cta,
	.cta-section {
		display: none !important;
	}

	body {
		padding-top: 0 !important;
	}
}


/* --------------------------------------------------------------------------
   12. General polish
   -------------------------------------------------------------------------- */

/* Smooth image loading */
img {
	transition: opacity 0.3s ease;
}

/* Separator styling */
.wp-block-separator {
	opacity: 1;
}

/* Post content image rounded */
.wp-block-post-content img {
	border-radius: var(--wp--custom--border-radius--md);
}

/* Better blockquote */
.wp-block-quote {
	padding: var(--wp--preset--spacing--40) var(--wp--preset--spacing--50);
	background: var(--wp--preset--color--surface);
	border-radius: 0 var(--wp--custom--border-radius--md) var(--wp--custom--border-radius--md) 0;
}

/* --------------------------------------------------------------------------
   19. Service detail pages
   -------------------------------------------------------------------------- */

/* Standard page banner — consistent across all interior pages */
.page-banner {
	position: relative;
}

.page-banner h1 {
	margin: 0;
}

/* Legacy class — keep for backward compat */
.service-page-hero {
	position: relative;
}

/* Service content sections */
.service-detail-section {
	position: relative;
}

.service-detail-section + .service-detail-section {
	border-top: 1px solid var(--wp--preset--color--border);
}

/* Styled bullet lists on service pages */
.service-detail-section .wp-block-list {
	list-style: none;
	padding-left: 0 !important;
}

.service-detail-section .wp-block-list li {
	position: relative;
	padding-left: 1.6em;
	margin-bottom: 0.55em;
	line-height: 1.7;
}

.service-detail-section .wp-block-list li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.55em;
	width: 8px;
	height: 8px;
	background: var(--wp--preset--color--primary);
	border-radius: 50%;
	opacity: 0.7;
}

/* Sub-section highlight box */
.service-highlight-box {
	border-left: 4px solid var(--wp--preset--color--primary);
	border-radius: 0 var(--wp--custom--border-radius--md) var(--wp--custom--border-radius--md) 0;
}

/* Service page CTA bar */
.service-cta-bar .wp-block-button__link {
	min-width: 200px;
	text-align: center;
}

/* --------------------------------------------------------------------------
   20. Podcast page
   -------------------------------------------------------------------------- */

/* ── Stats bar ──────────────────────────────────────────────────────────── */
.podcast-stats-bar .wp-block-columns {
	margin-bottom: 0;
}

.podcast-stat strong {
	display: block;
	font-size: 1.8rem;
	color: var(--wp--preset--color--primary);
	letter-spacing: -0.01em;
	line-height: 1.2;
}

.podcast-stat span,
.podcast-stat br + * {
	font-size: 0.85rem;
	color: var(--wp--preset--color--muted);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

/* ── "Nuevo" badge ──────────────────────────────────────────────────────── */
.podcast-badge-new {
	display: inline-block;
	background: var(--wp--preset--color--primary);
	color: #fff;
	padding: 0.2rem 0.7rem;
	border-radius: 12px;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

/* ── Featured (latest episode) card ─────────────────────────────────────── */
/* ── Featured episode card (with thumbnail) ───────────────────────────── */
.podcast-featured-card {
	background: #fff;
	border: 1px solid var(--wp--preset--color--border);
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
	transition: box-shadow 0.25s ease;
	overflow: hidden;
}

.podcast-featured-card:hover {
	box-shadow: 0 6px 32px rgba(0, 0, 0, 0.1);
}

.podcast-featured-card__cols {
	align-items: stretch;
	margin-bottom: 0 !important;
}

.podcast-featured-card__thumb {
	flex-shrink: 0 !important;
	flex-grow: 0 !important;
	overflow: hidden;
}

.podcast-featured-card__thumb .wp-block-post-featured-image {
	height: 100%;
	margin: 0;
}

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

.podcast-featured-card .wp-block-audio {
	margin-top: 0.5rem;
	margin-bottom: 0;
}

.podcast-featured-card .wp-block-audio audio {
	width: 100%;
	height: 48px;
}

@media (max-width: 600px) {
	.podcast-featured-card__cols {
		flex-direction: column !important;
	}

	.podcast-featured-card__thumb {
		flex-basis: auto !important;
		max-height: 200px;
	}

	.podcast-featured-card__thumb .wp-block-post-featured-image img {
		border-radius: 16px 16px 0 0 !important;
	}
}

/* ── Archive grid cards (with thumbnail) ──────────────────────────────── */
.podcast-card {
	background: #fff;
	border: 1px solid var(--wp--preset--color--border);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
	height: 100%;
	overflow: hidden;
}

.podcast-card:hover {
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}

.podcast-card__cols {
	align-items: stretch;
	margin-bottom: 0 !important;
	min-height: 90px;
}

.podcast-card__thumb {
	flex-shrink: 0 !important;
	flex-grow: 0 !important;
	overflow: hidden;
}

.podcast-card__thumb .wp-block-post-featured-image {
	height: 100%;
	margin: 0;
}

.podcast-card__thumb .wp-block-post-featured-image img {
	width: 90px;
	height: 100%;
	object-fit: cover;
}

.podcast-card__body {
	display: flex;
	align-items: center;
}

.podcast-card .wp-block-audio {
	margin-top: 0.25rem;
	margin-bottom: 0;
}

.podcast-card .wp-block-audio audio {
	width: 100%;
	height: 36px;
}

.podcast-card .wp-block-audio figcaption {
	display: none;
}

.podcast-card .podcast-source-badge {
	font-size: 0.7rem;
	padding: 0.1rem 0.5rem;
}

/* ── Pagination ─────────────────────────────────────────────────────────── */
.podcast-archive-section .wp-block-query-pagination {
	gap: 0.5rem;
}

.podcast-archive-section .wp-block-query-pagination-numbers .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 8px;
	font-size: 0.9rem;
	font-weight: 500;
	transition: background 0.15s, color 0.15s;
}

.podcast-archive-section .wp-block-query-pagination-numbers .page-numbers.current,
.podcast-archive-section .wp-block-query-pagination-numbers .page-numbers:hover {
	background: var(--wp--preset--color--primary);
	color: #fff;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 781px) {
	.podcast-archive-section .wp-block-post-template.is-layout-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 600px) {
	.podcast-stat strong {
		font-size: 1.4rem;
	}

	.podcast-featured-card {
		padding: 1.25rem !important;
	}
}

/* ── Podcast episode pattern (inside post content) ──────────────────────── */
.podcast-episode-layout {
	align-items: flex-start;
	margin-bottom: 0;
}

.podcast-episode-thumb {
	flex-grow: 0 !important;
	flex-shrink: 0 !important;
	overflow: hidden;
}

.podcast-thumb-img img {
	width: 120px;
	max-height: 120px;
	object-fit: contain;
	border-radius: 10px;
}

.podcast-thumb-img {
	margin: 0;
}

.podcast-episode-body {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.podcast-episode-pattern .wp-block-audio {
	margin: 0;
}

.podcast-episode-pattern .wp-block-audio audio {
	width: 100%;
	height: 44px;
}

.podcast-episode-pattern .wp-block-audio figcaption {
	display: none;
}

.podcast-episode-meta {
	gap: 0.4rem;
}

.podcast-source-badge {
	display: inline-block;
	background: var(--wp--preset--color--accent-light);
	color: var(--wp--preset--color--primary);
	padding: 0.15rem 0.6rem;
	border-radius: 10px;
	letter-spacing: 0.01em;
	line-height: 1.4;
}

@media (max-width: 600px) {
	.podcast-episode-layout {
		flex-direction: row !important;
		flex-wrap: nowrap !important;
	}

	.podcast-thumb-img img {
		width: 80px;
		max-height: 80px;
	}

	.podcast-episode-thumb {
		flex-basis: 80px !important;
	}
}

/* ── Single podcast page layout ──────────────────────────────────────── */
.podcast-single__layout {
	align-items: flex-start;
}

.podcast-single__image {
	flex-shrink: 0 !important;
	flex-grow: 0 !important;
}

.podcast-single__image .wp-block-post-featured-image {
	margin: 0;
}

.podcast-single__image .wp-block-post-featured-image img {
	width: 280px;
	height: 280px;
	object-fit: cover;
	border-radius: 12px;
	box-shadow: var(--wp--preset--shadow--md);
}

.podcast-single__details .wp-block-post-title {
	font-family: var(--wp--preset--font-family--heading);
}

.podcast-single__details .podcast-source-badge {
	font-size: 0.85rem;
}

.podcast-single__details .wp-block-audio {
	margin-top: 0.5rem;
}

.podcast-single__details .wp-block-audio audio {
	width: 100%;
	height: 48px;
}

@media (max-width: 600px) {
	.podcast-single__layout {
		flex-direction: column !important;
	}

	.podcast-single__image {
		flex-basis: auto !important;
		width: 100%;
	}

	.podcast-single__image .wp-block-post-featured-image img {
		width: 100%;
		height: auto;
		max-height: 300px;
	}
}

/* --- Podcast Search Bar --- */

.podcast-search-bar {
	border: 1px solid var(--wp--preset--color--border);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
	margin-bottom: var(--wp--preset--spacing--40);
}

.podcast-search-form {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

.podcast-search-label {
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--wp--preset--color--primary);
}

.podcast-search-field-wrap {
	display: flex;
	position: relative;
}

.podcast-search-input {
	flex: 1;
	padding: 0.7rem 1rem;
	padding-right: 3rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 8px;
	font-size: 0.95rem;
	font-family: inherit;
	color: var(--wp--preset--color--dark);
	background: var(--wp--preset--color--surface);
	outline: none;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.podcast-search-input:focus {
	border-color: var(--wp--preset--color--primary);
	box-shadow: 0 0 0 3px rgba(var(--pf-primary-rgb), 0.1);
}

.podcast-search-input::placeholder {
	color: var(--wp--preset--color--subtle);
}

.podcast-search-btn {
	position: absolute;
	right: 4px;
	top: 50%;
	transform: translateY(-50%);
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--wp--preset--color--primary);
	color: #fff;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	transition: background 0.2s;
}

.podcast-search-btn:hover {
	background: var(--wp--preset--color--primary-light);
}

@media (max-width: 600px) {
	.podcast-search-input {
		font-size: 0.9rem;
		padding: 0.6rem 0.8rem;
		padding-right: 2.8rem;
	}
}
