/*
Theme Name: Kardio dny
Theme URI: https://www.mobymedia.cz/
Description: Kardio dny
Version: 2.3
Author: mobymedia.cz
Author URI: https://www.mobymedia.cz/
*/

/* ==========================================================================
   1. Variables
   ========================================================================== */

:root {
	--c-navy: #130443;
	--c-orange: #dd4530;
	--c-white: #fff;
	--c-black: #000;
	--c-grey: #808080;
	--c-placeholder: #878787;
	--c-border: #f5f5f5;
	--c-shadow: #d7d7d7;
	--c-app-bar: #1c1c1e;
	--c-app-bar-muted: #919096;

	--font-base: 'Roboto', sans-serif;
	--card-shadow: 0 10px 0 0 var(--c-shadow);
	--fade-left: linear-gradient(to left, rgba(255, 255, 255, 0.1) 0, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.2) 35%, #fff 50%, #fff);
}

/* ==========================================================================
   2. Base (replaces Bootstrap Reboot)
   ========================================================================== */

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

html,
body {
	height: 100%;
}

html {
	font-family: sans-serif;
	line-height: 1.15;
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	-webkit-tap-highlight-color: transparent;
}

body {
	margin: 0;
	padding: 0;
	background: var(--c-white);
	color: #212529;
	font-family: var(--font-base);
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.5;
	text-align: left;
	overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
	margin-top: 0;
	margin-bottom: 0.5rem;
	font-family: inherit;
	font-weight: 500;
	line-height: 1.2;
	color: inherit;
}

h1 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }

h2 {
	color: var(--c-navy);
	font-size: 40px;
	font-weight: 300;
}

p {
	margin-top: 0;
	margin-bottom: 1rem;
	color: var(--c-black);
	font-size: 18px;
	font-weight: 400;
	line-height: 25px;
}

ol,
ul {
	margin-top: 0;
	margin-bottom: 1rem;
}

ol ol,
ol ul,
ul ol,
ul ul {
	margin-bottom: 0;
}

b,
strong {
	font-weight: bolder;
}

small {
	font-size: 80%;
	font-weight: 400;
}

hr {
	box-sizing: content-box;
	height: 0;
	margin-block: 1rem;
	overflow: visible;
	border: 0;
	border-top: 1px solid rgba(0, 0, 0, 0.1);
}

a {
	color: #007bff;
	text-decoration: none;
	background-color: transparent;
}

a:hover {
	color: #0056b3;
	text-decoration: underline;
}

a:not([href]):not([tabindex]),
a:not([href]):not([tabindex]):hover,
a:not([href]):not([tabindex]):focus {
	color: inherit;
	text-decoration: none;
}

a[href^="tel"] {
	color: inherit;
	text-decoration: none;
}

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

svg {
	overflow: hidden;
	vertical-align: middle;
}

video {
	width: 100%;
	height: 400px;
}

audio {
	width: 100%;
}

label {
	display: inline-block;
	margin-bottom: 0.5rem;
}

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

button,
input {
	overflow: visible;
}

button,
select {
	text-transform: none;
}

button {
	border-radius: 0;
	-webkit-appearance: button;
}

input {
	appearance: none;
}

textarea {
	overflow: auto;
	resize: vertical;
}

::placeholder {
	color: var(--c-placeholder);
	opacity: 1;
}

[hidden] {
	display: none !important;
}

/* Hide the focus ring for mouse users only; keyboard users still get it. */
:focus:not(:focus-visible),
[tabindex="-1"]:focus {
	outline: none;
}

/* Tables in editor content */
table {
	width: 100%;
	border-collapse: collapse;
	border: 1px solid var(--c-black);
}

table td,
table th {
	border: 1px solid #ddd;
	padding: 8px;
}

table tr:nth-child(even) {
	background-color: #f2f2f2;
}

table th {
	padding-top: 12px;
	padding-bottom: 12px;
	text-align: left;
	background-color: #4caf50;
	color: var(--c-white);
}

/* WordPress editor alignment classes */
.alignleft {
	float: left;
}

.alignright {
	float: right;
}

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

img.alignleft {
	margin: 0 1em 1em 0;
}

