/*
Theme Name: Zosia - Child Theme
Theme URI: http://www.3forty.media/zosia
Author: 3FortyMedia
Author URI: http://www.3forty.media
Description: Zosia Child theme
Version: 1.1
Text Domain: zosia
Template: zosia
*/

/* Start Custom CSS */

/* Logo Styles */
:root {
	--custom-logo-width-mobile: 200px !important;
	--custom-logo-width-small-mobile: 180px !important;
}

.custom-logo,
.site-logo img,
.mobile-header .custom-logo {
	max-width: 100%;
	height: auto;
}

/* Mobile Logo - Make it larger */
@media (max-width: 768px) {
	.mobile-header .custom-logo,
	.mobile-header .site-logo img,
	.mobile-header .site-logo .custom-logo {
		width: 200px !important;
		max-width: 200px !important;
		min-width: 180px !important;
		height: auto !important;
	}
	
	.site-logo img,
	.site-logo .custom-logo {
		width: 200px !important;
		max-width: 200px !important;
		min-width: 180px !important;
	}
}

@media (max-width: 480px) {
	.mobile-header .custom-logo,
	.mobile-header .site-logo img,
	.mobile-header .site-logo .custom-logo {
		width: 180px !important;
		max-width: 180px !important;
		min-width: 160px !important;
		height: auto !important;
	}
	
	.site-logo img,
	.site-logo .custom-logo {
		width: 180px !important;
		max-width: 180px !important;
		min-width: 160px !important;
	}
}

/* Color Variables */
:root {
	--primary-color: #2563eb;
	--primary-dark: #1e40af;
	--primary-light: #3b82f6;
	--accent-color: #f59e0b;
	--accent-light: #fbbf24;
	--text-dark: #1f2937;
	--text-medium: #4b5563;
	--text-light: #6b7280;
	--bg-light: #f9fafb;
	--bg-section: #ffffff;
	--border-color: #e5e7eb;
	--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
	--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
	--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
	--shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Homepage Styles */
/* Ensure front page always uses full width, regardless of sidebar settings */
body.home #primary.content-area,
body.front-page #primary.content-area,
body.home.page #primary.content-area,
body.page-template-page-reviews #primary.content-area,
body.page-template-page-safety #primary.content-area {
	overflow-x: visible;
	padding-top: 0 !important;
	margin-top: 0 !important;
	width: 100% !important;
	max-width: 100% !important;
}

/* ========================================================
   RugTested Homepage Theme (scoped to front page only)
   Warm, editorial, home-focused styling suitable for rugs.
   ======================================================== */
body.home,
body.front-page,
body.home.page {
	/* Palette: warm neutrals + deep green + terracotta */
	--rt-ink: #1f2937;
	--rt-muted: #5b5f66;
	--rt-paper: #fbf7f0;
	--rt-paper-2: #f6efe6;
	--rt-border: rgba(31, 41, 55, 0.10);
	--rt-shadow: 0 10px 25px rgba(31, 41, 55, 0.10);
	--rt-shadow-soft: 0 6px 18px rgba(31, 41, 55, 0.08);

	/* Override existing theme vars (inherited) for homepage only */
	--primary-color: #1f4a3f; /* deep green */
	--primary-dark: #16362e;
	--primary-light: #2f6a5b;
	--accent-color: #c46a3b; /* terracotta */
	--accent-light: #d7865f;
	--text-dark: var(--rt-ink);
	--text-medium: var(--rt-muted);
	--bg-light: var(--rt-paper);
	--bg-section: #ffffff;
	--border-color: var(--rt-border);
}

