/* Hypercognito Slider — Frontend Styles */
.hc-slider-container * { box-sizing: border-box; }

.hc-slider-container {
	position: relative;
	width: 100%;
	height: var(--hc-slider-height, 85vh);
	min-height: 480px;
	overflow: hidden;
	font-family: var(--hc-body-font, 'Open Sans', sans-serif);
	background-color: rgb(var(--hc-overlay-r,14), var(--hc-overlay-g,28), var(--hc-overlay-b,65));
}

.hc-slide {
	position: absolute;
	top: 0; left: 0;
	width: 100%; height: 100%;
	opacity: 0;
	visibility: hidden;
	transition: opacity 1.2s cubic-bezier(0.4,0,0.2,1), visibility 1.2s;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	padding-left: 8%;
}

.hc-slide.active { opacity: 1; visibility: visible; z-index: 2; }

.hc-slide-bg {
	position: absolute; inset: 0;
	width: 100%; height: 100%;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	z-index: 1;
	transform: scale(1);
	transition: transform 7s ease-out;
}
.hc-slide-bg-video { object-fit: cover; }

.hc-slide::before {
	content: "";
	position: absolute; inset: 0;
	background: rgba(var(--hc-overlay-r,14), var(--hc-overlay-g,28), var(--hc-overlay-b,65), var(--hc-overlay-alpha, 0.45));
	z-index: 2;
}

.hc-slide.active .hc-slide-bg { transform: scale(1.12); }

