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

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

:root {
	--c-red: #b7111c;
	--c-red-overlay: rgba(168, 15, 22, 0.7);
	--c-white: #fff;
	--c-black: #000;
	--c-text-muted: #4c4c4c;
	--c-placeholder: #878787;
	--c-page-bg: #f3f0f0;
	--c-shadow: #d7d7d7;
	--c-app-bar: #1c1c1e;
	--c-app-bar-muted: #919096;

	--font-base: 'Roboto', sans-serif;
	--card-height: 350px;
}

/* ==========================================================================
   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;
}

#wrapper {
	background: var(--c-page-bg);
}

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-red);
	font-size: 40px;
	font-weight: 300;
}

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

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

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

ul li {
	font-size: 18px;
	font-weight: 400;
}

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%;
}

table {
	border-collapse: collapse;
}

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;
}

/* 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-5,
.col-md-6,
.col-md-7,
.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-5  { flex: 0 0 41.666667%; max-width: 41.666667%; }
	.col-md-6  { flex: 0 0 50%;        max-width: 50%; }
	.col-md-7  { flex: 0 0 58.333333%; max-width: 58.333333%; }
	.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; }
}

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

.align-items-center {
	align-items: center !important;
}

.align-items-end {
	align-items: flex-end !important;
}

.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, mobile_bar/mobile_bar.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-red);
	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-red);
	font-size: 20px;
	font-weight: 800;
	text-decoration: none;
	cursor: pointer;
}

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

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

header {
	padding: 14px 0;
	background: var(--c-red);
}

header .logo {
	color: var(--c-white);
	font-size: 20px;
	font-weight: bold;
	text-decoration: none;
}

header .logo img {
	max-width: 170px;
}

header span {
	display: inline-block;
	position: relative;
	top: 13px;
	float: right;
	width: 100%;
	color: var(--c-white);
	font-size: 16px;
	font-weight: 300;
	text-align: right;
}

header span strong {
	font-weight: 500;
}

/* ==========================================================================
   5. Page banner (kardiodny_top_image() in functions.php)
   ========================================================================== */

#top_image {
	position: relative;
	height: 300px;
	margin-bottom: 50px;
	/* !important: the image is set with an inline `background` shorthand */
	background-size: cover !important;
	background-position: center !important;
}

#top_image::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.4);
}

.topcenter {
	height: 300px;
}

#top_image .over_top {
	text-align: center;
}

#top_image h1 {
	color: var(--c-black);
	font-size: 36px;
	font-weight: bold;
}

#top_image .button_top {
	display: inline-block;
	min-width: 231px;
	margin: 20px 20px 0 0;
	padding: 16px 23px;
	border: 1px solid var(--c-red);
	background: var(--c-red);
	color: var(--c-white);
	font-size: 16px;
	font-weight: 500;
	text-align: center;
	text-decoration: none;
}

#top_image .button_top:last-of-type {
	margin-right: 0;
}

#top_image .button_top:hover {
	color: var(--c-white);
	text-decoration: none;
}

/* ==========================================================================
   6. 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: 3.75rem auto;
	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; }
}

@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: none;
	border-top: 10px solid var(--c-red);
	border-radius: 0;
	outline: 0;
}

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

.modal-body {
	position: relative;
	flex: 1 1 auto;
	padding: 1rem 1rem 1rem 180px;
	background: url(./images/otaznik.png) no-repeat 0 35px / 171px 486px;
}

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

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

/* Close button: red "X" tab in the top-right corner */
.close {
	float: right;
	z-index: 500;
	margin: -35px -30px -1rem auto;
	padding: 4px 9px;
	border: 0;
	background: var(--c-red);
	color: var(--c-white);
	font-size: 19px;
	font-weight: 300;
	line-height: 1;
	text-shadow: 0 1px 0 var(--c-white);
	opacity: 1;
	appearance: none;
	cursor: pointer;
}

.close:hover {
	opacity: 0.6;
}

/* Login form */
.modal_content_style {
	padding: 40px;
}

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