body.home .homepage-hero,
body.front-page .homepage-hero,
body.home.page .homepage-hero {
	/* Linen-like layered background */
	background:
		radial-gradient(900px 420px at 18% 25%, rgba(196, 106, 59, 0.20), rgba(196, 106, 59, 0) 60%),
		radial-gradient(820px 420px at 82% 30%, rgba(31, 74, 63, 0.18), rgba(31, 74, 63, 0) 60%),
		repeating-linear-gradient(
			45deg,
			rgba(31, 41, 55, 0.03) 0px,
			rgba(31, 41, 55, 0.03) 2px,
			transparent 2px,
			transparent 8px
		),
		linear-gradient(135deg, var(--rt-paper) 0%, #fff 55%, var(--rt-paper-2) 100%);
	/* Shorter hero for homepage */
	min-height: 360px;
	margin-bottom: 30px;
}

body.home .hero-container,
body.front-page .hero-container,
body.home.page .hero-container {
	padding: 36px 32px;
}

body.home .hero-title,
body.front-page .hero-title,
body.home.page .hero-title {
	font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
	letter-spacing: -0.01em;
	color: var(--rt-ink);
}

body.home .section-title,
body.front-page .section-title,
body.home.page .section-title {
	font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
	letter-spacing: -0.01em;
}

body.home .hero-badge,
body.front-page .hero-badge,
body.home.page .hero-badge {
	background: rgba(255, 255, 255, 0.75);
	backdrop-filter: blur(8px);
	border: 1px solid var(--rt-border);
	box-shadow: var(--rt-shadow-soft);
	color: var(--primary-color);
}

body.home .feature-icon,
body.front-page .feature-icon,
body.home.page .feature-icon {
	background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

body.home .hero-image-placeholder,
body.front-page .hero-image-placeholder,
body.home.page .hero-image-placeholder {
	/* A subtle “woven rug” vibe placeholder */
	background:
		repeating-linear-gradient(
			90deg,
			rgba(31, 74, 63, 0.12) 0px,
			rgba(31, 74, 63, 0.12) 10px,
			rgba(196, 106, 59, 0.10) 10px,
			rgba(196, 106, 59, 0.10) 20px
		),
		linear-gradient(135deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.20));
}

body.home .cta-button,
body.front-page .cta-button,
body.home.page .cta-button {
	background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
	box-shadow: var(--rt-shadow-soft);
}

body.home .cta-button:hover,
body.home .cta-button:focus,
body.front-page .cta-button:hover,
body.front-page .cta-button:focus,
body.home.page .cta-button:hover,
body.home.page .cta-button:focus {
	background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
}

body.home .cta-button.cta-secondary,
body.front-page .cta-button.cta-secondary,
body.home.page .cta-button.cta-secondary {
	background: rgba(255, 255, 255, 0.65);
	color: var(--primary-dark) !important;
	border: 1px solid rgba(31, 74, 63, 0.25);
}

body.home .cta-button.cta-secondary:hover,
body.home .cta-button.cta-secondary:focus,
body.front-page .cta-button.cta-secondary:hover,
body.front-page .cta-button.cta-secondary:focus,
body.home.page .cta-button.cta-secondary:hover,
body.home.page .cta-button.cta-secondary:focus {
	background: rgba(255, 255, 255, 0.85);
	border-color: rgba(31, 74, 63, 0.35);
}

body.home .homepage-section,
body.front-page .homepage-section,
body.home.page .homepage-section {
	max-width: 1200px;
}

body.home .homepage-section:nth-child(even),
body.front-page .homepage-section:nth-child(even),
body.home.page .homepage-section:nth-child(even) {
	background: linear-gradient(180deg, rgba(251, 247, 240, 0.85), rgba(246, 239, 230, 0.85));
	border: 1px solid var(--rt-border);
}

body.home .start-here-section,
body.front-page .start-here-section,
body.home.page .start-here-section,
body.home .reviews-section,
body.front-page .reviews-section,
body.home.page .reviews-section,
body.home .safety-section,
body.front-page .safety-section,
body.home.page .safety-section,
body.home .trust-section,
body.front-page .trust-section,
body.home.page .trust-section,
body.home .final-cta-section,
body.front-page .final-cta-section,
body.home.page .final-cta-section {
	background: rgba(255, 255, 255, 0.60);
	border: 1px solid var(--rt-border);
	box-shadow: var(--rt-shadow-soft);
}

body.home .guide-card,
body.front-page .guide-card,
body.home.page .guide-card,
body.home .review-card,
body.front-page .review-card,
body.home.page .review-card,
body.home .trust-feature,
body.front-page .trust-feature,
body.home.page .trust-feature {
	box-shadow: none;
	border: 1px solid var(--rt-border);
}

body.home .guide-card:hover,
body.front-page .guide-card:hover,
body.home.page .guide-card:hover,
body.home .review-card:hover,
body.front-page .review-card:hover,
body.home.page .review-card:hover,
body.home .trust-feature:hover,
body.front-page .trust-feature:hover,
body.home.page .trust-feature:hover {
	transform: translateY(-4px);
	box-shadow: var(--rt-shadow);
}

body.home .section-title::after,
body.front-page .section-title::after,
body.home.page .section-title::after {
	background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

body.home .hero-shapes .shape,
body.front-page .hero-shapes .shape,
body.home.page .hero-shapes .shape {
	background: rgba(255, 255, 255, 0.08);
}

/* Prevent sidebar from affecting front page layout */
body.home .site-main,
body.front-page .site-main,
body.home.page .site-main,
body.page-template-page-reviews .site-main,
body.page-template-page-safety .site-main {
	margin-top: 0 !important;
	padding-top: 0 !important;
	flex-basis: 100% !important;
	width: 100% !important;
	max-width: 100% !important;
}

/* Ensure wrap-inner maintains full width on front page */
body.home .wrap-inner,
body.front-page .wrap-inner,
body.home.page .wrap-inner,
body.page-template-page-reviews .wrap-inner,
body.page-template-page-safety .wrap-inner {
	display: block !important;
}

body.home .the-page,
body.front-page .the-page,
body.home.page .the-page,
body.page-template-page-reviews .the-page,
body.page-template-page-safety .the-page {
	margin-top: 0 !important;
	padding-top: 0 !important;
	width: 100% !important;
	max-width: 100% !important;
}

.homepage-hero {
	padding: 0;
	margin-left: calc(-50vw + 50%);
	margin-right: calc(-50vw + 50%);
	margin-top: 0 !important;
	margin-bottom: 50px;
	position: relative;
	overflow: hidden;
	background: linear-gradient(135deg, #fef3c7 0%, #fde68a 50%, #fcd34d 100%);
	min-height: 450px;
	display: flex;
	align-items: center;
	width: 100vw;
	max-width: none;
}

/* Ensure reviews hero has no gap from header */
body.page-template-page-reviews .homepage-hero,
body.page-template-page-reviews .reviews-hero {
	margin-top: 0 !important;
	padding-top: 0 !important;
}

/* Ensure safety hero has no gap from header */
body.page-template-page-safety .homepage-hero,
body.page-template-page-safety .safety-hero {
	margin-top: 0 !important;
	padding-top: 0 !important;
	background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 50%, #6ee7b7 100%);
}

/* Safety hero decoration circles - green */
body.page-template-page-safety .hero-image-decoration {
	background: linear-gradient(135deg, #6ee7b7, #34d399);
}

body.page-template-page-safety .hero-image-decoration::before {
	background: linear-gradient(135deg, #34d399, #10b981);
}

/* Remove any spacing from content area before hero on reviews page */
body.page-template-page-reviews #primary.content-area > .homepage-hero:first-child,
body.page-template-page-reviews #primary.content-area > .reviews-hero:first-child {
	margin-top: 0 !important;
}

/* Remove any spacing from content area before hero on safety page */
body.page-template-page-safety #primary.content-area > .homepage-hero:first-child,
body.page-template-page-safety #primary.content-area > .safety-hero:first-child {
	margin-top: 0 !important;
}

/* Additional spacing fixes for reviews page */
body.page-template-page-reviews .site-main {
	margin-top: 0 !important;
	padding-top: 0 !important;
}

body.page-template-page-reviews #primary.content-area {
	margin-top: 0 !important;
	padding-top: 0 !important;
}

/* Additional spacing fixes for safety page */
body.page-template-page-safety .site-main {
	margin-top: 0 !important;
	padding-top: 0 !important;
}

body.page-template-page-safety #primary.content-area {
	margin-top: 0 !important;
	padding-top: 0 !important;
}

/* Ensure no gap between header and hero section */
body.page-template-page-reviews header + main .site-main,
body.page-template-page-reviews header ~ main .site-main {
	margin-top: 0 !important;
	padding-top: 0 !important;
}

body.page-template-page-safety header + main .site-main,
body.page-template-page-safety header ~ main .site-main {
	margin-top: 0 !important;
	padding-top: 0 !important;
}

.hero-container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 50px 40px;
	position: relative;
	z-index: 2;
	width: 100%;
}

.hero-content-wrapper {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	align-items: center;
	max-width: 1200px;
	margin: 0 auto;
}