.hc-slide-content {
	position: relative;
	z-index: 5;
	max-width: 650px;
	background: rgba(var(--hc-overlay-r,14), var(--hc-overlay-g,28), var(--hc-overlay-b,65), var(--hc-card-alpha,0.6));
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid rgba(255,255,255,0.12);
	padding: 50px;
	border-radius: 12px;
	box-shadow: 0 25px 50px rgba(0,0,0,0.4);
	color: var(--hc-text-color, #fff);
}

.hc-slide-heading {
	font-family: var(--hc-heading-font, 'Montserrat', sans-serif);
	font-size: 3.2rem;
	font-weight: 800;
	text-transform: uppercase;
	margin: 0 0 20px 0;
	letter-spacing: 1.5px;
	line-height: 1.2;
	color: var(--hc-text-color, #fff);
	opacity: 0;
	transform: translateY(30px);
	transition: all 0.8s cubic-bezier(0.16,1,0.3,1) 0.3s;
}
.hc-slide.active .hc-slide-heading { opacity: 1; transform: translateY(0); }

.hc-slide-desc {
	font-size: 1.1rem;
	line-height: 1.65;
	margin: 0 0 35px 0;
	color: var(--hc-text-color, #fff);
	opacity: 0.9;
	opacity: 0;
	transform: translateY(20px);
	transition: all 0.8s ease-out 0.6s;
}
.hc-slide.active .hc-slide-desc { opacity: 1; transform: translateY(0); }

.hc-slide-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	opacity: 0;
	transform: translateY(20px);
	transition: all 0.8s ease-out 0.8s;
}
.hc-slide.active .hc-slide-buttons { opacity: 1; transform: translateY(0); }

.hc-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 28px;
	font-size: 0.95rem;
	font-weight: 600;
	text-transform: uppercase;
	text-decoration: none;
	border-radius: 4px;
	letter-spacing: 1px;
	transition: all 0.4s cubic-bezier(0.25,0.8,0.25,1);
	box-shadow: 0 4px 6px rgba(0,0,0,0.15);
}
.hc-btn i { font-size: 1.1rem; transition: transform 0.3s ease; }

.hc-btn-primary {
	background-color: var(--hc-primary, #DA1F32);
	color: #fff;
	border: 2px solid var(--hc-primary, #DA1F32);
}
.hc-btn-primary:hover {
	background-color: transparent;
	color: var(--hc-primary, #DA1F32);
	transform: translateY(-4px);
	box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.hc-btn-secondary {
	background-color: transparent;
	color: var(--hc-text-color, #fff);
	border: 2px solid var(--hc-text-color, #fff);
}
.hc-btn-secondary:hover {
	background-color: var(--hc-text-color, #fff);
	color: rgb(var(--hc-overlay-r,14), var(--hc-overlay-g,28), var(--hc-overlay-b,65));
	transform: translateY(-4px);
	box-shadow: 0 8px 15px rgba(255,255,255,0.25);
}

.hc-btn:hover i { transform: scale(1.15) rotate(5deg); }

.hc-slider-dots {
	position: absolute;
	bottom: 30px; left: 50%;
	transform: translateX(-50%);
	z-index: 10;
	display: flex;
	gap: 12px;
}
.hc-dot {
	width: 12px; height: 12px;
	background-color: rgba(255,255,255,0.3);
	border-radius: 50%;
	cursor: pointer;
	transition: all 0.3s ease;
}
.hc-dot.active, .hc-dot:hover {
	background-color: var(--hc-primary, #DA1F32);
	transform: scale(1.25);
	box-shadow: 0 0 10px rgba(0,0,0,0.4);
}

.hc-slider-arrows { z-index: 10; }
.hc-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255,255,255,0.15);
	border: 1px solid rgba(255,255,255,0.4);
	color: #fff;
	width: 46px; height: 46px;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	backdrop-filter: blur(6px);
}
.hc-arrow:hover { background: var(--hc-primary, #DA1F32); border-color: var(--hc-primary, #DA1F32); }
.hc-arrow-prev { left: 20px; }
.hc-arrow-next { right: 20px; }

.hc-slider-logo {
	position: absolute;
	z-index: 20;
	max-width: 140px;
}
.hc-slider-logo img { max-width: 100%; height: auto; display: block; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4)); }
.hc-logo-top-left { top: 24px; left: 24px; }
.hc-logo-top-right { top: 24px; right: 24px; }
.hc-logo-bottom-left { bottom: 24px; left: 24px; }
.hc-logo-bottom-right { bottom: 24px; right: 24px; }

@media (max-width: 768px) {
	.hc-slider-container { height: 75vh; }
	.hc-slide { padding-left: 5%; padding-right: 5%; justify-content: center; }
	.hc-slide-content { padding: 30px 20px; text-align: center; border-radius: 8px; }
	.hc-slide-heading { font-size: 2rem; }
	.hc-slide-desc { font-size: 0.95rem; }
	.hc-slide-buttons { flex-direction: column; width: 100%; gap: 10px; }
	.hc-btn { justify-content: center; width: 100%; }
	.hc-arrow { width: 38px; height: 38px; }
	.hc-slider-logo { max-width: 90px; }
}

.hc-slider-empty-notice {
	padding: 16px;
	background: #fff3cd;
	border: 1px solid #ffe69c;
	color: #664d03;
	border-radius: 4px;
}

/* ===================================================================
   SPLIT LAYOUT (text + image side-by-side)
   =================================================================== */

.hc-split-wrapper * { box-sizing: border-box; }

.hc-split-wrapper {
	background-color: transparent;
	color: #1e293b;
	width: 100%;
	font-family: var(--hcs-body-font, 'Open Sans', sans-serif);
}

.hc-split-container {
	max-width: 1200px;
	margin: 0 auto;
	position: relative;
	background: var(--hcs-bg, #ffffff);
	border: 1px solid rgba(28, 40, 78, 0.08);
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 20px 40px rgba(28, 40, 78, 0.08);
}

.hc-split-track {
	display: flex;
	transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
	width: 100%;
}

.hc-split-slide {
	min-width: 100%;
	box-sizing: border-box;
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	padding: 50px;
	gap: 40px;
	background: linear-gradient(135deg, var(--hcs-bg, #fff) 0%, #f8fafc 100%);
}

.hc-split-content { display: flex; flex-direction: column; align-items: flex-start; }

.hc-split-tag {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--hcs-accent, #00b67a);
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 2px;
	text-transform: uppercase;
	margin-bottom: 15px;
	background: color-mix(in srgb, var(--hcs-accent, #00b67a) 12%, transparent);
	padding: 6px 14px;
	border-radius: 30px;
}

.hc-split-title {
	font-family: var(--hcs-heading-font, 'Montserrat', sans-serif);
	font-size: 38px;
	font-weight: 800;
	color: var(--hcs-dark, #1c284e);
	line-height: 1.2;
	margin: 0 0 20px 0;
	transition: color 0.3s ease;
}
.hc-split-title:hover { color: var(--hcs-accent, #00b67a); }

.hc-split-desc {
	font-size: 16px;
	line-height: 1.7;
	color: var(--hcs-desc, #64748b);
	margin: 0 0 30px 0;
}

.hc-split-buttons { display: flex; gap: 15px; flex-wrap: wrap; }

.hc-split-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 26px;
	border-radius: 50px;
	font-weight: 700;
	font-size: 14px;
	text-decoration: none;
	transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.hc-split-btn-primary {
	background-color: var(--hcs-accent, #00b67a);
	color: #ffffff;
	border: 2px solid var(--hcs-accent, #00b67a);
}
.hc-split-btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); filter: brightness(0.92); }

.hc-split-btn-outline {
	background-color: transparent;
	color: var(--hcs-dark, #1c284e);
	border: 2px solid #cbd5e1;
}
.hc-split-btn-outline:hover {
	border-color: var(--hcs-accent, #00b67a);
	color: var(--hcs-accent, #00b67a);
	transform: translateY(-3px);
	box-shadow: 0 8px 20px rgba(28, 40, 78, 0.1);
}

.hc-split-image-wrap {
	position: relative;
	width: 100%;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 15px 35px rgba(28, 40, 78, 0.12);
	transition: transform 0.5s ease, box-shadow 0.5s ease;
}
.hc-split-image-wrap:hover { transform: translateY(-5px); }

.hc-split-image {
	width: 100%;
	height: 340px;
	object-fit: cover;
	display: block;
	transition: transform 0.6s ease;
}
.hc-split-image-wrap:hover .hc-split-image { transform: scale(1.05); }

.hc-split-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(28, 40, 78, 0.7);
	color: #ffffff;
	border: none;
	width: 45px;
	height: 45px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.3s ease;
	z-index: 10;
}
.hc-split-nav:hover { background: var(--hcs-accent, #00b67a); transform: translateY(-50%) scale(1.1); }
.hc-split-prev { left: 15px; }
.hc-split-next { right: 15px; }

.hc-split-dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	padding: 15px 0 25px 0;
	background: var(--hcs-bg, #ffffff);
	border: none;
}

.hc-split-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #cbd5e1;
	border: none;
	cursor: pointer;
	transition: all 0.3s ease;
	padding: 0;
}
.hc-split-dot.active { background: var(--hcs-accent, #00b67a); width: 30px; border-radius: 6px; }

@media (max-width: 900px) {
	.hc-split-slide { grid-template-columns: 1fr; padding: 30px 20px; text-align: center; }
	.hc-split-content { align-items: center; }
	.hc-split-buttons { justify-content: center; }
}

@media (max-width: 768px) {
	.hc-split-title { font-size: 28px; }
	.hc-split-image { height: 240px; }
}

/* ===================================================================
   REVO LAYOUT (full-screen dark, centered, typewriter heading)
   =================================================================== */

.hc-revo-container * { box-sizing: border-box; }

.hc-revo-container {
	position: relative;
	width: 100%;
	height: var(--hcr-height, 100vh);
	min-height: 480px;
	overflow: hidden;
	background: #0f0f0f;
	font-family: var(--hcr-body-font, 'Segoe UI', sans-serif);
}

.hc-revo-slide {
	position: absolute;
	top: 0; left: 0;
	width: 100%; height: 100%;
	opacity: 0;
	visibility: hidden;
	transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
	display: flex;
	align-items: center;
	justify-content: center;
}
.hc-revo-slide.active { opacity: 1; visibility: visible; z-index: 2; }

.hc-revo-bg {
	position: absolute; inset: 0;
	width: 100%; height: 100%;
	background-size: cover;
	background-position: center;
	transition: transform 0.8s ease;
	filter: brightness(var(--hcr-brightness, 0.6));
	z-index: 1;
}
.hc-revo-bg-video { object-fit: cover; }
.hc-revo-slide:hover .hc-revo-bg { transform: scale(1.08); }

.hc-revo-content {
	position: relative;
	z-index: 2;
	text-align: center;
	color: #fff;
	width: 100%;
	max-width: 900px;
	padding: 0 20px;
}

.hc-revo-heading {
	font-family: var(--hcr-heading-font, 'Segoe UI', sans-serif);
	font-size: clamp(2rem, 5vw, 3.5rem);
	font-weight: 700;
	margin: 0 auto 20px auto;
	white-space: nowrap;
	overflow: hidden;
	border-right: 3px solid var(--hcr-accent, #ff6b6b);
	width: 0;
	animation: hcRevoTyping 3s steps(var(--hcr-steps, 20), end) forwards, hcRevoBlink 0.75s step-end infinite;
	text-shadow: 0 4px 10px rgba(0,0,0,0.5);
	transition: color 0.3s ease, transform 0.3s ease;
	display: inline-block;
	max-width: 92vw;
}
.hc-revo-heading:hover { color: var(--hcr-accent, #ff6b6b); transform: scale(1.02); }

.hc-revo-text {
	font-size: clamp(1rem, 2vw, 1.2rem);
	margin: 0 0 30px 0;
	color: #ddd;
	transition: color 0.3s ease;
	padding: 0 10px;
}
.hc-revo-text:hover { color: #ffffff; }

.hc-revo-buttons { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }

.hc-revo-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 35px;
	font-size: clamp(0.9rem, 1.5vw, 1rem);
	font-weight: 600;
	color: #fff;
	border: none;
	border-radius: 50px;
	cursor: pointer;
	text-decoration: none;
	transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.hc-revo-btn-primary {
	background: linear-gradient(135deg, var(--hcr-accent, #ff6b6b), color-mix(in srgb, var(--hcr-accent, #ff6b6b) 70%, white));
	box-shadow: 0 4px 15px rgba(0,0,0,0.35);
}
.hc-revo-btn-primary:hover {
	transform: translateY(-5px) scale(1.05);
	box-shadow: 0 8px 25px rgba(0,0,0,0.5);
	filter: brightness(1.08);
}

.hc-revo-btn-secondary {
	background: transparent;
	border: 2px solid rgba(255,255,255,0.5);
}
.hc-revo-btn-secondary:hover {
	border-color: var(--hcr-accent, #ff6b6b);
	color: var(--hcr-accent, #ff6b6b);
	transform: translateY(-5px) scale(1.05);
}

.hc-revo-logo {
	position: absolute;
	top: 20px; left: 20px;
	z-index: 10;
	width: 50px; height: 50px;
	border-radius: 50%;
	overflow: hidden;
	box-shadow: 0 4px 15px rgba(0,0,0,0.3);
	animation: hcRevoRevolve 8s linear infinite;
	cursor: pointer;
	border: 2px solid rgba(255,255,255,0.3);
}
.hc-revo-logo img { width: 100%; height: 100%; object-fit: cover; }
.hc-revo-logo:hover { animation-play-state: paused; }

.hc-revo-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(0, 0, 0, 0.5);
	color: white;
	border: none;
	padding: 12px 16px;
	font-size: 1.1rem;
	cursor: pointer;
	z-index: 10;
	transition: background 0.3s, transform 0.3s;
	border-radius: 5px;
}
.hc-revo-nav:hover { background: color-mix(in srgb, var(--hcr-accent, #ff6b6b) 80%, transparent); transform: translateY(-50%) scale(1.1); }
.hc-revo-prev { left: 15px; }
.hc-revo-next { right: 15px; }

.hc-revo-dots {
	position: absolute;
	bottom: 24px; left: 50%;
	transform: translateX(-50%);
	z-index: 10;
	display: flex;
	gap: 8px;
}
.hc-revo-dot {
	width: 10px; height: 10px;
	background: rgba(255,255,255,0.35);
	border-radius: 50%;
	cursor: pointer;
	transition: all 0.3s ease;
}
.hc-revo-dot.active {
	background: var(--hcr-accent, #ff6b6b);
	transform: scale(1.25);
	box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

@keyframes hcRevoTyping { from { width: 0; } to { width: var(--hcr-final-width, 100%); } }
@keyframes hcRevoBlink { from, to { border-color: transparent; } 50% { border-color: var(--hcr-accent, #ff6b6b); } }
@keyframes hcRevoRevolve { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

@media (max-width: 768px) {
	.hc-revo-heading {
		white-space: normal;
		border-right: none;
		width: 100% !important;
		animation: hcRevoFadeIn 1.2s ease forwards;
	}
	@keyframes hcRevoFadeIn {
		from { opacity: 0; transform: translateY(10px); }
		to { opacity: 1; transform: translateY(0); }
	}
	.hc-revo-nav { padding: 10px 14px; font-size: 1rem; }
	.hc-revo-logo { width: 42px; height: 42px; top: 15px; left: 15px; }
}

/* ===================================================================
   STACK LAYOUT (3D coverflow: multiple cards visible with depth)
   =================================================================== */

.hc-stack-wrapper * { box-sizing: border-box; }

.hc-stack-wrapper {
	width: 100%;
	background: rgb(var(--hck-bg-r,14), var(--hck-bg-g,28), var(--hck-bg-b,65));
	font-family: var(--hck-body-font, 'Segoe UI', sans-serif);
	padding: 60px 20px;
}

.hc-stack-container { position: relative; max-width: 1200px; margin: 0 auto; }

.hc-stack-track { position: relative; height: 520px; }

.hc-stack-card {
	position: absolute;
	top: 0;
	left: 50%;
	width: min(600px, 85vw);
	background: #ffffff;
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 25px 60px rgba(0,0,0,0.35);
	transform: translate(-50%, 0) translateX(calc(var(--hck-offset, 0) * 58%)) scale(calc(1 - var(--hck-abs, 0) * 0.14));
	opacity: calc(1 - var(--hck-abs, 0) * 0.45);
	z-index: calc(20 - var(--hck-abs, 0));
	transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.6s ease;
	pointer-events: none;
	cursor: pointer;
}
.hc-stack-card[data-clickable="true"] { pointer-events: auto; }

.hc-stack-media { width: 100%; height: 260px; overflow: hidden; position: relative; }
.hc-stack-image, .hc-stack-image-video {
	width: 100%; height: 100%;
	object-fit: cover;
	background-size: cover;
	background-position: center;
	display: block;
}

.hc-stack-content { padding: 28px 30px 34px; text-align: left; }

.hc-stack-title {
	font-family: var(--hck-heading-font, 'Montserrat', sans-serif);
	font-size: 1.6rem;
	font-weight: 800;
	color: #1c284e;
	margin: 0 0 12px 0;
	line-height: 1.25;
}
.hc-stack-desc { font-size: 0.98rem; line-height: 1.6; color: #64748b; margin: 0 0 20px 0; }
.hc-stack-buttons { display: flex; gap: 10px; flex-wrap: wrap; }

.hc-stack-btn {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 10px 20px;
	border-radius: 40px;
	font-weight: 700;
	font-size: 0.85rem;
	text-decoration: none;
	transition: all 0.3s ease;
}
.hc-stack-btn-primary { background: var(--hck-accent, #DA1F32); color: #fff; border: 2px solid var(--hck-accent, #DA1F32); }
.hc-stack-btn-primary:hover { filter: brightness(0.92); transform: translateY(-2px); }
.hc-stack-btn-secondary { background: transparent; color: #1c284e; border: 2px solid #e2e8f0; }
.hc-stack-btn-secondary:hover { border-color: var(--hck-accent, #DA1F32); color: var(--hck-accent, #DA1F32); }

.hc-stack-nav {
	position: absolute; top: 50%; transform: translateY(-50%);
	background: rgba(255,255,255,0.15);
	border: 1px solid rgba(255,255,255,0.35);
	color: var(--hck-text, #fff);
	width: 46px; height: 46px;
	border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	cursor: pointer; z-index: 30;
	transition: all 0.3s ease;
	backdrop-filter: blur(6px);
}
.hc-stack-nav:hover { background: var(--hck-accent, #DA1F32); border-color: var(--hck-accent, #DA1F32); }
.hc-stack-prev { left: 10px; }
.hc-stack-next { right: 10px; }

.hc-stack-dots { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.hc-stack-dot {
	width: 10px; height: 10px; border-radius: 50%;
	background: rgba(255,255,255,0.3);
	border: none; cursor: pointer; padding: 0;
	transition: all 0.3s ease;
}
.hc-stack-dot.active { background: var(--hck-accent, #DA1F32); width: 26px; border-radius: 6px; }

@media (max-width: 640px) {
	.hc-stack-track { height: 560px; }
	.hc-stack-card { width: 82vw; }
	.hc-stack-media { height: 200px; }
	.hc-stack-nav { width: 38px; height: 38px; }
}

/* ===================================================================
   EDITORIAL LAYOUT (diagonal magazine spread with slide index)
   =================================================================== */

.hc-edit-wrapper * { box-sizing: border-box; }
.hc-edit-wrapper { width: 100%; font-family: var(--hced-body-font, 'Segoe UI', sans-serif); }

.hc-edit-container {
	position: relative;
	max-width: 1300px;
	margin: 0 auto;
	background: var(--hced-bg, #ffffff);
	border-radius: 4px;
	overflow: hidden;
}

.hc-edit-track { position: relative; min-height: 560px; }

.hc-edit-slide {
	position: absolute; inset: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	opacity: 0; visibility: hidden;
	transition: opacity 0.7s ease, visibility 0.7s ease;
}
.hc-edit-slide.active { opacity: 1; visibility: visible; z-index: 2; position: relative; }

.hc-edit-index {
	position: absolute; top: 10px; left: 40px;
	font-family: var(--hced-heading-font, 'Montserrat', sans-serif);
	font-size: 9rem; font-weight: 800; line-height: 1;
	color: var(--hced-dark, #1c284e);
	opacity: 0.06;
	z-index: 1;
	pointer-events: none; user-select: none;
}

.hc-edit-content {
	position: relative; z-index: 2;
	display: flex; flex-direction: column; justify-content: center;
	padding: 60px 30px 60px 70px;
}

.hc-edit-tag {
	display: inline-flex; align-items: center; gap: 8px;
	width: fit-content;
	color: var(--hced-accent, #DA1F32);
	font-weight: 700; font-size: 12px;
	letter-spacing: 2px; text-transform: uppercase;
	margin-bottom: 18px;
	border-bottom: 2px solid var(--hced-accent, #DA1F32);
	padding-bottom: 6px;
}

.hc-edit-title {
	font-family: var(--hced-heading-font, 'Montserrat', sans-serif);
	font-size: clamp(2rem, 3.2vw, 3rem);
	font-weight: 800;
	color: var(--hced-dark, #1c284e);
	line-height: 1.15;
	margin: 0 0 22px 0;
	max-width: 480px;
}

.hc-edit-desc { font-size: 1.05rem; line-height: 1.7; color: var(--hced-desc, #64748b); margin: 0 0 28px 0; max-width: 440px; }

.hc-edit-links { display: flex; gap: 28px; flex-wrap: wrap; }

.hc-edit-link {
	display: inline-flex; align-items: center; gap: 10px;
	font-weight: 700; font-size: 0.95rem;
	text-decoration: none;
	padding-bottom: 4px;
	border-bottom: 2px solid transparent;
	transition: all 0.3s ease;
}
.hc-edit-link-primary { color: var(--hced-dark, #1c284e); border-bottom-color: var(--hced-dark, #1c284e); }
.hc-edit-link-primary:hover { color: var(--hced-accent, #DA1F32); border-bottom-color: var(--hced-accent, #DA1F32); gap: 14px; }
.hc-edit-link-secondary { color: var(--hced-desc, #64748b); }
.hc-edit-link-secondary:hover { color: var(--hced-dark, #1c284e); border-bottom-color: var(--hced-desc, #64748b); }

.hc-edit-media { position: relative; z-index: 2; overflow: hidden; }
.hc-edit-image, .hc-edit-image-video {
	width: 100%; height: 100%;
	min-height: 560px;
	object-fit: cover;
	background-size: cover;
	background-position: center;
	display: block;
	clip-path: polygon(10% 0, 100% 0, 100% 100%, 0% 100%);
}

.hc-edit-footer {
	position: relative; z-index: 5;
	display: flex; align-items: center; gap: 20px;
	padding: 20px 40px;
	border-top: 1px solid rgba(0,0,0,0.08);
}
.hc-edit-counter {
	font-family: var(--hced-heading-font, 'Montserrat', sans-serif);
	font-weight: 800; font-size: 0.85rem;
	color: var(--hced-dark, #1c284e);
	letter-spacing: 1px; white-space: nowrap;
}
.hc-edit-counter-current { color: var(--hced-accent, #DA1F32); }

.hc-edit-progress { flex: 1; height: 3px; background: rgba(0,0,0,0.08); border-radius: 3px; overflow: hidden; }
.hc-edit-progress-bar { height: 100%; width: 0%; background: var(--hced-accent, #DA1F32); transition: width 0.5s ease; }

.hc-edit-arrows { display: flex; gap: 8px; }
.hc-edit-nav {
	width: 38px; height: 38px; border-radius: 50%;
	border: 1px solid rgba(0,0,0,0.15);
	background: transparent;
	color: var(--hced-dark, #1c284e);
	display: flex; align-items: center; justify-content: center;
	cursor: pointer;
	transition: all 0.3s ease;
}
.hc-edit-nav:hover { background: var(--hced-accent, #DA1F32); border-color: var(--hced-accent, #DA1F32); color: #fff; }

@media (max-width: 900px) {
	.hc-edit-slide { grid-template-columns: 1fr; }
	.hc-edit-content { padding: 50px 24px 30px; order: 2; }
	.hc-edit-media { order: 1; }
	.hc-edit-image, .hc-edit-image-video { min-height: 260px; clip-path: none; }
	.hc-edit-index { font-size: 5rem; top: 6px; left: 16px; }
	.hc-edit-title, .hc-edit-desc { max-width: 100%; }
	.hc-edit-footer { padding: 16px 20px; flex-wrap: wrap; }
}

/* ===================================================================
   STORIES LAYOUT (vertical portrait card, segmented progress bar)
   =================================================================== */

.hc-story-wrapper * { box-sizing: border-box; }

.hc-story-wrapper {
	width: 100%;
	display: flex; justify-content: center;
	padding: 30px 20px;
	background: rgb(var(--hcy-bg-r,14), var(--hcy-bg-g,28), var(--hcy-bg-b,65));
	font-family: var(--hcy-body-font, 'Segoe UI', sans-serif);
}

.hc-story-frame {
	position: relative;
	width: min(380px, 90vw);
	aspect-ratio: 9 / 16;
	border-radius: 22px;
	overflow: hidden;
	background: #111;
	box-shadow: 0 25px 60px rgba(0,0,0,0.5);
}

.hc-story-progress { position: absolute; top: 12px; left: 12px; right: 12px; z-index: 20; display: flex; gap: 4px; }
.hc-story-seg { flex: 1; height: 3px; background: rgba(255,255,255,0.3); border-radius: 3px; overflow: hidden; display: block; }
.hc-story-seg-fill { display: block; height: 100%; width: 0%; background: #ffffff; border-radius: 3px; }
.hc-story-seg.done .hc-story-seg-fill { width: 100% !important; transition: none !important; }

.hc-story-avatar {
	position: absolute; top: 26px; left: 14px; z-index: 20;
	width: 32px; height: 32px;
	border-radius: 50%; overflow: hidden;
	border: 2px solid rgba(255,255,255,0.8);
	box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.hc-story-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.hc-story-track { position: relative; width: 100%; height: 100%; }

.hc-story-slide {
	position: absolute; inset: 0;
	opacity: 0; visibility: hidden;
	transition: opacity 0.5s ease, visibility 0.5s ease;
}
.hc-story-slide.active { opacity: 1; visibility: visible; z-index: 2; }

.hc-story-bg, .hc-story-bg-video {
	position: absolute; inset: 0;
	width: 100%; height: 100%;
	object-fit: cover;
	background-size: cover;
	background-position: center;
}

.hc-story-gradient {
	position: absolute; inset: 0; z-index: 1;
	background: linear-gradient(to bottom, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.05) 45%, rgba(0,0,0,0.85) 100%);
}

.hc-story-content { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; padding: 24px 20px 28px; color: #fff; }

.hc-story-heading {
	font-family: var(--hcy-heading-font, 'Montserrat', sans-serif);
	font-size: 1.5rem; font-weight: 800; line-height: 1.25;
	margin: 0 0 10px 0;
	text-shadow: 0 2px 8px rgba(0,0,0,0.5);
	color: #fff;
}
.hc-story-text { font-size: 0.9rem; line-height: 1.55; color: rgba(255,255,255,0.9); margin: 0 0 18px 0; }
.hc-story-buttons { display: flex; gap: 10px; flex-wrap: wrap; position: relative; z-index: 15; }

.hc-story-btn {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 10px 20px;
	border-radius: 40px;
	font-weight: 700; font-size: 0.82rem;
	text-decoration: none;
	transition: all 0.3s ease;
}
.hc-story-btn-primary { background: var(--hcy-accent, #ff6b6b); color: #fff; border: 2px solid var(--hcy-accent, #ff6b6b); }
.hc-story-btn-primary:hover { filter: brightness(1.08); transform: translateY(-2px); }
.hc-story-btn-secondary { background: rgba(255,255,255,0.12); color: #fff; border: 2px solid rgba(255,255,255,0.5); backdrop-filter: blur(4px); }
.hc-story-btn-secondary:hover { border-color: #fff; }

/* Tap zones cover only the upper part of the frame so the text/buttons area below stays clickable. */
.hc-story-tap {
	position: absolute; top: 0; bottom: 42%;
	width: 32%;
	background: transparent; border: none; cursor: pointer;
	z-index: 10;
}
.hc-story-tap-left { left: 0; }
.hc-story-tap-right { right: 0; }

@media (max-width: 480px) {
	.hc-story-frame { width: 92vw; }
}

/* ===================================================================
   LOGO ON A WHITE CARD (Settings > Logo Backing = "White card")
   For transparent logos with dark/blue lettering that vanish on dark backgrounds.
   =================================================================== */

.hc-slider-logo.hc-logo-backed {
	background: #ffffff;
	padding: 8px 12px;
	border-radius: 10px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.hc-slider-logo.hc-logo-backed img { filter: none; }

/* Revo: a rotating wide logo is unreadable most of the time, so the backed version stays still. */
.hc-revo-logo.hc-logo-backed {
	width: auto; height: auto;
	max-width: 110px;
	padding: 6px 10px;
	border: none;
	border-radius: 10px;
	background: #ffffff;
	overflow: visible;
	animation: none;
}
.hc-revo-logo.hc-logo-backed img { width: 100%; height: auto; object-fit: contain; display: block; }

.hc-story-avatar.hc-logo-backed {
	width: auto; height: 38px;
	padding: 4px 8px;
	border: none;
	border-radius: 8px;
	background: #ffffff;
}
.hc-story-avatar.hc-logo-backed img { width: auto; height: 100%; object-fit: contain; }

/* ===================================================================
   HERO: CONTRAST HARDENING
   Themes often style h2 / p / a globally (e.g. dark blue). These rules
   use higher specificity + !important so slider text stays readable.
   =================================================================== */

.hc-slider-container .hc-slide-content {
	background: rgba(var(--hc-overlay-r,14), var(--hc-overlay-g,28), var(--hc-overlay-b,65), var(--hc-card-alpha,0.6)) !important;
}
.hc-slider-container .hc-slide-heading,
.hc-slider-container .hc-slide-desc {
	color: var(--hc-text-color, #fff) !important;
	text-shadow: 0 2px 10px rgba(0,0,0,0.55);
}
.hc-slider-container .hc-slide-heading {
	font-family: var(--hc-heading-font, 'Montserrat', sans-serif) !important;
	text-transform: uppercase !important;
}
.hc-slider-container .hc-slide-desc { font-family: var(--hc-body-font, 'Open Sans', sans-serif) !important; }

.hc-slider-container a.hc-btn.hc-btn-primary,
.hc-slider-container a.hc-btn.hc-btn-primary:visited {
	background-color: var(--hc-primary, #DA1F32) !important;
	border-color: var(--hc-primary, #DA1F32) !important;
	color: #fff !important;
	text-shadow: none;
}
/* Hover: darken instead of going transparent (transparent + coloured text vanishes on photos). */
.hc-slider-container a.hc-btn.hc-btn-primary:hover {
	background-color: var(--hc-primary, #DA1F32) !important;
	color: #fff !important;
	filter: brightness(0.85);
}

.hc-slider-container a.hc-btn.hc-btn-secondary,
.hc-slider-container a.hc-btn.hc-btn-secondary:visited {
	background-color: rgba(255,255,255,0.12) !important;
	border-color: #fff !important;
	color: #fff !important;
	text-shadow: none;
}
.hc-slider-container a.hc-btn.hc-btn-secondary:hover {
	background-color: #fff !important;
	color: rgb(var(--hc-overlay-r,14), var(--hc-overlay-g,28), var(--hc-overlay-b,65)) !important;
}

/* Revo / Stories: keep text and buttons light on dark photos even if the theme restyles links. */
.hc-revo-container .hc-revo-heading,
.hc-revo-container .hc-revo-text { text-shadow: 0 2px 10px rgba(0,0,0,0.6); }
.hc-revo-container a.hc-revo-btn { color: #fff !important; }
.hc-story-wrapper a.hc-story-btn { color: #fff !important; }

/* ===================================================================
   REVO: CONTRAST HARDENING (heading + description + scrim)
   =================================================================== */

/* Dark scrim between the photo and the text so any image stays readable. */
.hc-revo-container .hc-revo-slide::after {
	content: "";
	position: absolute; inset: 0;
	z-index: 1;
	pointer-events: none;
	background:
		radial-gradient(ellipse 70% 55% at 50% 50%, rgba(0,0,0,0.60) 0%, rgba(0,0,0,0.35) 60%, rgba(0,0,0,0.15) 100%);
}

.hc-revo-container .hc-revo-content h2.hc-revo-heading {
	color: #ffffff !important;
	font-family: var(--hcr-heading-font, 'Segoe UI', sans-serif) !important;
	text-shadow: 0 2px 4px rgba(0,0,0,0.7), 0 4px 18px rgba(0,0,0,0.65) !important;
}
.hc-revo-container .hc-revo-content h2.hc-revo-heading:hover {
	color: var(--hcr-accent, #ff6b6b) !important;
}

.hc-revo-container .hc-revo-content p.hc-revo-text {
	color: #ffffff !important;
	font-weight: 500;
	text-shadow: 0 1px 3px rgba(0,0,0,0.8), 0 2px 12px rgba(0,0,0,0.6) !important;
}

.hc-revo-container a.hc-revo-btn.hc-revo-btn-secondary {
	background: rgba(0,0,0,0.35) !important;
	border-color: #fff !important;
	color: #fff !important;
	text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}
.hc-revo-container a.hc-revo-btn.hc-revo-btn-secondary:hover {
	border-color: var(--hcr-accent, #ff6b6b) !important;
	background: #fff !important;
	color: var(--hcr-accent, #ff6b6b) !important;
}
