/* =========================================================
   Teching Factory SMK Negeri 7 Samarinda
   Design: biru & putih profesional, responsif
   ========================================================= */

:root {
	--tf-primary: #1d4ed8;
	--tf-primary-dark: #1e40af;
	--tf-primary-deep: #0b2a4a;
	--tf-primary-light: #dbeafe;
	--tf-accent: #38bdf8;
	--tf-navy: #0b2a4a;
	--tf-dark: #0f172a;
	--tf-gray: #64748b;
	--tf-gray-light: #f1f5f9;
	--tf-gray-bg: #f5f8fc;
	--tf-white: #ffffff;
	--tf-border: #e2e8f0;
	--tf-text: #1e293b;
	--tf-heading: #0b2a4a;
	--tf-radius: 14px;
	--tf-shadow: 0 10px 30px rgba(11, 42, 74, 0.08);
	--tf-shadow-lg: 0 20px 50px rgba(11, 42, 74, 0.16);
	--tf-font: 'Inter', 'Segoe UI', Roboto, Arial, sans-serif;
	--tf-font-head: 'Plus Jakarta Sans', 'Inter', 'Segoe UI', Roboto, sans-serif;
	--tf-container: 1200px;
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--tf-font);
	font-size: 16px;
	line-height: 1.7;
	color: var(--tf-text);
	background: var(--tf-white);
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--tf-primary);
	text-decoration: none;
	transition: color 0.25s ease;
}

a:hover {
	color: var(--tf-primary-dark);
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--tf-font-head);
	color: var(--tf-heading);
	line-height: 1.25;
	margin: 0 0 0.6em;
}

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

.tf-container {
	max-width: var(--tf-container);
	margin: 0 auto;
	padding: 0 20px;
}

/* =========================================================
   Tombol
   ========================================================= */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 13px 26px;
	border-radius: 10px;
	font-weight: 600;
	font-size: 15px;
	line-height: 1;
	border: 2px solid transparent;
	cursor: pointer;
	transition: all 0.25s ease;
	text-decoration: none;
}

.btn svg {
	width: 18px;
	height: 18px;
	transition: transform 0.25s ease;
}

.btn:hover svg {
	transform: translateX(4px);
}

.btn-primary {
	background: var(--tf-primary);
	color: var(--tf-white);
}

.btn-primary:hover {
	background: var(--tf-primary-dark);
	color: var(--tf-white);
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(29, 78, 216, 0.35);
}

.btn-outline {
	background: transparent;
	color: var(--tf-primary);
	border-color: var(--tf-primary);
}

.btn-outline:hover {
	background: var(--tf-primary);
	color: var(--tf-white);
}

.btn-outline-light {
	background: transparent;
	color: var(--tf-white);
	border-color: rgba(255, 255, 255, 0.8);
}

.btn-outline-light:hover {
	background: var(--tf-white);
	color: var(--tf-primary-dark);
}

.btn-sm {
	padding: 10px 18px;
	font-size: 14px;
}

.btn-lg {
	padding: 16px 32px;
	font-size: 16px;
}

/* =========================================================
   Topbar
   ========================================================= */
.tf-topbar {
	background: var(--tf-navy);
	color: #cbd5e1;
	font-size: 13.5px;
}

.tf-topbar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 40px;
	gap: 16px;
	flex-wrap: wrap;
}

.tf-topbar-contact {
	display: flex;
	gap: 20px;
	flex-wrap: wrap;
}

.tf-topbar-item {
	display: inline-flex;
	align-items: center;
	gap: 7px;
}

.tf-topbar-item svg {
	width: 15px;
	height: 15px;
	color: var(--tf-accent);
}

.tf-topbar-item a {
	color: #cbd5e1;
}

.tf-topbar-item a:hover {
	color: var(--tf-white);
}

.tf-topbar-social {
	display: flex;
	gap: 10px;
	align-items: center;
}

.tf-topbar-social .tf-social-link {
	color: #cbd5e1;
}

.tf-topbar-tag {
	font-weight: 600;
	color: var(--tf-accent);
}

/* =========================================================
   Header
   ========================================================= */
.site-header {
	background: var(--tf-white);
	box-shadow: 0 2px 14px rgba(11, 42, 74, 0.06);
	position: sticky;
	top: 0;
	z-index: 1000;
}

.site-header.is-sticky {
	box-shadow: var(--tf-shadow);
}