.hero-content {
	text-align: left;
	position: relative;
	z-index: 3;
}

.hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: white;
	padding: 8px 16px;
	border-radius: 50px;
	box-shadow: var(--shadow-md);
	margin-bottom: 16px;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--primary-color);
	animation: fadeInDown 0.6s ease-out;
}

.hero-kicker {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 8px 14px;
	border-radius: 999px;
	border: 1px solid var(--border-color);
	background: rgba(255, 255, 255, 0.75);
	backdrop-filter: blur(8px);
	color: var(--text-dark);
	font-weight: 650;
	font-size: 0.85rem;
	letter-spacing: 0.02em;
	margin: 0 0 14px 0;
	animation: fadeInDown 0.6s ease-out;
}

.badge-icon {
	font-size: 1.1rem;
}

.hero-title {
	font-size: 2.75rem;
	font-weight: 900;
	line-height: 1.15;
	margin-bottom: 16px;
	color: #2d3748;
	animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-title-accent {
	position: relative;
	display: inline-block;
}

.hero-title-accent::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0.08em;
	height: 0.38em;
	background: rgba(196, 106, 59, 0.25);
	border-radius: 8px;
	z-index: -1;
}

.hero-description {
	font-size: 1.1rem;
	line-height: 1.7;
	color: var(--text-medium);
	margin-bottom: 20px;
	font-weight: 400;
	animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-checklist {
	list-style: none;
	padding: 0;
	margin: 18px 0 0 0;
	display: grid;
	gap: 10px;
	max-width: 560px;
	animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-checklist li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	color: var(--text-dark);
	font-weight: 500;
}

.hero-checklist li::before {
	content: '✓';
	width: 22px;
	height: 22px;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 22px;
	margin-top: 1px;
	background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
	color: white;
	font-size: 0.8rem;
	box-shadow: var(--shadow-sm);
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 24px;
	margin-bottom: 8px;
	animation: fadeInUp 0.8s ease-out 0.5s both;
}

.hero-actions .cta-button {
	margin: 0;
}

.hero-features {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 20px;
	animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-feature-item {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 0.95rem;
	color: var(--text-dark);
	font-weight: 500;
}

.feature-icon {
	width: 24px;
	height: 24px;
	background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
	color: white;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
	font-size: 0.85rem;
	flex-shrink: 0;
	box-shadow: var(--shadow-sm);
}

.hero-image-wrapper {
	position: relative;
	z-index: 2;
	animation: fadeInRight 1s ease-out 0.3s both;
}

.hero-image {
	position: relative;
	border-radius: 26px;
	overflow: hidden;
}

.rt-hero--editorial .rt-hero-media {
	box-shadow: var(--shadow-xl);
	border: 1px solid rgba(255, 255, 255, 0.7);
	background: rgba(255, 255, 255, 0.45);
}

.rt-hero--editorial .rt-hero-media::before {
	content: '';
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(0, 0, 0, 0.00), rgba(0, 0, 0, 0.22)),
		radial-gradient(900px 420px at 20% 10%, rgba(31, 74, 63, 0.18), rgba(31, 74, 63, 0));
	pointer-events: none;
	z-index: 2;
}

.hero-img {
	width: 100%;
	height: auto;
	border-radius: 24px;
	box-shadow: var(--shadow-xl);
	border: 6px solid white;
	position: relative;
	z-index: 2;
	display: block;
	transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
	transition: transform 0.6s ease;
}

.rt-hero--editorial .hero-img {
	border: 0;
	border-radius: 26px;
	box-shadow: none;
	transform: none;
	height: 380px;
	object-fit: cover;
}

.rt-hero--editorial .hero-image-placeholder {
	min-height: 380px;
}

.rt-hero-caption {
	position: absolute;
	left: 16px;
	right: 16px;
	bottom: 14px;
	z-index: 3;
	color: rgba(255, 255, 255, 0.95);
	font-weight: 600;
	font-size: 0.95rem;
	line-height: 1.35;
	text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.rt-hero--editorial .hero-image-decoration {
	display: none;
}

.hero-image-placeholder {
	width: 100%;
	min-height: 340px;
	border-radius: 24px;
	box-shadow: var(--shadow-xl);
	border: 6px solid rgba(255, 255, 255, 0.95);
	background:
		radial-gradient(1200px 500px at 20% 20%, rgba(37, 99, 235, 0.25), rgba(37, 99, 235, 0)),
		radial-gradient(900px 420px at 80% 30%, rgba(245, 158, 11, 0.25), rgba(245, 158, 11, 0)),
		linear-gradient(135deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.25));
}

.hero-image:hover .hero-img {
	transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.02);
}

.hero-image-decoration {
	position: absolute;
	top: -20px;
	right: -20px;
	width: 200px;
	height: 200px;
	background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
	border-radius: 50%;
	opacity: 0.2;
	z-index: 1;
	animation: float 6s ease-in-out infinite;
}

.hero-image-decoration::before {
	content: '';
	position: absolute;
	bottom: -30px;
	left: -30px;
	width: 150px;
	height: 150px;
	background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
	border-radius: 50%;
	opacity: 0.15;
	animation: float 8s ease-in-out infinite reverse;
}

/* Decorative Shapes */
.hero-shapes {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	z-index: 1;
	pointer-events: none;
}

.shape {
	position: absolute;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	animation: float 20s ease-in-out infinite;
}

.shape-1 {
	width: 300px;
	height: 300px;
	top: 10%;
	right: 5%;
	animation-duration: 15s;
}

.shape-2 {
	width: 200px;
	height: 200px;
	bottom: 15%;
	left: 8%;
	animation-duration: 18s;
	background: rgba(245, 158, 11, 0.12);
}

.shape-3 {
	width: 150px;
	height: 150px;
	top: 50%;
	right: 15%;
	animation-duration: 12s;
	background: rgba(245, 158, 11, 0.1);
}

@keyframes float {
	0%, 100% {
		transform: translateY(0px) translateX(0px);
	}
	33% {
		transform: translateY(-20px) translateX(10px);
	}
	66% {
		transform: translateY(10px) translateX(-10px);
	}
}

