/*
Theme Name: Startup Vortixel Child
Theme URI: https://startupvortixel.com/
Description: Child theme khusus Startup Vortixel berbasis Hello Elementor.
Author: Startup Vortixel
Template: hello-elementor
Version: 1.0.1
Text Domain: startup-vortixel-child
*/

:root {
	--sv-bg: #f5f6f8;
	--sv-surface: #ffffff;
	--sv-dark: #12141c;
	--sv-dark-soft: #202432;
	--sv-text: #17191f;
	--sv-muted: #6c707a;
	--sv-accent: #c8f400;
	--sv-accent-dark: #9fca00;
	--sv-border: rgba(18, 20, 28, 0.10);
	--sv-radius: 28px;
	--sv-shadow: 0 22px 70px rgba(18, 20, 28, 0.10);
}

/* =====================================================
   GLOBAL
===================================================== */

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--sv-bg);
	color: var(--sv-text);
}

body.single-post {
	overflow-x: hidden;
}

.sv-reading-progress {
	position: fixed;
	z-index: 99999;
	top: 0;
	left: 0;
	width: 0;
	height: 4px;
	background: linear-gradient(
		90deg,
		var(--sv-accent),
		#77ff00
	);
}

/* =====================================================
   SINGLE POST WRAPPER
===================================================== */

.sv-single {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0 18px 80px !important;
}

/*
Header Elementor menggunakan posisi fixed/sticky.

Desktop:
header sekitar 108px, ditambah jarak 20px.

Mobile:
header sekitar 82px, ditambah jarak 14px.
*/
.sv-article {
	width: 100%;
	margin: 135px auto 0 !important;
	overflow: hidden;
	background: var(--sv-surface);
	border: 1px solid var(--sv-border);
	border-radius: var(--sv-radius);
	box-shadow: var(--sv-shadow);
	transform: none !important;
}

/* Offset tambahan ketika WordPress admin bar tampil */
body.admin-bar .sv-article {
	margin-top: 167px !important;
}

.sv-container {
	width: min(1160px, 100%);
	margin: 0 auto;
}

/* =====================================================
   HERO
===================================================== */

.sv-hero {
	position: relative;
	margin: 0 !important;
	padding: clamp(38px, 7vw, 86px);
	overflow: hidden;
	color: #ffffff;
	background:
		linear-gradient(
			135deg,
			rgba(200, 244, 0, 0.08),
			transparent 42%
		),
		radial-gradient(
			circle at 84% 15%,
			rgba(200, 244, 0, 0.16),
			transparent 24%
		),
		var(--sv-dark);
	transform: none !important;
}

.sv-hero::after {
	content: "";
	position: absolute;
	right: clamp(26px, 6vw, 84px);
	bottom: -38px;
	width: 120px;
	height: 120px;
	border-radius: 28px;
	background: var(--sv-accent);
	transform: rotate(16deg);
	opacity: 0.16;
	pointer-events: none;
}

/* =====================================================
   BREADCRUMB
===================================================== */

.sv-breadcrumb {
	position: relative;
	z-index: 5;
	display: flex !important;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin: 0 0 22px;
	padding: 0;
	color: rgba(255, 255, 255, 0.64);
	font-size: 14px;
	line-height: 1.5;
	visibility: visible !important;
	opacity: 1 !important;
}

.sv-breadcrumb a {
	color: var(--sv-accent);
	text-decoration: none;
}

.sv-breadcrumb a:hover {
	color: #ddff3a;
}

/* =====================================================
   CATEGORY
===================================================== */

.sv-category-list {
	position: relative;
	z-index: 4;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 24px;
	padding: 0;
	list-style: none !important;
}

.sv-category-list ul,
.sv-category-list .post-categories {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none !important;
}

.sv-category-list li {
	display: block;
	margin: 0;
	padding: 0;
	list-style: none !important;
}

.sv-category-list li::before,
.sv-category-list li::marker,
.sv-category-list ul::before {
	display: none !important;
	content: none !important;
}

