/*
Theme Name: Studenta Magazine New
Theme URI: https://studenta.cz
Author: Roman T.
Author URI: https://studenta.cz
Description: Studenta magazine template
Version: 1.0
Text Domain: studentamagnew
*/

@import url('css/lists.css');
@import url('css/footer.css');
@import url('css/single.css');
@import url('css/forms.css');
@import url('css/homepage.css');

:root {
	--main-color: #2b5f6c;
}

/* Reset & základní nastavení */
* {
/*	margin: 0;
	padding: 0;
	*/
	box-sizing: border-box;
}

#content {
	max-width: 100%;
	width: 100%;
}

.ad-centered {
	width: 100%;
}

.wp-block-gallery.has-nested-images figure.wp-block-image:has(figcaption):before {
  display: none;
}

/*
[id^="PX_"],
[id^="ssp-zone-"],
.ad-centered div {
    max-width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}
*/

.h1, .h2, .h3, h1, h2, h3 {
	margin-top: 20px;
	margin-bottom: 10px;
}

.hide-furt {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
	transition: all .2s ease-in-out;
}

#PX_35370_746506335460223 {
	padding-top: 10px;
}

.ad-centered > div {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 10px;
}

p {
	margin-bottom: 10px;
}

html,body {
	font-size: 16px;
}

body {
	font-family: "Open Sans", Arial, sans-serif;
	font-optical-sizing: auto;
	font-weight: 400;
	font-style: normal;
	font-variation-settings:
    	"wdth" 100;
	line-height: 1.6;
	background-color: #f8f8f8;
	color: #333;
	padding-top: 65px;
	background: #FDFDFD;
}

body.zdroj-seznam {
	padding-top: 10px;
}

.zdroj-seznam .more-than-top {
	max-width: 1060px;
	margin: 0 auto;
}

a {
	color: var(--main-color);
	text-decoration: none;
}

a:hover {
	color: #01589d;
}

a.disabled {
  pointer-events: none;
  cursor: default;
}

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

.breadcrumbs {
	margin-bottom: 5px;
}

.breads-items {
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 13px;
}

.breads-item {
	display: inline;
}

.breads-link {
	color: #888;
	font-weight: 300;
}

.breads-item:not(.breads-last):after {
	content: ' > ';
	padding: 0 2px;
	color: #AAA;
	font-size: 13px;
}

#main {

}

/* Kontejner pro centrální obsah */
.container {
	max-width: 1060px;
	width: 100%;
	margin: 0 auto;
}

.site-wrapper {
	background: #FFF;
	max-width: 1060px;
/*	width: 100%;*/
	margin: 0 auto;
}

/* ===== Header & Branding ===== */
.site-header {
	padding: 5px 10px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-bottom: 1px solid #DDD;
}

.site-branding {
	text-align: center;
}

.site-title {
	font-size: 17px;
	margin: 0;
	padding: 0;
	font-weight: bold;
	color: var(--main-color);
}

.site-title a {
	font-weight: bold;
	color: var(--main-color);
}

.site-branding a,
.site-branding h1,
.site-branding p {
	text-decoration: none;
}

.site-soc {
	text-align: center;
	display: flex;
	gap: 5px;
}

/* Ujistěte se, že hlavička má pozici relative */
.site-header {
    position: relative;
}

/* Styl pro absolutně pozicovaný vyhledávací formulář */
.site-search {
    position: absolute;
    top: 100%;  /* ihned pod hlavičkou */
    left: 0;
    right: 0;
    background: #f5f5f5; /* např. světle šedé pozadí, upravte dle potřeby */
    padding: 7px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    z-index: 1000;
    display: none; /* výchozí stav – skryté */
    border-top: 1px solid #EFEFEF;
}

/* Třída pro zobrazení vyhledávacího formuláře */
.site-search.visible,
.site-search.active {
    display: block;
}

/* Případné úpravy pro vyhledávací formulář uvnitř */
.site-search form {
    display: flex;
    align-items: stretch;
    justify-content: end;
    width: 100%;
}
.site-search input[type="text"] {
    flex: 1;
    padding: 8px 16px;
    font-size: 1rem;
    border: 1px solid #ccc;
}
.site-search input[type="submit"] {
    padding: 8px 12px;
    color: #fff;
    border: none;
    cursor: pointer;
    min-width: 100px;
}

.tiscali-menu {
	position: fixed;
	top: 0;
	background: #FFF;
	width: 100%;
	max-height: 65px;
	padding: 5px 10px;
	z-index: 999999;
	box-shadow: #CCC 0px 2px 7px;
}

.zdroj-seznam .tiscali-menu {
	position: static;
}