@keyframes fadeInDown {
	from {
		opacity: 0;
		transform: translateY(-20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes fadeInRight {
	from {
		opacity: 0;
		transform: translateX(30px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

/* Section Styles */
.homepage-section {
	padding: 80px 20px;
	max-width: 1200px;
	margin: 0 auto;
	position: relative;
}

/* Alternating section backgrounds */
.homepage-section:nth-child(even) {
	background: var(--bg-light);
	border-radius: 20px;
	margin: 40px auto;
	padding: 10px 20px 20px 20px;
}

.start-here-section {
	background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
	border-radius: 20px;
	padding: 10px 20px 20px 20px;
	margin: 40px auto;
}

.reviews-section {
	background: linear-gradient(135deg, #fed7aa 0%, #fdba74 100%);
	border-radius: 20px;
	padding: 10px 20px 20px 20px;
	margin: 40px auto;
	max-width: 1400px !important;
}

.safety-section {
	background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
	border-radius: 20px;
	padding: 10px 20px 20px 20px;
	margin: 40px auto;
}

.trust-section {
	background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
	border-radius: 20px;
	padding: 10px 20px 20px 20px;
	margin: 30px auto;
}

.section-title {
	font-size: 2.5rem;
	font-weight: 800;
	text-align: center;
	margin-bottom: 24px;
	color: var(--text-dark);
	position: relative;
	display: inline-block;
	width: 100%;
}

.trust-section .section-title {
	font-size: 2rem;
	margin-bottom: 16px;
}

.section-title::after {
	content: '';
	position: absolute;
	bottom: -10px;
	left: 50%;
	transform: translateX(-50%);
	width: 80px;
	height: 4px;
	background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
	border-radius: 2px;
}

.section-intro {
	font-size: 1.125rem;
	line-height: 1.8;
	color: var(--text-medium);
	text-align: center;
	max-width: 800px;
	margin: 40px auto 50px;
	font-weight: 400;
}

.section-intro-tight {
	margin-top: 15px;
	margin-bottom: 35px;
}

/* CTA Buttons */
.section-cta {
	text-align: center;
	margin-top: 40px;
}

.cta-button {
	display: inline-block;
	padding: 14px 32px;
	background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
	color: white !important;
	text-decoration: none !important;
	border: none;
	border-radius: 50px;
	font-weight: 600;
	font-size: 1.05rem;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: var(--shadow-md);
	position: relative;
	overflow: hidden;
	cursor: pointer;
}

.cta-button:visited {
	color: white !important;
	text-decoration: none !important;
}

.cta-button::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
	transition: left 0.5s ease;
}

.cta-button:hover::before {
	left: 100%;
}

.cta-button:hover,
.cta-button:focus {
	transform: translateY(-2px);
	box-shadow: var(--shadow-lg);
	background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
	color: white !important;
	text-decoration: none !important;
}

.cta-button:active {
	transform: translateY(0);
	box-shadow: var(--shadow-md);
	color: white !important;
	text-decoration: none !important;
}

.cta-button.cta-secondary {
	background: rgba(255, 255, 255, 0.55);
	color: var(--primary-dark) !important;
	border: 2px solid rgba(30, 64, 175, 0.25);
	box-shadow: var(--shadow-sm);
}

.cta-button.cta-secondary:hover,
.cta-button.cta-secondary:focus {
	background: rgba(255, 255, 255, 0.8);
	border-color: rgba(30, 64, 175, 0.35);
	color: var(--primary-dark) !important;
}

.rugtested-trust-strip {
	padding-top: 50px;
	padding-bottom: 50px;
}

.final-cta-section {
	background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
	border-radius: 20px;
	margin: 40px auto;
	padding: 10px 20px 30px 20px;
}

.final-cta-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
	margin-top: 26px;
}

/* Section-specific CTA colors */
.start-here-section .cta-button {
	background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
}

.start-here-section .cta-button:hover,
.start-here-section .cta-button:focus {
	background: linear-gradient(135deg, var(--accent-light), var(--accent-color));
	color: white !important;
	text-decoration: none !important;
}

.reviews-section .cta-button {
	background: linear-gradient(135deg, #ea580c, #f97316);
}

.reviews-section .cta-button:hover,
.reviews-section .cta-button:focus {
	background: linear-gradient(135deg, #f97316, #fb923c);
	color: white !important;
	text-decoration: none !important;
}

.safety-section .cta-button {
	background: linear-gradient(135deg, #16a34a, #22c55e);
}

.safety-section .cta-button:hover,
.safety-section .cta-button:focus {
	background: linear-gradient(135deg, #22c55e, #4ade80);
	color: white !important;
	text-decoration: none !important;
}

.popular-guides-section .cta-button {
	background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.trust-section .section-intro {
	margin: 24px auto 30px;
	font-size: 1.05rem;
}

/* Grid Layouts */
.grid-4 {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 30px;
	margin-top: 40px;
}

.grid-3 {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 30px;
	margin-top: 40px;
}

/* Review Process Section */
.review-process-section {
	background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
	border-radius: 20px;
	padding: 60px 40px;
	margin: 40px auto;
}

.review-process-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 30px;
	margin-top: 50px;
	margin-bottom: 40px;
}

.process-item {
	background: var(--bg-section);
	border: none;
	border-radius: 20px;
	padding: 35px 30px;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: var(--shadow-md);
	position: relative;
	overflow: hidden;
	border-left: 5px solid var(--primary-color);
	text-align: center;
}

.process-item::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 5px;
	background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
	transform: scaleX(0);
	transition: transform 0.4s ease;
}

.process-item:hover::before {
	transform: scaleX(1);
}

.process-item:hover {
	transform: translateY(-8px) scale(1.02);
	box-shadow: var(--shadow-xl);
	border-left-color: var(--accent-color);
}

.process-icon {
	width: 80px;
	height: 80px;
	margin: 0 auto 20px;
	background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 2.5rem;
	box-shadow: var(--shadow-md);
	transition: all 0.4s ease;
	position: relative;
	z-index: 1;
}

.process-item:hover .process-icon {
	transform: scale(1.15) rotate(5deg);
	box-shadow: var(--shadow-lg);
}

.process-title {
	font-size: 1.5rem;
	font-weight: 700;
	margin-bottom: 16px;
	color: var(--text-dark);
	position: relative;
	z-index: 1;
}

.process-description {
	font-size: 1rem;
	line-height: 1.7;
	color: var(--text-medium);
	margin: 0;
	position: relative;
	z-index: 1;
}

.section-closing {
	text-align: center;
	font-size: 1.1rem;
	font-weight: 500;
	color: var(--text-dark);
	margin-top: 40px;
	padding: 20px 30px;
	background: rgba(255, 255, 255, 0.8);
	border-radius: 12px;
	border-left: 4px solid var(--accent-color);
	max-width: 800px;
	margin-left: auto;
	margin-right: auto;
}

/* Reviews by Age Section */
.reviews-by-age-section {
	background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
	border-radius: 20px;
	padding: 60px 40px;
	margin: 40px auto;
}

.age-review-sections {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 30px;
	margin-top: 50px;
}

.age-review-group {
	background: var(--bg-section);
	border: none;
	border-radius: 20px;
	padding: 35px 30px;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: var(--shadow-lg);
	position: relative;
	overflow: hidden;
	border-top: 5px solid var(--primary-color);
}

.age-review-group::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 5px;
	background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
	transform: scaleX(0);
	transition: transform 0.4s ease;
}

.age-review-group:hover::before {
	transform: scaleX(1);
}

.age-review-group:hover {
	transform: translateY(-8px) scale(1.02);
	box-shadow: var(--shadow-xl);
	border-top-color: var(--accent-color);
}

.age-group-header {
	display: flex;
	align-items: center;
	gap: 15px;
	margin-bottom: 25px;
	padding-bottom: 20px;
	border-bottom: 2px solid var(--border-color);
}

.age-group-icon {
	width: 60px;
	height: 60px;
	background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 2rem;
	box-shadow: var(--shadow-md);
	flex-shrink: 0;
	transition: all 0.4s ease;
}

.age-review-group:hover .age-group-icon {
	transform: scale(1.1) rotate(5deg);
	box-shadow: var(--shadow-lg);
}

.age-group-title {
	font-size: 1.5rem;
	font-weight: 700;
	margin: 0;
	color: var(--text-dark);
	flex: 1;
	line-height: 1.3;
}

.review-links {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.review-links li {
	margin: 0;
	padding: 0;
	position: relative;
	padding-left: 24px;
}

.review-links li::before {
	content: '→';
	position: absolute;
	left: 0;
	color: var(--primary-color);
	font-weight: 600;
	font-size: 1.1rem;
	transition: transform 0.3s ease;
}

.review-links li:hover::before {
	transform: translateX(5px);
}

.review-links a {
	color: var(--text-dark);
	text-decoration: none;
	font-size: 1.05rem;
	font-weight: 500;
	line-height: 1.6;
	display: inline-block;
	transition: all 0.3s ease;
	padding: 4px 0;
	border-bottom: 2px solid transparent;
}

.review-links a:hover {
	color: var(--primary-color);
	border-bottom-color: var(--primary-color);
	transform: translateX(5px);
}

/* Guide Cards */
.guide-card {
	background: var(--bg-section);
	border: none;
	border-radius: 16px;
	padding: 35px;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: var(--shadow-md);
	position: relative;
	overflow: hidden;
	border-top: 4px solid var(--accent-color);
}

.guide-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
	transform: scaleX(0);
	transition: transform 0.4s ease;
}

.guide-card:hover::before {
	transform: scaleX(1);
}

.guide-card:hover {
	transform: translateY(-8px) scale(1.02);
	box-shadow: var(--shadow-xl);
	border-top-color: var(--primary-color);
}

.guide-card .card-title {
	font-size: 1.375rem;
	font-weight: 700;
	margin-bottom: 16px;
	color: var(--text-dark);
}

.guide-card .card-title a {
	color: var(--text-dark);
	text-decoration: none;
	transition: color 0.3s ease;
	display: block;
}

.guide-card .card-title a:hover {
	color: var(--primary-color);
}

.guide-card .card-description {
	font-size: 1rem;
	line-height: 1.7;
	color: var(--text-medium);
	margin-top: 12px;
}

/* Age Cards */
.age-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 30px;
	margin-top: 50px;
}

.age-card {
	background: var(--bg-section);
	border: none;
	border-radius: 20px;
	padding: 40px 30px;
	text-align: center;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: var(--shadow-lg);
	position: relative;
	overflow: hidden;
}

.age-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 5px;
	background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
	transform: scaleX(0);
	transition: transform 0.4s ease;
}

.age-card:hover::before {
	transform: scaleX(1);
}

.age-card:hover {
	transform: translateY(-10px) scale(1.03);
	box-shadow: var(--shadow-xl);
}

.age-icon {
	font-size: 2.75rem;
	font-weight: 800;
	color: white;
	margin-bottom: 24px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100px;
	height: 100px;
	background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
	border-radius: 50%;
	box-shadow: var(--shadow-md);
	transition: all 0.4s ease;
	position: relative;
	z-index: 1;
}

.age-card:hover .age-icon {
	transform: scale(1.15) rotate(5deg);
	box-shadow: var(--shadow-lg);
}

.age-card .card-title {
	font-size: 1.375rem;
	font-weight: 700;
	margin-bottom: 16px;
	color: var(--text-dark);
}

.age-card .card-title a {
	color: var(--text-dark);
	text-decoration: none;
	transition: color 0.3s ease;
}

.age-card .card-title a:hover {
	color: var(--primary-color);
}

.age-card .card-description {
	font-size: 1rem;
	line-height: 1.7;
	color: var(--text-medium);
}

/* Review Cards */
.review-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 30px;
	margin-top: 50px;
}

/* Show 3 columns on desktop screens */
@media (min-width: 1024px) {
	.review-cards {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* Show 2 columns on tablet */
@media (min-width: 769px) and (max-width: 1023px) {
	.review-cards {
		grid-template-columns: repeat(2, 1fr);
	}
}

.review-card {
	background: var(--bg-section);
	border: none;
	border-radius: 20px;
	overflow: hidden;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: var(--shadow-lg);
	position: relative;
}

.review-card::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(251, 191, 36, 0.08) 100%);
	opacity: 0;
	transition: opacity 0.4s ease;
	pointer-events: none;
}

.review-card:hover::after {
	opacity: 1;
}

.review-card:hover {
	transform: translateY(-10px) scale(1.02);
	box-shadow: var(--shadow-xl);
}

.review-thumbnail {
	width: 100%;
	height: 220px;
	overflow: hidden;
	background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
	position: relative;
}

.review-thumbnail::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.1) 100%);
	z-index: 1;
}

.review-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.review-card:hover .review-thumbnail img {
	transform: scale(1.1);
}

.review-card .card-title {
	font-size: 1.375rem;
	font-weight: 700;
	margin: 24px 24px 12px;
	color: var(--text-dark);
	position: relative;
	z-index: 2;
}

.review-card .card-title a {
	color: var(--text-dark);
	text-decoration: none;
	transition: color 0.3s ease;
}

.review-card .card-title a:hover {
	color: var(--primary-color);
}

.review-card .card-description {
	font-size: 1rem;
	line-height: 1.7;
	color: var(--text-medium);
	margin: 0 24px 24px;
	position: relative;
	z-index: 2;
}

/* Safety Cards */
.safety-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 30px;
	margin-top: 50px;
}

