/*
Theme Name: TechIT 2026
Theme URI: https://techit.gr/
Author: TechIT.gr
Description: Modern editorial WordPress theme for TechIT.gr.
Version: 0.1.10
Text Domain: techit2026
*/

:root {
	--bg: #f4f6f8;
	--surface: #ffffff;
	--ink: #12151c;
	--muted: #647084;
	--line: #dfe6ee;
	--dark: #0f1115;
	--dark-2: #171a21;
	--cyan: #35c4e8;
	--mint: #31f3cf;
	--yellow: #ffdf4d;
	--pink: #ff4f9a;
	--radius: 8px;
	--shadow: 0 18px 45px rgba(15, 17, 21, 0.08);
	--max: 1240px;
	--font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
	--display: "Arial Narrow", Impact, Haettenschweiler, var(--font);
}

* {
	box-sizing: border-box;
}

html {
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font);
	line-height: 1.5;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-size: 16px;
	text-rendering: optimizeLegibility;
}

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

a {
	color: inherit;
	text-decoration: none;
}

a:hover {
	color: #087ca3;
}

p {
	margin: 0 0 1rem;
}

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

.skip-link:focus {
	z-index: 1000;
	top: 12px;
	left: 12px;
	width: auto;
	height: auto;
	padding: 10px 14px;
	clip: auto;
	background: var(--mint);
	color: #000;
	font-weight: 800;
}

