/*
==================================================================
General Styles
==================================================================
Vymrdaná hnusná a zcákaná píča
*/

body,
button,
input,
select,
optgroup,
textarea {
    color: black;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 0.88rem;
    line-height: 1.6;
}

a {
    color: black;
}

body.single-post div.post-thumbnail {
 display: none;
}

body.archive.category .site-content,
body.author .site-content, 
body.page .site-content {
	border-top: 2px solid #eee;
}

/* Background */
.custom-background {
    background-image: url("images/core_images/main_bg.png") !important;
    background-repeat: repeat !important;
    background-position: top left;
}

/*
==================================================================
Header and Footer Styles
==================================================================
*/

.site-header {
    background-color: black;
}

.site-footer {
    padding-top: 2em;
    padding-bottom: 2em;
    margin-top: 0;
    text-align: center;
}

.footer_left a {
    text-align: left;
    padding-right: 30px;
    text-decoration: underline;
}

.footer_right a {
    text-align: right;
    text-decoration: underline;
}

.footer_inside {
    text-align: center;
}


/*
==================================================================
Social Icons
==================================================================
*/

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    margin-right: 10px;
    border-radius: 50%;
    background-color: #f4f4f4;
    color: black;
}

.social-icons a:hover {
    background-color: #333;
    color: white;
}

/*
==================================================================
Menu Styles
==================================================================
*/

.main-navigation {

    width: 900px;
    margin:0 auto;
    padding:0px;

}

.primary-menu ul {
    background-color: black;
    border-radius: 15px;
}

.primary-menu ul a {
    text-transform: uppercase;
}

.primary-menu > li > a {
    font-size: 1em;
    color: white;
}

.primary-menu > li.current-menu-ancestor > a,
.primary-menu > li.current-menu-item > a {
    background-color: red;
}

.primary-menu > li:hover > a {
    color: black;
    background-color: red;
}

/* Search Form */
.main-navigation .search-form {
    right: 200px;
}

.header-search .search-form .search-field {
    border-radius: 2px;
}

/*
==================================================================
Sidebar styles
==================================================================
*/

.search-sidebar-heading {
    font-size: 20px;
    font-weight: normal;
    background: rgba(211, 211, 211, 0.30) !important;
}

.wpp-heading {
    margin-top: 15px;
    margin-bottom: 15px;
    text-align: center;
    font-size: 20px;
    text-transform: uppercase;
    background: rgba(211, 211, 211, 0.30) !important;
}

.site-content .widget-area {
    border-left: 2px solid #eee;
    padding-left: 20px;
}

.widget {
    margin: 0;
}

/*
==================================================================
Social Icons Widget Custom Styles
==================================================================
*/

.chw-widget-left-title,
.chw-widget-right-title {
    color: white;
}

.chw-widget-left {
    float: left;
    margin-top: 5px;
}

.chw-widget-right {
    float: right;
    margin-top: 5px;
}

/*
==================================================================
Content Styles
==================================================================
*/

.content-area {
    padding-top: 15px;
}

/* Welcome Text */
.welcome-text {
    padding: 1em 0;
    font-size: 1.2em;
    border-top: 2px solid #eee;
    border-bottom: 2px solid #eee;
    font-style: italic;
    text-align: center;
    color: black;
    font-family: Roboto;
	
}

.page-content, .entry-content, .entry-summary {
	
	margin: 0;
	
}

/* Hide the default thumbnail added by the theme */
.entry-media {
    display: none !important;
}

.posts-small .post-archive {
	
	padding-bottom: 15px;
	padding-top: 5px;
    padding-left: 20px;
    padding-right: 20px;
}

.post-thumbnail {


	margin-top: 1em !important;
}

.cat-links {
	
	color: #747474;
	padding-top: 5px;
	
}

/* Related Posts */
.relpost-thumb-wrapper {
    text-align: center;
    margin-top: 20px;
    background-color: #f9f9f9;
    border: none;
}

.relpost-block-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
   
}

.relpost-custom-block-single {
    text-align: center;
    margin: 0 auto;
    width: 150px;
    
}

.relpost-block-single {

    background-color: #f9f9f9;
    border: none;

}

.relpost-block-single-text {
    margin-top: 10px;
    font-size: 14px;
    color: #333;
    font-family: Arial, sans-serif;
}

.relpost-block-single-image a {
    background-size: cover;
    background-position: center;
    width: 150px;
    height: 150px;
    margin: 0 auto;
    filter: brightness(0.9);
    transition: filter 0.3s ease;
}

.relpost-block-single-image:hover{

    filter: brightness(1.1);


}

/*
==================================================================
Typography
==================================================================
*/

h1, h2, h3, h4, h5, h6 {
    margin-top: 15px;
}

/* Post Meta */
.entry-meta {
    font-style: italic;
}

.post.sticky {
    background: rgba(211, 211, 211, 0.25) !important;
}

.wp-block-search__input {

    padding-left: 10px !important;

}

/*
==================================================================
Flexbox Layout for Content and Sidebar
==================================================================
*/

.site-content {
    display: flex;
    flex-direction: row;
    gap: 15px; /* mezera mezi posty a sidebar */
    flex-wrap: wrap;
	padding:0px;
	margin-left: 10px;
	margin-right: 10px;
}

.content-area {
    flex: 1;
    min-width: 0; /* zajistí správné přizpůsobení na menších obrazovkách */
}