.safety-card {
	background: var(--bg-section);
	border: none;
	border-radius: 20px;
	padding: 40px 30px;
	text-align: center;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: var(--shadow-lg);
	position: relative;
	overflow: hidden;
}

.safety-card::before {
	content: '';
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: radial-gradient(circle, rgba(245, 158, 11, 0.12) 0%, transparent 70%);
	opacity: 0;
	transition: opacity 0.4s ease;
}

.safety-card:hover::before {
	opacity: 1;
}

.safety-card:hover {
	transform: translateY(-10px) scale(1.03);
	box-shadow: var(--shadow-xl);
}

.safety-icon {
	width: 100px;
	height: 100px;
	margin: 0 auto 24px;
	border-radius: 50%;
	overflow: hidden;
	background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
	padding: 8px;
	box-shadow: var(--shadow-md);
	position: relative;
	z-index: 1;
	transition: transform 0.4s ease;
}

.safety-card:hover .safety-icon {
	transform: scale(1.1) rotate(5deg);
}

.safety-icon img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
}

.safety-card .card-title {
	font-size: 1.375rem;
	font-weight: 700;
	margin-bottom: 16px;
	color: var(--text-dark);
	position: relative;
	z-index: 1;
}

.safety-card .card-title a {
	color: var(--text-dark);
	text-decoration: none;
	transition: color 0.3s ease;
}