.site-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 74px;
	padding-top: 8px;
	padding-bottom: 8px;
}

.site-branding {
	display: flex;
	flex-direction: column;
	line-height: 1.3;
	flex-shrink: 0;
}

.site-branding .custom-logo {
	width: auto;
	max-height: 56px;
	height: auto;
}

.site-branding-text {
	font-family: var(--tf-font-head);
	font-weight: 800;
	font-size: 19px;
	color: var(--tf-navy);
	letter-spacing: -0.02em;
}

.site-tagline {
	font-size: 12px;
	color: var(--tf-gray);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

/* Menu */
.main-navigation {
	display: flex;
	align-items: center;
}

.main-navigation .primary-menu {
	display: flex;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.main-navigation .primary-menu > li {
	position: relative;
}

.main-navigation .primary-menu > li > a {
	display: inline-flex;
	align-items: center;
	padding: 10px 14px;
	font-weight: 600;
	font-size: 15px;
	color: var(--tf-text);
	border-radius: 8px;
}

.main-navigation .primary-menu > li > a:hover,
.main-navigation .primary-menu > li.current-menu-item > a,
.main-navigation .primary-menu > li.current-menu-ancestor > a {
	color: var(--tf-primary);
	background: var(--tf-primary-light);
}

.main-navigation .primary-menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	background: var(--tf-white);
	border-radius: 10px;
	box-shadow: var(--tf-shadow-lg);
	padding: 8px;
	list-style: none;
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: all 0.25s ease;
	z-index: 50;
}

.main-navigation .primary-menu li:hover > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.main-navigation .primary-menu .sub-menu a {
	display: block;
	padding: 9px 14px;
	font-size: 14px;
	border-radius: 6px;
	color: var(--tf-text);
}

.main-navigation .primary-menu .sub-menu a:hover {
	background: var(--tf-gray-light);
	color: var(--tf-primary);
}

.menu-toggle {
	display: none;
	background: none;
	border: 0;
	padding: 8px;
	cursor: pointer;
}

.menu-toggle-bar {
	display: block;
	width: 24px;
	height: 2.5px;
	background: var(--tf-navy);
	margin: 5px 0;
	border-radius: 2px;
	transition: all 0.3s ease;
}

/* =========================================================
   Hero
   ========================================================= */
.tf-hero {
	position: relative;
	color: var(--tf-white);
	overflow: hidden;
}

.tf-hero-bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
}

.tf-hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(100deg, rgba(11, 42, 74, 0.95) 0%, rgba(11, 42, 74, 0.78) 45%, rgba(29, 78, 216, 0.35) 100%);
}

.tf-hero-content {
	position: relative;
	z-index: 2;
	padding: 110px 20px;
	max-width: 860px;
}

.tf-hero-badge {
	display: inline-block;
	background: rgba(56, 189, 248, 0.18);
	border: 1px solid rgba(56, 189, 248, 0.45);
	color: var(--tf-accent);
	padding: 7px 16px;
	border-radius: 100px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	margin-bottom: 22px;
}

.tf-hero-title {
	font-size: clamp(30px, 4.5vw, 52px);
	font-weight: 800;
	color: var(--tf-white);
	margin-bottom: 18px;
	letter-spacing: -0.02em;
}

.tf-hero-desc {
	font-size: 18px;
	line-height: 1.75;
	color: #dbeafe;
	max-width: 640px;
	margin-bottom: 32px;
}

.tf-hero-actions {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
}

/* =========================================================
   Statistik
   ========================================================= */
.tf-stats {
	background: var(--tf-white);
}

.tf-stats-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	margin-top: -40px;
	position: relative;
	z-index: 5;
}