#verify {
	margin-top: 30px;
}

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

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

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

.vimeo iframe {
	width: 100% !important;
}

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

#post-list .single_post {
	min-height: var(--card-height);
	margin-bottom: 50px;
	background: var(--c-white);
	cursor: pointer;
}

/* 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 var(--card-height);
}

#post-list .left_pad {
	padding-left: 0;
}

#post-list .right_pad {
	padding-right: 0;
}

#post-list .single_post .single_image {
	position: relative;
	min-height: var(--card-height);
	/* !important: the image is set with an inline `background` shorthand */
	background-size: cover !important;
	background-position: center !important;
}

#post-list .single_post .over_text {
	padding: 35px 25px 35px 15px;
}

#post-list .single_post .over_text.left {
	padding-left: 0;
}

#post-list .single_post h2 {
	margin-bottom: 35px;
	color: var(--c-red);
	font-size: 30px;
	font-weight: 500;
}

#post-list .single_post p {
	color: var(--c-text-muted);
	font-size: 16px;
	font-weight: 300;
}

#post-list .single_post strong {
	font-weight: 500;
}

/* Play / read circle shown on hover */
#post-list .single_post .circle {
	display: none;
	width: 150px;
	height: 150px;
	border-radius: 50%;
	background: var(--c-red-overlay);
}

#post-list .single_post:hover .circle {
	display: flex;
}

#post-list .single_post .over_circle img {
	display: block;
	max-width: 39px;
	margin: 12px auto 0;
}

#post-list .single_post .over_circle span {
	display: block;
	margin-top: 10px;
	color: var(--c-white);
	font-size: 12px;
	font-weight: 700;
	text-align: center;
}

/* Labels on the image: category (top), date + client (bottom) */
#post-list .single_post .category_show,
.sympo_show {
	position: absolute;
	display: block;
	padding: 8px 25px;
	background: var(--c-red);
	color: var(--c-white);
	font-size: 16px;
	font-weight: 500;
	line-height: 18px;
}

#post-list .single_post .category_show {
	top: 0;
}

.sympo_show {
	bottom: 0;
}

#post-list .single_post .date_show {
	position: absolute;
	bottom: 0;
	padding: 15px 25px;
	background: var(--c-red);
	color: var(--c-white);
	font-size: 17px;
	font-weight: 700;
}

#post-list .single_post .category_show.left,
#post-list .single_post .date_show.left,
.sympo_show.left {
	left: 0;
}

#post-list .single_post .category_show.right,
#post-list .single_post .date_show.right,
.sympo_show.right {
	right: 0;
}

/* Advertisement */
.over_inzerce {
	position: relative;
	padding: 16px;
	border: 1px solid var(--c-red);
}

.inzerce_box {
	position: absolute;
	top: -16px;
	padding: 3px 38px;
	background: var(--c-red);
	color: var(--c-white);
	font-size: 16px;
}

.mobil_inzerce {
	display: none;
}

/* ==========================================================================
   8. Content + gallery pages (templates/content-template.php, gallery-template.php)
   ========================================================================== */

#post-list .single_new {
	margin-bottom: 60px;
	border-radius: 10px;
	box-shadow: 0 10px 0 0 var(--c-shadow);
}

#post-list .single_new::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 0 0 7px 7px;
	background: var(--c-white);
}

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

#post-list .single_new h2 {
	margin-block: 30px;
	color: var(--c-red);
	font-size: 24px;
	font-weight: 500;
}

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

#post-list .single_new a {
	color: var(--c-red);
	text-decoration: underline;
}

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

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

.list_galerie {
	margin-top: 30px;
}

.list_galerie .image_galerie {
	width: 100%;
	height: 200px;
	margin-bottom: 30px;
	background-size: cover !important;
	background-position: center !important;
}

/* ==========================================================================
   9. Post detail (single.php)
   ========================================================================== */

#post_detail_page .post_back {
	padding: 20px;
	background: var(--c-white);
}

/* Image slider on one post (js/post-slider.js) */
.mySwiper2 {
	width: 100%;
	margin-top: 30px;
}