.sv-category-list a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 13px;
	border: 1px solid rgba(200, 244, 0, 0.34);
	border-radius: 999px;
	background: rgba(200, 244, 0, 0.08);
	color: var(--sv-accent) !important;
	font-size: 13px;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: 0.04em;
	text-decoration: none;
	text-transform: uppercase;
	transition:
		background 0.2s ease,
		border-color 0.2s ease,
		color 0.2s ease,
		transform 0.2s ease;
}

.sv-category-list a:hover {
	border-color: var(--sv-accent);
	background: var(--sv-accent);
	color: var(--sv-dark) !important;
	transform: translateY(-2px);
}

/* =====================================================
   TITLE
===================================================== */

.sv-title,
.sv-article .sv-hero .sv-title,
.sv-article .sv-hero h1.sv-title {
	position: relative;
	z-index: 3;
	max-width: 980px;
	margin: 0;
	padding: 0;
	color: #ffffff !important;
	background: none !important;
	background-image: none !important;
	font-size: clamp(44px, 6.8vw, 88px);
	font-weight: 800;
	line-height: 0.96;
	letter-spacing: -0.05em;
	text-shadow: none !important;
	text-wrap: balance;
	-webkit-text-fill-color: #ffffff !important;
}

/* =====================================================
   EXCERPT
===================================================== */

.sv-excerpt {
	position: relative;
	z-index: 3;
	max-width: 800px;
	margin: 26px 0 0;
	padding: 0;
	color: rgba(255, 255, 255, 0.72) !important;
	font-size: clamp(17px, 1.9vw, 21px);
	line-height: 1.72;
}

/* =====================================================
   META
===================================================== */

.sv-meta {
	position: relative;
	z-index: 3;
	display: flex;
	flex-wrap: wrap;
	gap: 14px 24px;
	align-items: center;
	margin: 30px 0 0;
	padding: 0;
	color: rgba(255, 255, 255, 0.75) !important;
	font-size: 14px;
	line-height: 1.5;
}

.sv-meta,
.sv-meta span,
.sv-meta time,
.sv-meta a {
	color: rgba(255, 255, 255, 0.75) !important;
}

.sv-author {
	display: inline-flex;
	gap: 10px;
	align-items: center;
}

.sv-author img {
	display: block;
	width: 40px;
	height: 40px;
	margin: 0;
	border: 2px solid rgba(200, 244, 0, 0.65);
	border-radius: 50%;
	object-fit: cover;
}

/* =====================================================
   FEATURED IMAGE
===================================================== */

.sv-featured-image {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	overflow: hidden;
	background: #e8e9ec;
}

.sv-featured-image img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 660px;
	margin: 0;
	object-fit: cover;
}

/* =====================================================
   CONTENT LAYOUT
===================================================== */

.sv-content-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 280px;
	gap: 56px;
	padding: clamp(36px, 6vw, 78px);
}

.sv-content {
	min-width: 0;
	color: #454952;
	font-size: 18px;
	line-height: 1.86;
}

.sv-content > *:first-child {
	margin-top: 0;
}

.sv-content > *:last-child {
	margin-bottom: 0;
}

.sv-content p {
	margin: 0 0 1.45em;
}

.sv-content strong {
	color: #282b32;
	font-weight: 700;
}

.sv-content ul,
.sv-content ol {
	margin: 0 0 1.5em;
	padding-left: 1.5em;
}

.sv-content li {
	margin-bottom: 0.55em;
}

/* =====================================================
   ARTICLE HEADINGS
===================================================== */

.sv-content h2,
.sv-content h3,
.sv-content h4,
.sv-content h5,
.sv-content h6 {
	color: var(--sv-text) !important;
	background: none !important;
	background-image: none !important;
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -0.04em;
	text-shadow: none !important;
	scroll-margin-top: 120px;
	-webkit-text-fill-color: var(--sv-text) !important;
}

.sv-content h2 {
	margin: 1.35em 0 0.55em;
	font-size: clamp(34px, 4.4vw, 58px);
	text-transform: uppercase;
}

.sv-content h3 {
	margin: 1.35em 0 0.55em;
	font-size: clamp(27px, 3vw, 39px);
}

.sv-content h4 {
	margin: 1.3em 0 0.55em;
	font-size: clamp(22px, 2.3vw, 30px);
}