.tf-stat {
	background: var(--tf-white);
	border-radius: var(--tf-radius);
	box-shadow: var(--tf-shadow);
	padding: 28px 20px;
	text-align: center;
	border-bottom: 4px solid var(--tf-primary);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tf-stat:hover {
	transform: translateY(-6px);
	box-shadow: var(--tf-shadow-lg);
}

.tf-stat-num {
	display: block;
	font-family: var(--tf-font-head);
	font-size: 42px;
	font-weight: 800;
	color: var(--tf-primary);
	line-height: 1.1;
	margin-bottom: 6px;
}

.tf-stat-label {
	font-size: 14px;
	font-weight: 600;
	color: var(--tf-gray);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

/* =========================================================
   Seksi umum
   ========================================================= */
.tf-section {
	padding: 84px 0;
}

.tf-section:nth-of-type(even) {
	background: var(--tf-gray-bg);
}

.tf-section-head {
	text-align: center;
	max-width: 640px;
	margin: 0 auto 48px;
}

.tf-kicker {
	display: inline-block;
	color: var(--tf-primary);
	font-weight: 700;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	margin-bottom: 10px;
}

.tf-section-title {
	font-size: clamp(26px, 3.2vw, 38px);
	font-weight: 800;
	margin-bottom: 14px;
}

.tf-section-sub {
	color: var(--tf-gray);
	font-size: 16.5px;
}

.tf-section-cta {
	text-align: center;
	margin-top: 44px;
}

/* =========================================================
   Profil
   ========================================================= */
.tf-profile-grid {
	display: grid;
	grid-template-columns: 1fr 1.1fr;
	gap: 56px;
	align-items: center;
}

.tf-profile-media img {
	border-radius: var(--tf-radius);
	box-shadow: var(--tf-shadow-lg);
	width: 100%;
	object-fit: cover;
	aspect-ratio: 4 / 3;
}

.tf-checklist {
	list-style: none;
	margin: 24px 0 32px;
	padding: 0;
}

.tf-checklist li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 9px 0;
	font-weight: 500;
}

.tf-checklist svg {
	width: 20px;
	height: 20px;
	color: var(--tf-primary);
	flex-shrink: 0;
	margin-top: 4px;
}

/* =========================================================
   Kartu
   ========================================================= */
.tf-cards-grid {
	display: grid;
	gap: 26px;
}

.tf-cards-4 {
	grid-template-columns: repeat(4, 1fr);
}

.tf-cards-3 {
	grid-template-columns: repeat(3, 1fr);
}

.tf-card {
	background: var(--tf-white);
	border: 1px solid var(--tf-border);
	border-radius: var(--tf-radius);
	overflow: hidden;
	box-shadow: var(--tf-shadow);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	display: flex;
	flex-direction: column;
}

.tf-card:hover {
	transform: translateY(-8px);
	box-shadow: var(--tf-shadow-lg);
}

.tf-card-media {
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	position: relative;
	background: var(--tf-primary-light);
}

.tf-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.tf-card:hover .tf-card-media img {
	transform: scale(1.06);
}

.tf-card-media.tf-program-default {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 16 / 9;
}

.tf-card-media.tf-program-default span {
	font-family: var(--tf-font-head);
	font-weight: 800;
	font-size: 30px;
	letter-spacing: 0.08em;
	color: rgba(255, 255, 255, 0.92);
}

.tf-card-body {
	padding: 22px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.tf-card-tag {
	display: inline-block;
	background: var(--tf-primary-light);
	color: var(--tf-primary-dark);
	font-size: 12px;
	font-weight: 700;
	padding: 4px 12px;
	border-radius: 100px;
	margin-bottom: 12px;
}

.tf-card-title {
	font-size: 18px;
	font-weight: 700;
	margin-bottom: 10px;
}

.tf-card-title a {
	color: var(--tf-heading);
}

.tf-card-title a:hover {
	color: var(--tf-primary);
}

.tf-card-text {
	color: var(--tf-gray);
	font-size: 14.5px;
	flex: 1;
	margin: 0 0 16px;
}

.tf-card-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 700;
	font-size: 14px;
	color: var(--tf-primary);
}

.tf-card-link svg {
	width: 16px;
	height: 16px;
	transition: transform 0.25s ease;
}

.tf-card-link:hover svg {
	transform: translateX(4px);
}

.tf-card-meta {
	display: flex;
	gap: 16px;
	font-size: 13px;
	color: var(--tf-gray);
	flex-wrap: wrap;
	margin-bottom: 12px;
}

.tf-card-meta span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.tf-card-meta svg {
	width: 14px;
	height: 14px;
	color: var(--tf-primary);
}

/* =========================================================
   Produk & berita
   ========================================================= */
.tf-product .tf-card-media {
	aspect-ratio: 16 / 10;
}

.tf-empty {
	text-align: center;
	padding: 50px 20px;
	background: var(--tf-white);
	border: 1px dashed var(--tf-border);
	border-radius: var(--tf-radius);
	color: var(--tf-gray);
}

/* =========================================================
   Kontak
   ========================================================= */
.tf-contact-grid {
	display: grid;
	grid-template-columns: 1fr 1.2fr;
	gap: 40px;
	align-items: stretch;
}

.tf-contact-info {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.tf-contact-item {
	display: flex;
	gap: 18px;
	background: var(--tf-white);
	border: 1px solid var(--tf-border);
	border-radius: var(--tf-radius);
	padding: 22px;
	align-items: flex-start;
	transition: box-shadow 0.3s ease;
}

.tf-contact-item:hover {
	box-shadow: var(--tf-shadow);
}

.tf-contact-icon {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	background: var(--tf-primary-light);
	color: var(--tf-primary);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.tf-contact-icon svg {
	width: 22px;
	height: 22px;
}

.tf-contact-item h4 {
	margin: 0 0 4px;
	font-size: 16px;
}

.tf-contact-item p {
	margin: 0;
	color: var(--tf-gray);
	font-size: 14.5px;
}

.tf-contact-map {
	border-radius: var(--tf-radius);
	overflow: hidden;
	box-shadow: var(--tf-shadow);
	min-height: 380px;
	background: var(--tf-primary-light);
}

.tf-contact-map iframe {
	width: 100%;
	height: 100%;
	min-height: 380px;
	border: 0;
	display: block;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
	background: var(--tf-navy);
	color: #b6c2d9;
}

.site-footer a {
	color: #b6c2d9;
}

.site-footer a:hover {
	color: var(--tf-white);
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
	gap: 40px;
	padding: 64px 0 44px;
}

.footer-title {
	color: var(--tf-white);
	font-size: 17px;
	margin-bottom: 18px;
	position: relative;
	padding-bottom: 12px;
}

.footer-title::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: 0;
	width: 36px;
	height: 3px;
	border-radius: 2px;
	background: var(--tf-accent);
}

.footer-about p {
	font-size: 14.5px;
	line-height: 1.8;
	margin-bottom: 20px;
}

.footer-social {
	display: flex;
	gap: 10px;
}

.tf-social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.08);
	color: #cbd5e1;
	transition: all 0.25s ease;
}

