/*
Theme Name: The Open Verdict
Description: Simple bilingual (EN/RU) medical blog theme with an image slider, one article section, author box, About and Contact templates.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: theopenverdict
*/

:root {
	--ov-blue: #1677d9;
	--ov-blue-dk: #0f5fb3;
	--ov-teal: #12a99a;
	--ov-green: #3fbf7f;
	--ov-ink: #12263d;
	--ov-text: #34465a;
	--ov-mute: #6c7d8f;
	--ov-bg: #f4f8fc;
	--ov-card: #ffffff;
	--ov-line: #dfe8f1;
	--ov-head: 'Rubik', 'Segoe UI', Arial, sans-serif;
	--ov-body: 'Noto Sans', 'Segoe UI', Arial, sans-serif;
	--ov-r: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--ov-bg); color: var(--ov-text); font: 400 17px/1.7 var(--ov-body); }
.ov-main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ov-blue); }
a:hover { color: var(--ov-blue-dk); }
h1, h2, h3 { font-family: var(--ov-head); color: var(--ov-ink); font-weight: 600; line-height: 1.22; margin: 0 0 .5em; }
p { margin: 0 0 1em; }

.ov-box { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 22px; }
.ov-read { width: 100%; max-width: 780px; margin: 0 auto; padding: 0 22px; }
.ov-gap { padding-top: 44px; padding-bottom: 56px; }

