/*
Theme Name: Energokonkurs
Theme URI: https://energokonkurs.by
Author: DelovueMedia / Energokonkurs
Description: 1:1 WordPress theme for Республиканский конкурс «Лидер энергоэффективности»
Version: 1.1.0
Text Domain: energokonkurs
*/

/* WP surface overrides — keep legacy float layout intact */
body.home,
body.page,
body.single,
body.archive {
	background: #fff;
}

.wrap ul {
	list-style-image: none;
}

/* Align newsletter title with painted background */
#newsletter-form h5 {
	color: #fff;
	margin: 0 0 13px;
	font-size: 1.1em;
	text-transform: uppercase;
}

/* Conference banner block from prod */
.banner-section {
	margin-top: 20px;
}

/* News single: H1 looks like legacy centered H2 */
#content .inside > h1.news-heading {
	font-size: 24px;
	line-height: 1.2em;
	text-transform: uppercase;
	margin: 0 0 20px;
	text-align: center;
	font-weight: bold;
}

#content .inside > h1.news-heading span {
	color: #8d8d8d;
}

/* Expert photos — match site/juri.php (override reset.css object-fit:contain) */
#content .img-box {
	overflow: hidden;
	padding-bottom: 20px;
	line-height: 1.429em;
	width: 100%;
}

#content .img-box img.juri,
#content .img-box .juri {
	float: left;
	margin: 0 20px 0 0;
	border-radius: 200px;
	border: 1px #008cc4 solid;
	width: 180px;
	height: 180px;
	max-width: 180px;
	object-fit: cover;
	display: block;
	vertical-align: top;
}

#content .img-box .juri-c {
	display: flex;
	justify-content: center;
	flex-direction: column;
	height: 180px;
	overflow: hidden;
}

#content .img-box .txt1 {
	color: #008cc4;
	font-weight: bold;
}

/* Reviews (otzyvy) — styles from site/otzyvy.php <head> */
.jon p {
	text-indent: 20px;
}

.review-scan {
	margin-top: 15px;
	margin-bottom: 10px;
	cursor: pointer;
	display: inline-block;
	border: 1px solid #ddd;
	border-radius: 5px;
	padding: 5px;
	background: #f9f9f9;
	transition: transform 0.2s, box-shadow 0.2s;
}

.review-scan:hover {
	transform: scale(1.02);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	border-color: #008cc4;
}

.review-scan img {
	display: block;
	max-width: 120px;
	max-height: 80px;
	object-fit: cover;
	border-radius: 3px;
}

.review-scan-caption {
	font-size: 11px;
	text-align: center;
	color: #008cc4;
	margin-top: 4px;
	font-weight: normal;
}

.modal {
	display: none;
	position: fixed;
	z-index: 9999;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(0, 0, 0, 0.85);
	animation: ekFadeIn 0.3s ease;
}

@keyframes ekFadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

.modal-content {
	margin: auto;
	display: flex;
	align-items: center;
	justify-content: center;
	max-width: 90%;
	max-height: 90%;
	height: 90%;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	border-radius: 8px;
	box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
	border: 3px solid #fff;
	background: #fff;
}

.modal-content img {
	width: 100%;
	height: 100%;
	display: block;
	border-radius: 5px;
}

.close-modal {
	position: absolute;
	top: 20px;
	right: 35px;
	color: #f1f1f1;
	font-size: 40px;
	font-weight: bold;
	cursor: pointer;
	transition: 0.3s;
	z-index: 10000;
	background: rgba(0, 0, 0, 0.6);
	width: 45px;
	height: 45px;
	border-radius: 50%;
	text-align: center;
	line-height: 40px;
}

.close-modal:hover {
	color: #bbb;
	background: rgba(0, 0, 0, 0.8);
}

@media (max-width: 768px) {
	.modal-content {
		max-width: 95%;
		max-height: 95%;
	}

	.close-modal {
		top: 10px;
		right: 15px;
		font-size: 35px;
		width: 40px;
		height: 40px;
		line-height: 35px;
	}
}

/* Top menu without Cufon — match prod look */
.header-top .main-menu .main-menu__list li a {
	text-transform: uppercase;
	font-family: Arial, Helvetica, sans-serif;
	font-weight: bold;
}

/* Headings without Cufon (Myriad Pro → Arial) */
h2, h3 {
	font-family: Arial, Helvetica, sans-serif;
	font-weight: bold;
}

/* grafik.php — schedule table (was inline in <head>) */
.tab table {
	width: 100%;
}

.tab th {
	text-align: left;
	padding: 5px;
	border: 0 solid black;
}

.tab td {
	padding: 5px;
	border: 0 solid black;
}

.schedule td {
	border: 1px solid black;
	vertical-align: middle;
}

table.schedule {
	width: 100%;
	border-collapse: collapse;
}

table.schedule thead {
	height: 60px;
	background: #008cc4;
	border: 1px solid #008cc4;
	padding: 10px;
	text-align: center;
	color: white;
}

table.schedule thead th {
	text-align: center;
	vertical-align: middle;
	color: white;
	background: #008cc4;
	padding: 10px;
}

table.schedule tbody td {
	padding: 10px;
}

table.schedule tbody td:nth-child(2) {
	text-align: center;
}

/* nominacii.php — list styles (was inline in <head>) */
.jon ul {
	list-style: square outside;
}

.namination ol {
	list-style: auto;
	color: #008cc4;
	font-size: 18px;
	line-height: 130%;
}

.ots {
	text-indent: 2em;
}

.otstup {
	text-indent: 1em;
}

p picture img {
	vertical-align: top;
	object-fit: contain;
	max-width: 100%;
	height: auto;
}