img.alignright {
	margin: 0 0 1em 1em;
}

/* ==========================================================================
   2b. Grid (replaces Bootstrap grid: .container / .row / .col-md-*)
   ========================================================================== */

.container {
	width: 100%;
	padding-inline: 15px;
	margin-inline: auto;
}

.row {
	display: flex;
	flex-wrap: wrap;
	margin-inline: -15px;
}

.col-md-2,
.col-md-3,
.col-md-4,
.col-md-6,
.col-md-12 {
	position: relative;
	width: 100%;
	padding-inline: 15px;
}

@media (min-width: 576px) {
	.container { max-width: 540px; }
}

@media (min-width: 768px) {
	.container { max-width: 720px; }

	.col-md-2  { flex: 0 0 16.666667%; max-width: 16.666667%; }
	.col-md-3  { flex: 0 0 25%;        max-width: 25%; }
	.col-md-4  { flex: 0 0 33.333333%; max-width: 33.333333%; }
	.col-md-6  { flex: 0 0 50%;        max-width: 50%; }
	.col-md-12 { flex: 0 0 100%;       max-width: 100%; }
}

@media (min-width: 992px) {
	.container { max-width: 960px; }
}

@media (min-width: 1200px) {
	.container { max-width: 1140px; }
}

@media (max-width: 1200px) {
	.container { max-width: 95%; }
}

/* Utilities */
.flex {
	display: flex;
	justify-content: center;
	align-items: center;
}

.fade {
	transition: opacity 0.15s linear;
}

.fade:not(.show) {
	opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
	.fade,
	.modal.fade .modal-dialog {
		transition: none;
	}
}

/* ==========================================================================
   3. "Download the app" bar (header.php, js/scripts.js)
   ========================================================================== */

#mobile_bar {
	background: var(--c-app-bar);
	padding: 20px 0;
	display: none;
}

.image_bar {
	display: inline-block;
	max-width: 65px;
	float: left;
	margin-right: 15px;
}

.info_bar {
	display: inline-block;
	float: left;
	margin-right: 15px;
}

.bar_title {
	margin-bottom: 1px;
	color: var(--c-white);
}

.bar_company,
.bar_download {
	margin-bottom: 0;
	font-size: 14px;
}

.bar_company {
	color: var(--c-app-bar-muted);
}

.bar_download,
.bar_download:hover {
	color: var(--c-white);
	text-decoration: underline;
}

.download_bar {
	display: inline-block;
	float: right;
}

.hide_bar {
	display: block;
	float: right;
	margin-top: 20px;
	margin-right: 20px;
	color: var(--c-white);
	font-size: 20px;
	font-weight: 800;
	text-decoration: none;
	cursor: pointer;
}

.hide_bar:hover {
	text-decoration: underline;
}

/* ==========================================================================
   4. Header
   ========================================================================== */

#minihead {
	background: var(--c-navy);
	text-align: center;
	padding: 5px 0;
}

#minihead a {
	color: var(--c-white);
}

header {
	margin-top: 35px;
	margin-bottom: 15px;
}

header .over_title {
	max-width: 500px;
}

header .logo {
	width: 205px;
	float: right;
	margin-top: 15px;
}

header h1 {
	color: var(--c-navy);
	font-size: 40px;
	font-weight: 300;
	margin-top: 7px;
}

header h2 {
	color: var(--c-grey);
	font-size: 28px;
	font-weight: 300;
	margin-top: 0;
	text-align: left;
}

header a,
header a:hover {
	color: var(--c-navy);
	text-decoration: none;
}

/* ==========================================================================
   5. Modals (login + video / podcast popups)
   ========================================================================== */

/* Modal structure (replaces Bootstrap modal CSS; behaviour in js/scripts.js) */
.modal-open {
	overflow: hidden;
}

.modal {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 1050;
	display: none;
	width: 100%;
	height: 100%;
	overflow: hidden;
	outline: 0;
}

.modal-open .modal {
	overflow-x: hidden;
	overflow-y: auto;
}

.modal-backdrop {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 1040;
	width: 100vw;
	height: 100vh;
	background: var(--c-black);
}

.modal-backdrop.fade {
	opacity: 0;
}

