/*
Theme Name: Somatikitimoria Classic
Theme URI: https://somatikitimoriagr.local/
Author: Local Site
Description: Classic news-style starter theme for somatikitimoria.gr.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: somatikitimoria-classic
*/

:root {
	--st-blue: #1c4dbf;
	--st-blue-dark: #173f9e;
	--st-red: #dd3333;
	--st-text: #232323;
	--st-muted: #777;
	--st-line: #e5e5e5;
	--st-soft: #f5f5f5;
	--st-footer: #ececec;
	--st-width: 1140px;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	color: var(--st-text);
	background: #fff;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 16px;
	line-height: 1.6;
}

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

a:hover,
a:focus {
	color: var(--st-red);
}

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

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

.site-container {
	width: min(100% - 32px, var(--st-width));
	margin: 0 auto;
}

.top-bar__inner,
.site-footer__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

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

.top-bar {
	padding: 28px 0;
	background: #fff;
}

.site-branding {
	display: flex;
	align-items: center;
	gap: 16px;
	min-width: 0;
}

.custom-logo {
	width: auto;
	max-height: 78px;
}

.site-title {
	margin: 0;
	font-size: 30px;
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1.1;
}

.site-description {
	margin: 4px 0 0;
	color: var(--st-muted);
	font-size: 13px;
}

.header-ad {
	display: flex;
	align-items: center;
	justify-content: center;
	width: min(100%, 420px);
	min-height: 74px;
	border: 1px solid var(--st-line);
	background: repeating-linear-gradient(135deg, #f7f7f7, #f7f7f7 10px, #efefef 10px, #efefef 20px);
	color: #888;
	font-size: 12px;
	text-transform: uppercase;
}

.main-nav {
	position: sticky;
	top: 0;
	z-index: 20;
	background: #111;
	color: #fff;
}

.main-nav .site-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 48px;
}

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

.primary-menu a {
	display: block;
	padding: 15px 17px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: uppercase;
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a,
.primary-menu .current-menu-parent > a {
	background: var(--st-blue);
	color: #fff;
}

.headline-ticker {
	border-bottom: 1px solid var(--st-line);
	background: #fff;
}

.headline-ticker__inner {
	display: flex;
	align-items: center;
	gap: 16px;
	min-height: 52px;
	overflow: hidden;
}

.headline-label {
	flex: 0 0 auto;
	padding: 8px 12px;
	background: var(--st-blue);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
}

.headline-items {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	white-space: nowrap;
}

.headline-track {
	display: flex;
	width: max-content;
	animation: headline-marquee 90s linear infinite;
	will-change: transform;
}

.headline-items:hover .headline-track,
.headline-items:focus-within .headline-track {
	animation-play-state: paused;
}

.headline-group {
	display: flex;
	flex: 0 0 auto;
	gap: 24px;
	align-items: center;
	padding-right: 24px;
}

.headline-items a {
	color: var(--st-red);
	font-size: 14px;
}

@keyframes headline-marquee {
	from {
		transform: translateX(0);
	}

	to {
		transform: translateX(-50%);
	}
}

@media (prefers-reduced-motion: reduce) {
	.headline-track {
		width: auto;
		animation: none;
	}

	.headline-group[aria-hidden="true"] {
		display: none;
	}

	.headline-group {
		flex-wrap: wrap;
	}
}

.site-main {
	padding: 32px 0 42px;
}

.content-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 30px;
	align-items: start;
}

.primary-content,
.single-article,
.widget-area {
	min-width: 0;
}

.featured-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
	margin-bottom: 34px;
}

.featured-card {
	position: relative;
	min-height: 255px;
	overflow: hidden;
	border-radius: 5px;
	background: #222;
}

.featured-card--large {
	grid-row: span 2;
	min-height: 528px;
}

.post-card__image,
.feature-fallback {
	width: 100%;
	min-height: 100%;
	aspect-ratio: 16 / 9;
	background: linear-gradient(135deg, #d9dde5, #f3f4f7);
}

.feature-fallback {
	display: block;
}

.featured-card .post-card__image,
.featured-card .feature-fallback {
	position: absolute;
	inset: 0;
	height: 100%;
	aspect-ratio: auto;
	object-fit: cover;
}

.featured-card::after {
	position: absolute;
	inset: 0;
	content: "";
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.72));
}

.featured-card__body {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 2;
	padding: 18px;
	color: #fff;
}

.category-pill {
	display: inline-flex;
	align-items: center;
	margin-bottom: 9px;
	padding: 4px 8px;
	border-radius: 2px;
	background: var(--st-blue);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
}

.featured-card__title,
.post-card__title,
.section-title,
.single-title {
	margin: 0;
	line-height: 1.25;
}

.featured-card__title {
	font-size: 24px;
	font-weight: 700;
}

.featured-card:not(.featured-card--large) .featured-card__title {
	font-size: 19px;
}

.post-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	color: var(--st-muted);
	font-size: 13px;
}

.featured-card .post-meta {
	margin-top: 8px;
	color: rgba(255, 255, 255, 0.82);
}

.section-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin: 0 0 18px;
	border-bottom: 2px solid #111;
}