.tiscali-menu__content {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.tiscali-menu__branding {
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: left;
}

.tiscali-menu__branding svg.logo {
	max-height: 25px;
	width: 100%;
}

.tiscali-menu__branding img.logo {
	max-height: 30px;
	width: 100%;
}

.tiscali-menu__list {
	display: none;
	flex-direction: row;
	list-style: none;
	gap: 20px;
	justify-content: center;
}

.tiscali-menu__link {
	text-transform: uppercase;
	font-weight: 600;
	font-size: .9em;
	display: inline-block;
	line-height: 48px;
}

/* ===== Top Menu ===== */
/* Menu bude registrované jako "top-menu" */

.menu-top-menu-container {
	position: absolute;
    background: #FFF;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.2);
}

nav#top-menu ul {
	list-style: none;
	text-align: center;
	display: flex;
	margin: 0;
}
nav#top-menu ul li {
	display: inline-block;
}
nav#top-menu ul li a {
	text-decoration: none;
	display: inline-block;
	color: var(--main-color);
	padding: 5px 0;
	font-weight: bold;
}

nav#top-menu ul li a:hover {
	text-decoration: underline;
}

nav#top-menu ul li a span {
	padding: 0 10px;
}

nav#top-menu ul li:last-child a span {
	padding: 0 10px;
}

/* pokus 2 */
nav#top-menu-top ul {
	display: none;
	flex-direction: row;
	list-style: none;
	gap: 10px;
	justify-content: center;
	margin: 0 10px;
	padding: 0;
}

nav#top-menu-top ul li a {
	text-transform: uppercase;
	font-weight: 600;
	font-size: .9em;
	display: inline-block;
	line-height: 48px;
}

nav#top-menu-top ul li a:hover {
	text-decoration: underline;
}

nav#top-menu-top ul li a span {
	padding: 0 6px;
}

nav#top-menu-top ul li:last-child a span {
	padding: 0 10px;
}

.featured-posts {
	padding: 20px;
	background: #011d3b;
	color: #FFF;
}

.featured-posts .entry-header .post-title {
	text-transform: uppercase;
	font-weight: 800;
	line-height: 1.35em;
	margin-top: 1em;
	margin-bottom: 1em;
}

.featured-posts .entry-header .post-title:hover a {
	color: #e1fdc8;
}

.featured-posts .entry-header .post-excerpt {
	font-weight: 200;
	line-height: 1.35em;
}

.featured-posts .entry-header .entry-meta {
	margin-top: 2em;
	color: #FFF;
	text-transform: uppercase;
	font-weight: bold;
}

.featured-posts .entry-meta > span {
	margin-right: 10px;
}

.featured-grid {
	display: flex;
	gap: 20px;
	flex-direction: column;
}

.featured-posts a {
	color: #FFF;
}

.featured-grid .post {
	padding-bottom: 10px;
	border-bottom: 1px solid #3d6085;
}

.featured-grid .post:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

/* Tlačítko pro mobilní menu (skryté na desktopu) */

/* Základní styl pro tlačítko hamburgeru */
.menu-toggle {
    /* Pokud chcete tlačítko zobrazit jen na mobilu, můžete ho skrýt na desktopu: */
    display: none;  /* výchozí stav, který přepnete pomocí media query */
    background: transparent;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
}

/* Zobrazíme tlačítko na mobilních zařízeních */
@media (max-width: 767px) {
    .menu-toggle {
        display: block;
    }
}

/* Styl pro jednotlivé čáry v hamburgeru */
.menu-toggle .hamburger-line {
    display: block;
    width: 25px;       /* nastavte dle potřeby šířku čáry */
    height: 3px;       /* výška čáry */
    margin: 4px auto;  /* vertikální mezera mezi čarami a centrování */
    background-color: var(--main-color);
}


/* ===== Dvou-sloupcové rozvržení ===== */
/* Obal, kde se nachází hlavní obsah a sidebar */
.site-content {
	padding-top: 10px;
	padding-left: 10px;
	padding-right: 10px;
}

/* Nastavení figure */
.clanek figure {
    position: relative;
    overflow: hidden;
}

/* Obrázek uvnitř figure */
.clanek figure img {
    display: block;
    width: 100%;
    height: auto;
}

/* Skrývá figcaption */
.clanek figure figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7); /* Poloprůhledné pozadí */
    color: #fff!important;
    text-align: center;
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 2;
    font-size: 15px!important;
    margin-bottom: 0!important;
    font-style: italic;
}