.tf-social-link:hover {
	background: var(--tf-accent);
	color: var(--tf-navy);
	transform: translateY(-2px);
}

.tf-social-link svg {
	width: 17px;
	height: 17px;
}

.footer-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-menu li {
	margin-bottom: 10px;
}

.footer-menu a {
	font-size: 14.5px;
}

.footer-contact {
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-contact li {
	display: flex;
	gap: 12px;
	margin-bottom: 14px;
	font-size: 14px;
	line-height: 1.6;
}

.footer-contact svg {
	width: 17px;
	height: 17px;
	color: var(--tf-accent);
	flex-shrink: 0;
	margin-top: 3px;
}

.footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	padding: 20px 0;
	font-size: 13.5px;
}

.footer-bottom-inner {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

.footer-copy,
.footer-credit {
	margin: 0;
}

/* =========================================================
   Halaman dalam (single, arsip, sidebar)
   ========================================================= */
.site-main {
	padding: 56px 0 80px;
}

.tf-page-header {
	margin-bottom: 36px;
}

.tf-page-title {
	font-size: 34px;
	font-weight: 800;
}

.tf-page-desc {
	color: var(--tf-gray);
	margin-top: 8px;
}

.tf-layout {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 40px;
	align-items: start;
}

.tf-posts-list {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.tf-list-item {
	display: grid;
	grid-template-columns: 260px 1fr;
	gap: 24px;
	background: var(--tf-white);
	border: 1px solid var(--tf-border);
	border-radius: var(--tf-radius);
	overflow: hidden;
	padding: 0;
}

.tf-list-thumb {
	display: block;
	overflow: hidden;
}

.tf-list-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.tf-list-item:hover .tf-list-thumb img {
	transform: scale(1.05);
}

.tf-list-content {
	padding: 22px 22px 22px 0;
}

.tf-list-title {
	font-size: 22px;
	font-weight: 700;
}

.tf-list-title a {
	color: var(--tf-heading);
}

.tf-list-title a:hover {
	color: var(--tf-primary);
}

.tf-list-excerpt {
	color: var(--tf-gray);
	margin: 10px 0 14px;
}

/* Single */
.tf-single {
	max-width: 820px;
}

.tf-single-header {
	margin-bottom: 28px;
}

.tf-single-title {
	font-size: clamp(26px, 3.4vw, 38px);
	font-weight: 800;
	margin-bottom: 16px;
}

.tf-single-thumb {
	border-radius: var(--tf-radius);
	overflow: hidden;
	margin-bottom: 30px;
}

.tf-single-thumb img {
	width: 100%;
	object-fit: cover;
}

.tf-single-content {
	font-size: 16.5px;
}

.tf-single-content h2 {
	margin-top: 1.4em;
}

.tf-single-content img {
	border-radius: 10px;
}

.tf-single-footer {
	margin-top: 40px;
	padding-top: 24px;
	border-top: 1px solid var(--tf-border);
}

.tf-single-tags {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 20px;
}

.tf-tag {
	background: var(--tf-gray-light);
	color: var(--tf-primary-dark);
	font-size: 13px;
	font-weight: 600;
	padding: 5px 14px;
	border-radius: 100px;
}

.tf-tag:hover {
	background: var(--tf-primary-light);
}

.post-navigation .nav-links {
	display: flex;
	justify-content: space-between;
	gap: 20px;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
	flex: 1;
}

.post-navigation a {
	display: block;
	font-weight: 600;
}

/* Pagination */
.navigation.pagination {
	margin-top: 44px;
}

.nav-links {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	border-radius: 10px;
	border: 1px solid var(--tf-border);
	background: var(--tf-white);
	font-weight: 600;
	color: var(--tf-text);
}

.page-numbers.current {
	background: var(--tf-primary);
	border-color: var(--tf-primary);
	color: var(--tf-white);
}

.page-numbers:hover {
	border-color: var(--tf-primary);
	color: var(--tf-primary);
}

/* Sidebar */
.tf-sidebar .widget {
	background: var(--tf-white);
	border: 1px solid var(--tf-border);
	border-radius: var(--tf-radius);
	padding: 24px;
	margin-bottom: 24px;
}

.widget-title {
	font-size: 18px;
	margin-bottom: 16px;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--tf-primary-light);
}

.tf-sidebar ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.tf-sidebar li {
	margin-bottom: 9px;
}

.tf-sidebar a {
	color: var(--tf-text);
	font-weight: 500;
}

.tf-sidebar a:hover {
	color: var(--tf-primary);
}

.tf-sidebar .wp-block-search__button {
	background: var(--tf-primary);
	color: var(--tf-white);
	border-color: var(--tf-primary);
}

/* Widget form umum */
.tf-search-form {
	display: flex;
	gap: 8px;
}

.tf-search-input {
	flex: 1;
	padding: 11px 14px;
	border: 1px solid var(--tf-border);
	border-radius: 10px;
	font-size: 15px;
}

.tf-search-input:focus {
	outline: none;
	border-color: var(--tf-primary);
	box-shadow: 0 0 0 3px var(--tf-primary-light);
}

.tf-search-submit {
	background: var(--tf-primary);
	color: var(--tf-white);
	border: 0;
	border-radius: 10px;
	padding: 0 16px;
	cursor: pointer;
}

.tf-search-submit svg {
	width: 18px;
	height: 18px;
}

/* =========================================================
   404
   ========================================================= */
.tf-404 {
	text-align: center;
	padding: 80px 20px;
}

.tf-404-code {
	display: block;
	font-family: var(--tf-font-head);
	font-size: 120px;
	font-weight: 800;
	line-height: 1;
	background: linear-gradient(135deg, var(--tf-primary), var(--tf-accent));
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.tf-404-title {
	font-size: 30px;
	font-weight: 800;
}

.tf-404-text {
	color: var(--tf-gray);
	max-width: 480px;
	margin: 0 auto 28px;
}

.tf-404-actions {
	display: flex;
	gap: 12px;
	justify-content: center;
	flex-wrap: wrap;
}

.tf-404-search {
	max-width: 420px;
	margin: 36px auto 0;
}

/* =========================================================
   Komentar
   ========================================================= */
.tf-comments-area {
	margin-top: 48px;
}

.tf-comments-title {
	font-size: 22px;
}

.comment-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.comment-list .children {
	list-style: none;
	padding-left: 32px;
}

.comment-body {
	background: var(--tf-gray-bg);
	border-radius: var(--tf-radius);
	padding: 20px;
	margin-bottom: 16px;
}

.comment-meta {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
}

.comment-author b,
.comment-author .fn {
	font-family: var(--tf-font-head);
	font-weight: 700;
}

.comment-form label {
	display: block;
	font-weight: 600;
	font-size: 14px;
	margin-bottom: 6px;
}

.comment-form input[type='text'],
.comment-form input[type='email'],
.comment-form input[type='url'],
.comment-form textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--tf-border);
	border-radius: 10px;
	font-family: inherit;
	font-size: 15px;
}