.safety-card .card-title a:hover {
	color: var(--primary-color);
}

.safety-card .card-description {
	font-size: 1rem;
	line-height: 1.7;
	color: var(--text-medium);
	position: relative;
	z-index: 1;
}

/* Brand Cards */
.brand-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 30px;
	margin-top: 40px;
}

.brand-card {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 30px;
	text-align: center;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brand-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.brand-logo {
	width: 100%;
	height: 120px;
	margin-bottom: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.brand-logo img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.brand-card .card-title {
	font-size: 1.125rem;
	font-weight: 600;
}

.brand-card .card-title a {
	color: #1a1a1a;
	text-decoration: none;
	transition: color 0.3s ease;
}

.brand-card .card-title a:hover {
	color: #0066cc;
}

.brand-note {
	text-align: center;
	color: #666;
	font-size: 0.95rem;
	margin-top: 20px;
	font-style: italic;
}

/* Trust Section */
.trust-features {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
	margin-top: 30px;
	max-width: 900px;
	margin-left: auto;
	margin-right: auto;
}

.trust-feature {
	background: var(--bg-section);
	border: none;
	border-radius: 16px;
	padding: 24px 20px;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: var(--shadow-md);
	position: relative;
	overflow: hidden;
	border-left: 4px solid var(--primary-color);
	display: flex;
	flex-direction: column;
	height: 100%;
}

.trust-feature::before {
	content: '✓';
	position: absolute;
	top: 16px;
	right: 16px;
	width: 32px;
	height: 32px;
	background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
	color: white;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	font-weight: bold;
	opacity: 0.2;
	transition: opacity 0.4s ease, transform 0.4s ease;
}

.trust-feature:hover::before {
	opacity: 1;
	transform: scale(1.2);
}

.trust-feature:hover {
	transform: translateY(-8px) scale(1.02);
	box-shadow: var(--shadow-xl);
	border-left-color: var(--accent-color);
}

.feature-title {
	font-size: 1.125rem;
	font-weight: 700;
	margin-bottom: 10px;
	color: var(--text-dark);
	position: relative;
}

.feature-description {
	font-size: 0.95rem;
	line-height: 1.6;
	color: var(--text-medium);
}

.trust-closing {
	text-align: center;
	font-size: 1.1rem;
	font-weight: 600;
	color: var(--text-dark);
	margin-top: 30px;
	font-style: italic;
	padding: 16px 20px;
	background: rgba(255, 255, 255, 0.5);
	border-radius: 12px;
	border-left: 4px solid var(--accent-color);
}

/* Popular Guides */
.popular-guides {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 30px;
	margin-top: 50px;
}

.popular-guide {
	background: var(--bg-section);
	border: none;
	border-radius: 20px;
	overflow: hidden;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: var(--shadow-lg);
	position: relative;
}

.popular-guide::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(180deg, transparent 0%, rgba(245, 158, 11, 0.1) 100%);
	opacity: 0;
	transition: opacity 0.4s ease;
	pointer-events: none;
}

.popular-guide:hover::after {
	opacity: 1;
}

.popular-guide:hover {
	transform: translateY(-10px) scale(1.02);
	box-shadow: var(--shadow-xl);
}

.guide-thumbnail {
	width: 100%;
	height: 200px;
	overflow: hidden;
	background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
	position: relative;
}

.guide-thumbnail::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.1) 100%);
	z-index: 1;
}

.guide-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.popular-guide:hover .guide-thumbnail img {
	transform: scale(1.15);
}

.popular-guide .card-title {
	font-size: 1.25rem;
	font-weight: 700;
	margin: 24px 24px;
	color: var(--text-dark);
	position: relative;
	z-index: 2;
}

.popular-guide .card-title a {
	color: var(--text-dark);
	text-decoration: none;
	transition: color 0.3s ease;
}

.popular-guide .card-title a:hover {
	color: var(--primary-color);
}