.mySwiper2 .swiper-slide {
	display: flex;
	align-items: center;
	justify-content: center;
}

.mySwiper2 .swiper-slide img {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: contain;
}

.mySwiper {
	width: 100%;
	margin-bottom: 40px;
	padding: 10px 0;
	overflow: hidden;
}

.mySwiper .swiper-slide {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 160px !important;
	height: 90px !important;
	overflow: hidden;
	opacity: 0.4;
	cursor: pointer;
}

.mySwiper .swiper-slide img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mySwiper .swiper-slide-thumb-active {
	opacity: 1;
}

.swiper-button-next,
.swiper-button-prev {
	color: var(--c-black) !important;
}

.swiper-button-next::after,
.swiper-button-prev::after {
	color: var(--c-black);
	font-size: 28px;
	font-weight: bold;
}

/* ==========================================================================
   10. Partners + footer
   ========================================================================== */

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

#partneri h2 {
	margin-bottom: 30px;
	color: var(--c-red);
	font-size: 30px;
	font-weight: 500;
	text-align: center;
}

#partneri .single-partner,
#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%;
}

footer {
	padding: 65px 0 50px;
	background: var(--c-red);
	text-align: center;
}

footer p {
	margin-bottom: 0;
	color: var(--c-white);
	font-weight: 300;
}

footer .font_bold {
	font-weight: 500;
}

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

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

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

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

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

footer .footer_menu li a {
	color: var(--c-white);
	font-size: 18px;
	font-weight: 300;
}

/* ==========================================================================
   11. Responsive (desktop-first, largest breakpoint first)
   ========================================================================== */

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

	.galerie_link {
		flex: 0 0 33.3333%;
		max-width: 33.3333%;
	}
}

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

	header {
		margin-bottom: 0;
		padding-bottom: 30px;
	}

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

	header .logo {
		display: block;
		width: 205px;
		margin: 0 auto;
	}

	header span {
		float: none;
		text-align: center;
	}

	.modal {
		padding-right: 0 !important;
	}

	.modal-body {
		padding-left: 20px;
	}

	.close {
		margin-top: -25px;
		margin-right: -16px;
	}

	#post-list .left_pad,
	#post-list .right_pad {
		padding-inline: 0;
	}

	/* Image above text on mobile */
	.order1 {
		order: 2;
	}

	.order2 {
		order: 1;
	}

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

@media (max-width: 800px) {
	.galerie_link {
		flex: 0 0 50%;
		max-width: 50%;
	}
}

@media (max-width: 768px) {
	.mySwiper .swiper-slide {
		width: 120px !important;
		height: 67.5px !important;
	}

	.swiper-button-next::after,
	.swiper-button-prev::after {
		font-size: 22px;
	}
}

@media (max-width: 767px) {
	#top_image h1 {
		font-size: 26px;
	}

	#top_image .button_top {
		min-width: 260px;
		margin-right: 0;
		margin-bottom: 5px;
		padding: 10px 23px;
	}

	.vimeo iframe {
		display: block !important;
		float: left;
		height: 260px !important;
		margin: 0 auto !important;
	}

	.mobil_inzerce {
		display: block;
	}

	.desktop_inzerce {
		display: none;
	}

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

	#post-list .single_new .over_galerie {
		padding: 5px;
	}

	#partneri {
		margin-top: 20px;
	}

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

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

@media (max-width: 630px) {
	#top_image h1 {
		margin-top: 30px;
	}
}

@media (max-width: 600px) {
	.galerie_link {
		flex: 0 0 100%;
		max-width: 100%;
	}

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

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

@media (max-width: 550px) {
	#top_image .button_top {
		min-width: 100%;
	}

	#post-list .single_post .single_image {
		min-height: 230px;
	}
}

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

@media (max-width: 450px) {
	.topcenter {
		height: 100%;
		padding-top: 30px;
	}

	footer .footer_menu li {
		width: 100%;
		margin-right: 0;
	}

	footer .footer_menu li::after {
		content: none !important;
	}
}