.modal-backdrop.show {
	opacity: 0.5;
}

.modal-dialog {
	position: relative;
	width: auto;
	margin: 0.5rem;
	pointer-events: none;
}

.modal.fade .modal-dialog {
	transition: transform 0.3s ease-out;
	transform: translateY(-50px);
}

.modal.show .modal-dialog {
	transform: none;
}

@media (min-width: 576px) {
	.modal-dialog {
		max-width: 500px;
		margin: 1.75rem auto;
	}
}

@media (min-width: 992px) {
	.modal-lg { max-width: 800px; }
}

.modal-content {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	pointer-events: auto;
	background: var(--c-white);
	background-clip: padding-box;
	border: 1px solid rgba(0, 0, 0, 0.2);
	border-radius: 0.3rem;
	outline: 0;
}

.modal-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	padding: 1rem;
}

.modal-body {
	position: relative;
	flex: 1 1 auto;
	padding: 1rem;
}

.modal-body h3 {
	color: var(--c-navy);
	font-size: 21px;
}

.modal-body p {
	color: var(--c-black);
	font-size: 16px;
	font-weight: 400;
	line-height: 25px;
}

.modal_content_style {
	padding: 40px;
}

/* Close button ("X") */
.close {
	float: right;
	margin: -1rem -1rem -1rem auto;
	padding: 1rem;
	border: 0;
	background: transparent;
	color: var(--c-navy);
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1;
	text-shadow: 0 1px 0 var(--c-white);
	opacity: 1;
	appearance: none;
	cursor: pointer;
}

.close:hover {
	opacity: 0.6;
}

/* Videos inside the popup */
.vimeo iframe {
	width: 100% !important;
	height: 500px;
}

/* Login form */
.login_message {
	display: block;
	width: 80%;
	max-width: 300px;
	margin: 0 auto -15px;
	border-radius: 5px;
	text-align: center;
	font-weight: bold;
}

#verify {
	margin-top: 30px;
}

#verify input[type="email"],
#verify #login_user {
	display: block;
	width: 80%;
	max-width: 300px;
	height: 46px;
	margin: 0 auto;
	border-radius: 5px;
}

#verify input[type="email"] {
	border: 1px solid var(--c-navy);
	padding-left: 20px;
}

#verify #login_user {
	margin-top: 20px;
	padding-top: 9px;
	border: 0;
	background: var(--c-navy);
	color: var(--c-white);
	font-size: 20px;
	text-transform: uppercase;
	text-align: center;
	cursor: pointer;
}

/* ==========================================================================
   6. Homepage cards (templates/homepage-template.php)
   ========================================================================== */

.date,
.category {
	position: absolute;
	z-index: 999;
	padding: 10px 20px;
}

.date {
	left: 0;
	background: var(--c-navy);
	border-radius: 10px 0;
}

.category {
	right: 0;
	background: var(--c-orange);
	border-radius: 0 10px;
}

.date .text_date,
.category .category_date {
	display: block;
	color: var(--c-white);
	font-size: 18px;
	font-weight: 300;
}

#post-list .single.news,
#post-list .single.single_new,
#post-list .single.inzerce {
	position: relative;
	margin-bottom: 60px;
	border: 1px solid var(--c-border);
	border-radius: 10px;
	box-shadow: var(--card-shadow);
}

/* Own stacking context, so the card image can sit underneath the white fade below. */
#post-list .single.news {
	isolation: isolate;
}

/* White fade from the text side into the card image */
#post-list .single.news::before,
#post-list .single.single_new::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 7px;
	background-image: var(--fade-left);
}

/* Skip layout/paint of off-screen cards until they scroll near (big win on long lists). */
#post-list .lazy_card {
	content-visibility: auto;
	contain-intrinsic-size: auto 400px;
}

#post-list .single.news .over_news {
	position: relative;
	padding: 40px;
}

#post-list .single h2 {
	margin-top: 30px;
	margin-bottom: 30px;
	color: var(--c-navy);
	font-size: 24px;
	font-weight: 500;
}