/* Additional Polish */
.homepage-section {
	animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Smooth scrolling */
html {
	scroll-behavior: smooth;
}

/* Link hover effects */
a {
	transition: all 0.3s ease;
}

/* Card entrance animation */
.guide-card,
.review-card,
.safety-card,
.trust-feature,
.popular-guide,
.age-card {
	animation: fadeInUp 0.6s ease-out;
	animation-fill-mode: both;
}

.guide-card:nth-child(1) { animation-delay: 0.1s; }
.guide-card:nth-child(2) { animation-delay: 0.2s; }
.guide-card:nth-child(3) { animation-delay: 0.3s; }
.guide-card:nth-child(4) { animation-delay: 0.4s; }

.review-card:nth-child(1) { animation-delay: 0.1s; }
.review-card:nth-child(2) { animation-delay: 0.2s; }
.review-card:nth-child(3) { animation-delay: 0.3s; }

/* Responsive Design */
@media (max-width: 768px) {
	.hero-title {
		font-size: 2.25rem;
	}
	
	.section-title {
		font-size: 2rem;
	}
	
	.section-title::after {
		width: 60px;
	}
	
	.grid-4,
	.grid-3,
	.age-cards,
	.review-cards,
	.safety-cards,
	.brand-cards,
	.trust-features,
	.popular-guides,
	.review-process-grid,
	.age-review-sections {
		grid-template-columns: 1fr;
		gap: 20px;
	}
	
	.review-process-section {
		padding: 40px 20px;
	}
	
	.process-item {
		padding: 30px 20px;
	}
	
	.process-icon {
		width: 70px;
		height: 70px;
		font-size: 2rem;
		margin-bottom: 16px;
	}
	
	.process-title {
		font-size: 1.25rem;
		margin-bottom: 12px;
	}
	
	.process-description {
		font-size: 0.95rem;
	}
	
	.section-closing {
		padding: 16px 20px;
		font-size: 1rem;
		margin-top: 30px;
	}
	
	.reviews-by-age-section {
		padding: 40px 20px;
	}
	
	.age-review-group {
		padding: 30px 20px;
	}
	
	.age-group-header {
		flex-direction: column;
		text-align: center;
		gap: 12px;
		margin-bottom: 20px;
		padding-bottom: 15px;
	}
	
	.age-group-icon {
		width: 50px;
		height: 50px;
		font-size: 1.75rem;
	}
	
	.age-group-title {
		font-size: 1.25rem;
	}
	
	.review-links a {
		font-size: 1rem;
	}
	
	.trust-features {
		max-width: 100%;
	}
	
	.homepage-section {
		padding: 50px 20px;
	}
	
	.homepage-section:nth-child(even),
	.start-here-section,
	.reviews-section,
	.safety-section,
	.trust-section {
		padding: 10px 20px 20px 20px;
	}
	
	.homepage-hero {
		min-height: auto;
		padding: 0;
		margin-bottom: 30px;
	}
	
	.hero-container {
		padding: 40px 20px;
	}

	body.home .hero-container,
	body.front-page .hero-container,
	body.home.page .hero-container {
		padding: 28px 18px;
	}
	
	.hero-content-wrapper {
		grid-template-columns: 1fr;
		gap: 30px;
		text-align: center;
	}
	
	.hero-content {
		text-align: center;
	}

	.hero-actions {
		justify-content: center;
	}

	.hero-checklist {
		margin-left: auto;
		margin-right: auto;
		text-align: left;
	}
	
	.hero-title {
		font-size: 2.25rem;
	}
	
	.hero-description {
		font-size: 1rem;
	}
	
	.hero-features {
		align-items: center;
	}
	
	.hero-img {
		transform: none;
	}

	.hero-image-placeholder {
		min-height: 260px;
	}

	.rt-hero--editorial .hero-img,
	.rt-hero--editorial .hero-image-placeholder {
		min-height: 260px;
		height: 260px;
	}
	
	.hero-image-decoration {
		width: 120px;
		height: 120px;
		top: -10px;
		right: -10px;
	}
	
	.hero-image-decoration::before {
		width: 80px;
		height: 80px;
		bottom: -15px;
		left: -15px;
	}
	
	.shape-1,
	.shape-2,
	.shape-3 {
		display: none;
	}
}

@media (max-width: 480px) {
	.hero-title {
		font-size: 2rem;
	}
	
	.section-title {
		font-size: 1.75rem;
	}
	
	.hero-description {
		font-size: 1rem;
	}
	
	.section-intro {
		font-size: 1rem;
	}
	
	.hero-container {
		padding: 30px 15px;
	}
	
	.hero-content-wrapper {
		gap: 25px;
	}
	
	.hero-badge {
		font-size: 0.8rem;
		padding: 6px 14px;
		margin-bottom: 12px;
	}
	
	.hero-title {
		font-size: 1.875rem;
		margin-bottom: 12px;
	}
	
	.hero-description {
		font-size: 0.95rem;
		margin-bottom: 16px;
	}
	
	.hero-features {
		margin-top: 16px;
		gap: 8px;
	}
	
	.hero-feature-item {
		font-size: 0.9rem;
	}
	
	.section-cta {
		margin-top: 30px;
	}
	
	.cta-button {
		padding: 12px 24px;
		font-size: 0.95rem;
	}
	
	.guide-card,
	.review-card,
	.safety-card,
	.trust-feature,
	.popular-guide,
	.age-card {
		padding: 24px 20px;
	}
}

/* ========================================
   Table of Contents Block Styling
   ======================================== */

/* Ensure parent containers allow centering */
.entry-content .wp-block-ub-table-of-contents-block,
.post-content .wp-block-ub-table-of-contents-block,
.wp-block-ub-table-of-contents-block {
	text-align: center;
	width: 100%;
}

.wp-block-ub-table-of-contents-block.ub_table-of-contents {
	background: var(--bg-section);
	border: 1px solid var(--border-color);
	border-radius: 16px;
	padding: 0;
	margin-left: auto !important;
	margin-right: auto !important;
	margin-top: 2rem !important;
	margin-bottom: 2rem !important;
	max-width: 800px;
	width: calc(100% - 40px) !important;
	box-shadow: var(--shadow-md);
	overflow: hidden;
	transition: all 0.3s ease;
	display: block !important;
	clear: both !important;
	float: none !important;
	position: relative !important;
	left: auto !important;
	right: auto !important;
	transform: none !important;
}

.wp-block-ub-table-of-contents-block.ub_table-of-contents:hover {
	box-shadow: var(--shadow-lg);
}

/* Header Container */
.ub_table-of-contents-header-container {
	background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
	padding: 20px 24px;
	margin: 0;
	border-bottom: none;
}

.ub_table-of-contents-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 0;
}

.ub_table-of-contents-title {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 700;
	color: white;
}

.ub_table-of-contents-title strong {
	color: white;
	font-weight: 700;
}

/* Toggle Link */
.ub_table-of-contents-header-toggle {
	margin: 0;
}