.section-title {
	display: inline-block;
	padding: 9px 12px;
	background: #111;
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	text-transform: uppercase;
}

.post-list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 22px;
	margin-bottom: 34px;
}

.pagination,
.posts-pagination {
	margin: 22px 0 34px;
}

.pagination .nav-links,
.pagination .page-numbers,
.posts-pagination .page-numbers {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pagination .page-numbers,
.posts-pagination .page-numbers a,
.posts-pagination .page-numbers span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	min-height: 34px;
	padding: 7px 10px;
	border: 1px solid var(--st-line);
	background: #fff;
	color: var(--st-text);
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
}

.pagination .page-numbers.current,
.posts-pagination .page-numbers .current {
	border-color: var(--st-blue);
	background: var(--st-blue);
	color: #fff;
}

.post-card {
	display: grid;
	grid-template-columns: 150px minmax(0, 1fr);
	gap: 16px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--st-line);
}

.post-card__media {
	overflow: hidden;
	border-radius: 5px;
	background: var(--st-soft);
}

.post-card__title {
	font-size: 18px;
	font-weight: 700;
}

.post-card__excerpt {
	margin: 8px 0 0;
	color: #555;
	font-size: 14px;
}

.widget-area {
	display: grid;
	gap: 20px;
	font-size: 13px;
	line-height: 1.45;
}

.widget {
	border: 1px solid var(--st-line);
	background: #fff;
}

.widget {
	padding: 18px;
}

.widget p,
.widget li,
.widget a,
.widget label,
.widget input,
.widget button,
.widget select,
.widget textarea,
.widget .wp-block-latest-posts__post-title {
	font-size: 13px;
	line-height: 1.45;
}

.widget-title {
	margin: 0 0 14px;
	padding-bottom: 10px;
	border-bottom: 2px solid #111;
	font-size: 12px;
	text-transform: uppercase;
}

.widget .wp-block-heading {
	font-size: 12px;
	line-height: 1.3;
	text-transform: uppercase;
}

.widget .wp-block-search__label {
	margin-bottom: 6px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
}

.widget .wp-block-search__inside-wrapper {
	display: flex;
	align-items: stretch;
	flex-wrap: nowrap;
	gap: 0;
	max-width: 100%;
}

.widget .wp-block-search__input {
	min-width: 0;
	height: 34px;
	padding: 6px 8px;
	border: 1px solid var(--st-line);
	border-right: 0;
	font-size: 13px;
	line-height: 1.2;
}

.widget .wp-block-search__button {
	flex: 0 0 auto;
	height: 34px;
	margin-left: 0;
	padding: 0 10px;
	border: 1px solid var(--st-blue);
	background: var(--st-blue);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
	word-break: normal;
}

.single-article {
	background: #fff;
}

.single-header {
	margin-bottom: 20px;
}

.single-title {
	margin-top: 8px;
	font-size: 38px;
	font-weight: 700;
}

.single-feature {
	width: min(100%, 810px);
	height: 450px;
	margin: 0 0 24px;
	overflow: hidden;
	border-radius: 5px;
	background: var(--st-soft);
}

.single-feature img,
.single-feature .feature-fallback {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.entry-content {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 18px;
	line-height: 1.75;
	overflow-wrap: anywhere;
}

.entry-content p {
	margin: 0 0 1.35em;
}

.entry-content a {
	color: var(--st-blue);
	font-weight: 700;
	text-decoration: underline;
	text-decoration-color: rgba(28, 77, 191, 0.45);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
	background: linear-gradient(180deg, transparent 62%, rgba(28, 77, 191, 0.12) 62%);
}

.entry-content a:hover,
.entry-content a:focus {
	color: var(--st-red);
	text-decoration-color: rgba(221, 51, 51, 0.55);
	background: linear-gradient(180deg, transparent 62%, rgba(221, 51, 51, 0.12) 62%);
}

.single-title,
button,
input,
textarea {
	overflow-wrap: anywhere;
}

.site-footer {
	padding: 32px 0;
	background: var(--st-footer);
	color: #333;
}

.site-footer .widget,
.site-footer .menu {
	border: 0;
	padding: 0;
	background: transparent;
}

@media (max-width: 900px) {
	.top-bar__inner,
	.site-footer__inner {
		align-items: flex-start;
		flex-direction: column;
	}

	.header-ad {
		width: 100%;
	}

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

	.widget-area {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 680px) {
	.site-container {
		width: min(100% - 24px, var(--st-width));
	}

	.primary-menu a {
		padding: 12px 10px;
		font-size: 12px;
	}

	.headline-ticker__inner {
		align-items: flex-start;
		flex-direction: column;
	}

	.headline-ticker__inner {
		padding: 12px 0;
	}

	.headline-items {
		width: 100%;
	}

	.featured-grid,
	.post-list,
	.widget-area {
		grid-template-columns: 1fr;
	}

	.featured-card,
	.featured-card--large {
		min-height: 300px;
	}

	.post-card {
		grid-template-columns: 1fr;
	}

	.single-title {
		font-size: 30px;
	}

	.single-feature {
		height: auto;
		aspect-ratio: 810 / 450;
	}
}