.site-header {
	background: var(--dark);
	color: #fff;
	border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.site-header-inner {
	max-width: var(--max);
	margin: 0 auto;
	padding: 22px 24px 0;
}

.utility-nav {
	display: flex;
	justify-content: flex-end;
	padding-bottom: 12px;
}

.utility-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.utility-menu li {
	margin: 0;
	list-style: none;
}

.utility-menu a {
	color: rgba(255, 255, 255, 0.66);
	font-size: 12px;
	font-weight: 850;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.utility-menu a:hover {
	color: var(--mint);
}

.footer-utility-nav {
	justify-content: flex-end;
	padding-bottom: 0;
}

.brand-row {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: end;
	gap: 22px;
	padding-bottom: 20px;
}

.site-logo {
	display: inline-flex;
	align-items: baseline;
	gap: 0;
	color: #fff;
	font-family: var(--display);
	font-size: clamp(48px, 7vw, 94px);
	font-weight: 900;
	letter-spacing: 0;
	line-height: 0.86;
	text-transform: uppercase;
}

.site-logo:hover {
	color: #fff;
}

.site-logo-tech {
	color: #fff;
}

.site-logo-it {
	color: var(--cyan);
}

.site-logo-mark {
	color: var(--yellow);
	transform: skew(-9deg);
	margin-left: 0.02em;
}

.site-tagline {
	margin: 0 0 9px;
	color: rgba(255, 255, 255, 0.66);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.menu-toggle {
	display: none;
	width: 44px;
	height: 44px;
	margin-bottom: 4px;
	padding: 10px;
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: var(--radius);
	cursor: pointer;
}

.menu-toggle span:not(.screen-reader-text) {
	display: block;
	width: 100%;
	height: 2px;
	margin: 5px 0;
	background: #fff;
}

.primary-nav {
	border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.primary-menu {
	display: flex;
	align-items: center;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	overflow: visible;
}

.primary-menu li {
	margin: 0;
	list-style: none;
}

.primary-menu a,
.primary-more-toggle {
	display: block;
	padding: 16px 18px 17px;
	color: rgba(255, 255, 255, 0.82);
	background: transparent;
	border: 0;
	font-size: 14px;
	font-weight: 850;
	font-family: inherit;
	letter-spacing: 0.02em;
	cursor: pointer;
}

.primary-menu a:hover,
.primary-more-toggle:hover,
.primary-menu .current-menu-item a,
.primary-menu-more.is-open > .primary-more-toggle {
	background: rgba(255, 255, 255, 0.08);
	color: var(--mint);
}

.primary-menu-more {
	position: relative;
	display: none;
}

.primary-submenu {
	position: absolute;
	z-index: 50;
	top: 100%;
	right: 0;
	display: none;
	min-width: 180px;
	margin: 0;
	padding: 8px;
	list-style: none;
	background: var(--dark-2);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: var(--radius);
	box-shadow: 0 18px 38px rgba(0, 0, 0, 0.24);
}

.primary-menu-more:hover .primary-submenu,
.primary-menu-more:focus-within .primary-submenu,
.primary-menu-more.is-open .primary-submenu {
	display: grid;
}

.primary-submenu a {
	padding: 11px 12px;
	white-space: nowrap;
	border-radius: 6px;
}

.topic-strip {
	position: sticky;
	z-index: 30;
	top: 0;
	max-width: var(--max);
	margin: 0 auto;
	padding: 12px 24px;
	overflow-x: auto;
	background: rgba(244, 246, 248, 0.94);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--line);
}

.topic-menu {
	display: flex;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-x: auto;
}

.topic-menu li {
	margin: 0;
	list-style: none;
}

.topic-strip a {
	flex: 0 0 auto;
	padding: 8px 12px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 999px;
	color: #273143;
	font-size: 13px;
	font-weight: 850;
}

.topic-strip li:nth-child(4n+1) a {
	border-color: rgba(49, 243, 207, 0.75);
}

.topic-strip li:nth-child(4n+2) a {
	border-color: rgba(53, 196, 232, 0.75);
}

.topic-strip li:nth-child(4n+3) a {
	border-color: rgba(255, 223, 77, 0.95);
}

.topic-strip li:nth-child(4n+4) a {
	border-color: rgba(255, 79, 154, 0.55);
}

.site-main {
	max-width: var(--max);
	margin: 0 auto;
	padding: 28px 24px 64px;
}

.front-hero {
	margin-bottom: 40px;
}

.front-hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 310px;
	gap: 22px;
	align-items: stretch;
}

.lead-story,
.story-card,
.compact-card,
.latest-rail,
.site-sidebar .widget,
.aside-box {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.lead-story {
	position: relative;
	display: grid;
	min-height: 620px;
	overflow: hidden;
	background: var(--dark);
	color: #fff;
}

.lead-story-media {
	position: absolute;
	inset: 0;
}

.lead-story-media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(15, 17, 21, 0.05), rgba(15, 17, 21, 0.9));
}

.lead-story .post-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.lead-story-body {
	position: relative;
	align-self: end;
	max-width: 760px;
	padding: 34px;
}

.lead-story h1 {
	margin: 12px 0;
	font-family: var(--display);
	font-size: clamp(34px, 4.2vw, 58px);
	line-height: 1.02;
	letter-spacing: 0;
	overflow-wrap: anywhere;
}

.lead-story p {
	max-width: 680px;
	color: rgba(255, 255, 255, 0.82);
	font-size: 19px;
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	width: fit-content;
	color: var(--dark);
	background: var(--mint);
	border-radius: 999px;
	padding: 6px 10px;
	font-size: 11px;
	font-weight: 900;
	letter-spacing: 0.1em;
	line-height: 1;
	text-transform: uppercase;
}

.top-stack,
.latest-rail {
	padding: 18px;
}

.top-stack h2,
.latest-rail h2,
.section-heading h2,
.widget-title {
	margin: 0;
	color: var(--ink);
	font-size: 13px;
	font-weight: 950;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.top-stack {
	display: grid;
	gap: 16px;
	align-self: start;
	width: 310px;
	max-width: 100%;
	padding: 5px;
}

.compact-card {
	display: grid;
	grid-template-columns: 112px minmax(0, 1fr);
	gap: 14px;
	align-items: start;
	padding: 12px;
	box-shadow: none;
}

.compact-card-media {
	display: block;
	align-self: start;
	aspect-ratio: 1;
	overflow: hidden;
	border-radius: 6px;
	background: var(--dark);
	line-height: 0;
}

.compact-card .post-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.compact-card > div {
	min-width: 0;
}

.compact-card h3,
.rail-item h3 {
	margin: 7px 0 8px;
	font-size: 18px;
	line-height: 1.1;
}

.latest-rail {
	display: flex;
	flex-direction: column;
	gap: 16px;
	background: var(--dark-2);
	color: #fff;
	border-color: rgba(255, 255, 255, 0.14);
}

.latest-rail h2 {
	color: #fff;
}

.rail-item {
	padding-bottom: 16px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.rail-item:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.rail-item .eyebrow {
	background: transparent;
	color: var(--mint);
	padding: 0;
}

.post-byline {
	display: flex;
	flex-wrap: wrap;
	gap: 7px 10px;
	color: var(--muted);
	font-size: 12px;
	font-weight: 750;
}

.lead-story .post-byline,
.latest-rail .post-byline {
	color: rgba(255, 255, 255, 0.62);
}

.ad-slot {
	display: grid;
	place-items: center;
	width: 100%;
	max-width: 320px;
	min-height: 250px;
	margin: 0 auto;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: #f5f8fb;
	line-height: 0;
}

.ad-slot .ad-widget {
	width: 100%;
	line-height: 1.4;
	text-align: center;
}

.ad-slot iframe,
.ad-slot img,
.ad-slot ins {
	max-width: 100%;
	border: 0;
}

.ad-slot img {
	height: auto;
}

.front-ad {
	max-width: 300px;
	margin-bottom: 2px;
}

.article-ad,
.sidebar-ad {
	margin-bottom: 0;
}

.post-byline span + span::before {
	content: "/";
	margin-right: 10px;
	color: currentColor;
	opacity: 0.45;
}

.topic-sections,
.latest-section,
.related-section {
	display: grid;
	gap: 30px;
	margin-top: 40px;
}

.load-more-wrap {
	display: flex;
	justify-content: center;
	margin-top: 6px;
}

.load-more-button {
	min-width: 210px;
	min-height: 48px;
	padding: 0 22px;
	border: 0;
	border-radius: var(--radius);
	background: var(--dark);
	color: #fff;
	font: inherit;
	font-size: 14px;
	font-weight: 900;
	letter-spacing: 0.03em;
	cursor: pointer;
}

.load-more-button:hover {
	background: #087ca3;
}

.load-more-button:disabled {
	cursor: wait;
	opacity: 0.68;
}

.topic-section {
	padding-top: 24px;
	border-top: 4px solid var(--ink);
}

.section-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	margin-bottom: 16px;
}

.section-heading a {
	color: #087ca3;
	font-size: 13px;
	font-weight: 850;
}

.story-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 22px;
}

.story-grid-three {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.story-card {
	overflow: hidden;
}

.story-card-media {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--dark);
}

.story-card .post-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.story-card-body {
	padding: 18px;
}

.story-card-title {
	margin: 10px 0 10px;
	font-size: clamp(23px, 2.3vw, 32px);
	line-height: 1.04;
	letter-spacing: 0;
	overflow-wrap: anywhere;
}

.story-card p {
	margin-top: 14px;
	color: var(--muted);
	font-size: 16px;
}

.post-image-fallback {
	display: grid;
	place-items: center;
	min-height: 180px;
	background:
		linear-gradient(135deg, rgba(53, 196, 232, 0.22), rgba(255, 223, 77, 0.18)),
		var(--dark);
	color: #fff;
	font-family: var(--display);
	font-size: 42px;
	font-weight: 900;
}

.archive-header {
	max-width: 920px;
	margin: 26px 0 28px;
}

.archive-kicker {
	margin: 0 0 10px;
	color: #087ca3;
	font-size: 12px;
	font-weight: 950;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.archive-header h1 {
	margin: 0;
	font-family: var(--display);
	font-size: clamp(44px, 7vw, 86px);
	line-height: 0.92;
	text-transform: uppercase;
}

.archive-header p,
.archive-description {
	max-width: 720px;
	color: var(--muted);
	font-size: 18px;
}

.archive-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 28px;
	align-items: start;
}

.site-sidebar {
	display: grid;
	gap: 18px;
}

.widget {
	padding: 18px;
}

.sidebar-story {
	padding: 14px 0;
	border-bottom: 1px solid var(--line);
}

.sidebar-story:last-child {
	border-bottom: 0;
}

.sidebar-story h3 {
	margin: 0 0 8px;
	font-size: 17px;
	line-height: 1.2;
}

.single-article {
	margin-top: 24px;
}

.single-header {
	max-width: 980px;
	margin: 0 auto 24px;
	text-align: center;
}

.single-header .eyebrow {
	margin: 0 auto 18px;
}

.single-header h1 {
	margin: 0 0 18px;
	font-family: var(--display);
	font-size: clamp(38px, 5.3vw, 72px);
	line-height: 1;
	overflow-wrap: anywhere;
}

.single-excerpt {
	max-width: 760px;
	margin: 0 auto 18px;
	color: var(--muted);
	font-size: 21px;
}

.single-header .post-byline {
	justify-content: center;
}

.single-featured {
	max-width: 1080px;
	margin: 0 auto 34px;
}

.single-featured img {
	width: 100%;
	border-radius: var(--radius);
}

.single-featured figcaption {
	margin-top: 8px;
	color: var(--muted);
	font-size: 13px;
}

.single-shell {
	display: grid;
	grid-template-columns: minmax(0, 760px) 320px;
	gap: 36px;
	justify-content: center;
	align-items: start;
}

.article-content {
	font-size: 19px;
	line-height: 1.72;
}

.article-content h2,
.article-content h3 {
	margin: 2.2rem 0 0.8rem;
	line-height: 1.1;
}

.article-content h2 {
	font-size: 32px;
}

.article-content h3 {
	font-size: 24px;
}

.article-content a {
	color: #087ca3;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.article-content ul,
.article-content ol {
	padding-left: 1.2rem;
}

.article-content blockquote {
	margin: 2rem 0;
	padding: 0 0 0 18px;
	border-left: 4px solid var(--cyan);
	color: #2b3442;
	font-size: 22px;
	font-weight: 750;
}

.article-aside {
	display: grid;
	gap: 18px;
	position: sticky;
	top: 74px;
}

.aside-box {
	padding: 18px;
}

.aside-box h2 {
	margin: 0 0 10px;
	font-size: 13px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.tag-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tag-list a {
	padding: 6px 9px;
	background: #eef4f8;
	border-radius: 999px;
	color: #263241;
	font-size: 12px;
	font-weight: 800;
}

.single-footer,
.related-section {
	max-width: var(--max);
	margin: 42px auto 0;
}

.post-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
	padding-top: 24px;
	border-top: 1px solid var(--line);
	font-weight: 850;
}

.post-nav div:last-child {
	text-align: right;
}

.search-form {
	display: flex;
	gap: 8px;
	max-width: 520px;
	margin-top: 18px;
}

.search-form label {
	flex: 1;
}

.search-field {
	width: 100%;
	min-height: 44px;
	padding: 0 12px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	font: inherit;
}

.search-form button {
	min-height: 44px;
	padding: 0 16px;
	background: var(--dark);
	border: 0;
	border-radius: var(--radius);
	color: #fff;
	font-weight: 850;
}

.empty-state {
	max-width: 720px;
	margin: 60px auto;
	padding: 34px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	text-align: center;
}

.site-footer {
	background: var(--dark);
	color: #fff;
}

.site-footer-inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 40px;
	max-width: var(--max);
	margin: 0 auto;
	padding: 42px 24px;
}

.site-footer .site-logo {
	font-size: 48px;
}

.site-footer p {
	max-width: 480px;
	color: rgba(255, 255, 255, 0.68);
}

.footer-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

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

.footer-menu a {
	color: rgba(255, 255, 255, 0.78);
	font-weight: 800;
}

.site-copyright {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	max-width: var(--max);
	margin: 0 auto;
	padding: 18px 24px 28px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	color: rgba(255, 255, 255, 0.55);
	font-size: 13px;
}

.site-copyright .utility-menu a {
	color: rgba(255, 255, 255, 0.62);
	font-size: 12px;
}

.site-copyright .utility-menu a:hover {
	color: var(--mint);
}

.nav-links {
	display: flex;
	gap: 12px;
	grid-column: 1 / -1;
	margin-top: 20px;
}

.nav-links a,
.nav-links span {
	padding: 8px 11px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: #fff;
	font-weight: 800;
}

@media (max-width: 1080px) {
	.front-hero-grid {
		grid-template-columns: minmax(0, 1fr) 310px;
	}

	.primary-menu-managed > li[data-collapse="more"] {
		display: none;
	}

	.primary-menu-more {
		display: block;
	}

	.archive-layout,
	.single-shell {
		grid-template-columns: 1fr;
	}

	.article-aside {
		position: static;
	}
}

@media (max-width: 760px) {
	.site-header-inner {
		padding: 18px 14px 0;
	}

	.brand-row {
		grid-template-columns: 1fr auto;
		align-items: center;
		gap: 12px;
	}

	.site-logo {
		font-size: clamp(42px, 14vw, 60px);
	}

	.site-tagline {
		grid-column: 1 / -1;
		margin: -4px 0 0;
		font-size: 10px;
	}

	.menu-toggle {
		display: block;
	}

	.primary-nav {
		display: none;
	}

	.primary-nav.is-open {
		display: block;
	}

	.primary-menu {
		display: grid;
		padding: 6px 0 10px;
	}

	.primary-menu-managed > li[data-collapse="more"] {
		display: block;
	}

	.primary-menu-more {
		display: none;
	}

	.primary-menu a,
	.primary-more-toggle {
		padding: 12px 0;
		border-top: 1px solid rgba(255, 255, 255, 0.12);
	}

	.topic-strip {
		padding: 10px 14px;
	}

	.site-main {
		padding: 20px 14px 46px;
	}

	.front-hero-grid,
	.story-grid,
	.story-grid-three,
	.latest-rail,
	.site-footer-inner,
	.site-copyright,
	.post-nav {
		grid-template-columns: 1fr;
	}

	.site-copyright {
		display: grid;
		justify-items: start;
	}

	.footer-utility-nav {
		justify-content: flex-start;
	}

	.top-stack {
		width: 100%;
	}

	.lead-story {
		min-height: 520px;
	}

	.lead-story-body {
		padding: 22px;
	}

	.lead-story h1,
	.single-header h1,
	.archive-header h1 {
		font-size: clamp(36px, 12vw, 56px);
		line-height: 0.95;
	}

	.lead-story h1 {
		font-size: clamp(30px, 9vw, 42px);
		line-height: 1.05;
	}

	.single-header h1 {
		font-size: clamp(31px, 9vw, 44px);
		line-height: 1.08;
	}

	.compact-card {
		grid-template-columns: 96px minmax(0, 1fr);
	}

	.single-shell {
		gap: 22px;
	}

	.article-content {
		font-size: 18px;
		line-height: 1.68;
	}

	.article-content h2 {
		font-size: 27px;
	}

	.single-excerpt {
		font-size: 18px;
	}

	.post-nav div:last-child {
		text-align: left;
	}
}