.ub_table-of-contents-toggle {
	margin: 0;
	font-size: 0;
	color: transparent;
}

.ub_table-of-contents-toggle-link {
	color: rgba(255, 255, 255, 0.9) !important;
	text-decoration: none !important;
	font-size: 0.875rem;
	font-weight: 500;
	transition: all 0.3s ease;
	background: rgba(255, 255, 255, 0.15);
	padding: 6px 12px;
	border-radius: 20px;
	display: inline-block;
}

.ub_table-of-contents-toggle-link:hover {
	color: white !important;
	background: rgba(255, 255, 255, 0.25);
	text-decoration: none !important;
	transform: translateY(-1px);
}

/* Extra Container */
.ub_table-of-contents-extra-container {
	padding: 32px 24px 24px 24px;
	margin: 0;
	background: var(--bg-section);
	text-align: center;
}

.ub_table-of-contents-container {
	margin: 0 auto;
	display: inline-block;
	text-align: left;
}

/* Hide functionality - Let JavaScript fully control, CSS only assists with hiding */
/* Primary: Hide when JavaScript adds ub-hide class */
.ub_table-of-contents-container.ub-hide,
.ub_table-of-contents-extra-container.ub-hide {
	display: none !important;
}

/* Secondary: Hide when collapsed AND no inline styles (JavaScript hasn't started managing yet) */
.ub_table-of-contents-collapsed .ub_table-of-contents-extra-container:not([style*="height"]),
.ub_table-of-contents-collapsed .ub_table-of-contents-container:not([style*="height"]) {
	display: none !important;
}

/* Initial state: Hide before JavaScript loads */
.ub_table-of-contents[data-initiallyshow="false"] .ub_table-of-contents-extra-container:not([style]),
.ub_table-of-contents[data-initiallyshow="false"] .ub_table-of-contents-container:not([style]) {
	display: none;
}

/* Critical: During animation, must be visible */
.ub_table-of-contents-container.ub-hiding,
.ub_table-of-contents-extra-container.ub-hiding {
	display: block !important;
}

/* When JavaScript adds inline styles (height), it's managing - don't interfere at all */

/* List Styling - Remove padding from ul, add to container */
/* Override plugin defaults */
.wp-block-ub-table-of-contents-block .ub_table-of-contents-container ul,
.ub_table-of-contents-container ul {
	list-style: none !important;
	padding-left: 0 !important;
	margin: 0 auto !important;
	padding-top: 0 !important;
	margin-left: 0 !important;
	margin-bottom: 0 !important;
}

.ub_table-of-contents-container > ul:first-child {
	padding-top: 0;
	margin-top: 0;
}

.ub_table-of-contents-container ul li {
	margin: 0 0 12px 0;
	padding: 0;
	position: relative;
	padding-left: 24px;
}

.ub_table-of-contents-container ul li::before {
	content: '→';
	position: absolute;
	left: 0;
	color: var(--primary-color);
	font-weight: 600;
	font-size: 1rem;
}

/* Main Level Links */
.ub_table-of-contents-container > ul > li > a {
	color: var(--text-dark);
	text-decoration: none;
	font-weight: 600;
	font-size: 1rem;
	line-height: 1.6;
	display: inline-block;
	padding: 4px 0;
	border-bottom: 2px solid transparent;
}

.ub_table-of-contents-container > ul > li > a:hover {
	color: var(--primary-color);
	border-bottom-color: var(--primary-color);
	text-decoration: none;
}

/* Nested Lists (Sub-items) */
.ub_table-of-contents-container ul ul {
	margin: 8px 0 0 0;
	padding-left: 0;
	list-style: none;
}

.ub_table-of-contents-container ul ul li {
	margin: 0 0 8px 0 !important;
	padding-left: 32px !important;
	position: relative;
}

.ub_table-of-contents-container ul ul li::before {
	content: '' !important;
	position: absolute !important;
	left: 16px !important;
	top: 50% !important;
	transform: translateY(-50%) !important;
	width: 6px !important;
	height: 6px !important;
	border: 2px solid var(--accent-color) !important;
	border-radius: 50% !important;
	background: transparent !important;
	font-size: 0 !important;
	line-height: 0 !important;
}

.ub_table-of-contents-container ul ul li > a {
	color: var(--text-medium);
	text-decoration: none;
	font-weight: 400;
	font-size: 0.9375rem;
	line-height: 1.6;
	display: inline-block;
	padding: 2px 0;
}

.ub_table-of-contents-container ul ul li > a:hover {
	color: var(--primary-color);
	text-decoration: none;
}

/* Deeply Nested Lists */
.ub_table-of-contents-container ul ul ul {
	margin: 6px 0 0 0;
	padding-left: 0;
}

.ub_table-of-contents-container ul ul ul li {
	padding-left: 48px;
	font-size: 0.875rem;
}

.ub_table-of-contents-container ul ul ul li::before {
	content: '◦';
	color: var(--accent-color);
	left: 32px;
	font-size: 1rem;
}

.ub_table-of-contents-container ul ul ul li > a {
	font-size: 0.875rem;
	color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 768px) {
	.ub_table-of-contents-header-container {
		padding: 16px 20px;
	}
	
	.ub_table-of-contents-title {
		font-size: 1.125rem;
	}
	
	.ub_table-of-contents-extra-container {
		padding: 20px;
	}
	
	.ub_table-of-contents-container > ul > li > a {
		font-size: 0.9375rem;
	}
	
	.ub_table-of-contents-container ul ul li > a {
		font-size: 0.875rem;
	}
}

@media (max-width: 480px) {
	.ub_table-of-contents-header-container {
		padding: 14px 16px;
	}
	
	.ub_table-of-contents-title {
		font-size: 1rem;
	}
	
	.ub_table-of-contents-toggle-link {
		font-size: 0.8125rem;
		padding: 5px 10px;
	}
	
	.ub_table-of-contents-extra-container {
		padding: 16px;
	}
	
	.wp-block-ub-table-of-contents-block.ub_table-of-contents {
		width: calc(100% - 20px);
	}
}

/* Additional centering override for any conflicting styles */
.content-area .wp-block-ub-table-of-contents-block.ub_table-of-contents,
.entry-content .wp-block-ub-table-of-contents-block.ub_table-of-contents,
.site-main .wp-block-ub-table-of-contents-block.ub_table-of-contents {
	margin-left: auto !important;
	margin-right: auto !important;
}