/* Play / read / listen circle */
#post-list .single .circle {
	position: relative;
	left: 30px;
	top: 25px;
	width: 130px;
	height: 130px;
	border-radius: 100%;
	background: rgba(255, 255, 255, 0.5);
	transition: transform 0.2s;
}

#post-list .single:hover .circle {
	transform: scale(1.3);
}

#post-list .single .circle img {
	max-width: 65px;
	max-height: 55px;
}

/*
 * Card image – one image for desktop and mobile.
 * Desktop: the right 63% of the card, under the white fade. Mobile: full width on top (see 767px).
 */
.single_image_home {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: -1;
	width: 63%;
	border-radius: 0 9px 9px 0;
	background-size: cover !important;
	background-position: center center !important;
}

@media (min-width: 768px) {
	.single_image_home a {
		display: none;
	}
}

/* "Zhlédnout" / "Číst" / "Poslechnout" */
.action {
	cursor: pointer;
	min-height: 25px;
}

.action span {
	position: relative;
	top: 2px;
	left: 5px;
	color: var(--c-navy);
	font-weight: 500;
}

.action a:hover {
	text-decoration: none;
}

/* Advertisement */
#post-list .single.inzerce .over_news {
	position: relative;
	padding: 20px;
	margin-top: 40px;
}

#post-list .single.inzerce .center {
	display: block;
	margin: 0 auto;
	text-align: center;
}

.inzerce img {
	padding: 15px;
}

/* General partner logo between the first and second post */
.generalni_partner {
	padding: 0;
	margin-bottom: 60px;
}

/* ==========================================================================
   7. Post detail + content page (single.php, templates/content-template.php)
   ========================================================================== */

#post-list .single.single_new .over_news {
	position: relative;
	padding: 245px 20px 20px;
}

#post-list .single.no_padding .over_news {
	padding: 40px;
}

#post-list .single.single_new .single_image {
	position: absolute;
	inset: 0;
	height: 250px;
	border-radius: 10px;
	background-size: cover !important;
	background-position: center center !important;
}

#post-list .single.single_new .single_image::before {
	content: "";
	position: absolute;
	inset: 0;
	width: 100%;
	border-radius: 7px;
	background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0) 15%, white 92%, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0.6) 80%, #fff 66%, #fff);
}

#post-list .single.single_new h3 {
	margin-top: 30px;
	margin-bottom: 30px;
	color: var(--c-navy);
	font-size: 24px;
	font-weight: 500;
}

#post-list .single.single_new .zpet {
	display: block;
	margin-top: 20px;
	color: var(--c-navy);
	text-decoration: none;
	cursor: pointer;
}

#post-list .single.single_new .zpet:hover {
	color: var(--c-navy);
	text-decoration: underline;
}

/* ==========================================================================
   8. Partners + footer
   ========================================================================== */

#partneri {
	margin-top: 30px;
	text-align: center;
}

#partneri h2 {
	margin-bottom: 40px;
	color: var(--c-navy);
	font-size: 24px;
	font-weight: bold;
	text-align: center;
}

#partneri .partner_title_main {
	margin-bottom: 10px;
}

#partneri .line_logo,
#partneri .single_foot_logo {
	margin-bottom: 20px;
}

#partneri .single-partner {
	margin-bottom: 30px;
}

#partneri .logo_partner {
	text-align: center;
}

#partneri .logo_partner img {
	width: 100%;
}

#partneri .zen-logo {
	max-width: 250px;
}

.hl_partner {
	margin-bottom: 30px;
}

footer {
	margin-top: 40px;
	min-height: 120px;
}

footer h2,
footer h3 {
	color: var(--c-navy);
	font-weight: 300;
	text-align: center;
}

footer h2 {
	font-size: 18px;
}

footer h3 {
	font-size: 17px;
}

footer h3 a {
	text-decoration: underline;
}

footer a {
	color: var(--c-navy);
}

footer .footer_menu {
	margin-top: 15px;
	margin-bottom: 20px;
	text-align: center;
}

footer .footer_menu ul {
	margin: 0;
	padding: 0;
	list-style-type: none;
}

footer .footer_menu ul li {
	position: relative;
	display: inline-block;
	margin-right: 30px;
}