/* =====================================================
   LINKS
===================================================== */

.sv-content a {
	color: #82a700;
	font-weight: 700;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.sv-content a:hover {
	color: #668400;
}

/* =====================================================
   CONTENT IMAGES
===================================================== */

.sv-content figure {
	margin: 2em 0;
}

.sv-content img {
	max-width: 100%;
	height: auto;
	border-radius: 20px;
}

.sv-content figcaption {
	margin-top: 10px;
	color: var(--sv-muted);
	font-size: 14px;
	line-height: 1.6;
	text-align: center;
}

/* =====================================================
   BLOCKQUOTE
===================================================== */

.sv-content blockquote {
	margin: 2em 0;
	padding: 26px 30px;
	border-left: 6px solid var(--sv-accent);
	border-radius: 0 18px 18px 0;
	background: #f5f8e9;
	color: #31343b;
	font-size: 1.08em;
}

.sv-content blockquote p:last-child {
	margin-bottom: 0;
}

/* =====================================================
   CODE
===================================================== */

.sv-content code {
	padding: 2px 6px;
	border-radius: 5px;
	background: #eef0e7;
	color: #41462d;
	font-size: 0.9em;
}

.sv-content pre {
	max-width: 100%;
	margin: 2em 0;
	padding: 24px;
	overflow-x: auto;
	border-radius: 16px;
	background: var(--sv-dark);
	color: #f7f8ef;
}

.sv-content pre code {
	padding: 0;
	background: transparent;
	color: inherit;
}

/* =====================================================
   TABLE
===================================================== */

.sv-content table {
	display: block;
	width: 100%;
	max-width: 100%;
	margin: 2em 0;
	overflow-x: auto;
	border-collapse: collapse;
}

.sv-content th,
.sv-content td {
	padding: 12px 14px;
	border: 1px solid var(--sv-border);
	text-align: left;
	vertical-align: top;
}

.sv-content th {
	background: #f1f4e3;
	color: var(--sv-text);
	font-weight: 800;
}

/* =====================================================
   SIDEBAR
===================================================== */

.sv-sidebar {
	position: sticky;
	top: 130px;
	align-self: start;
}

.sv-card {
	padding: 22px;
	border: 1px solid var(--sv-border);
	border-radius: 20px;
	background: #f9faf6;
}

.sv-card + .sv-card {
	margin-top: 18px;
}

.sv-card-title {
	margin: 0 0 14px;
	color: var(--sv-text) !important;
	background: none !important;
	font-size: 16px;
	font-weight: 800;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	-webkit-text-fill-color: var(--sv-text) !important;
}

/* =====================================================
   SHARE BUTTONS
===================================================== */

.sv-share-links {
	display: grid;
	gap: 10px;
}

.sv-share-links a {
	display: flex;
	justify-content: center;
	padding: 12px 14px;
	border-radius: 12px;
	background: var(--sv-dark);
	color: #ffffff !important;
	font-size: 14px;
	font-weight: 800;
	text-decoration: none;
	transition:
		transform 0.2s ease,
		background 0.2s ease;
}

.sv-share-links a:hover {
	background: #272b39;
	transform: translateY(-2px);
}

/* =====================================================
   TABLE OF CONTENTS
===================================================== */

.sv-toc ol {
	margin: 0;
	padding-left: 19px;
}

.sv-toc li {
	margin: 0;
	padding: 0;
}

.sv-toc a {
	display: block;
	margin-bottom: 10px;
	color: #5b6500;
	font-size: 14px;
	line-height: 1.45;
	text-decoration: none;
}

.sv-toc a:hover {
	color: #7f9f00;
}

/* =====================================================
   TAGS
===================================================== */

.sv-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 44px;
	padding-top: 28px;
	border-top: 1px solid var(--sv-border);
}

.sv-tags a {
	padding: 8px 12px;
	border-radius: 999px;
	background: #eef5c7;
	color: #566900 !important;
	font-size: 13px;
	font-weight: 800;
	text-decoration: none;
	transition:
		background 0.2s ease,
		transform 0.2s ease;
}

