/*
 * Theme Name:        VetraFlow Original Themes
 * Theme URI:         https://vetraflow.com
 * Description:       Custom WordPress theme for VetraFlow — built for maximum performance,
 *                    clean semantics, and seamless Elementor Pro integration. No bloat,
 *                    full support for WooCommerce, Elementor Theme Builder, and accessibility.
 * Author:            VetraFlow
 * Author URI:        https://vetraflow.com
 * Version:           1.0.0
 * Requires at least: 6.0
 * Tested up to:      6.7
 * Requires PHP:      8.0
 * License:           Proprietary – All Rights Reserved
 * Text Domain:       vetraflow-original-themes
 */

/* ============================================================
   BASE RESET
   ============================================================ */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	padding: 0;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   IMAGES
   ============================================================ */
img,
video {
	max-width: 100%;
	height: auto;
	display: block;
}

picture {
	display: block;
}

/* ============================================================
   ACCESSIBILITY – Focus Styles
   ============================================================ */
:focus-visible {
	outline: 3px solid #2563eb;
	outline-offset: 2px;
}

.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #fff;
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* ============================================================
   LAYOUT – Site Canvas (fallback, not shown when Elementor controls layout)
   ============================================================ */
.site-wrapper {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.site-content {
	flex: 1;
}

.container {
	width: 100%;
	max-width: 1200px;
	margin-inline: auto;
	padding-inline: 20px;
}

/* ============================================================
   FALLBACK HEADER (shown only when Elementor Theme Builder header is not assigned)
   ============================================================ */
.vot-fallback-header {
	background: #fff;
	border-bottom: 1px solid #e5e7eb;
	padding: 16px 0;
}

.vot-fallback-header .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.vot-fallback-header .site-branding a {
	font-size: 1.25rem;
	font-weight: 700;
	color: #111827;
	text-decoration: none;
}

.vot-fallback-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 24px;
}

.vot-fallback-nav ul li a {
	color: #374151;
	text-decoration: none;
	font-size: 0.9375rem;
}

.vot-fallback-nav ul li a:hover {
	color: #2563eb;
}

/* ============================================================
   FALLBACK FOOTER (shown only when Elementor Theme Builder footer is not assigned)
   ============================================================ */
.vot-fallback-footer {
	background: #111827;
	color: #9ca3af;
	padding: 40px 0;
	text-align: center;
	font-size: 0.875rem;
}

.vot-fallback-footer a {
	color: #d1d5db;
	text-decoration: none;
}

/* ============================================================
   404 PAGE
   ============================================================ */
.vot-404-page {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 60vh;
	text-align: center;
	padding: 60px 20px;
}

.vot-404-page h1 {
	font-size: clamp(4rem, 15vw, 10rem);
	font-weight: 800;
	color: #e5e7eb;
	margin: 0;
	line-height: 1;
}

.vot-404-page h2 {
	font-size: clamp(1.25rem, 3vw, 2rem);
	margin: 16px 0 8px;
}

.vot-404-page p {
	color: #6b7280;
	max-width: 480px;
}

.vot-404-page .vot-btn {
	display: inline-block;
	margin-top: 24px;
	padding: 12px 28px;
	background: #2563eb;
	color: #fff;
	border-radius: 8px;
	text-decoration: none;
	font-weight: 600;
	transition: background 0.2s;
}

.vot-404-page .vot-btn:hover {
	background: #1d4ed8;
}

/* ============================================================
   SEARCH RESULTS
   ============================================================ */
.vot-search-results {
	padding: 60px 0;
}

.vot-search-results .entry-header {
	margin-bottom: 32px;
}

.vot-search-results article {
	border-bottom: 1px solid #e5e7eb;
	padding-bottom: 32px;
	margin-bottom: 32px;
}

.vot-search-results .entry-title a {
	color: #111827;
	text-decoration: none;
}

.vot-search-results .entry-title a:hover {
	color: #2563eb;
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
	.vot-fallback-header,
	.vot-fallback-footer,
	.vot-fallback-nav {
		display: none;
	}
}

/* ============================================================
   BLOG / ARCHIVE — Layout & Post Cards
   ============================================================ */

/* Wrapper arsip */
.vot-archive {
	padding: 48px 0 64px;
}

.vot-archive__header {
	margin-bottom: 40px;
}

.vot-archive__header .page-title {
	font-size: clamp(1.5rem, 3vw, 2.25rem);
	font-weight: 700;
	margin: 0 0 8px;
}

.vot-archive__header .archive-description {
	color: #6b7280;
	margin-top: 8px;
}

/* Grid post list */
.vot-archive__list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
	gap: 32px;
}

/* Post card */
.vot-archive-post {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.2s, transform 0.2s;
}

.vot-archive-post:hover {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}