/* Vertical divider between menu items */
footer .footer_menu ul li::after {
	content: "";
	position: absolute;
	top: 3px;
	width: 1px;
	height: 20px;
	margin-left: 16px;
	background: var(--c-navy);
}

footer .footer_menu ul li:last-of-type {
	margin-right: 0;
}

footer .footer_menu ul li:last-of-type::after {
	content: none;
}

footer .footer_menu ul li a {
	color: var(--c-navy);
	font-size: 18px;
	font-weight: 300;
	text-align: center;
}

/* ==========================================================================
   9. Responsive (desktop first)
   ========================================================================== */

@media (max-width: 1180px) {
	header h1 {
		font-size: 33px;
	}

	header .over_title {
		max-width: 429px;
	}
}

@media (max-width: 991px) {
	h2 {
		font-size: 33px;
	}

	header {
		margin-top: 10px;
		margin-bottom: 30px;
	}

	header .col-md-6 {
		flex: 0 0 100%;
		max-width: 100%;
	}

	header .over_title {
		max-width: 100%;
		text-align: center;
	}

	header h1 {
		font-size: 31px;
		margin-bottom: 0;
	}

	header h2 {
		text-align: center;
	}

	header .logo {
		display: block;
		float: none;
		margin: 0 auto;
	}

	.inzerce img {
		padding: 0;
	}

	#partneri .single-partner {
		flex: 0 0 25%;
		max-width: 25%;
	}
}

@media (max-width: 767px) {
	.vimeo iframe {
		display: block !important;
		float: left;
		height: 260px !important;
		margin: 0 auto !important;
	}

	#partneri {
		margin-top: 20px;
	}

	#partneri .single-partner {
		flex: 0 0 33.333333%;
		max-width: 33.333333%;
	}

	#partneri .single_foot_logo {
		flex: 0 0 25%;
		max-width: 25%;
	}

	.text_show {
		display: none;
	}

	.hide_mobile_post {
		display: none !important;
	}

	/* Card image moves to the top of the card, full width, fading into white at the bottom */
	.single_image_home {
		left: 0;
		bottom: auto;
		z-index: auto;
		width: auto;
		height: 250px;
		border-radius: 10px;
	}

	.single_image_home::before {
		content: "";
		position: absolute;
		inset: 0;
		border-radius: 7px;
		background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0) 35%, white 92%, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0.6) 80%, #fff 66%, #fff);
	}

	#post-list .single_image_home a {
		position: relative;
		z-index: 999;
		display: block;
	}

	#post-list .single.news .over_news {
		padding: 240px 20px 20px;
	}

	#post-list .single h2 {
		font-size: 18px;
	}

	#post-list .single .circle {
		left: 0;
		top: 60px;
		margin: 0 auto;
	}
}

@media (max-width: 600px) {
	#post-list .single h2 {
		margin-top: 110px;
		margin-bottom: 20px;
	}

	#post-list .single.news {
		margin-bottom: 20px;
	}

	#post-list .single.news .over_news {
		padding: 85px 20px 20px;
	}

	.single_image_home {
		height: 230px;
	}

	.mobile_hide_popup {
		display: none !important;
	}

	.generalni_partner {
		margin-bottom: 10px;
	}

	#partneri .single_foot_logo {
		flex: 0 0 33.333333%;
		max-width: 33.333333%;
	}
}

@media (max-width: 550px) {
	#partneri .single-partner {
		flex: 0 0 100%;
		max-width: 100%;
	}

	#partneri .logo_partner img,
	#partneri .zen-logo {
		max-width: 180px;
	}

	.date .text_date {
		font-size: 14px;
	}

	.category .category_date {
		font-size: 13px;
	}
}

@media (max-width: 500px) {
	#partneri .single_foot_logo {
		flex: 0 0 50%;
		max-width: 50%;
	}
}

@media (max-width: 450px) {
	footer .footer_menu ul li {
		width: 100%;
		margin-right: 0;
	}

	footer .footer_menu ul li::after {
		content: none;
	}
}

@media (max-width: 420px) {
	.date,
	.category {
		padding: 4px 5px;
	}
}

@media (max-width: 350px) {
	.date .text_date,
	.category .category_date {
		font-size: 12px;
	}
}