.ov-btn { display: inline-block; padding: 13px 26px; border: 2px solid var(--ov-blue); border-radius: 999px; background: var(--ov-blue); color: #fff; font: 500 15px/1 var(--ov-head); text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s; }
.ov-btn:hover { background: var(--ov-blue-dk); border-color: var(--ov-blue-dk); color: #fff; }
.ov-btn--line { background: transparent; color: var(--ov-blue); }
.ov-btn--line:hover { color: #fff; }
.ov-link { font: 500 15px/1.3 var(--ov-head); text-decoration: none; }

/* Header */
.ov-top { background: #fff; box-shadow: 0 1px 0 var(--ov-line); position: sticky; top: 0; z-index: 30; }
.ov-top__in { display: flex; align-items: center; gap: 20px; min-height: 74px; }
.ov-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ov-ink); }
.ov-brand span { font: 500 21px/1 var(--ov-head); white-space: nowrap; }
.ov-brand b { font-weight: 700; color: var(--ov-blue); }
.ov-nav { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.ov-menu { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.ov-menu a { display: block; padding: 9px 14px; border-radius: 999px; color: var(--ov-text); font: 500 15px/1 var(--ov-head); text-decoration: none; }
.ov-menu a:hover { background: var(--ov-bg); color: var(--ov-ink); }
.ov-menu a[aria-current], .ov-menu .current-menu-item a { background: #e7f1fc; color: var(--ov-blue); }
.ov-lang { display: flex; padding: 3px; border-radius: 999px; background: var(--ov-bg); }
.ov-lang a { padding: 6px 11px; border-radius: 999px; font: 600 12px/1 var(--ov-head); color: var(--ov-mute); text-decoration: none; }
.ov-lang a.is-on { background: var(--ov-teal); color: #fff; }
.ov-burger { display: none; margin-left: auto; width: 44px; height: 44px; padding: 12px 11px; border: 0; border-radius: 10px; background: var(--ov-bg); cursor: pointer; flex-direction: column; justify-content: space-between; }
.ov-burger i { display: block; height: 2px; background: var(--ov-ink); border-radius: 2px; }

/* Hero slider */
.ov-hero { position: relative; min-height: clamp(440px, 40vw, 600px); display: flex; align-items: center; overflow: hidden; background: #dfe9f3; }
.ov-hero__slide { position: absolute; inset: 0; background-size: cover; background-position: left top; opacity: 0; transition: opacity 1s ease; }
.ov-hero__slide.is-active { opacity: 1; }
.ov-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(244, 248, 252, 0) 35%, rgba(244, 248, 252, .55) 60%, rgba(244, 248, 252, .85) 100%); pointer-events: none; }
.ov-hero__in { position: relative; z-index: 2; display: flex; justify-content: flex-end; padding-top: 48px; padding-bottom: 48px; }
.ov-hero__card { max-width: 500px; padding: 34px 36px; border-radius: var(--ov-r); background: rgba(255, 255, 255, .92); box-shadow: 0 20px 50px -24px rgba(18, 38, 61, .35); backdrop-filter: blur(4px); }
.ov-hero__card h1 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 700; }
.ov-hero__card p { color: var(--ov-text); margin-bottom: 24px; }
.ov-hero__dots { position: absolute; z-index: 3; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; gap: 8px; }
.ov-hero__dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .7); cursor: pointer; }
.ov-hero__dots .is-active { background: var(--ov-blue); width: 26px; border-radius: 5px; }

/* Page heading */
.ov-head { background: linear-gradient(120deg, #e8f2fd, #e6f7f2); padding: 44px 0 38px; }
.ov-head h1 { margin: 0; font-size: clamp(28px, 3.4vw, 40px); }

/* Posts */
.ov-posts { padding-top: 52px; padding-bottom: 60px; }
.ov-posts__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 26px; }
.ov-posts__head h2 { font-size: 30px; margin: 0; }
.ov-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.ov-card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--ov-r); background: var(--ov-card); box-shadow: 0 1px 0 var(--ov-line), 0 10px 30px -22px rgba(18, 38, 61, .4); transition: transform .2s; }
.ov-card:hover { transform: translateY(-3px); }
.ov-card__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(135deg, #e3effb, #e2f6ef); }
.ov-card__img img { width: 100%; height: 100%; object-fit: cover; }
.ov-card__img .ov-card__ph { width: 74px; height: 74px; margin: auto; position: relative; top: 50%; transform: translateY(-50%); object-fit: contain; opacity: .9; }
.ov-card__txt { padding: 20px 22px 24px; }
.ov-card__meta { margin: 0 0 8px; font-size: 13.5px; color: var(--ov-mute); }
.ov-card h3 { font-size: 20px; margin-bottom: 8px; }
.ov-card h3 a { color: var(--ov-ink); text-decoration: none; }
.ov-card h3 a:hover { color: var(--ov-blue); }
.ov-card__txt > p:last-child { margin: 0; font-size: 15.5px; color: var(--ov-mute); }
.ov-empty { color: var(--ov-mute); }

.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; justify-content: center; gap: 6px; }
.pagination .page-numbers { min-width: 42px; height: 42px; display: inline-grid; place-items: center; padding: 0 12px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--ov-line); text-decoration: none; font: 500 15px/1 var(--ov-head); }
.pagination .current { background: var(--ov-blue); color: #fff; box-shadow: none; }

/* Author */
.ov-author-wrap { padding-bottom: 64px; }
.ov-author { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 32px; align-items: center; padding: 30px; border-radius: var(--ov-r); background: #fff; box-shadow: 0 1px 0 var(--ov-line), 0 10px 30px -22px rgba(18, 38, 61, .4); }
.ov-author__photo { width: 200px; height: 200px; border-radius: 50%; object-fit: cover; border: 5px solid #e7f1fc; }
.ov-author__label { margin: 0 0 6px; font: 600 12px/1 var(--ov-head); letter-spacing: .12em; text-transform: uppercase; color: var(--ov-teal); }
.ov-author__name { font-size: 26px; margin-bottom: 2px; }
.ov-author__role { color: var(--ov-mute); font-size: 15px; }
.ov-author--full { grid-template-columns: 300px minmax(0, 1fr); align-items: start; padding: 36px; }
.ov-author--full .ov-author__photo { width: 300px; height: 300px; border-radius: var(--ov-r); border: 0; }
.ov-author--full .ov-author__name { font-size: 32px; }
.ov-author--full .ov-author__body > p:last-child { font-size: 18px; }
.ov-article__author .ov-author { grid-template-columns: 120px minmax(0, 1fr); gap: 22px; padding: 24px; }
.ov-article__author .ov-author__photo { width: 120px; height: 120px; border-width: 4px; }
.ov-article__author .ov-author__name { font-size: 21px; }
.ov-article__author .ov-author__body > p:not(.ov-author__label):not(.ov-author__role) { font-size: 15.5px; }

.ov-cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; padding: 28px 32px; border-radius: var(--ov-r); background: linear-gradient(120deg, var(--ov-blue), var(--ov-teal)); color: #fff; }
.ov-cta p { margin: 0; font: 500 19px/1.4 var(--ov-head); }
.ov-cta div { display: flex; gap: 10px; flex-wrap: wrap; }
.ov-cta .ov-btn { background: #fff; color: var(--ov-blue); border-color: #fff; }
.ov-cta .ov-btn--line { background: transparent; color: #fff; }

/* Article */
.ov-article__head { padding-top: 46px; padding-bottom: 20px; }
.ov-article__head h1 { font-size: clamp(30px, 4vw, 42px); font-weight: 700; margin: 14px 0 12px; }
.ov-badge { display: inline-block; padding: 6px 12px; border-radius: 999px; background: #e3f6f2; color: var(--ov-teal); font: 600 12.5px/1 var(--ov-head); text-decoration: none; }
.ov-article__cover img { width: 100%; border-radius: var(--ov-r); }
.ov-text { padding-top: 24px; padding-bottom: 32px; font-size: 18px; }
.ov-text h2 { font-size: 27px; margin-top: 1.5em; }
.ov-text h3 { font-size: 22px; margin-top: 1.3em; }
.ov-text ul, .ov-text ol { padding-left: 1.3em; }
.ov-text li { margin-bottom: .4em; }
.ov-text li::marker { color: var(--ov-teal); }
.ov-text blockquote { margin: 1.5em 0; padding: 18px 22px; border-left: 4px solid var(--ov-teal); border-radius: 0 var(--ov-r) var(--ov-r) 0; background: #eaf7f4; color: var(--ov-ink); }
.ov-text blockquote p:last-child { margin: 0; }
.ov-text img { border-radius: 10px; }
.ov-text table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; font-size: 16px; }
.ov-text th, .ov-text td { padding: 10px; border-bottom: 1px solid var(--ov-line); text-align: left; }
.ov-article__author { padding-bottom: 40px; }
.ov-comments { padding-bottom: 50px; }
.ov-comments input[type="text"], .ov-comments input[type="email"], .ov-comments input[type="url"], .ov-comments textarea { width: 100%; padding: 11px 14px; border: 1px solid var(--ov-line); border-radius: 10px; font: inherit; }
.ov-comments .submit { padding: 12px 24px; border: 0; border-radius: 999px; background: var(--ov-blue); color: #fff; font: 500 15px/1 var(--ov-head); cursor: pointer; }

/* Forms */
.ov-lead { font-size: 18px; }
.ov-form { padding: 28px; border-radius: var(--ov-r); background: #fff; box-shadow: 0 1px 0 var(--ov-line), 0 10px 30px -22px rgba(18, 38, 61, .4); }
.ov-form p { margin-bottom: 18px; }
.ov-form label { display: block; margin-bottom: 6px; font: 500 14px/1 var(--ov-head); color: var(--ov-ink); }
.ov-form input, .ov-form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--ov-line); border-radius: 10px; background: #fbfdff; font: 400 16px/1.5 var(--ov-body); }
.ov-form input:focus, .ov-form textarea:focus { outline: none; border-color: var(--ov-blue); box-shadow: 0 0 0 3px rgba(22, 119, 217, .15); }
.ov-hp { position: absolute; left: -9999px; }
.ov-msg { padding: 12px 16px; border-radius: 10px; font-weight: 500; }
.ov-msg--ok { background: #e3f6ec; color: #1b6b45; }
.ov-msg--err { background: #fdecea; color: #a03224; }
.ov-search { display: flex; gap: 8px; margin: 18px 0; }
.ov-search input { flex: 1; min-width: 0; padding: 12px 16px; border: 1px solid var(--ov-line); border-radius: 999px; font: inherit; }
.ov-search button { padding: 0 22px; border: 0; border-radius: 999px; background: var(--ov-blue); color: #fff; font: 500 15px/1 var(--ov-head); cursor: pointer; }
.ov-404 { text-align: center; }
.ov-404 h1 { font-size: 90px; color: var(--ov-blue); margin: 0; }

/* Footer */
.ov-foot { background: var(--ov-ink); color: #b7c4d3; font-size: 15px; }
.ov-foot__in { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-top: 40px; padding-bottom: 28px; }
.ov-brand--foot { color: #fff; }
.ov-brand--foot b { color: #6fc3ff; }
.ov-brand--foot span { font-size: 19px; }
.ov-foot__note { max-width: 440px; margin: 14px 0 0; font-size: 14px; }
.ov-foot__links { list-style: none; margin: 0; padding: 0; }
.ov-foot__links li { margin-bottom: 9px; }
.ov-foot__links a { color: #e4ecf4; text-decoration: none; }
.ov-foot__links a:hover { color: #6fc3ff; }
.ov-foot__copy { padding-top: 16px; padding-bottom: 20px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; color: #8597ab; }

/* Responsive */
@media (max-width: 960px) {
	.ov-burger { display: flex; }
	.ov-top__in { flex-wrap: wrap; }
	.ov-nav { display: none; width: 100%; margin: 0; padding: 4px 0 16px; flex-direction: column; align-items: flex-start; }
	.ov-nav.is-open { display: flex; }
	.ov-nav nav { width: 100%; }
	.ov-menu { flex-direction: column; }
	.ov-menu a { padding: 12px 14px; border-radius: 10px; }
	.ov-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ov-author--full { grid-template-columns: 220px minmax(0, 1fr); }
	.ov-author--full .ov-author__photo { width: 220px; height: 220px; }
}

@media (max-width: 680px) {
	body { font-size: 16px; }
	.ov-box, .ov-read { padding: 0 16px; }
	.ov-brand span { font-size: 18px; }
	.ov-brand img { width: 38px; height: 38px; }
	.ov-hero { min-height: 0; display: block; }
	.ov-hero__slide { position: relative; height: 260px; background-position: 18% top; }
	.ov-hero__slide:not(.is-active) { display: none; }
	.ov-hero::after { display: none; }
	.ov-hero__in { padding-top: 0; padding-bottom: 28px; margin-top: -40px; }
	.ov-hero__card { padding: 24px 22px; }
	.ov-hero__dots { top: 226px; bottom: auto; }
	.ov-cards { grid-template-columns: 1fr; }
	.ov-posts__head h2 { font-size: 25px; }
	.ov-posts { padding-top: 36px; }
	.ov-author, .ov-author--full, .ov-article__author .ov-author { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 24px 20px; }
	.ov-author--full .ov-author__photo { width: 220px; height: 220px; }
	.ov-text { font-size: 17px; }
	.ov-cta { padding: 24px 20px; }
	.ov-form { padding: 20px; }
}