/* Media (thumbnail) */
.vot-archive-post-media {
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #f3f4f6;
}

.vot-archive-post-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.vot-archive-post:hover .vot-archive-post-media img {
	transform: scale(1.04);
}

/* Inner content */
.vot-archive-post__inner {
	padding: 20px 24px 24px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

/* Meta atas (kategori + tanggal) */
.vot-archive-post-meta {
	margin-bottom: 8px;
}

.vot-archive-post-meta__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 12px;
	font-size: 0.8125rem;
	color: #6b7280;
}

.vot-archive-post-category a,
.vot-archive-post-post_tag a {
	color: #2563eb;
	text-decoration: none;
	font-weight: 500;
}

.vot-archive-post-category a:hover,
.vot-archive-post-post_tag a:hover {
	text-decoration: underline;
}

.vot-archive-post-date time {
	color: #9ca3af;
}

/* Heading / judul */
.vot-archive-post-title {
	margin: 0 0 10px;
}

.vot-archive-post-title__tag {
	font-size: clamp(1rem, 2vw, 1.25rem);
	font-weight: 700;
	margin: 0;
	line-height: 1.3;
}

.vot-archive-post-title__tag a {
	color: #111827;
	text-decoration: none;
}

.vot-archive-post-title__tag a:hover {
	color: #2563eb;
}

/* Excerpt */
.vot-archive-post-content {
	flex: 1;
	margin-bottom: 16px;
}

.vot-archive-post-content p {
	margin: 0;
	font-size: 0.9375rem;
	color: #4b5563;
	line-height: 1.65;
}

/* Footer meta (author) */
.vot-archive-post-footer-meta {
	margin-top: auto;
	margin-bottom: 12px;
}

.vot-archive-post-footer-meta__inner {
	font-size: 0.8125rem;
	color: #6b7280;
}

.vot-archive-post-footer-author a {
	color: #374151;
	text-decoration: none;
	font-weight: 500;
}

.vot-archive-post-footer-author a:hover {
	color: #2563eb;
}

/* Tombol Baca Selengkapnya */
.vot-archive-post-more {
	margin-top: auto;
}

.vot-btn-more {
	display: inline-block;
	padding: 9px 20px;
	background: #2563eb;
	color: #fff !important;
	border-radius: 6px;
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.2s;
}

.vot-btn-more:hover {
	background: #1d4ed8;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.vot-pagination {
	margin-top: 48px;
	display: flex;
	justify-content: center;
}

.vot-pagination ul {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 4px;
	flex-wrap: wrap;
}

.vot-pagination ul li a,
.vot-pagination ul li span {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 8px;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	font-size: 0.9375rem;
	color: #374151;
	text-decoration: none;
	transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.vot-pagination ul li a:hover {
	background: #f3f4f6;
	border-color: #d1d5db;
}

.vot-pagination ul li span.current {
	background: #2563eb;
	border-color: #2563eb;
	color: #fff;
	font-weight: 600;
}

/* ============================================================
   SINGLE POST
   ============================================================ */
.vot-single-post {
	max-width: 780px;
	margin-inline: auto;
	padding: 48px 20px 64px;
}

/* Judul single */
.vot-single-post-title {
	margin-bottom: 16px;
}

.vot-single-post-title__tag {
	font-size: clamp(1.5rem, 4vw, 2.5rem);
	font-weight: 800;
	line-height: 1.2;
	margin: 0;
}

/* Meta single (date, author, categories) */
.vot-single-post-meta {
	margin-bottom: 24px;
}

.vot-single-post-meta__inner {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	font-size: 0.875rem;
	color: #6b7280;
}

.vot-single-post-date time,
.vot-single-post-author a,
.vot-single-post-category a {
	color: inherit;
	text-decoration: none;
}

.vot-single-post-author a:hover,
.vot-single-post-category a:hover {
	color: #2563eb;
	text-decoration: underline;
}

/* Media single */
.vot-single-post-media {
	margin-bottom: 32px;
	border-radius: 12px;
	overflow: hidden;
}

.vot-single-post-media img {
	width: 100%;
	height: auto;
}

/* Content single */
.vot-single-post-content {
	font-size: 1.0625rem;
	line-height: 1.75;
	color: #1f2937;
}

.vot-single-post-content h2,
.vot-single-post-content h3,
.vot-single-post-content h4 {
	margin-top: 2em;
	margin-bottom: 0.5em;
}

.vot-single-post-content p {
	margin: 0 0 1.25em;
}

.vot-single-post-content a {
	color: #2563eb;
}

.vot-single-post-content img {
	border-radius: 8px;
	margin: 1.5em 0;
}

.vot-single-post-content blockquote {
	border-left: 4px solid #2563eb;
	padding-left: 1.25em;
	margin-left: 0;
	color: #4b5563;
	font-style: italic;
}