.site-content .widget-area {
    flex: 0 0 350px; /* pevná šířka pro sidebar na větších obrazovkách */
	text-align: center;
    position: sticky; /* Make the sidebar sticky */
    top: 20px; /* Distance from the top of the viewport when the sidebar sticks */
    z-index: 1;
}

.post-thumbnail-custom {

    border-radius: 15px;
    padding-bottom: 5px;

}

/* Optional to improve cross-browser behavior */
@supports (position: sticky) {
    .widget-area {
        position: -webkit-sticky; /* For Safari */
    }
}

.flex-parent-element {
  display: flex;
  padding-bottom: 10px;
}

.flex-child-element {
  flex: 1 1 auto;
  
}
/*
.flex-child-element:first {

}
*/
.flex-child-element:nth-child(2) {
    float:right;
  text-align:right;
  height: 78px;
  
}

/*
==================================================================
Plugin Specific
==================================================================
*/


.wpp-cards-compact li .wpp-post-title {
    /* Your desired styles */
    margin-bottom: 0.5em !important;
    font-size: 1em !important;
    line-height: 1.4 !important;
    font-weight: normal !important;
}

.privacy-policy-link a {

    color: white;
    text-decoration:underline;

}

.wp-block-heading {

    font-weight: normal;

}

.wp-block-image a img {
    
}

.wp-block-image a:hover img {
    filter: brightness(1.1);
    filter: drop-shadow(2px 2px 3px #000);
}

/*
==================================================================
Media Queries
==================================================================
*/
/* Styles for screens between 768px and 1200px */
/* For screens between 768px and 1200px */
/* For screens 1200px and above */
/* For screens between 768px and 1200px */


@media (min-width: 1200px) {
	
	.post-thumbnail {
        width: 100%;
        height: auto;
		max-width: none;
        aspect-ratio: 16/9;
        margin-bottom: 15px;
        border-radius: 5px;
        object-fit: cover;
		margin-top: 1em !important;
    }
	
	 .post {
        display: flex;
        flex-direction: column; /* Stack image above text */
        align-items: center;
        background-color: #f9f9f9;
        border: 1px solid #ddd;
        padding: 20px;
        margin-bottom: 20px;
        border-radius: 8px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
	
	.container {
		
		width: 1150px;
		
	}
	
}

@media (min-width: 768px) and (max-width: 1200px) {
    .container {
        width: 95%;
        max-width: 1300px;
        margin: 0 auto;
    }

    .post {
        display: flex;
        flex-direction: column; /* Stack image above text */
        align-items: center;
        background-color: #f9f9f9;
        border: 1px solid #ddd;
        padding: 20px;
        margin-bottom: 20px;
        border-radius: 8px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .post-thumbnail {
        width: 100%;
        height: auto;
		max-width: none;
        aspect-ratio: 16/9;
        margin-bottom: 15px;
        border-radius: 5px;
        object-fit: cover;
		margin-top: 1em !important;
    }

    .entry-title {
        font-size: 1.5em;
        text-align: center;
        margin-bottom: 10px;
    }

    .entry-content {
        font-size: 1em;
        text-align: left;
        width: 100%;
        line-height: 1.6;
        margin-top: 10px;
    }

    .site-content .widget-area {
        width: 100%;
		padding-top: 5px;
		

    }
}

/* Mobile Styles */
@media (max-width: 768px) {  

    .wp-block-image {

        display: none;
        margin: 0;
        padding: 0;

    }
    
    .fb-page {
        display: none;
        margin: 0;
        padding: 0;
    }
    .fb-mobile-link {
        display: block;
        text-decoration: underline;
        padding-bottom: 25px;
    }

    .site-content {
        flex-direction: column;
		gap: 0px;
		align-items: center;
		justify-content: center;
		padding-right: 20px;
    }

    .post {
        padding: 15px;
        font-size: 14px;
        max-width: 100%;
        margin: 0 auto 20px auto;
        box-shadow: none;
        border: none;
        background-color: transparent;
		width: 350px;
    }

    .post-thumbnail {
        width: 100%;
        max-width: none;
        aspect-ratio: 16/9; /* Maintain landscape aspect ratio on mobile */
        margin-bottom: 15px;
        border-radius: 5px;
        object-fit: cover;
    }

    .entry-title {
        font-size: 1.2em;
    }

    .entry-content {
        font-size: 0.9em;
        text-align: left;
        width: 100%;
    }

    .site-content .widget-area {
        width: 90%;
		border-top: 2px solid #eee;
		padding-top: 20px;
		border-left: none;
    }
	
	.welcome-text {
		
		border-top: 2px solid #eee;
		margin-top: 35px;
		font-size: 0.9em;
	}

    .post-thumbnail-custom {

        width: 92%;
        margin: 0 auto;
        display: block;
        margin-bottom: 10px;

    }

    .wp-block-spacer {

        display: none;

    }
	/*
	.posts-small .post-archive {
		
		margin-left: 20px;
		
	}
	*/
	
	.site-main {
		
		margin: 0px;
		padding: 0px;
		
	}
	
	.post.sticky {
		
		margin-bottom: 1em;
		
	}

    .flex-child-element:nth-child(2) {
        display: none;
      
    }
	
}

/* Show the Facebook Page Plugin on larger screens */
@media (min-width: 769px) {
    .fb-page {
        display: block;
    }
    .fb-mobile-link {
        display: none;
    }
}