.comment-form input:focus,
.comment-form textarea:focus {
	outline: none;
	border-color: var(--tf-primary);
}

.comment-form .submit {
	background: var(--tf-primary);
	color: var(--tf-white);
	border: 0;
	padding: 13px 26px;
	border-radius: 10px;
	font-weight: 600;
	cursor: pointer;
}

.comment-form .submit:hover {
	background: var(--tf-primary-dark);
}

/* =========================================================
   Back to top
   ========================================================= */
.back-to-top {
	position: fixed;
	right: 22px;
	bottom: 22px;
	width: 46px;
	height: 46px;
	border-radius: 12px;
	background: var(--tf-primary);
	color: var(--tf-white);
	border: 0;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: all 0.3s ease;
	z-index: 999;
	display: flex;
	align-items: center;
	justify-content: center;
}

.back-to-top.show {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.back-to-top:hover {
	background: var(--tf-primary-dark);
}

.back-to-top svg {
	width: 20px;
	height: 20px;
	transform: rotate(-90deg);
}

/* =========================================================
   Responsif
   ========================================================= */
@media (max-width: 1024px) {
	.tf-cards-4 {
		grid-template-columns: repeat(2, 1fr);
	}

	.tf-stats-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.footer-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.tf-profile-grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.tf-contact-grid {
		grid-template-columns: 1fr;
	}

	.tf-layout {
		grid-template-columns: 1fr;
	}

	.tf-list-item {
		grid-template-columns: 200px 1fr;
	}
}

@media (max-width: 860px) {
	.menu-toggle {
		display: block;
	}

	.header-cta {
		display: none;
	}

	.main-navigation {
		position: relative;
	}

	.main-navigation .primary-menu {
		position: absolute;
		top: calc(100% + 10px);
		left: -20px;
		right: -20px;
		flex-direction: column;
		background: var(--tf-white);
		border-radius: 0 0 var(--tf-radius) var(--tf-radius);
		box-shadow: var(--tf-shadow-lg);
		padding: 12px 20px;
		display: none;
		max-height: calc(100vh - 90px);
		overflow-y: auto;
	}

	.main-navigation .primary-menu.open {
		display: flex;
	}

	.main-navigation .primary-menu .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		padding: 0 0 0 14px;
		display: none;
	}

	.main-navigation .primary-menu li.open > .sub-menu {
		display: block;
	}

	.menu-toggle.open .menu-toggle-bar:nth-child(1) {
		transform: translateY(7.5px) rotate(45deg);
	}

	.menu-toggle.open .menu-toggle-bar:nth-child(2) {
		opacity: 0;
	}

	.menu-toggle.open .menu-toggle-bar:nth-child(3) {
		transform: translateY(-7.5px) rotate(-45deg);
	}
}

@media (max-width: 600px) {
	.tf-hero-content {
		padding: 70px 20px;
	}

	.tf-hero-desc {
		font-size: 16px;
	}

	.tf-cards-4,
	.tf-cards-3 {
		grid-template-columns: 1fr;
	}

	.tf-stats-grid {
		grid-template-columns: 1fr 1fr;
		margin-top: -30px;
		gap: 14px;
	}

	.tf-stat {
		padding: 22px 12px;
	}

	.tf-stat-num {
		font-size: 32px;
	}

	.tf-section {
		padding: 60px 0;
	}

	.footer-grid {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.footer-bottom-inner {
		flex-direction: column;
		text-align: center;
	}

	.tf-list-item {
		grid-template-columns: 1fr;
	}

	.tf-list-thumb img {
		max-height: 220px;
	}

	.tf-list-content {
		padding: 18px;
	}

	.tf-topbar-item {
		font-size: 12.5px;
	}

	.tf-hero-actions .btn {
		width: 100%;
		justify-content: center;
	}
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}
