/*
 * Vendix base styles.
 *
 * Colors follow the Vendix design system when it is on (Vendix → Settings): its
 * --vendix-color-* tokens exist only then. Otherwise the neutral fallbacks apply.
 * Elementor Site Settings → Theme Style overrides the body, link, heading, button
 * and form styles with its own selectors.
 * Logical properties (inline/block) keep the layout right in RTL.
 */

:root {
	--vt-text: var(--vendix-color-text, #333333);
	--vt-heading: var(--vendix-color-heading, #1f2328);
	--vt-accent: var(--vendix-color-primary, #1f6feb);
	--vt-accent-contrast: #ffffff;
	--vt-muted: var(--vendix-color-muted, #6b7280);
	--vt-border: var(--vendix-color-border, #e5e7eb);
	--vt-surface: var(--vendix-color-bg-light, #f6f7f9);
	--vt-radius: 4px;
	--vt-gutter: 20px;
	--vt-sidebar: 300px;
	--vt-space: 2.5rem;
}

/* Base ---------------------------------------------------------------- */

html {
	line-height: 1.15;
	-webkit-text-size-adjust: 100%;
}

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

body {
	margin: 0;
	background-color: #ffffff;
	color: var(--vt-text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.5;
	overflow-wrap: break-word;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Right-to-left sites: system fonts with Arabic, Persian and Hebrew glyphs. */
[dir="rtl"] body {
	font-family: "Segoe UI", Tahoma, "Noto Sans Arabic", "Noto Naskh Arabic", "Noto Sans Hebrew", "Geeza Pro", Arial, sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin-block-start: 0.5rem;
	margin-block-end: 1rem;
	color: var(--vt-heading);
	font-family: inherit;
	font-weight: 600;
	line-height: 1.2;
	/* A long word without spaces breaks instead of running out of the column. */
	overflow-wrap: anywhere;
}

h1 {
	font-size: 2.5rem;
}

h2 {
	font-size: 2rem;
}

h3 {
	font-size: 1.75rem;
}

h4 {
	font-size: 1.5rem;
}

h5 {
	font-size: 1.25rem;
}

h6 {
	font-size: 1rem;
}

p {
	margin-block-start: 0;
	margin-block-end: 0.9rem;
}

a {
	background-color: transparent;
	color: var(--vt-accent);
	text-decoration: none;
}

a:hover,
a:active {
	text-decoration: underline;
}

img {
	max-width: 100%;
	height: auto;
	border-style: none;
}

hr {
	height: 0;
	overflow: visible;
	border: 0;
	border-block-start: 1px solid var(--vt-border);
}

pre {
	font-family: monospace, monospace;
	font-size: 1em;
	white-space: pre-wrap;
}

code,
kbd,
samp {
	font-family: monospace, monospace;
	font-size: 1em;
}

b,
strong {
	font-weight: bolder;
}

small {
	font-size: 80%;
}

sub,
sup {
	position: relative;
	font-size: 75%;
	line-height: 0;
	vertical-align: baseline;
}

sub {
	bottom: -0.25em;
}

sup {
	top: -0.5em;
}

blockquote {
	margin-inline: 0;
	padding-inline-start: 1.25rem;
	border-inline-start: 3px solid var(--vt-border);
	font-style: italic;
}

figcaption {
	color: var(--vt-muted);
	font-size: 0.875rem;
	font-style: italic;
	line-height: 1.4;
}

[hidden],
template {
	display: none;
}

/* Forms --------------------------------------------------------------- */

label {
	display: inline-block;
	line-height: 1;
	vertical-align: middle;
}

button,
input,
optgroup,
select,
textarea {
	margin: 0;
	font-family: inherit;
	font-size: 1rem;
	line-height: 1.5;
}

input[type="date"],
input[type="email"],
input[type="number"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="text"],
input[type="time"],
input[type="url"],
select,
textarea {
	width: 100%;
	padding: 0.5rem 1rem;
	border: 1px solid #8c8f94;
	border-radius: var(--vt-radius);
	transition: border-color 0.2s;
}

input[type="date"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="text"]:focus,
input[type="time"]:focus,
input[type="url"]:focus,
select:focus,
textarea:focus {
	/* A visible focus ring for keyboard and mouse users; it does not depend on
	   the border color, which page builders may restyle. */
	border-color: var(--vt-accent);
	outline: 2px solid var(--vt-accent);
	outline-offset: 1px;
}

textarea {
	overflow: auto;
	resize: vertical;
}

[type="button"],
[type="submit"],
button {
	display: inline-block;
	padding: 0.5rem 1rem;
	border: 1px solid var(--vt-accent);
	border-radius: var(--vt-radius);
	background-color: transparent;
	color: var(--vt-accent);
	font-size: 1rem;
	text-align: center;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s;
}

[type="button"]:hover,
[type="button"]:focus,
[type="submit"]:hover,
[type="submit"]:focus,
button:hover,
button:focus {
	background-color: var(--vt-accent);
	color: var(--vt-accent-contrast);
}

[type="button"]:focus:not(:focus-visible),
[type="submit"]:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
	outline: none;
}

[type="checkbox"],
[type="radio"] {
	padding: 0;
}

[type="search"] {
	-webkit-appearance: textfield;
	outline-offset: -2px;
}

[type="search"]::-webkit-search-decoration {
	-webkit-appearance: none;
}

/* Tables -------------------------------------------------------------- */

table {
	width: 100%;
	margin-block-end: 15px;
	border-collapse: collapse;
	border-spacing: 0;
	font-size: 0.9em;
}

/* On small screens a wide content table scrolls inside itself, not the page. */
@media (max-width: 767px) {
	.page-content table,
	.comment-content table {
		display: block;
		max-width: 100%;
		overflow-x: auto;
	}
}

table td,
table th {
	padding: 12px 15px;
	border: 1px solid var(--vt-border);
	line-height: 1.5;
	vertical-align: top;
}

table th {
	font-weight: 700;
}

table tbody > tr:nth-child(odd) > td,
table tbody > tr:nth-child(odd) > th {
	background-color: var(--vt-surface);
}

/* WordPress classes --------------------------------------------------- */

/* alignleft and alignright are physical sides in WordPress, also in RTL. */
.alignleft {
	float: left;
	margin-right: 1rem;
}

.alignright {
	float: right;
	margin-left: 1rem;
}

.aligncenter {
	display: block;
	clear: both;
	margin-inline: auto;
}

.alignfull {
	width: 100vw;
	max-width: 100vw;
	margin-inline: calc(50% - 50vw);
}

.wp-caption {
	max-width: 100%;
	margin-block-end: 1.25rem;
}

.wp-caption img {
	display: block;
	margin-inline: auto;
}

.wp-caption-text,
.gallery-caption {
	margin: 0;
	padding: 0.5rem 0;
	color: var(--vt-muted);
	font-size: 0.875rem;
}

.sticky,
.bypostauthor {
	display: block;
}

.post-password-form {
	max-width: 500px;
	margin: 50px auto;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	top: 5px;
	left: 5px;
	z-index: 100000;
	display: block;
	width: auto;
	height: auto;
	padding: 12px 24px;
	clip: auto !important;
	clip-path: none;
	background-color: #eeeeee;
	color: #333333;
	font-size: 1rem;
	line-height: normal;
	text-decoration: none;
}

/* Layout -------------------------------------------------------------- */

.vt-container {
	width: 100%;
	max-width: var(--vt-container, 1140px);
	margin-inline: auto;
	padding-inline: var(--vt-gutter);
}

.vt-layout-boxed .site-main {
	padding-block: var(--vt-space);
}

.vt-layout-boxed.vt-no-spacing .site-main {
	padding-block: 0;
}

/* A full width page keeps its title area as wide as the boxed content. */
.vt-layout-full .page-header {
	max-width: var(--vt-container, 1140px);
	margin-inline: auto;
	padding-block-start: var(--vt-space);
	padding-inline: var(--vt-gutter);
}

.vt-layout-full.vt-no-spacing .page-header {
	padding-block-start: 0;
}

@media (min-width: 992px) {
	.vt-has-sidebar .vt-content-area {
		display: grid;
		grid-template-columns: minmax(0, 1fr) var(--vt-sidebar);
		gap: 3rem;
	}

	.vt-sidebar-start .vt-content-area {
		grid-template-columns: var(--vt-sidebar) minmax(0, 1fr);
	}

	.vt-sidebar-start .vt-content-area .site-main {
		order: 2;
	}

	.vt-has-sidebar .widget-area {
		padding-block: var(--vt-space);
	}
}

/* Page title ---------------------------------------------------------- */

.page-header {
	margin-block-end: 2rem;
}

.page-header .entry-title {
	margin-block: 0;
}

.archive-description {
	margin-block-start: 0.75rem;
	color: var(--vt-muted);
}

.archive-description p:last-child {
	margin-block-end: 0;
}

.vt-breadcrumbs {
	margin-block-end: 0.75rem;
	color: var(--vt-muted);
	font-size: 0.875rem;
	overflow-wrap: anywhere;
}

.vt-breadcrumbs li {
	min-width: 0;
}

.vt-breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	margin: 0;
	padding: 0;
	list-style: none;
}

.vt-breadcrumbs li + li::before {
	content: "/";
	margin-inline: 0.5rem;
	opacity: 0.6;
}

.vt-breadcrumbs a {
	color: inherit;
}

/* Posts --------------------------------------------------------------- */

.vt-post-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1rem;
	margin-block-end: 1rem;
	color: var(--vt-muted);
	font-size: 0.875rem;
}

.vt-post-meta a {
	color: inherit;
}

.vt-featured-image {
	margin: 0 0 2rem;
}

.vt-featured-image img {
	display: block;
	width: 100%;
	border-radius: var(--vt-radius);
}

.page-content a,
.comments-area a {
	text-decoration: underline;
}

.post-tags {
	margin-block-start: 2rem;
	color: var(--vt-muted);
	font-size: 0.875rem;
}

.vt-posts {
	display: grid;
	gap: 2.5rem;
}

.vt-post-card {
	display: grid;
	gap: 1.25rem;
	padding-block-end: 2.5rem;
	border-block-end: 1px solid var(--vt-border);
}

@media (min-width: 768px) {
	.vt-post-card:has(.vt-post-card-image) {
		grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
		align-items: start;
	}
}

.vt-post-card-image img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	border-radius: var(--vt-radius);
}

.vt-post-card-title {
	margin-block: 0 0.5rem;
	font-size: 1.5rem;
}

.vt-post-card-title a {
	color: inherit;
}

.vt-post-card-body p:last-child {
	margin-block-end: 0;
}

.vt-post-nav {
	margin-block-start: 3rem;
	padding-block-start: 2rem;
	border-block-start: 1px solid var(--vt-border);
}

.vt-post-nav .nav-links {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.5rem;
}

.vt-post-nav .nav-next {
	grid-column: 2;
	text-align: end;
}

.vt-post-nav a {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	color: inherit;
	text-decoration: none;
}

.vt-post-nav-label {
	color: var(--vt-muted);
	font-size: 0.8125rem;
	text-transform: uppercase;
}

.vt-post-nav-title {
	color: var(--vt-heading);
	font-weight: 600;
	overflow-wrap: anywhere;
}

.vt-post-nav a:hover .vt-post-nav-title {
	color: var(--vt-accent);
}

.vt-author-box {
	display: flex;
	gap: 1.25rem;
	margin-block-start: 3rem;
	padding: 1.5rem;
	border-radius: var(--vt-radius);
	background-color: var(--vt-surface);
}

.vt-author-box-avatar {
	flex-shrink: 0;
	border-radius: 50%;
}

.vt-author-box-name {
	margin-block-end: 0.25rem;
	font-weight: 600;
}

.vt-author-box-name a {
	color: var(--vt-heading);
}

.vt-author-box-bio {
	margin: 0;
	color: var(--vt-muted);
}

.vt-pagination {
	margin-block-start: 2.5rem;
}

.vt-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem;
}

.vt-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding-inline: 0.5rem;
	border-radius: var(--vt-radius);
	color: inherit;
	text-decoration: none;
}

.vt-pagination .page-numbers.current {
	background-color: var(--vt-accent);
	color: var(--vt-accent-contrast);
}

/* Search and not found ------------------------------------------------ */

.search-form {
	position: relative;
	max-width: 420px;
	margin-block-end: 2rem;
}

.search-form .search-field {
	padding-inline-end: 3rem;
}

.search-form .search-submit {
	position: absolute;
	inset-block: 0;
	inset-inline-end: 0;
	display: inline-flex;
	align-items: center;
	padding-inline: 0.75rem;
	border: 0;
	color: var(--vt-muted);
}

.search-form .search-submit:hover,
.search-form .search-submit:focus {
	background-color: transparent;
	color: var(--vt-accent);
}

.vt-not-found {
	text-align: center;
}

.vt-not-found .vt-breadcrumbs ol {
	justify-content: center;
}

.vt-not-found .search-form {
	margin-inline: auto;
}

/* Sidebar widgets ----------------------------------------------------- */

.widget {
	margin-block-end: 2rem;
	overflow-wrap: anywhere;
}

.widget-title {
	font-size: 1.125rem;
}

.widget ul {
	margin: 0;
	padding-inline-start: 1.1rem;
}

/* Comments ------------------------------------------------------------ */

.comments-area {
	margin-block-start: 3rem;
}

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

.comment-list .children {
	padding-inline-start: 2rem;
}

.comment-body {
	position: relative;
	padding-block: 1.5rem;
	padding-inline-start: 60px;
	border-block-end: 1px solid var(--vt-border);
}

.comment-body .avatar {
	position: absolute;
	inset-inline-start: 0;
	border-radius: 50%;
}

.comment-meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.5rem;
	margin-block-end: 0.75rem;
}

.comment-metadata,
.comment-body .reply {
	font-size: 0.8125rem;
}

@media print {
	*,
	*::before,
	*::after {
		background: transparent !important;
		box-shadow: none !important;
		color: #000000 !important;
		text-shadow: none !important;
	}

	a,
	a:visited {
		text-decoration: underline;
	}
}