.sv-tags a:hover {
	background: #dceca0;
	transform: translateY(-2px);
}

/* =====================================================
   POST NAVIGATION
===================================================== */

.sv-post-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
	padding:
		0
		clamp(36px, 6vw, 78px)
		clamp(36px, 6vw, 78px);
}

.sv-post-nav > div {
	min-width: 0;
}

.sv-post-nav a {
	display: block;
	height: 100%;
	padding: 22px;
	border: 1px solid var(--sv-border);
	border-radius: 18px;
	background: var(--sv-dark);
	color: #ffffff !important;
	text-decoration: none;
	transition:
		transform 0.2s ease,
		box-shadow 0.2s ease;
}

.sv-post-nav a:hover {
	box-shadow: 0 14px 30px rgba(18, 20, 28, 0.16);
	transform: translateY(-3px);
}

.sv-post-nav small {
	display: block;
	margin-bottom: 8px;
	color: var(--sv-accent);
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.sv-post-nav strong {
	display: block;
	color: #ffffff;
	font-size: 16px;
	line-height: 1.45;
}

/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1024px) {
	.sv-single {
		padding-right: 12px !important;
		padding-left: 12px !important;
	}

	.sv-article {
		margin-top: 115px !important;
	}

	body.admin-bar .sv-article {
		margin-top: 147px !important;
	}

	.sv-content-grid {
		gap: 36px;
	}

	.sv-sidebar {
		top: 110px;
	}
}

/* =====================================================
   SMALL TABLET
===================================================== */

@media (max-width: 920px) {
	.sv-content-grid {
		grid-template-columns: 1fr;
	}

	.sv-sidebar {
		position: static;
	}

	.sv-toc-card {
		display: none;
	}
}

/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 767px) {
	.sv-single {
		padding: 0 10px 48px !important;
	}

	.sv-container {
		width: 100%;
	}

	.sv-article {
		margin-top: 96px !important;
		border-radius: 18px;
	}

	body.admin-bar .sv-article {
		margin-top: 142px !important;
	}

	.sv-hero {
		padding: 28px 38px 42px !important;
	}

	.sv-hero::after {
		right: 10px;
		bottom: -18px;
		width: 110px;
		height: 110px;
	}

	.sv-breadcrumb {
		margin-bottom: 18px;
		font-size: 13px;
	}

	.sv-category-list,
	.sv-category-list ul,
	.sv-category-list .post-categories {
		gap: 9px;
		margin-bottom: 22px;
	}

	.sv-category-list a {
		padding: 8px 12px;
		font-size: 12px;
	}

	.sv-title,
	.sv-article .sv-hero .sv-title,
	.sv-article .sv-hero h1.sv-title {
		font-size: clamp(34px, 10vw, 48px) !important;
		line-height: 1.02 !important;
		letter-spacing: -0.035em !important;
	}

	.sv-excerpt {
		margin-top: 20px;
		font-size: 16px;
		line-height: 1.65;
	}

	.sv-meta {
		gap: 14px 20px;
		margin-top: 28px;
	}

	.sv-content-grid {
		padding: 34px 28px 42px;
	}

	.sv-content {
		font-size: 17px;
		line-height: 1.78;
	}

	.sv-content h2 {
		font-size: clamp(30px, 9vw, 42px);
	}

	.sv-content h3 {
		font-size: clamp(25px, 7vw, 34px);
	}

	.sv-post-nav {
		grid-template-columns: 1fr;
		padding: 0 28px 42px;
	}
}

/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width: 480px) {
	.sv-single {
		padding-right: 0 !important;
		padding-left: 0 !important;
	}

	.sv-article {
		margin-top: 82px !important;
		border-right: 0;
		border-left: 0;
		border-radius: 0;
	}

	body.admin-bar .sv-article {
		margin-top: 128px !important;
	}

	.sv-hero {
		padding: 24px 38px 40px !important;
	}

	.sv-category-list a {
		padding: 8px 12px;
	}

	.sv-meta {
		align-items: flex-start;
	}

	.sv-content-grid {
		padding: 32px 26px 40px;
	}

	.sv-post-nav {
		padding: 0 26px 40px;
	}
}