/* Ikona "i" přidaná pomocí ::after */
.clanek figure::after {
    content: "i";
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #333;
    font-weight: bold;
    cursor: pointer;
    z-index: 3;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

/* Zobrazení figcaption na hover */
.clanek figure:hover figcaption,
.clanek figure:focus-within figcaption {
    opacity: 1;
    visibility: visible;
}

/* Zvýraznění ikony "i" na hover */
.clanek figure:hover::after,
.clanek figure:focus-within::after {
    opacity: 0;
}

.load-more-wrap {
	text-align: center;
	margin: 2em 0;
}

.entry-content iframe {
	width: 100%;
}
.entry-content iframe.instagram-media {
	min-width: auto !important;
}

.instagram-media > div > p,
.instagram-media-registered > div > p {
	white-space: normal !important;
}

.entry-content .jjv-quiz-link {
	background: #e2ebf4;
	border-radius: 10px;
	border: 1px solid var(--main-color);
}

.entry-content .jjv-quiz-link-btn {
	background: var(--main-color);
}

.entry-content .jjv-quiz-link-btn:hover {
	background: #305918;
	color: #FFF;
}

.kviz-detail {
	margin-bottom: 3em;
}

@media (min-width: 768px) {
	.site-content {
		display: grid;
/*		grid-template-columns: 1fr;*/
		grid-gap: 20px;
		grid-template-columns: auto 300px; /* hlavní obsah a sidebar */
		padding-top: 20px;
		padding-left: 20px;
	}

	.featured-grid {
		display: flex;
		flex-direction: row;
		gap: 20px;
		flex-wrap: wrap;
	}

	.featured-grid .post {
		width: calc(33.333% - 20px*2/3);
	}

	.featured-grid .post.first-post {
		width: 100%;
		position: relative;
	}

	.featured-grid .post.first-post a {
		color: #FFF;
	}

	.featured-grid .post.first-post .posts-list__thumb {
		margin-bottom: 0;
	}

	.featured-grid .post.first-post .posts-list__content {
		display: flex;
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		width: 100%;
		height: 100%;
		align-items: center;
		padding: 2em;
		color: #FFF;
		pointer-events: none;
		background: linear-gradient(90deg, 
			rgba(0, 0, 0, 0.85) 0%, 
			rgba(0, 0, 0, 0.70) 20%, 
			rgba(0, 0, 0, 0.60) 40%, 
			rgba(0, 0, 0, 0.45) 50%, 
			rgba(0, 0, 0, 0.25) 60%, 
			rgba(0, 0, 0, 0.40) 80%,
			rgba(0, 0, 0, 0.50) 100%);
	}

	.featured-grid .post.first-post:hover .posts-list__content {
		background: linear-gradient(90deg, 
			rgba(0, 0, 20, 0.85) 0%, 
			rgba(0, 0, 20, 0.70) 20%, 
			rgba(0, 0, 20, 0.60) 40%, 
			rgba(0, 0, 20, 0.45) 50%, 
			rgba(0, 0, 20, 0.25) 60%, 
			rgba(0, 0, 20, 0.40) 80%,
			rgba(0, 0, 20, 0.50) 100%);
	}

	.featured-grid .post.first-post:hover .entry-header .post-title a {
		color: #e1fdc8;
	}

	.featured-grid .post.first-post .posts-list__content .entry-header {
		max-width: 390px;
	}

	.featured-grid .post.first-post .posts-list__content .entry-header .post-title {
		text-transform: uppercase;
		margin-top: 1.5em;
		margin-bottom: 1em;
	}


	.featured-grid .post.first-post .posts-list__content .entry-header .reading-time,
	.featured-grid .post.first-post .posts-list__content .entry-header .entry-meta {
		color: #FFF;
	}
	

	.featured-grid .post {
		border-bottom: none;
		padding-bottom: 0;
	}

	.breadcrumbs {
		margin-bottom: 10px;
	}

	.site-title {
		font-size: 20px;
	}

	.site-content {
		grid-template-columns: auto 300px; /* hlavní obsah a sidebar */
		padding-top: 20px;
		padding-left: 20px;
	}

	.site-header {
		flex-direction: row;
	}

	nav#top-menu-top ul,
	.tiscali-menu__list {
		display: flex;
	}

	.site-wrapper {
	/*	margin-top: 150px;*/
		box-shadow: 0px 0px 15px #DDDDDD;
	}

	.menu-top-menu-container {
		position: relative;
		box-shadow: none;
	}

	nav#top-menu ul li a span {
		padding: 0 10px;
		border-right: 1px solid var(--main-color);
	}

	nav#top-menu ul li:last-child a span {
		padding: 0 10px;
		border-right: 0;
	}

	#sidebar-banner-sticky-1 {
		position: sticky;
		top: 70px;
	}

	#sidebar-banner-sticky-2 {
		position: sticky;
		top: 70px;
	}

}

/* ===== Responzivní menu ===== */
@media (max-width: 767px) {
	nav#top-menu ul {
		display: none;
	}
	.menu-toggle {
		display: block;
	}
	/* Když bude menu aktivní (přidáme třídu "active" přes JS), zobrazíme ho */
	nav#top-menu-top.active ul,
	nav#top-menu.active ul {
		display: block;
	}
	nav#top-menu ul li {
		display: block;
		margin: 5px 0;
	}
}
