/*
Theme Name: Akademia2
Description: Theme for USTARCH SAV
Version: 2.0
Tags: Slovak Academy of Sciences, science

License:
License URI:
*/

/**
 * Table of Contents:
 *
 * 1.0 - Body
 * 2.0 - Headings
 * 3.0 - Text Elements
 * 4.0 - Links
 * 5.0 - Alignment
 * 6.0 - Tables
 * 7.0 - Images
 * 8.0 - Galleries
 * 9.0 - Audio/Video
 * 10.0 - RTL
 *
 */
 
/* Load Fonts **********/
@font-face{
  font-family: 'Bn';
  src: url('./fonts/BebasNeue.woff') format('woff'),
       url('./fonts/BebasNeue.ttf') format('truetype'),
       url('./fonts/BebasNeue.eot');
}
@font-face{
  font-family: 'My';
  src: url('./fonts/MyriadPro-Cond.woff') format('woff'),
       url('./fonts/MyriadPro-Cond.otf') format('opentype'),
       url('./fonts/MyriadPro-Cond.eot');
}

/* Reset CSS Firstly **********/
html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym,
address, big, cite, code, del, dfn, em, img, ins, kbd, q, samp, small, strike, strong, sub, sup, tt,
var, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr,
th, td {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  font-weight: inherit;
  font-style: inherit;
  font-size: 100%;
  font-family: inherit;
}

/* Body and Content **********/
body {
  width: 100%;
  background: #f8f5ec;
  color: #3b3b3b;
  font-family: Verdana, Tahoma, Arial CE, Helvetica CE, Arial, Helvetica, sans-serif;
  font-size: 12px;
  line-height: 18px;
}

.main {
  width: 100%;
  margin: 0;
  padding: 0;
}

.content {
  width: 100%;
  float:left;
  padding: 0 0;
  background: #f8f5ec;
}

.content_cont {
  display: flex;
  width: 974px;
  margin: 0 auto;
}

/* kontejnery pro dva boxy se stejným obsahem */
.content_cont { overflow: hidden; }

/* Flexbox pro dva sloupce vedle sebe */
.content_cont.two-columns {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 15px;
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  justify-content: space-between; /* zarovná boxy vlevo a vpravo */
  align-items: flex-start;
  gap: 10px; /* větší mezera mezi boxy */
}

/* oba boxy 500x1000 s vertikálním scrollbarem */
.content_left_home,
.content-right-home {
  width: 900px;
  height: 600px;
  overflow-y: auto;
  border: 1px solid #ccc;
  padding: 0px;
  box-sizing: border-box;
  background: #fff;
  align-self: flex-start;
}

.content-right-home {
  width: 600px !important;
  height: 1000px !important;
  overflow-y: auto;
  border: 1px solid #ccc;
  padding: 16px;
  box-sizing: border-box;
  background: #fff;
  align-self: flex-start;
}

/* zrušíme float pro tyto boxy */
.content_left_home, .content-right-home {
  float: none;
  margin: 0;
}

/* pozice boxů */
.content_left_home { float: left; margin-right: 10px; }
.content-right-home { float: right; }

/* vyčištění floatů */
.content_cont::after {
  content: "";
  display: table;
  clear: both;
}

/* drobné úpravy vnitřního obsahu */
.news_content {
  width: auto !important;
/*  margin-bottom: 18px;*/
 
  padding: 12px 12px 12px 12px; /* horní, pravý, dolní, levý */
  background: #f9f9f9;          /* světle šedé pozadí */


  color: #333;
  font-size: 15px;
}

.news_content h2 {
  color: #c13504;               /* nadpis v barvě motivu */
  font-size: 22px;

  margin-bottom: 8px;
}

.news_content .news_text {
  color: #444;
  font-size: 15px;

  padding-right: 10px;          /* odsazení od pravého okraje */
}

.news_img img { max-width: 100%; height: auto; display: block; }

.content_left {
  width: 230px;
  float: left;
  margin-right: 10px;
}

.content_right {
  position: relative;
  display: flex;
  width: 824px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
  line-height: 22px;
}

/* Page **********/
.page_content {
  display: block;
  max-width: 1000px;
  width: 100%;
  clear: both;
  margin-left: auto;
  margin-right: auto;
  padding: 10px 25px 30px;
  border: 1px solid #b3b3b3;
  background-color: #FFF;
  min-height: 500px;
  text-align: justify;
}

.page_content ul {
  margin: 8px 0 8px 20px;
}

.page_content li {
  margin: 8px 0;
}

.page_content p {
  margin: 12px 0;
}

.page_content img {
  margin: 6px 12px 6px 0;
  float: left;
}

/* Headings **********/
h1 {
  font-size: 40px;
  font-family: 'My',Tahoma;
  line-height: 40px;
  color: #dc4e1c;
  margin: 20px 0;
  text-align: left;
}

h1.news_title {
  font-size: 22px;
  line-height: 26px;
  margin: 0;
}

h2 {
  clear: both;
  font-size: 22px;
  font-family: 'My',Tahoma;
  font-weight: normal;
  line-height: 26px;
  color: #7f420d;
  padding: 8px 0;
 /* border-bottom: 1px dotted #D7D5D5;*/
  margin: 20px 0 4px;
}

h3 {
  font-weight: bold;
  padding-top: 8px;
}
h4 {
  font-size: 22px;
  font-family: 'My',Tahoma;
  font-weight: normal;
  line-height: 26px;
  color: #7f420d;
  padding: 8px 0;
  margin: 20px 0 4px;
}

/* Fonts **********/
.bold {
  font-weight: bold;
}

.italic {
  font-style: italic;
}

.underline {
   text-decoration: underline;
}

/* Fonts Color *****/
.green {
  color: #0a6412;
}

/* Links **********/
a {
  color: /*#7f420d*/#c13504;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Lists **********/
ul {
  list-style: disc inside;
  color: #444;
}

ul li a {
  color: #7f420d;
}

ul li a:hover {
  text-decoration: underline;
}

/* Floats **********/
img.alignleft {
  margin: 5px 10px 5px 0;
  display: inline-block;
  float: left;
}

img.alignright {
  margin: 5px 0 5px 10px;
  display: inline-block;
  float: right;
}

.alignleft {
  float: left;
  margin: 5px 10px 5px 0;
}

.alignright {
  float: right;
  margin: 5px 0 5px 10px;
}

/* Lists *********/
/* Table List *****/
table.list {
  width: 100%;
  font-size: 12px;
  border-spacing: 0;
}

table.list tr.list_header td {
  font-weight: bold;
}

table.list tr:nth-child(even) {
  background: #EEE;
}

/* Table Project List *****/
table.project_list {
  width: 100%;
  font-size: 11px;
  border-spacing: 0;
  margin: 10px 0;
}

table.project_list tr td {
  padding: 0 8px;
}

table.project_list:nth-child(even) {
  background: #EEE;
}

/* Table Conferences List *****/
.conf {
  padding-bottom: 8px;
}

/* Ul List *****/
ul.list {
  width: 95%;
  font-size: 11px;
  list-style: none none;
}

ul.list li {
  padding: 0 8px;
}

ul.list li:nth-child(even) {
  background: #EEE;
}

/* Ul Annual List *****/
ul.annual_list li {
  padding-left: 30px;
}

ul.annual_list li a {
  margin-right: 40px;
}

/* Inputs **********/
input[type=submit]:hover {
  cursor: pointer;
}

/* Paddings **********/
.padd_top10 {
  padding-top: 10px;
}

/* Header **********/
.header_top {
  width: 100%;
  height: 70px;
  margin: 0 auto;
  padding: 15px 0;
  background-color: #a09e9e;
  background-image: linear-gradient(to right,#cfd1d2,#ebebec,#d7d8d9);
  font-family: 'My',Tahoma;
  position: fixed !important; /* nutné, aby absolutně pozicované dítě bylo ukotveno k headeru */
  z-index: 10000;
}

.header_top .ht_inside {
  width: 100%;
  height: 70px;
  margin: 0 auto;
  line-height: 50px;
}

.header_top .ht_inside .ht_title {
  float: left;
  vertical-align: middle;
  color: #000000 !important;
  font-size: 1.2rem;
  white-space: normal;      /* povolí zalomení */
  line-height: 1.2;         /* menší mezera mezi řádky */
  max-width: 350px;         /* volitelně omezte šířku, aby se zalomilo */
  word-break: break-word;   /* zalomí i dlouhá slova */
  margin-bottom: 12px !important;
}

.header_top .ht_inside .ht_title img {
  position: relative; top: 2px;
}

.header_top .ht_inside .ht_title a {
  color: #3b3b3b;
  font-size:1.2rem;
}

.header_top .ht_inside .ht_title a:hover {
  color: #710000;
}

.header_top .ht_inside .ht_services {
  vertical-align: middle;
  font-size: 18px;
  float: right;
  font-family: 'My',Tahoma;
}

.header_top .ht_inside .ht_services a {
  color: #aa2f03;
  margin-right: 10px;
  text-transform: uppercase;
}

.header_top .ht_inside .ht_services a:hover {
  color: #aa2f03;
}

.header_top .ht_inside .ht_services img {
  margin-right: 6px;
  position: relative; top: 2px;
}

.header_top .ht_inside .ht_lang {
  float: right;
  padding-left: 10px;
  font-size: 14px;
}

.header_top .ht_inside .ht_lang a {
  color: #A7A6A6;
}

.header_top .ht_inside .header_search_in_top {
  float: right !important;
  margin-right: 20px;
  margin-left: 0;
  position: absolute;
  top: 0;
  display: block;
}

/* pokud chcete menší input v headeru */
.header_top .ht_inside .header_search_in_top .searchform input[type="text"] {
  width: 200px; /* upravte šířku */
  padding: 4px 6px;
  font-size: 12px;
  background-color: #EEEAE2;
  border: 1px solid #AFACA5;
  vertical-align: middle;
}

/* styl pro submit (ikona) */
.header_top .ht_inside .header_search_in_top .searchform input[type="submit"] {
  width: 32px;
  height: 21px;
  background: #EEEAE2 url('./img/layout/header/loupe.jpg') center no-repeat;
  border: 1px solid #AFACA5;
  border-left: 0;
}

/* Header Departments */
.odd1 {
  border-left: 5px solid #957745;
}

.odd2 {
  border-left: 5px solid #946e2f;
}

.odd3 {
  border-left: 5px solid #945328;
}

.odd4 {
  border-left: 5px solid #924a1a;
}

.odd5 {
  border-left: 5px solid #962614;
}

.odd6 {
  border-left: 5px solid #951905;
}

.odd7 {
  border-left: 5px solid #6c1406;
}

.odd8 {
  border-left: 5px solid #600f02;
}

/* Header Presentation */
.header_cont {
  position: relative;
  margin-top: 0;
  width: 100%;
  background: url('./img/layout/header/intro.jpg') no-repeat center;
  background-size: cover;
  box-sizing: border-box;
  overflow: hidden;
  height: 370px !important;
}

.header_cont_text {
  width: 100%;
  position: relative;
  top: -10rem !important;
  left: 10rem !important;
 
  box-sizing: border-box;
}

.header_cont_text #anim_img {
  opacity: 0.15;
  width:auto;
}

.slideshow_title {
  display: none;
}

/* Header Image - Small */
.header_small {
  background: url('./img/layout/header/header_small.jpg') no-repeat center;
  height: 120px;
  width: 100%;
}

.header_small_1 {
  background: url('./img/layout/header/header_small_1.jpg') no-repeat center;
  height: 120px;
  width: 100%;
}

.header_small_2 {
  background: url('./img/layout/header/header_small_2.jpg') no-repeat center;
  height: 120px;
  width: 100%;
}

.header_small_3 {
  background: url('./img/layout/header/header_small_3.jpg') no-repeat center;
  height: 120px;
  width: 100%;
}

.header_small_4 {
  background: url('./img/layout/header/header_small_4.jpg') no-repeat center;
  height: 120px;
  width: 100%;
}

.header_small_5 {
  background: url('./img/layout/header/header_small_5.jpg') no-repeat center;
  height: 120px;
  width: 100%;
}

.header_small_6 {
  background: url('./img/layout/header/header_small_6.jpg') no-repeat center;
  height: 120px;
  width: 100%;
}

.header_small_cont {
  width: 974px;
  margin: 0 auto;
 /* height: 100%;*/
  text-align: left;
}

/* Navbars **********/

/* Main Menu *****/
/* Main Menu - Top Line */
.navbar {
  width: 100%;
  height: 60px;
  background: #9c0000;
  font-family: 'Bn',Verdana;
  z-index: 1;
 
}

.navbar a {
  color: #FFF;
  font-size: 17px;
}

.navbar_cont {
  width:700px;
 transition: all 0.3s ease-in-out scale(1.2);
 display: block;
 /*margin-left: auto;*/
 margin-right: 0;
  height: 100%;
  align-items: center;
}

.navbar_buts {
  float:left;
  height: 60px;
}

.navbar .menu ul,
.navbar ul#menu-main_menu,
.navbar ul#menu-main_menu-home_but {
 /* width: 974px;*/
  list-style-type: none;
  padding: 0;
}

.navbar .menu ul li,
.navbar ul#menu-main_menu li,
.navbar ul#menu-main_menu-home_but li {
  float: left;
  position: relative;
  color: #FFF;
  height: 60px;
  line-height: 60px;
  vertical-align: middle;
  font-size: 16px;
  font-family: 'My',Tahoma;
  border-left: 0px solid #EEEEEE;
}

.navbar .menu ul li,
.navbar ul#menu-main_menu li {
  text-transform: uppercase;
}

.navbar .menu ul li:last-child,
.navbar ul#menu-main_menu li:last-child {
  border-right: 1px solid #9c0000;
}

.navbar .menu ul li:hover,
.navbar ul#menu-main_menu li:hover,
.navbar ul#menu-main_menu-home_but li:hover,
.navbar ul#menu-main_menu li.current_page_parent {
  background-color: #c13504;
}

.navbar .menu ul a,
.navbar ul#menu-main_menu a,
.navbar ul#menu-main_menu-home_but a {
  display: block;
  padding: 0 20px;
}

.navbar ul#menu-main_menu img,
.navbar ul#menu-main_menu-home_but img {
  padding: 25px 0;
}

/* Main Menu - Home Button */
.navbar ul#menu-main_menu-home_but .home {
  height: 60px;
}

/* Main Menu - Sub Menu */
.navbar ul#menu-main_menu ul.sub-menu {
  position: absolute; left: 8px;
  width: 270px;
  display: none;
  list-style-type: none;
  padding-top: 0;
}

.navbar ul#menu-main_menu li:hover ul.sub-menu {
  display: block;
}

.navbar ul#menu-main_menu ul.sub-menu li {
  z-index: 1;
  width: 230px;
  margin: 0;
  padding: 4px 12px;
  height: 25px;
  line-height: 25px;
  background-color: #9c0000;
  border-bottom: 1px solid #c10000;
  text-align: left;
  position: relative; right: 8px;
  text-transform: none;
}

.navbar ul#menu-main_menu ul.sub-menu li:last-child {
  width: 230px;
}

.navbar ul#menu-main_menu ul.sub-menu li a {
  display: block;
  padding: 0;
  font-family: Tahoma, Verdana;
  font-size: 13px;
}

.navbar ul#menu-main_menu ul.sub-menu li:hover {
  background-color: #c13504;

}

/* Main Menu - Sub Menu - Sub Menu */
.navbar ul#menu-main_menu ul.sub-menu li ul.sub-menu {
  position: relative; left: 300px; bottom: 29px;
  width: 270px;
  display: none;
  list-style-type: none;
  padding-top: 0;
}

.navbar ul#menu-main_menu ul.sub-menu li:hover ul.sub-menu {
  display: block;
}

/* Department List */
#dep_list {
  width: 100px;
  list-style-type: none;
  display: inline;
  padding: 0;
  float: right;
  height: 40px;
  position: relative;
  z-index: 100;
}

/* Department List - Sub Menu */
#dep_list ul.navbar_sub {
  width: 190px;
  display: none;
  list-style-type: none;
  /*padding-top: 16px;*/
}

#dep_list:hover ul.navbar_sub {
  display: block;
}

#dep_list ul.navbar_sub li {
  width: 200px;
  padding: 0 4px 0 0;
  line-height: 24px;
  background-color: #fff;
  border-right: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  text-align: left;
  position: relative; bottom: 16px;
}

#dep_list ul.navbar_sub li:nth-child(even) {
  background-color: #eee;
}

#dep_list ul.navbar_sub li a {
  display: block;
  font-family: Tahoma, Verdana;
  font-size: 11px;
  color: #444;
}

#dep_list ul.navbar_sub li:hover {
  background-color: #ddd;
}

/* Page Menu *****/
.navbar_sec ul.menu {
  width: 230px;
  border-top: 1px solid #CECECE;
  border-right: 1px solid #CECECE;
  border-left: 1px solid #CECECE;
  font-size: 11px;
  padding: 0;
  list-style-type: none;
}

.navbar_sec ul.menu ul {
  list-style-type: none;
}

.navbar_sec ul.menu li {
  line-height: 35px;
}

.navbar_sec ul.menu li:first-child {
  width: 100%;
  background-color: #757575;
  font-size: 11px;
}

.navbar_sec ul.menu li:first-child a {
  color: #FFF;
}

.navbar_sec ul.menu li:first-child a:hover {
  color: #FFF;
  text-decoration: none;
}

.navbar_sec ul.menu li ul.sub-menu li:first-child a:hover {
  text-decoration: none;
}

.navbar_sec ul.menu li ul.sub-menu {
  position: relative; top: 1px;
}

.navbar_sec ul.menu li:not(:first-child),
.navbar_sec ul.menu li ul.sub-menu li {
  width: 230px;
  border-bottom: 1px solid #D7D5D5;
  background: #FAFAFA url('./img/layout/navbar/navbar_sec_bg.jpg') no-repeat left center;
  padding: 0;
}

.navbar_sec ul.menu li a,
.navbar_sec ul.menu li ul.sub-menu li a {
  color: #4D4D4D;
  padding-left: 8px;
  cursor: pointer;
  display: block;
  margin-left: 7px;
  font-size: 12px;
}

.navbar_sec ul.menu li span {
  color: #4D4D4D;
  cursor: pointer;
}

.navbar_sec ul.menu li a:hover,
.navbar_sec ul.menu li ul.sub-menu li a:hover {
  color: #CC0000;
}

/* Emphasize Current */
.navbar_sec ul.menu li.current-page-ancestor a {
  font-weight: bold;
}

.navbar_sec ul.menu li.current-page-ancestor ul.sub-menu li a {
  font-weight: normal;
}

.navbar_sec ul.menu li.current-menu-item a,
.navbar_sec ul.menu li.current-page-ancestor ul.sub-menu li.current-menu-item a {
  font-weight: bold;
  background: #f0d3c8 url('./img/layout/navbar/navbar_sec_bg_current.jpg') no-repeat left center;
  color: #dc4e1c;
}

.navbar_sec ul.menu li.current-menu-item ul.sub-menu a {
  font-weight: normal;
  background: #fff;
  color: #4D4D4D;  
}

.navbar_sec ul.sub-menu li:first-child {
  border-top: 1px solid #D7D5D5;
}

.navbar_sec ul.menu li.menu-item-has-children {
  background: #FFF;
}

.navbar_sec ul.menu li.menu-item-has-children.current_page_ancestor {
  background: #FAFAFA;
}

.navbar_sec ul.menu li.menu-item-has-children ul.sub-menu li.menu-item a {
  display: block;
  padding-left: 16px;
}

/* Pagination Navigation *********/
.navigation {
  clear: left;
  text-align: center;
}

.navigation a.page-numbers {
  border: 1px solid #CECECE;
  padding: 4px;
  background-color: #fff;
  color: #444;
}

.navigation .current {
  border: 1px solid #7f420d;
  padding: 4px;
  color: #7f420d;
}

/* Index Page *********/
/* News Page *****/
.news_content,
.news_content_wide {
  clear: both;
  float: left;
  width: 100%;
  padding-right: 10px;
  border: 1px solid #CECECE;
  background-color: #FFF;
  text-align: justify;
 /* margin-bottom: 15px;*/
}

.news_content_wide {
  clear: left;
  height: 180px;
  /*padding-left: 10px;*/
}

.news_content .news_img {
  float: left;
}

.news_content .news_img,
.news_content .news_img img {
  float: left;
  margin-right: 10px;
}

.news_content .news_text,
.news_content_wide .news_text_wide {
  padding-left: 15px;
  padding-bottom: 10px;
  font-size: 12px;
  min-height: 15px;
}

/*.news_content_wide .news_text_wide {
  padding-left: 15px;
}*/

.news_content .news_text .news_date,
.news_content_wide .news_text_wide .news_date {
  font-size: 11px;
  color: #777;
  text-align: left;
  margin-top: 10px;
}

.news_content .news_text p,
.news_content_wide .news_text_wide p {
  margin-top: 10px;
  padding-right: 15px;
  text-align: justify;
  word-wrap: break-word;
}

.news_content .news_text .excerpt_more a,
.news_content_wide .news_text_wide .excerpt_more a {
  color: #0a6412;
}

.news_content .news_text .excerpt_more a:hover,
.news_content_wide .news_text_wide .excerpt_more a:hover {
  color: #044b0a;
}

/* Quick Bar *****/
.quick_bar, .quick_bar2 {
  width: 100%;
}

.quick_bar ul, .quick_bar2 ul {
  list-style: none none;
}

.quick_bar ul li, .quick_bar2 ul li {
  border: 2px solid #CECECE;
  background: #EEE url('./img/layout/quickbar/quick_bar_bg.jpg') no-repeat;
  margin-bottom: 5px;
  padding: 4px 8px;
  text-align: right;
}

.quick_bar ul li:hover {
  border: 2px solid #7f420d;
  background: #EEE url('./img/layout/quickbar/quick_bar_bg_hover.jpg') no-repeat;
}

.quick_bar2 ul li:hover {
  border: 2px solid #dc4f1d;
  background: #EEE url('./img/layout/quickbar/quick_bar2_bg_hover.jpg') no-repeat;
}

.quick_bar ul li:hover a, .quick_bar2 ul li:hover a {
  text-decoration: none;
}

.quick_bar ul li a, .quick_bar2 ul li a {
  display: block;
  text-transform: uppercase;
  font-size: 11px;
}

.quick_bar2 ul li a {
  color: #dc4f1d;
}

.quick_bar2_title {
  text-align: right;
  margin: 40px 0 6px;
  padding-right: 10px;
  color: #a5a091;
  font-size: 16px;
  font-family: 'My',Tahoma;
  text-transform: uppercase;
}

/* Department Page *********/
.department_manag {
  margin: 30px 0;
}

/* News List Page **********/
.post_list {
  clear: both;
  padding: 10px 0;
  border-bottom: 1px dotted #cecece;
}

.post_list img {
  width: 130px;
  height: 95px;
}

.post_list .news_date {
  font-size: 11px;
  color: #777;
  text-align: left;
  margin-top: 10px;
}

/* Profile Page **********/
.profile_name {
  font-weight: bold;
  font-size: 14px;
}

.profile_position {
  margin-bottom: 20px;
  font-style: italic;
}

/* Detached Page **********/
.detached_img {
  width: 100%;
  height: 250px;
  margin-left: 20px;
}

.detached_img img {
  float: left;
}

/* User Basic Info page *********/
.photo {
  float: left;
  width: 150px;
}

.photo img {
  height: 150px;
}

.basic_info {
  float: left;
  text-align: left;
}

.basic_info h2 {
  margin-top: 0;
  padding-top: 0;
}

.personal {
  position: relative; right: 20px;
}

/* Search **********/
/* Search Form */
.navbar_search {
  float: left;
  margin-left: 20px;
}

.navbar_search .searchform input {
  float: left;
  display: inline;
}

.navbar_search .searchform input[type=text] {
  width: 300px;
  position: relative; top: 11px;
  padding: 3px 2px 2px;
  font-size: 14px;
  color:#AFACA5;
  background-color:#EEEAE2;
  border: 1px solid #AFACA5;
  border-right: 0;
  border-top-left-radius: 3px;
  border-bottom-left-radius: 3px;
  -moz-border-radius-topleft: 3px;
  -moz-border-radius-bottomleft: 3px;
}

.navbar_search .searchform input[type=submit] {
  background-color: #37B2D0;
  border: 1px solid #AFACA5;
  position: relative; top: 11px;
  width: 32px;
  height: 24px;
  background: #EEEAE2 url('./img/layout/header/loupe.jpg') center no-repeat;
  border-left: 0;
  border-top-right-radius: 3px;
  border-bottom-right-radius: 3px;
  -moz-border-radius-topright: 3px;
  -moz-border-radius-bottomright: 3px;
}

.navbar_search .searchform select {
  margin-left: 10px;
  width: 270px;
  color:#AFACA5;
  font-size: 12px;
  background-color: #EEEAE2;
  border: 1px solid #AFACA5;
  position: relative; top: 11px;
  float: left;
  display: inline;
  height: 25px;
  border-top-left-radius: 3px;
  border-bottom-right-radius: 3px;
  border-top-right-radius: 3px;
  border-bottom-left-radius: 3px;
  -moz-border-radius-toprightleft: 3px;
  -moz-border-radius-bottomrightleft: 3px;
}

/* Footer **********/
footer {
  clear: both;
  width: 100%;
  height: 150px;
  background: #9c0000;
  color: #ffffff;
  padding: 10px 0;
}

.site-info {
  width: 974px;
  margin: 0 auto;
  font-size: 11px;
}

.footer_left, .footer_center, .footer_right {

  height: 100%;
  vertical-align: middle;
}

.footer_left {
  width: 33%;
  border-right: 1px solid #0a0a0a;
}

.footer_center {
  width: 33%;
  border-right: 1px solid #0a0a0a;
  padding-left: 10px;
}
 
.footer_right {
  width: 33%;
  text-align: right;
}

.footer_row {
  float: left;
  height: 25px;
  vertical-align: middle;
}

.footer_left .footer_img, .footer_center .footer_img, .footer_left .footer_img2, .footer_center .footer_img2 {
  float: left;
  width: 18px;
  padding: 5px;
  text-align: center;
}

.footer_left .footer_img2 {
  margin-left: 10px;
}

/*.footer_center .mail {
  position: relative; top: 7px;
}*/

.footer_center .marg {
 margin-right: 50px;	
}

.footer_left .footer_text, .footer_center .footer_text {
  float: left;
  position: relative; top: 3px;
}

.footer_center a {
  color: #ffffff;
}

/* Responsive Design *********/
/*@media only screen and (min-width:1000px) { 
  body {
    background-color: lightblue;
  }
}
@media only screen and (min-width: 768px) and (max-width: 999px) {
  body {
    background-color: blue;
  }	
}
@media only screen and (min-width: 568px) and (max-width: 767px) {
  body {
    background-color: green;
  }	
}*/
@media only screen and (max-width: 567px) {
  body {
    max-width: 567px;
  }	
}

.header_top .navbar_search {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  float: none !important;
  margin: 0 !important;
  display: block;
}

/* reset starého posunu inputů (staré pravidlo používá top:11px) */
.header_top .navbar_search .searchform input[type="text"],
.header_top .navbar_search .searchform input[type="submit"],
.header_top .navbar_search .searchform select {
  position: relative !important;
  top: auto !important;
  margin: 0 !important;
  vertical-align: middle;
}

/* volitelně upravte šířku inputu */
.header_top .navbar_search .searchform input[type="text"] {
  width: 150px;
  background-color: white;
}

/* Social icons v headeru (vlevo od ht_services) */
.header_top .ht_inside .social_icons {
  position: absolute;
  margin-left: 70%;
  display: flex;
  gap: 25px;
  align-items: center;
  margin-right: 15px; 
  margin-top: 10px;
}

.header_top .ht_inside .social_icons a {
  display: inline-block;
  width: 22px;
  height: 22px;
  line-height: 22px;
  text-decoration: none;
}

/* velikost SVG */
.header_top .ht_inside .social_icons a {
  display: inline-block;
  width: 26px;
  height: 26px;
  line-height: 26px;
  text-decoration: none;
}

/* SVG bude používat barvu z elementu <a> (currentColor) */
.header_top .ht_inside .social_icons svg {
  width: 26px;
  height: 26px;
  fill: currentColor;          /* změněno z pevné barvy na currentColor */
  transition: opacity .15s ease, transform .12s ease;
  vertical-align: middle;
}

/* replace hover fill with opacity/transform so original colors stay */
.header_top .ht_inside .social_icons a:hover svg {
  opacity: 0.85;
  transform: translateY(-5px) scale(1.3);
}

/* add Twitter color and keep others */
.header_top .ht_inside .social_icons .facebook  { color: #1877F2; } /* Facebook blue */
.header_top .ht_inside .social_icons .youtube   { color: #FF0000; } /* YouTube red */
.header_top .ht_inside .social_icons .twitter   { color: #1DA1F2; } /* Twitter blue */
.header_top .ht_inside .social_icons .linkedin  { color: #0077B5; width: 18px !important; height: 18px !important; margin-top: -10px; margin-right: 10px;} /* LinkedIn blue */

/* Zmenšit pravý margin u ht_services, aby byly ikony blíže */
.header_top .ht_inside .ht_services {
  position: absolute !important;
  margin-left: 50%;
  display: flex;
  margin-right: 15px;
}

/* zmenšit pouze LinkedIn ikonu a srovnat vertikálně */
.header_top .ht_inside .social_icons a.linkedin {
  width: 20px; 
  height: 20px;
  line-height: 20px;
  margin-top: 0; /* zruší předchozí posun */
  margin-right: 10px;
}

.header_top .ht_inside .social_icons a.linkedin svg {
  width: 18px !important;
  height: 18px !important;
  display: block;
}

/* Polylang language switcher v headeru */
.header_top .ht_inside .lang_switcher {
  position: absolute;
  right: 30px; /* úplně vpravo */
  top: 40%;
  transform: translateY(-50%);
  z-index: 210;
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Vyhledávání posuneme vlevo od vlaječek */
.header_top .navbar_search {
  position: absolute;
  right: 150px !important; /* posun vlevo od vlaječek, upravte podle šířky inputu */
  top: 40%;
  transform: translateY(-50%);
  float: none !important;
  margin: 0 !important;
  display: flex;
}


/* Velikost vlaječek */
.header_top .ht_inside .lang_switcher img,
.header_top .ht_inside .lang_switcher .pll_flag {

  width: 44px;
  height: auto;
  vertical-align: middle;
  margin: 0 2px;
  display: inline-block;
  
}

/* odstraní textové štítky pokud Polylang stále zobrazuje názvy */
.header_top .ht_inside .lang_switcher .pll_languages_list a span {
  display: inline;
}

.header_left_group {
  margin-left: 3% !important;
  background: transparent !important;
 
}

.header_left_group img {
  background: transparent !important;
}

/* nově přidané pravidlo pro ikonu emailu */
.header_top .ht_inside .social_icons .email svg {
  background: transparent;
  border-radius: 4px;
  width: 20px;
  height: 20px;
  margin-top: 2px;
}


.header_top .ht_inside {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
}

.header_left_group {
  display: flex !important;
  align-items: center;
  gap: 10px;
  float: none !important;
  margin-left: 0 !important;
}
.header_left_group img {
  float: none !important;
  margin: 0 !important;
  display: inline-block;
}

.header_top .ht_inside .header_right_group {
  display: flex !important;
  align-items: center;
  gap: 20px;
  margin-left: auto;
  flex-wrap: nowrap;
  margin-right: 2% !important;
  margin-top: -1% !important;
}

.header_top .ht_inside .social_icons,
.header_top .navbar_search,
.header_top .ht_inside .lang_switcher,
.header_top .ht_inside .header_search_in_top {
  position: static !important;
  right: auto !important;
  top: auto !important;
  transform: none !important;
  float: none !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center;
}


.header_top .ht_inside .social_icons {
  gap: 15px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-right: 20px !important;
}

.header_top .navbar_search .searchform input[type="text"] {
  width: 180px;
  max-width: 35vw;
  min-width: 90px;
  box-sizing: border-box;
  transition: width .15s ease;
}

/* Skryj social icons pod 1000px */
@media (max-width: 1150px) {
  .header_top .ht_inside .social_icons {
    display: none !important;
  }
  .header_left_group {
    margin-left: 10px !important;
  }
}


.header_top { position: relative; } 

.header_top .ht_inside .header_center_group {
  position: static !important;
  display: flex;
  left: auto !important;
  margin-left: auto !important;
  margin-bottom: 15px;
  display: flex;
  z-index: 5;
  text-align: center;   
  pointer-events: auto;
  
}

/* Pokud je v header_center_group obrázek, upravíme jeho velikost */
.header_top .ht_inside .header_center_group img {
  height: 80px;
  width: auto;
  display: inline-block;
}

/* Skrýt celý center group pod 900px */
@media (max-width: 900px) {
  .header_top .ht_inside .header_center_group {
    display: none !important;
  }
}

/* Skryj vyhledávání pod 740px */
@media (max-width: 740px) {
  .header_top .navbar_search {
    display: none !important;
  }
}


/* Skryj lang pod 530px */
@media (max-width: 530px) {
  .header_top .lang_switcher {
    display: none !important;
  }
  .header_left_group {
    align-items: center !important;
    text-align: center !important;
  }
}

/* ===== Animace pouze pro submenu (ne pro hlavní položky) ===== */

/* 1) Vypnout pseudo-elementy / animace pro TOP-LEVEL položky */
.navbar ul#menu-main_menu > li > a,
.navbar .menu > ul > li > a,
.navbar ul#menu-main_menu > li > a::before,
.navbar .menu > ul > li > a::before,
.navbar ul#menu-main_menu > li > a::after,
.navbar .menu > ul > li > a::after {
  /* zrušíme transformy/animace a skryjeme pseudo-elementy na nejvyšší úrovni */
  transform: none !important;
  animation: none !important;
  transition: none !important;
  opacity: 1 !important; /* ponecháme text viditelný */
  /* schovat pseudo-elementy (bez vlivu na jiné elementy) */
  display: block;
}
.navbar ul#menu-main_menu > li > a::before,
.navbar .menu > ul > li > a::before,
.navbar ul#menu-main_menu > li > a::after,
.navbar .menu > ul > li > a::after {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: none !important;
}

/* 2) Cílení: animace pouze pro submenu odkazy
   - .navbar ul#menu-main_menu ul.sub-menu a  -> submenu libovolné hloubky
   - Pokud chcete animaci pouze pro první úroveň submenu, použijte:
     .navbar ul#menu-main_menu > li > ul.sub-menu > li > a
*/

/* Základ pro submenu odkazy */
.navbar ul#menu-main_menu ul.sub-menu a,
.navbar .menu ul ul a {
  position: relative;
  z-index: 2;
  display: inline-block;
  transition: color .18s ease, transform .18s ease;
  -webkit-tap-highlight-color: transparent;
  will-change: transform;
}

/* gradient overlay (submenus) */
.navbar ul#menu-main_menu ul.sub-menu a::after,
.navbar .menu ul ul a::after {
  content: "";
  position: absolute;
  left: -30%;
  top: 3px;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0.02), rgba(255,255,255,0.35), rgba(255,255,255,0.02));
 /* transform: skewX(-20deg) translateX(-100%);*/
  transition: transform .66s cubic-bezier(.2,.8,.2,1), opacity .4s ease;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: screen;
  border-radius: 6px;
}

/* glow pod položkou (submenus) */
.navbar ul#menu-main_menu ul.sub-menu a::before,
.navbar .menu ul ul a::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 6px;
  transform: translateX(-50%) scaleX(0);
  width: 80%;
  height: 6px;
  background: rgba(255,255,255,0.08);
  filter: blur(6px);
  border-radius: 6px;
  transition: transform .36s cubic-bezier(.2,.9,.2,1), opacity .24s ease;
  opacity: 0;
  z-index: 0;
  pointer-events: none;
}

/* Hover / focus pouze pro submenu položky */
.navbar ul#menu-main_menu ul.sub-menu li:hover > a,
.navbar .menu ul ul li:hover > a,
.navbar ul#menu-main_menu ul.sub-menu li:focus-within > a {
  color: #fff;
  transform: translateY(-3px);
}
.navbar ul#menu-main_menu ul.sub-menu li:hover > a::after,
.navbar .menu ul ul li:hover > a::after {
  transform: skewX(-20deg) translateX(120%);
  opacity: 1;
}
.navbar ul#menu-main_menu ul.sub-menu li:hover > a::before,
.navbar .menu ul ul li:hover > a::before {
  transform: translateX(-50%) scaleX(1);
  opacity: 1;
}

/* Trvalé zvýraznění pro aktuální submenu položku */
.navbar ul#menu-main_menu ul.sub-menu li.current-menu-item > a::before,
.navbar ul#menu-main_menu ul.sub-menu li.current_page_item > a::before {
  transform: translateX(-50%) scaleX(1);
  opacity: 1;
}

/* Přístupnost / reduced motion stále respektujeme */
@media (prefers-reduced-motion: reduce) {
  .navbar ul#menu-main_menu ul.sub-menu a::after,
  .navbar ul#menu-main_menu ul.sub-menu a::before,
  .navbar .menu ul ul a::after,
  .navbar .menu ul ul a::before {
    transition: none;
    transform: none;
    opacity: 0 !important;
  }
  .navbar ul#menu-main_menu ul.sub-menu li:hover > a { transform: none; }
}

/* Mobilní fallback: vypnout těžké efekty */
@media (max-width: 768px) {
  .navbar ul#menu-main_menu ul.sub-menu a::after,
  .navbar ul#menu-main_menu ul.sub-menu a::before,
  .navbar .menu ul ul a::after,
  .navbar .menu ul ul a::before {
    display: none;
  }
  .navbar ul#menu-main_menu ul.sub-menu li:hover > a { transform: none; }
}

.navbar a,
.navbar a:hover,
.navbar a:focus,
.navbar .menu a,
.navbar ul#menu-main_menu a {
  text-decoration: none !important;
}

/* Pokud by se podtržení objevovalo i díky globálnímu a:hover, přepsat i to pro menu */
.navbar a:hover,
.navbar a:focus {
  text-decoration: none !important;
}

/* --- Responsive fixes: make layout fluid and remove accidental max-width on body --- */

/* 1) Zrušíme škrcení body na mobilu, přepíšeme původní pravidlo */
@media only screen and (max-width: 567px) {
  body {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box;
  }
}


/* 5) Dva sloupce: přepni na 100% pod určitým breakpointem, aby nepřetékal */
@media (max-width: 1000px) {
  .content_left_home, 
  .content-right-home {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin: 0 !important;
  }
}

html, body {
  overflow-x: hidden;
  min-width: 0;
}

/* ===== News Ticker v Navbar (vpravo od menu) ===== */

/* Změníme navbar_cont na flexbox pro uspořádání menu a tickeru vedle sebe */
.navbar_cont {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  padding: 0 20px;
  box-sizing: border-box;
  position: relative;
  z-index: 100;
}

/* Menu zůstává vlevo */
.navbar_buts {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  z-index: 101;
}

/* Ticker wrapper - zabere zbývající místo vpravo */
.news_ticker_wrap {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 25px;
  display: flex !important;
  align-items: center;
  background: rgba(193, 54, 4, 0) !important; /* výrazná oranžová barva */
  border-radius: 12px;
  padding: 5px 15px;
  max-width: 1000px;
  z-index: 102 !important;
  border: 2px solid rgba(190, 190, 190, 0.674); /* debug border - viditelný okraj */
  background-color: #6d0101 !important; /* tmavě šedá pro kontrast s textem */

}

/* Ticker content - animovaný container */
.news_ticker {
  display: flex !important;
  white-space: nowrap;
  animation: ticker-scroll 80s linear infinite;
  will-change: transform;
  z-index: 103;
}

/* Pozastavit animaci při hoveru */
.news_ticker_wrap:hover .news_ticker {
  animation-play-state: paused;
}

/* Jednotlivé položky tickeru */
.news_ticker .ticker_item {
  display: inline-block;
  margin: 0 8px;
}

.news_ticker .ticker_item a {
  text-transform: none !important;                /* zruší uppercase děděné z menu */
  font-family: "Times New Roman", Times, serif !important; /* Times New Roman */
  color: #ffffff !important;                      /* žlutá (gold) */
  font-weight: normal !important;                 /* pokud je potřeba méně tučné */
  font-size: 16px !important;
  text-decoration: none !important;
  text-shadow: 0 0 0 rgba(0,0,0,0) !important;    /* zrušit silný stín, pokud by rušil čitelnost */
}

.news_ticker .ticker_item a:hover {
  color: #ff5500 !important; /* zlatá při hoveru */
 
}

/* Oddělovač mezi položkami */
.news_ticker .ticker_separator {
  display: inline-block;
  color: rgb(255, 0, 0) !important;
  margin: 1px 12px;
  font-size: 30px;
  font-weight: bold;
}

/* Animace - posun zprava doleva */
@keyframes ticker-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Responzivní: zmenši ticker pod 1200px */
@media (max-width: 1200px) {
  .news_ticker_wrap {
    max-width: 700px;
  }
  .news_ticker {
    animation-duration: 60s;
  }
}

/* Skryj ticker pod 980px (když už není dost místa) */
@media (max-width: 980px) {
  .news_ticker_wrap {
    display: none !important;
  }
  .navbar_cont {
    justify-content: center;
  }
}

/* Přístupnost */
@media (prefers-reduced-motion: reduce) {
  .news_ticker {
    animation: none;
  }
  .news_ticker_wrap {
    overflow-x: auto;
  }
}
/* Fix: udržet .header_cont vždy pod navbarem, odstranit procentuální margin */
.header_top {
  box-sizing: border-box;
  min-height: 145px; /* zajistí stabilní výšku header_top */
}

.navbar {
  box-sizing: border-box;
  height: 60px; /* pokud máte jinou výšku menu, upravte */
}

/* Hlavní oprava: zrušíme margin-top založený na procentech */
.header_cont {
  margin-top: 0 !important;    /* žádné procentuální posuny */
  clear: both !important;      /* zajistí, že bude pod plovoucími prvky */
  position: sticky;          /* necháme relativní (používá se pro absolutní vnitřek) */
  box-sizing: border-box;

}

/* Force menu left, ticker right using flex order + auto margin */
.navbar_cont {
  display: flex !important;
  align-items: center;
  /* preferujeme flex-start a margin-left:auto na ticker */
  justify-content: flex-start !important;
  gap: 12px;
}

/* menu vlevo (necháme pevné šířky, nezmenšovat) */
.navbar_buts {
  order: 0 !important;
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center;
  z-index: 101;
}

/* ticker napravo — zbytkový prostor, tlačí se doprava */
.news_ticker_wrap {
  order: 1 !important;
  margin-left: auto !important;   /* klíč: posune ticker doprava */
  flex: 1 1 auto !important;      /* zabere zbývající místo */
  max-width: 100% !important;
  display: flex !important;
  align-items: center !important;
}

/* zajistit, že se menu neskryje pod ticker při menších šířkách */
@media (max-width: 1200px) {
  .navbar_buts { flex-shrink: 0; }
  .news_ticker_wrap { max-width: 700px; }
}

/* pokud chcete přímo opačné vizuální pořadí (markup je jinak), použijte reverse */
.navbar_cont.reverse .navbar_buts { order: 1 !important; }
.navbar_cont.reverse .news_ticker_wrap { order: 0 !important; }

/* Smooth scale on header center image, keyboard-accessible focus, and small performance hints */
.header_top .ht_inside .header_center_group a,
.header_top .ht_inside .header_center_group img {
  display: inline-block;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: transform;
}

/* Target the image itself for transform */
.header_top .ht_inside .header_center_group img {
  transition: transform 220ms cubic-bezier(.2,.9,.2,1), opacity 180ms ease;
  transform-origin: center center;
  /* ensure layout doesn't jump when scaling */
  max-width: 100%;
  height: auto;
  box-shadow: none;
}

/* Hover and focus states (also keyboard accessible) */
.header_top .ht_inside .header_center_group a:hover img,
.header_top .ht_inside .header_center_group a:focus img,
.header_top .ht_inside .header_center_group img:hover,
.header_top .ht_inside .header_center_group img:focus {
  transform: scale(1.10);
  opacity: 0.98;
}

/* Focus-visible outline for accessibility */
.header_top .ht_inside .header_center_group a:focus-visible {
  outline: 3px solid rgba(255,215,0,0.35); /* subtle gold glow */
  outline-offset: 4px;
  border-radius: 6px;
}

/* ===== MOBILE HAMBURGER MENU - FIXED VERSION ===== */

/* Hamburger button */
.mobile_menu_toggle {
  display: none;
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9999;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.mobile_menu_toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background: #fff;
  transition: all 0.3s ease;
  border-radius: 2px;
}

/* X when active */
.mobile_menu_toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}
.mobile_menu_toggle.active span:nth-child(2) {
  opacity: 0;
}
.mobile_menu_toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile breakpoint */
@media (max-width: 980px) {
  
  /* Show hamburger */
  .mobile_menu_toggle {
    display: flex !important;
  }

  /* navbar_cont: flex row pro ticker (vlevo) + hamburger (vpravo) */
  .navbar_cont {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    position: relative;
    min-height: 60px;
  }

  /* Ticker vlevo - viditelný, menší, přetéká scrollem */
  .news_ticker_wrap {
    display: flex !important;
    flex: 1;
    max-width: calc(100% - 150px); /* prostor pro hamburger vpravo */
    overflow: hidden;
    height: 40px;
    align-items: center;
    background: rgba(193, 54, 4, 0.2);
    border-radius: 4px;
    padding: 0 8px;
    margin-right: 5px;
    margin-left: 55px !important; /* prostor pro hamburger */
    border-radius: 10px;
  }

  .news_ticker {
    font-size: 13px !important;
    animation-duration: 60s; /* rychlejší na mobilu */
  }

  .news_ticker .ticker_item a {
    font-size: 15px !important;
  }

  /* Hide desktop menu buttons (horizontal layout) */
  .navbar_buts {
    display: none !important;
    position: absolute;
    top: 60px;
    left: 0;
    width: 80%;
    height: 100vh;
    background: #9c0000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 9998;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
  }

  /* When menu is open */
  .navbar_cont.mobile_menu_open .navbar_buts {
    display: block !important;
    max-height: 80vh;
    overflow-y: auto;
    padding: 12px 0;
  }

  /* Reset ALL menu ULs to vertical stack */
  .navbar_buts ul,
  .navbar_buts ul#menu-main_menu-home_but,
  .navbar_buts ul#menu-main_menu,
  .navbar_buts .menu {
    width: 100% !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }

  /* ALL li items vertical */
  .navbar_buts ul li,
  .navbar_buts ul#menu-main_menu-home_but li,
  .navbar_buts ul#menu-main_menu li,
  .navbar_buts .menu li {
    float: none !important;
    display: block !important;
    width: 100% !important;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
    border-left: 0 !important;
    border-right: 0 !important;
    height: auto !important;
    line-height: normal !important;
    text-align: left !important;
  }

  /* ALL links full-width */
  .navbar_buts ul li a,
  .navbar_buts ul#menu-main_menu-home_but li a,
  .navbar_buts ul#menu-main_menu li a,
  .navbar_buts .menu li a {
    display: block !important;
    padding: 14px 20px !important;
    text-align: left !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Home button img adjust */
  .navbar_buts ul#menu-main_menu-home_but img {
    padding: 8px !important;
    max-width: 32px !important;
    display: inline-block;
  }

  /* Submenu visible, indented */
  .navbar ul#menu-main_menu ul.sub-menu {
    position: static !important;
    width: 100% !important;
    display: block !important;
    padding-left: 0 !important;
    box-shadow: none !important;
    left: auto !important;
  }

  .navbar ul#menu-main_menu ul.sub-menu li {
    padding-left: 30px !important;
    background: rgba(0,0,0,0.15) !important;
    border-bottom: 1px solid rgba(255,255,255,0.08) !important;
    right: auto !important;
    position: static !important;
  }

  .navbar ul#menu-main_menu ul.sub-menu li a {
    padding: 12px 20px !important;
    font-size: 14px !important;
  }

  /* Second-level submenu */
  .navbar ul#menu-main_menu ul.sub-menu li ul.sub-menu {
    left: auto !important;
    bottom: auto !important;
    position: static !important;
  }

  .navbar ul#menu-main_menu ul.sub-menu li ul.sub-menu li {
    padding-left: 50px !important;
    background: rgba(0,0,0,0.25) !important;
  }
}

/* Smaller screens - adjust font */
@media (max-width: 640px) {
  .news_ticker_wrap {

  /*  max-width: calc(100% - 150px) !important; /* více prostoru pro hamburger */
  }
  
  .navbar_buts ul li a {
    font-size: 15px !important;
    padding: 12px 16px !important;
  }
}


/* ===== NOVÝ FOOTER LAYOUT ===== */

/* Override starého footeru */
footer {
  clear: both;
  width: 100%;
  min-height: 200px;
  height: auto;
  background: #9c0000;
  color: #ffffff;
  padding: 30px 0 20px;
  box-sizing: border-box;
}

.site-info {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
}

/* Levá část - Quick Links */
.footer_left {
  flex: 1;
  min-width: 200px;
  border-right: none;
}

.footer_left .footer_heading {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #ffffff;
  font-family: 'My', Tahoma;
  text-transform: uppercase;
}

.footer_left .footer_links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer_left .footer_links li {
  margin-bottom: 10px;
}

.footer_left .footer_links li a {
  color: #ffffff;
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s ease, padding-left 0.2s ease;
  display: inline-block;
}

.footer_left .footer_links li a:hover {
  color: #ffcccc;
  padding-left: 5px;
  text-decoration: none;
}

/* Střední část - Contact Info */
.footer_center {
  flex: 1;
  min-width: 250px;
  border-right: none;
  padding-left: 25px !important;
  margin-left: 100px !important;
}

.footer_center .footer_heading {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #ffffff;
  font-family: 'My', Tahoma;
  text-transform: uppercase;
}

.footer_center .footer_contact_item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 12px;
  gap: 10px;
}

.footer_center .footer_contact_item .footer_icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

.footer_center .footer_contact_item span {
  font-size: 12px;
  line-height: 1.5;
  color: #ffffff;
}

.footer_center .footer_contact_item a {
  color: #ffffff;
  text-decoration: none;
}

.footer_center .footer_contact_item a:hover {
  color: #ffcccc;
  text-decoration: underline;
}

/* Pravá část - Google Map */
.footer_right {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.footer_right iframe {
  display: flex;
  margin-top: 20px !important;
  margin-left: 50px !important;
  margin-right: 10px !important;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Responzivní layout pro menší obrazovky */
@media (max-width: 980px) {
  .site-info {
    flex-direction: column;
    gap: 25px;
  }

  .footer_left,
  .footer_center,
  .footer_right {
    width: 100%;
    min-width: 0;
  }

  .footer_right iframe {
    height: 250px;
    margin-right: 10px !important;
  }
}

@media (max-width: 640px) {
  footer {
    padding: 20px 0 15px;
  }

  .site-info {
    padding: 0 15px;
  }

  .footer_left .footer_heading,
  .footer_center .footer_heading {
    font-size: 16px;
   
  }

  .footer_right iframe {
    height: 200px;
  }
}

/* Zrušit staré footer styly (float layout) */
.footer_row,
.footer_img,
.footer_img2,
.footer_text {
  display: none !important;
}

/* --- Force three footer columns side-by-side on small screens --- */
/* Paste this at the end of style.css so it overrides earlier rules */

@media (max-width: 980px) {

  /* Keep columns in a single row and allow horizontal scroll if viewport is too narrow */
  .site-info {
    flex-direction: row !important;
    flex-wrap: nowrap !important;          /* do not wrap to next line */
    overflow-x: auto !important;          /* allow horizontal scrolling on very narrow devices */
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    padding: 0 10px;
  }

  /* Allow each column to shrink below previous min-widths (min-width:0 is important) */
  .site-info > .footer_left,
  .site-info > .footer_center,
  .site-info > .footer_right {
    flex: 0 0 33.3333% !important;        /* occupy one third of the visible row */
    max-width: 33.3333% !important;
    min-width: 0 !important;              /* important: allows flex item to shrink in Firefox/Chrome */
    box-sizing: border-box;
  }

  /* Ensure iframe/map scales to column width */
  .footer_right iframe {
    width: 80% !important;
    height: 145px !important;             /* smaller height to fit mobile better */
    min-width: 0 !important;
    display: block;
    margin-right: 10px;
    margin-top: 15px;
  }

  /* Reduce paddings/typography to make columns fit */
  .footer_left .footer_heading,
  .footer_center .footer_heading {
    font-size: 14px !important;
    margin-bottom: 8px !important;
  }
  .footer_left .footer_links li a,
  .footer_center .footer_contact_item span {
    font-size: 12px !important;
  }

  /* Optional visual niceties */
  .site-info::-webkit-scrollbar { height: 8px; }
  .site-info::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 6px; }
}

/* Extra small phones: preserve three columns but make text smaller and map shorter */
@media (max-width: 520px) {
  .footer_right iframe { height: 120px !important; margin-right: 10px !important;}
  .footer_left .footer_heading,
  .footer_center .footer_heading { font-size: 13px !important; }
  .footer_left .footer_links li a,
  .footer_center .footer_contact_item span { font-size: 11px !important; }
}

@media (max-width: 980px) {
  /* left column: 20px odsazení vlevo */
  .site-info > .footer_left {
    margin-left: 40px !important;
  }

  /* center column: žádný odsazení (přepsat případné dřívější hodnoty) */
  .site-info > .footer_center {
    margin-left: -40px !important;
    margin-right: 0 !important;
    padding-left: 0 !important; /* pokud by padding posouval obsah */
  }
}

/* Ujistit se i na velmi malých obrazovkách */
@media (max-width: 520px) {
  .site-info > .footer_left {
    margin-left: 40px !important;
  }
  .site-info > .footer_center {
    margin-left: -40px !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
  }
}

@media (max-width: 230px) {
  /* úplně skrýt textový blok v hlavičce pro extrémně malé obrazovky */
  .header_cont_text,
  .header_cont_text * {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  /* zajistit, že nadřazený header nezabírá zbytečnou vertikální výšku */
  .header_cont {
    min-height: 0 !important;
    height: auto !important;
    padding-bottom: 0 !important;
  }
}

/* ===== Footer: two-column quicklinks (4+4) + reduced footer height ===== */

/* zkrátit vertikální prostor v footeru */
footer {
  padding: 20px 20px 20px !important;
  min-height: 0 !important;
  box-sizing: border-box;
}

/* jemné doladění kontejneru */
.site-info {
  gap: 10px;
  align-items: flex-start;
  padding: 0 18px;
}

/* Quick links do dvou vertikálních sloupců (column flow => 4+4 pokud je 8 položek) */
.footer_left .footer_links {
  -webkit-column-count: 2;
  -moz-column-count: 2;
  column-count: 2;
  -webkit-column-gap: 8px;
  -moz-column-gap: 8px;
  column-gap: 8px !important;
  /* zabrání rozdělení jedné položky přes sloupce */
  -webkit-column-break-inside: avoid;
  -moz-column-break-inside: avoid;
  column-break-inside: avoid;
  margin: 0;
  padding: 0;
}

/* menší vertikální mezery v položkách, aby to šetřilo místo */
.footer_left .footer_links li {
  display: block;
  margin: 0 0 6px 0;
  padding: 0;
  break-inside: avoid;
}

/* odkazy jako plné bloky pro lepší klikatelnost */
.footer_left .footer_links li a {
  display: block;
  padding: 6px 2px;
  font-size: 12px;
  line-height: 1.25;
}

/* zmenšit mapu, aby footer byl kompaktnější */
.footer_right iframe {
  width: 100%;
  max-width: 360px; /* omezí šířku mapy v desktopu */
  height: 150px !important; /* menší výška */
  box-sizing: border-box;
  margin: 0 auto;
}

/* pokud chcete, aby levý sloupec nepřesahoval určitý limit šířky */
.site-info > .footer_left {
  max-width: 320px;
}

/* RESPONSIVE: na malé obrazovky vrátíme quicklinks do 1 sloupce */
@media (max-width: 640px) {
  .footer_left .footer_links {
    -webkit-column-count: 1 !important;
    -moz-column-count: 1 !important;
    column-count: 1 !important;
    column-gap: 0 !important;
  }

  /* ještě kratší footer na velmi malých obrazovkách */
  footer {
    padding: 12px 0 10px !important;
  }

  .footer_right iframe {
    height: 120px !important;
    max-width: 100% !important;
  }
}

/* Small emoji icons for footer headings (quick + contact) */
.footer_left .footer_heading::before,
.footer_center .footer_heading::before {
  display: inline-block;
  width: 20px;
  height: 20px;
  line-height: 20px;
  text-align: center;
  margin-right: 8px;
  vertical-align: middle;
  font-size: 18px; /* icon size */
}

/* different emoji per column */
.footer_left .footer_heading::before { content: "🔗"; }   /* Quicklinks */
.footer_center .footer_heading::before { content: "📞"; } /* Contact */

.footer_left .footer_links {
  list-style: none; /* původní výchozí zrušené, necháme vlastní pseudo-bullets */
  margin: 0;
  padding: 0;
}

.footer_left .footer_links li {
  position: relative;
  padding-left: 18px;   /* prostor pro bullet */
  margin-bottom: 6px;   /* vertikální mezera mezi položkami */
  break-inside: avoid;  /* zabrání zlomení položky mezi sloupci */
}

/* bílý kulatý bullet */
.footer_left .footer_links li::before {
  content: "\2022";            /* Unicode bullet */
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: #ffffff;              /* barva bulletu — upravte dle potřeby */
  font-size: 14px;             /* velikost bulletu */
  line-height: 1;
  opacity: 0.95;
}

/* Styling pro nové inline SVG ikony v contact sekci */
.footer_center .footer_contact_item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.footer_center .footer_contact_item .footer_icon,
.footer_center .footer_contact_item svg.footer_icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  display: block;
  color: #ffffff;           /* hlavní barva ikony (používá currentColor) */
  margin-top: 3px;          /* trochu doladí vertikální vyrovnání s textem */
}

/* zvětšení a jiná barva při hoveru nad e‑mailem / odkazem */
.footer_center .footer_contact_item a:hover,
.footer_center .footer_contact_item:hover {
  color: #ffd6d6; /* lehký highlight textu */
}

.footer_center .footer_contact_item:hover .footer_icon {
  color: #ffd6d6; /* ikona také ztmavne / zesvětí podle potřeby */
}

/* menší zařízení: lehce zmenšit ikony */
@media (max-width: 640px) {
  .footer_center .footer_contact_item .footer_icon { display: none; width: 18px; height: 18px; flex: 0 0 18px; margin-top: 2px; }
}

/* ===== Actual News (right column) redesign ===== */
.content-right-home {
  border: 2px solid #b12a09;
  background: linear-gradient(135deg,#fff,#f8f5ec 42%, #f2e2da);
  padding: 18px 18px 26px;
  box-sizing: border-box;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
}

.actual_news_heading {
  font-family: 'My', Tahoma, sans-serif;
  font-size: 24px;
  letter-spacing: .5px;
  margin: 0 0 14px;
  padding-bottom: 6px;
  border-bottom: 2px solid #d4532a;
  color: #c13504;
  position: relative;
}

.actual_news_heading::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  height: 2px; width: 40%;
 /* background: linear-gradient(90deg,#c13504,#ffb093);*/
  border-radius: 2px;
}

/* Card base */
.news_card {
  display: flex;
  flex-direction: row;
  gap: 14px;
  background: #ffffff;
  border: 1px solid #e4d7d2;
  border-radius: 12px;
  padding: 12px 14px;
  margin: 0 0 14px;
  box-shadow: 0 4px 10px -3px rgba(0,0,0,.08);
  position: relative;
  isolation: isolate;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease, background .35s;
  opacity: 0;               /* for entrance animation */
  transform: translateY(18px);
  will-change: transform;
}

.news_card:hover {
  transform: translateY(0) scale(1.02);
  box-shadow: 0 8px 22px -6px rgba(0,0,0,.18);
  background: #fffdf9;
}

.news_card:focus-within {
  outline: 3px solid rgba(193,53,4,.35);
  outline-offset: 3px;
}

/* Media */
.news_card_media {
  flex: 0 0 180px;
  max-width: 180px;
  position: relative;
}

.news_card_img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
  transition: transform .5s ease, filter .35s ease;
}

.news_card:hover .news_card_img {
  transform: scale(1.06);
  filter: brightness(1.08) saturate(1.1);
}

/* Fallback placeholder */
.news_card_img.placeholder {
  background: repeating-linear-gradient(45deg,#ddd,#ddd 6px,#eee 6px,#eee 12px);
  height: 120px;
}

/* Body */
.news_card_body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 6px;
}

.news_card_title {
  font-size: 17px;
  line-height: 1.25;
  margin: 0;
}

.news_card_title a {
  color: #a62707;
  text-decoration: none;
  transition: color .25s ease;
}

.news_card_title a:hover {
  color: #d44616;
}

.news_card_excerpt {
  font-size: 13px;
  line-height: 1.45;
  color: #444;
  margin: 0;
  flex-grow: 1;
  overflow: hidden;
}

.news_card_more {
  align-self: flex-start;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .3px;
  text-transform: uppercase;
  color: #c13504;
  text-decoration: none;
  background: linear-gradient(90deg,#c13504,#f48554);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  padding-right: 4px;
  transition: transform .25s ease;
}

.news_card_more::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 0%; height: 2px;
  background: #c13504;
  transition: width .35s cubic-bezier(.2,.9,.2,1);
  border-radius: 2px;
}

.news_card:hover .news_card_more::after {
  width: 70%;
}

.news_card_more:hover {
  transform: translateX(4px);
}

/* Entrance animation (stagger via nth-child) */
@keyframes cardFadeUp {
  0% { opacity:0; transform: translateY(18px); }
  100% { opacity:1; transform: translateY(0); }
}

.content-right-home .news_card:nth-child(2) { animation: cardFadeUp .55s .05s forwards; }
.content-right-home .news_card:nth-child(3) { animation: cardFadeUp .55s .10s forwards; }
.content-right-home .news_card:nth-child(4) { animation: cardFadeUp .55s .15s forwards; }
.content-right-home .news_card:nth-child(5) { animation: cardFadeUp .55s .20s forwards; }
.content-right-home .news_card:nth-child(6) { animation: cardFadeUp .55s .25s forwards; }
.content-right-home .news_card:nth-child(n+7) { animation: cardFadeUp .55s .30s forwards; }

/* Responsive tweaks */
@media (max-width: 1100px) {
  .news_card { flex-direction: row; }
  .news_card_media { flex: 0 0 150px; max-width:150px; }
  .news_card_img, .news_card_img.placeholder { height: 110px; }
}

@media (max-width: 820px) {
  .content-right-home { padding: 14px 14px 22px; }
  .news_card { flex-direction: column; }
  .news_card_media { flex: 0 0 auto; max-width: 100%; }
  .news_card_img, .news_card_img.placeholder { width:100%; height:160px; }
}

@media (prefers-reduced-motion: reduce) {
  .news_card,
  .content-right-home .news_card:nth-child(n+2) {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .news_card:hover .news_card_img { transform: none; filter: none; }
  .news_card_more:hover { transform: none; }
}

/* Actual News container: pevná výška + vlastní scroll */
.content-right-home {
  max-height: 1000px;           /* upravte podle potřeby */
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  border: 2px solid #b12a09;
   background: #f2e2da;
  padding: 18px 18px 26px;
  box-sizing: border-box;
  border-radius: 14px;
  position: relative;
  margin-bottom: 50px !important;
}

.content-right-home::-webkit-scrollbar {
  width: 10px;
}
.content-right-home::-webkit-scrollbar-track {
  background: #eee;
  border-radius: 6px;
}
.content-right-home::-webkit-scrollbar-thumb {
  background: #c13504;
  border-radius: 6px;
}

/* Základní karta – odstraníme počáteční opacity 0 */
.news_card {
  display: flex;
  flex-direction: row;
  gap: 14px;
  background: #ffffff;
  border: 1px solid #e4d7d2;
  border-radius: 12px;
  padding: 12px 14px;
  margin: 0 0 14px;
  box-shadow: 0 4px 10px -3px rgba(0,0,0,.08);
  position: relative;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease, background .35s;
  opacity: 1;                  /* viditelné hned */
  transform: none;
}

.news_card:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 22px -6px rgba(0,0,0,.18);
  background: #fffdf9;
}

/* Media */
.news_card_media {
  flex: 0 0 180px;
  max-width: 180px;
  margin-top: 10px;
}

.news_card_img {
  width: 100%;
  height: 155px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  box-shadow: 0 4px 8px rgba(0,0,0,.15);
  transition: transform .5s ease, filter .35s ease;
}

.news_card:hover .news_card_img {
  transform: scale(1.06);
  filter: brightness(1.08) saturate(1.1);
}

/* Fallback */
.news_card_img.placeholder {
  background: repeating-linear-gradient(45deg,#ddd,#ddd 6px,#eee 6px,#eee 12px);
  height: 120px;
  border-radius: 10px;
}

/* Body */
.news_card_body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.news_card_title {
  font-size: 15px;
  line-height: 1.25;
  margin: 0;
}

.news_card_title a {
  color: #a62707;
  text-decoration: none;
  transition: color .25s ease;
}
.news_card_title a:hover { color: #d44616; }

.news_card_excerpt {
  font-size: 13px;
  line-height: 1.45;
  color: #444;
  margin: 0;
  flex-grow: 1;
  overflow: hidden;
}

.news_card_more {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .3px;
  text-transform: uppercase;
  color: #c13504;
  text-decoration: none;
  position: relative;
  padding-right: 4px;
  transition: transform .25s ease;
}
.news_card_more:hover { transform: translateX(4px); }

/* Heading */
.actual_news_heading {
  font-family: 'My', Tahoma, sans-serif;
  font-size: 24px;
  margin: 0 0 14px;
  padding-bottom: 6px;
  border-bottom: 2px solid #d4532a;
  color: #c13504;
}

/* Responsive */
@media (max-width: 820px) {
  .news_card { flex-direction: column; }
  .news_card_media { flex: 0 0 auto; max-width: 100%; }
  .news_card_img, .news_card_img.placeholder { width: 100%; height: 160px; }
}

/* Make Actual News heading sticky inside the right column */

.content-right-home {
  max-height: 834px !important;        /* upravte podle potřeby (výška boxu, ve které chcete vnitřní scroll) */
  overflow-y: auto;         /* povolit vertikální scroll */
  overscroll-behavior: contain;
  position: relative;       /* potřebné pro některé prohlížeče jako kontext */
  padding-top: 0;           /* náznak: nadpis je uvnitř kontejneru */
  box-sizing: border-box;
}

/* Sticky heading inside the scroll container */
.content-right-home { position: relative; } /* musí být scroll kontejner */
.content-right-home .actual_news_heading {
  position: sticky;
  top: 0;
  left: 0;                 /* velmi důležité - zajistí, že element sahá na levou hranu */
  right: 0;                /* i pravá hrana => zabrání mezeře u pravého okraje */
  width: auto;             /* necháme prohlížeč počítat šířku s left/right */
  z-index: 15;
  background: inherit;     /* dědí gradient z rodiče */
  background-clip: padding-box;
  background-repeat: no-repeat;
  background-position: 0 0;
  padding: 10px 12px;
  margin: 0 0 12px;
/*  border-bottom: 1px solid rgba(193,54,4,0.12);
  box-shadow: 0 6px 12px -10px rgba(0,0,0,0.12);*/
}

/* Pokud používáte 'box' s vnitřním gradientem, zajistíme, že pozadí nadpisu přesně ladí */
.content-right-home .actual_news_heading,
.content-right-home .actual_news_heading::after {
  background-clip: padding-box;
}

/* Mobile: vypnout sticky pod určitou šířkou (pokud chcete), protože na extrémně malých zařízeních může překážet */
@media (max-width: 640px) {
  .content-right-home {
    max-height: none;
    overflow-y: visible;
  }
  .content-right-home .actual_news_heading {
    position: static;
    box-shadow: none;
    margin-bottom: 10px;
  }
}

/* Robust: paint single shared background and make heading visually identical */
.content-right-home {
  position: relative;
  /* keep existing gradient on container */
}
.content-right-home::before{
  content:"";
  position:absolute;
  inset:0;
  background: #f2e2da;
  z-index:0;
}
.content-right-home .actual_news_heading{
  position:sticky;
  top:0;
  z-index:10;          /* above gradient pseudo-element but below cards if needed */
  background: #f2e2da; /* truly transparent so underlying gradient shows through */
}

/* Layout: left 65% / right 35% for .content_cont.two-columns (responsive) */

.content_cont.two-columns {
  display: flex;
  flex-direction: row;
  gap: 60px;
  align-items: flex-start;
  box-sizing: border-box;
}

/* Levý box = 65% (větší) */
.content_cont.two-columns > .content_left_home {
  flex: 0 0 60% !important;
  max-width: 60% !important;
  width: 65% !important;
  box-sizing: border-box;
  float: none !important;
  margin: 0 !important;
}

/* Pravý box = 35% (menší) */
.content_cont.two-columns > .content-right-home {
  flex: 0 0 35% !important;
  max-width: 35% !important;
  width: 35% !important;
  box-sizing: border-box;
  float: none !important;
  margin-bottom: 20px !important;
}

/* Pokud jste dříve použil transform/translate na .content-right-home (posun nahoru),
   zachováme to — transform neovlivňuje sizing flex boxu. */

/* Responsivní: pod 980px přepnout na sloupec (full-width) */
@media (max-width: 980px) {
  .content_cont.two-columns {
    flex-direction: column;
    gap: 12px;
    padding: 0 12px;
  }

  /* pokud jste používal posun pravého boxu, vypneme jej na mobilech:
     (pokud chcete zachovat, odstraňte následující pravidlo) */
  .content-right-home {
    transform: none !important;
    position: static !important;
  }

  /* obnovit případné paddingy/mezery u levého boxu, které jsme přidali pro desktop */
  .content_left_home {
    padding-bottom: initial !important;
  }
}

/* Drobná ochrana: zajistit, že vnější kontejner má box-sizing */
.content_cont.two-columns,
.content_left_home,
.content-right-home {
  box-sizing: border-box !important;
}

/* ========================================
   Google Scholar Publications Styling
   ======================================== */

.publications_heading {
  background: linear-gradient(135deg, #c13604 0%, #d94e1f 50%, #e6673a 100%);
  color: white;
  padding: 18px 20px;
  border-radius: 12px 12px 0 0;
  margin: 0 0 0 0;
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
  box-shadow: 0 2px 8px rgba(193,54,4,0.3);
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 3px solid #a02d03;
}

.publications-list {
  background: linear-gradient(135deg, #fff 0%, #f8f5ec 42%, #f2e2da 100%);
  padding: 20px;
  border-radius: 7px 7px 7px 7px;
  border: 2px solid #c13604;
 /* max-height: 1000px;*/
  overflow-y: auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.scholar-publication {
  background: white;
  border-left: 4px solid #c13604;
  padding: 20px;
  margin-bottom: 18px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.scholar-publication::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: linear-gradient(180deg, #d94e1f, #c13604);
  transition: height 0.3s ease;
}

.scholar-publication:hover {
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  transform: translateX(4px);
  border-left-color: #d94e1f;
}

.scholar-publication:hover::before {
  height: 100%;
}

.scholar-publication:last-child {
  margin-bottom: 0;
}

.pub-title {
  font-size: 18px;
  font-weight: bold;
  color: #2c3e50;
  margin-bottom: 12px;
  line-height: 1.5;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.pub-authors {
  color: #555;
  font-size: 14px;
  margin-bottom: 10px;
  line-height: 1.4;
  font-style: italic;
}

.pub-year {
  margin-bottom: 8px;
}

.year-badge {
  display: inline-block;
  background: linear-gradient(135deg, #c13604, #d94e1f);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(193,54,4,0.3);
}

.pub-citations {
  font-size: 13px;
  color: #28a745;
  font-weight: 600;
  margin-top: 8px;
  padding: 6px 10px;
  background: rgba(40, 167, 69, 0.08);
  border-radius: 6px;
  display: inline-block;
}

.pub-citations strong {
  color: #1e7e34;
  font-size: 14px;
}

.no-publications {
  background: linear-gradient(135deg, #fff 0%, #f8f5ec 42%, #f2e2da 100%);
  padding: 40px 20px;
  text-align: center;
  color: #666;
  font-size: 15px;
  border-radius: 0 0 12px 12px;
  border: 2px solid #c13604;
  border-top: none;
  font-style: italic;
}

/* Scrollbar styling pro publikace */
.publications-list::-webkit-scrollbar {
  width: 10px;
}

.publications-list::-webkit-scrollbar-track {
  background: rgba(193,54,4,0.08);
  border-radius: 10px;
}

.publications-list::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #c13604, #d94e1f);
  border-radius: 10px;
  border: 2px solid rgba(255,255,255,0.3);
}

.publications-list::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #a02d03, #c13604);
}

/* Responsive design */
@media (max-width: 980px) {
  .publications_heading {
    font-size: 20px;
    padding: 15px;
    position: relative;
  }
  
  .publications-list {
    max-height: none;
    overflow-y: visible;
  }
  
  .scholar-publication {
    padding: 15px;
  }
  
  .pub-title {
    font-size: 16px;
  }
}

@media (max-width: 640px) {
  .publications_heading {
    font-size: 18px;
    padding: 12px;
  }
  
  .scholar-publication {
    padding: 12px;
    margin-bottom: 12px;
  }
  
  .pub-title {
    font-size: 15px;
  }
  
  .pub-authors {
    font-size: 13px;
  }
}

/* Compact Google Scholar list (append this to the end of style.css) */

.compact-publications {
  list-style: none;
  margin: 0;
  padding: 10px 8px;
  display: block;
  max-height: 420px;
  overflow-y: auto;
  gap: 6px;
  border: 2px solid #e6d8cf;
  background: linear-gradient(180deg,#fff,#fbf7f2);
  border-radius: 8px;
}

/* each item as a tight row */
.compact-publications .compact-pub {
  padding: 8px 10px;
  margin: 0;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  line-height: 1.25;
}

/* Title (link or span) */
.compact-pub .compact-pub-title {
  font-weight: 600;
  color: #2b3b44;
  text-decoration: none;
  display: block;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Meta row: authors, year, citations */
.compact-pub .compact-pub-meta {
  color: #6b6b6b;
  font-size: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

/* Authors shortened appearance */
.compact-pub .compact-pub-authors {
  font-style: normal;
  max-width: calc(100% - 120px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Year small badge */
.compact-pub .compact-pub-year {
  background: #f1f1f1;
  color: #333;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 11px;
}

/* Citations */
.compact-pub .compact-pub-cited {
  color: #2f8f2f;
  font-weight: 700;
  font-size: 12px;
}

/* remove final border on last child */
.compact-publications .compact-pub:last-child {
  border-bottom: none;
}

/* smaller, no-scroll variant for mobile */
@media (max-width: 980px) {
  .compact-publications {
    max-height: none;
    overflow: visible;
    padding: 8px;
  }
  .compact-pub .compact-pub-title { font-size: 13px; }
  .compact-pub { padding: 8px 6px; font-size: 13px; }
}

/* compact list - small source label */
.compact-pub .compact-pub-meta { position: relative; gap: 8px; }
.compact-pub .compact-pub-source {
  margin-left: 6px;
  background: #f3f3f3;
  color: #444;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  opacity: 0.9;
}

/* ========================================
   Compact Publication Cards - Updated
   ======================================== */

.publications_heading {
  background: linear-gradient(135deg, #c13604 0%, #d94e1f 50%, #e6673a 100%);
  color: white;
  padding: 14px 18px;
  border-radius: 8px 8px 0 0;
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0,0,0,0.2);
  box-shadow: 0 2px 6px rgba(193,54,4,0.25);
  /* REMOVED: position: sticky */
  border-bottom: 2px solid #a02d03;
}

.pub-list {
  list-style: none;
  margin: 0;
  padding: 12px;
  background: linear-gradient(135deg, #fff 0%, #faf8f5 50%, #f5f0eb 100%);
  border-top: none;
  border-radius: 0 0 8px 8px;
  max-height: 488px;
  overflow-y: auto;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.pub-item {
  background: white;
  border: 1px solid #e8e3de;
  border-left: 3px solid #c13604;
  padding: 12px 15px;
  margin-bottom: 10px;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  transition: all 0.25s ease;
  position: relative;
}

.pub-item:hover {
  border-left-color: #d94e1f;
  box-shadow: 0 3px 10px rgba(193,54,4,0.15);
  transform: translateX(3px);
  background: #fefdfb;
}

.pub-item:last-child {
  margin-bottom: 0;
}

.pub-title {
  font-size: 14px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 6px;
  line-height: 1.4;
  text-decoration: none;
  display: block;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  transition: color 0.2s ease;
}

.pub-title:hover {
  color: #c13604;
}

.pub-authors {
  color: #666;
  font-size: 12px;
  line-height: 1.35;
  font-style: italic;
  margin: 0;
}

.no-publications {
  background: white;
  padding: 30px 20px;
  text-align: center;
  color: #888;
  font-size: 14px;
  border-radius: 0 0 8px 8px;
  border: 2px solid #c13604;
  border-top: none;
  font-style: italic;
}

/* Scrollbar pro seznam publikací */
.pub-list::-webkit-scrollbar {
  width: 8px;
}

.pub-list::-webkit-scrollbar-track {
  background: rgba(193,54,4,0.08);
  border-radius: 10px;
}

.pub-list::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #c13604, #d94e1f);
  border-radius: 10px;
}

.pub-list::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #a02d03, #c13604);
}

/* Responsive */
@media (max-width: 980px) {
  .publications_heading {
    font-size: 16px;
    padding: 12px 15px;
  }
  
  .pub-list {
    max-height: none;
    overflow-y: visible;
  }
  
  .pub-item {
    padding: 10px 12px;
  }
  
  .pub-title {
    font-size: 13px;
  }
  
  .pub-authors {
    font-size: 11px;
  }
}

@media (max-width: 640px) {
  .publications_heading {
    font-size: 15px;
    padding: 10px 12px;
  }
  
  .pub-item {
    padding: 8px 10px;
    margin-bottom: 8px;
  }
  
  .pub-title {
    font-size: 12px;
  }
  
  .pub-authors {
    font-size: 11px;
  }
}

/* === Override: remove double scrollbar and add clickable gradient cards === */

/* Make left container auto-height and no internal scrollbar */
.content_left_home {
  height: auto !important;
  overflow-y: visible !important;
 /* padding: 10px; /* zachovat odsazení */
  box-sizing: border-box;
}

/* pub-list keeps scrolling */
.pub-list {
  list-style: none;
  margin: 0;
  padding: 12px;
  background: linear-gradient(135deg, #fff 0%, #b1b0ae 45%, #d2cdc8 100%);
  border-top: none;
  border-radius: 0 0 8px 8px;
  max-height: 520px;
  overflow-y: auto;
  box-shadow: 0 3px 10px rgba(0,0,0,0.06);
}

/* Card with subtle gradient and left accent */
.pub-item {
  background: linear-gradient(180deg, #ffffff 0%, #fffdf9 60%);
  border: 1px solid #eee6de;
  border-left: 3px solid rgba(193,54,4,0.95);
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  transition: transform .18s ease, box-shadow .18s ease, border-left-color .18s ease;
}

/* Make the whole card behave as clickable link element */
.pub-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  padding: 0; /* padding is on li */
}

/* Hover effect on card (when link exists) */
.pub-card-link:hover .pub-item,
.pub-item:hover {
  transform: translateX(3px);
  box-shadow: 0 6px 18px rgba(160,45,3,0.12);
}

/* Slight color shift on hover */
.pub-item:hover {
  border-left-color: #d94e1f;
  background: linear-gradient(180deg, #fffaf6 0%, #fffefc 100%);
}

/* Title + authors */
.pub-title {
  font-size: 14px;
  font-weight: 600;
  color: #233543;
  margin-bottom: 6px;
  line-height: 1.35;
}

.pub-authors {
  color: #666;
  font-size: 12px;
  font-style: italic;
  margin: 0;
}

/* Make anchor fill the li (for li without direct padding loss) */
.pub-item > .pub-card-link { display: block; padding: 0; }

/* Tweak scrollbar look (only for pub-list) */
.pub-list::-webkit-scrollbar { width: 8px; }
.pub-list::-webkit-scrollbar-track { background: rgba(193,54,4,0.06); border-radius: 10px; }
.pub-list::-webkit-scrollbar-thumb { background: linear-gradient(180deg,#c13604,#d94e1f); border-radius: 10px; }

/* Responsive adjustments */
@media (max-width: 980px) {
  .content_left_home { height:auto !important; overflow-y: visible !important; }
  .pub-list { max-height: none; overflow-y: visible; }
  .pub-item { padding: 10px; margin-bottom: 8px; border-radius:6px; }
  .pub-title { font-size: 13px; }
  .pub-authors { font-size: 11px; }
}

/* === REPRESENTATIVE PUBLICATIONS DESIGN === */

/* Container styling */
.content_left_home {
 /* height: 300px !important;*/
  overflow-y: visible !important;
  padding-bottom: 0px !important;
  box-sizing: border-box;
  background: transparent;
  border: none;
  top:-10px !important;
}

/* Heading with elegant gradient */
.publications_heading {
  background: #f2e2da;
  color: rgb(158, 0, 0);
  border-radius: 16px 16px 0 0;
  margin: 0;
  height: 20px;
   font-family: 'My', Tahoma, sans-serif !important;
  font-size: 24px !important;
  font-weight: 400;
  text-align: left;
 /* text-shadow: 0 2px 4px rgba(0,0,0,0.25);*/
 /* box-shadow: 0 4px 12px rgba(139,0,0,0.3); */
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  border: 2px solid #c13604;
}

.publications_heading::before {
  content: '📚';
  margin-right: 10px;
  font-size: 22px;
  vertical-align: middle;
}

.publications_heading::after {
  content: '';
  position: absolute;
  top: 0;
  right: -50px;
  width: 150px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1));
  transform: skewX(-20deg);
}

/* Publications list container */
.pub-list {
  list-style: none;
  margin: 0;
  padding-bottom: 20px !important;
  background: #e7e7e7;
  border-top: none;
  border-radius: 0 0 10px 10px;
  max-height: 320px;
  overflow-y: auto;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  
}


/* Individual publication card */
.pub-item {
  background: white;
  border: 1px solid #999999;
  border-left: 3px solid #c13604;
  padding: 0;
  margin-bottom: 10px;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.08), 0 1px 3px rgba(193,54,4,0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  /*overflow: scroll;*/
  position: relative;
  margin-left: -10px !important;
}

/* Decorative corner element */
.pub-item::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 60px;
  pointer-events: none;
}

/* Academic icon in corner */
.pub-item::after {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 16px;
  opacity: 0.15;
  pointer-events: none;
}

/* Clickable link area */
.pub-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  padding: 16px 20px;
  cursor: pointer;
  position: relative;
  z-index: 1;
}

.pub-card-link.no-link {
  cursor: default;
}

/* Hover effect */
.pub-item:hover {
  transform: translateX(3px) translateY(-1px);
  box-shadow: 0 8px 24px rgba(193,54,4,0.25), 0 4px 12px rgba(0,0,0,0.15);
  border-left-color: #d94e1f;
  border-left-width: 4px;
  background: linear-gradient(135deg, #fffffe 0%, #fffaf5 50%, #ffede0 100%);
}

.pub-item:hover::after {
  opacity: 0.3;
  font-size: 18px;
  transition: all 0.3s ease;
}

/* Title styling */
.pub-title {
  font-size: 12px;
  font-weight: 700;
  color: #1a1a1a;
  margin-top: 4px;
  margin-left: 10px;
  margin-right: 10px;
  line-height: 1.0;
  display: block;
  font-family: 'Georgia', 'Times New Roman', serif;
  transition: color 0.2s ease;
  letter-spacing: 0.2px;

}

.pub-item:hover .pub-title {
  color: #c13604;
}

/* Authors styling */
.pub-authors {
  color: #555;
  font-size: 0.8rem !important;
  font-style: normal;
  margin-left: 15px;
  margin-bottom: 10px;
  line-height: 1.0;
  font-family: 'Palatino', 'Book Antiqua', serif;
  padding-left: 24px;
  position: relative;
}

.pub-authors::before {
  content: '✍️';
  position: absolute;
  left: 5px;
  font-size: 12px;
  opacity: 1;
  margin-right: 6px;
}

.pub-item:last-child {
  margin-bottom: 0;
}

/* No publications message */
.no-publications {
 /* background: linear-gradient(135deg, #ffffff 0%, #f9f9f9 100%);*/
  padding: 40px 20px;
  text-align: center;
  color: #888;
  font-size: 15px;
  border-radius: 0 0 10px 10px;
  border: 2px solid #c13604;
  border-top: none;
  font-style: italic;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

/* Custom scrollbar */
.pub-list::-webkit-scrollbar {
  width: 10px;
}

.pub-list::-webkit-scrollbar-track {
 /* background: linear-gradient(to bottom, #f0e8e0, #e8ddd3);*/
  border-radius: 10px;
  border: 1px solid #d9cec1;
}

.pub-list::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #c13604 0%, #d94e1f 50%, #e67350 100%);
  border-radius: 10px;
  border: 2px solid #f5f5f5;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.3);
}

.pub-list::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #a02d03 0%, #c13604 50%, #d94e1f 100%);
}

/* Alternating subtle pattern for even items */
.pub-item:nth-child(even) {
  background: white;
}

/* Responsive design */
@media (max-width: 980px) {
  .content_left_home {
    height: auto !important;
    overflow-y: visible !important;
  }
  
  .publications_heading {
    font-size: 17px;
    padding: 14px 20px;
  }
  
  .pub-list {
    max-height: none;
    overflow-y: visible;
    padding: 14px;
  }
  
  .pub-card-link {
    padding: 14px 16px;
  }
  
  .pub-item {
    margin-bottom: 12px;
  }
  
  .pub-title {
    font-size: 14px;
  }
  
  .pub-authors {
    font-size: 12px;
  }
}

@media (max-width: 640px) {
  .publications_heading {
    font-size: 16px;
    padding: 12px 16px;
  }
  
  .pub-card-link {
    padding: 12px 14px;
  }
  
  .pub-title {
    font-size: 12px;
  }
  
  .pub-authors {
    font-size: 12px;
  /*  padding-left: 16px;*/
  }
  
  .pub-item::after {
    font-size: 14px;
  }
}

/* Make clickable cards more obvious */
.pub-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  padding: 16px 20px;
  cursor: pointer;
  position: relative;
  z-index: 1;
  transition: background 0.2s ease;
}

.pub-card-link:hover {
  background: rgba(193,54,4,0.02);
}

/* Add subtle indicator that it's clickable */
.pub-item:hover::after {
  content: '↗';
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 18px;
  color: #c13604;
  opacity: 0.6;
}

/* === FIX: Ensure clickable links work === */

/* Decorative elements must not block clicks */
.pub-item::before,
.pub-item::after {
  pointer-events: none !important;
  z-index: 0 !important;
}

/* Ensure link is on top and clickable */
.pub-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  padding: 16px 20px;
  cursor: pointer;
  position: relative;
  z-index: 10 !important;
  pointer-events: auto !important;
}

.pub-card-link.no-link {
  cursor: default;
  pointer-events: none;
}

/* Make sure all children of link are clickable */
.pub-card-link * {
  pointer-events: none;
}

/* Debug: Add visual indicator on hover */
.pub-card-link:hover {
  outline: 1px dashed rgba(193,54,4,0.3);
}

.pub-meta-row {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  margin-top: 0px;
  flex-wrap: wrap;
}
.pub-authors {
  display: inline;
  margin: 0;
  color: #333;
}
.pub-reference {
  display: inline;
  margin-left: 5px;
  font-size: 0.6rem;
  font-style: italic;
  font-weight: 400;
  color: #222;
  white-space: break-spaces;
}

/* Publications list: simple bullets, hover highlight, no underline */
.pub-list {
  list-style: disc outside;
  padding-left: 22px;
  margin: 0 0 1.2em 0;
}

.pub-item {
  padding: 6px 8px;
  margin: 0;
  border-radius: 4px;
  transition: background-color 180ms ease, transform 120ms ease;
  line-height: 1.35;
}

/* highlight on hover (whole li) without underlining text */
.pub-item:hover {
  background-color: #f3f8ff;
  transform: translateY(-1px);
}

/* Title link styling: no underline, clear color */
.pub-link {
  text-decoration: none;
  color: inherit;
  font-weight: 600;
}
.pub-link:hover,
.pub-link:focus {
  text-decoration: none;
  color: inherit;
  outline: none;
}

/* Authors small line */
.pub-authors {
  display: block;
  font-size: 0.8rem;
  color: #444;
  margin-top: 2px;
}

/* Reference row with icon */
.pub-reference-row {
  display: flex;
  gap: 4px;
  align-items: center;
  margin-top: 4px;
}
.pub-ref-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  flex: 0 0 18px;
  color: #16a085; /* default icon color (teal) */
}
.pub-ref-icon.journal { color: #16a085; } /* you can change by class */
.pub-reference-text {
  font-weight: 700;
  font-size: 0.75em;
  color: #222;
}

/* Keep bullets visible and spacing consistent on small screens */
@media (max-width: 720px) {
  .pub-list { padding-left: 18px; }
  .pub-item { padding: 8px 6px; }
}

/* Normalize left/right home columns — force same top alignment */
.content_cont.two-columns > .content_left_home,
.content_cont.two-columns > .content-right-home {
  align-self: flex-start;
  margin-top: 20px !important;
  padding-top: 0 !important;
  position: relative !important;
  top: 0 !important;
}

/* Remove accidental negative top offset on left column */
.content_left_home { top: 0 !important; }

/* Make paddings consistent (adjust value if you prefer more space) */
.content_left_home,
.content-right-home {
  padding-top: 16px !important;
  box-sizing: border-box !important;
}

@media (max-width: 1000px) {

  /* ensure parent uses vertical flow and center children */
  .content_cont.two-columns {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 16px !important;
    padding: 12px !important;
  }

  /* stacked boxes: 90% width, 50% viewport height each */
  .content_cont.two-columns > .content_left_home,
  .content_cont.two-columns > .content-right-home {
    width: 95% !important;
    max-width: 95% !important;
    margin: 0 auto !important;
    height: 20vh !important;
    min-height: 300px !important;     /* safety for very small screens */
    box-sizing: border-box !important;
    overflow-y: auto !important;
    float: none !important;
    position: relative !important;
    top: 0 !important;
  }

  /* ensure heading inside keeps natural flow */
  .content_cont.two-columns > .content_left_home .publications_heading,
  .content_cont.two-columns > .content-right-home .actual_news_heading {
    position: sticky;
    top: -13px;
    z-index: 20;
    width: 100%;
    height: 50px !important;
    box-sizing: border-box;
  }

  /* small adjustment if there is a persistent extra bottom padding/scroll */
  .content_cont.two-columns > .content_left_home .pub-list,
  .content_cont.two-columns > .content-right-home .news_card_container,
  .content_cont.two-columns > .content-right-home .news_content {
    max-height: calc(85vh - 0px) !important; /* leave space for heading (approx) */
    overflow-y: auto !important;
    overflow-x: auto !important;
  }


  .content_left_home {
    height: 20vh !important;
    min-height: 180px; /* bezpečná minimální výška */
    overflow-y: auto !important;
    width: 95% !important;
    max-width: 95% !important;
  }

  .content-right-home {
    height: 30vh !important;
    min-height: 220px;
    overflow-y: auto !important;
    width: 80% !important;
    max-width: 80% !important;
  }
}

/* Facebook Carousel Container */
.facebook-carousel-container {
  width: 100%;
  max-width: 720px;
  margin: 0px auto;
  padding: 20px;
  box-sizing: border-box;
  background: #fff;
  border: 2px solid #c13604;
  border-radius: 10px;
  position:relative;
  top: -430px;
  left:-250px;
}

.facebook-heading {
  font-family: 'My', Tahoma, sans-serif;
  font-size: 24px;
  color: #c13504;
  margin: 0 0 20px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid #d4532a;
  text-align: center;
}

.fb-page {
  margin: 0 auto;
  display: block;
}

/* Mobile adjustments */
@media (max-width: 1000px) {
  .facebook-carousel-container {
    width: 95%;
    padding: 15px;
    margin: 20px auto;
  }
  
  .facebook-heading {
    font-size: 20px;
  }
}

.facebook-carousel-container {
  text-align: center;
  background-color: #f2e2da;
}

.facebook-carousel-container .fb-page,
.facebook-carousel-container .fb-page > span,
.facebook-carousel-container iframe[title^="fb:page"] {
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Override: stretch Facebook Page Plugin iframe to 650px */
.facebook-carousel-container .facebook-plugin-wrapper,
.facebook-carousel-container {
  box-sizing: border-box;
}

/* Force fb elements and iframe to 650px (will fallback to 100% on small screens) */
.facebook-carousel-container .facebook-plugin-wrapper .fb-page,
.facebook-carousel-container .facebook-plugin-wrapper .fb-page > span,
.facebook-carousel-container .facebook-plugin-wrapper .fb-page > span > iframe,
.facebook-carousel-container .facebook-plugin-wrapper iframe[title^="fb:page"] {
  background: #f2e2da;
  width: 850px !important;
  max-width: 100% !important;
  height: 420px !important;    /* upravte pokud chcete jinou výšku */
  box-sizing: border-box !important;
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Mobile fallback — zmenšit na 100% mobilních viewportů */
@media (max-width: 720px) {
  .facebook-carousel-container .facebook-plugin-wrapper .fb-page,
  .facebook-carousel-container .facebook-plugin-wrapper iframe[title^="fb:page"] {
    width: 100% !important;
    height: 360px !important;
  }
}

/* Facebook Page Plugin — center + fixed width 650px (override) */
.facebook-plugin-wrapper,
.content_left_home .facebook-plugin-wrapper,
.facebook-plugin-wrapper .fb-page {
  text-align: center;
}

.facebook-plugin-wrapper .fb-page,
.facebook-plugin-wrapper .fb-page > span {
  display: block;
  margin: 0 auto;
  width: 850px !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

/* Cílené přepsání iframe (včetně inline style) */
.facebook-plugin-wrapper .fb-page > span > iframe,
.facebook-plugin-wrapper .fb-page iframe[style] {
  display: block !important;
  margin: 0 auto !important;
  width: 450px !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

/* Facebook Page Plugin — pevná šířka 650px a centrační override */
.facebook-plugin-wrapper,
.content_left_home .facebook-plugin-wrapper {
  text-align: center;
}

/* obal FB widgetu */
.facebook-plugin-wrapper .fb-page,
.facebook-plugin-wrapper .fb-page > span,
.facebook-plugin-wrapper .fb_iframe_widget,
.facebook-plugin-wrapper .fb_iframe_widget span {
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
  width: 850px !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* Cílené přepsání vygenerovaného iframe (včetně inline style) */
.facebook-plugin-wrapper iframe,
.facebook-plugin-wrapper iframe[style] {
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
  width: 450px !important;
  height: 500px !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* ===== Actual News (below columns) - new layout ===== */
.actual-news-container {
  width: 95%;
  max-width: 1800px;
  margin: 30px auto 40px;
  padding: 20px;
  box-sizing: border-box;
  background: linear-gradient(135deg, #fff, #f8f5ec 42%, #f2e2da);
  border: 2px solid #b12a09;
  border-radius: 14px;
}

.actual-news-container .actual_news_heading {
  font-family: 'My', Tahoma, sans-serif;
  font-size: 28px;
  letter-spacing: .5px;
  margin: 0 0 24px;
  padding-bottom: 10px;
  border-bottom: 2px solid #d4532a;
  color: #c13504;
  text-align: center;
}

/* News Grid Layout */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

@media (max-width: 768px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Facebook in Right Column ===== */
.content-right-home {
  border: 2px solid #b12a09;
  background: linear-gradient(135deg, #fff, #f8f5ec 42%, #f2e2da);
  padding: 18px;
  box-sizing: border-box;
  border-radius: 7px;
  position: relative;
  overflow: hidden;
  max-height: 900px;
  overflow-y: auto;
}

.content-right-home .facebook-heading {
  font-family: 'My', Tahoma, sans-serif;
  font-size: 24px;
  letter-spacing: .5px;
  margin: 0 0 14px;
  padding-bottom: 6px;
  border-bottom: 2px solid #d4532a;
  color: #c13504;
  text-align: center;
}

.content-right-home .facebook-plugin-wrapper {
  text-align: center;
  width: 100%;
}

.content-right-home .fb-page,
.content-right-home .fb-page > span,
.content-right-home .fb-page > span > iframe {
  width: 100% !important;
  max-width: 500px !important;
  margin: 0 auto;
  display: block !important;
}

/* Remove old facebook-carousel-container styles as it's now in right column */
.facebook-carousel-container {
  display: none;
}

/* ===== Facebook Posts in Right Column ===== */
.content-right-home .facebook-posts-wrapper {
  width: 100%;
}

.content-right-home .loading-spinner {
  text-align: center;
  padding: 40px;
  color: #666;
  font-size: 16px;
}

.fb-posts-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fb-post-card {
  background: #ffffff;
  border: 1px solid #e4d7d2;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  transition: transform .25s ease, box-shadow .25s ease;
}

.fb-post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
}

.fb-post-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #f5f5f5;
}

.fb-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fb-post-content {
  padding: 14px;
}

.fb-post-message {
  font-size: 14px;
  line-height: 1.5;
  color: #333;
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fb-post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid #eee;
}

.fb-post-date {
  font-size: 12px;
  color: #888;
}

.fb-post-link {
  font-size: 13px;
  font-weight: 600;
  color: #1877f2;
  text-decoration: none;
  transition: color .25s ease;
}

.fb-post-link:hover {
  color: #0d5dbf;
}

.no-posts, .error-message {
  text-align: center;
  padding: 40px 20px;
  color: #666;
  font-size: 14px;
}

.error-message {
  color: #d32f2f;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .fb-post-image {
    height: 160px;
  }
  
  .fb-post-message {
    font-size: 13px;
  }
}

/* Facebook Section - Horizontal Layout */
.facebook-section-horizontal {
  width: 95%;
  margin: 0px 22px 30px;
  padding-bottom: 15px;
}

.facebook-section-horizontal .facebook-heading {
  font-size: 24px;
  font-weight: 600;
  color: #c13504;
  margin: 0 0 20px;
  padding-left: 10px;
}

.facebook-posts-wrapper-horizontal {
  width: 100%;
  height: 330px;
  overflow-x: auto;
  overflow-y: hidden;
  position: relative;
}

.facebook-posts-wrapper-horizontal .loading-spinner {
  text-align: center;
  padding: 130px 20px;
  color: #666;
  font-size: 16px;
}

.fb-posts-list-horizontal {
  display: flex;
  flex-direction: row;
  gap: 20px;
  padding: 10px 0;
}

.fb-post-card-horizontal {
  min-width: 350px;
  max-width: 350px;
  height: 280px;
  background: #ffffff;
  border: 1px solid #e4d7d2;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  transition: transform .25s ease, box-shadow .25s ease;
  flex-shrink: 0;
}

.fb-post-card-horizontal:hover {
  transform: translateY(-3px);

}

.fb-post-image-horizontal {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #f5f5f5;
}

.fb-post-image-horizontal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fb-post-content-horizontal {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 120px;
}

.fb-post-message-horizontal {
  font-size: 13px;
  line-height: 1.4;
  color: #333;
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fb-post-footer-horizontal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid #eee;
  margin-top: auto;
}

.fb-post-date-horizontal {
  font-size: 11px;
  color: #888;
}

.fb-post-link-horizontal {
  font-size: 12px;
  font-weight: 600;
  color: #1877f2;
  text-decoration: none;
  transition: color .25s ease;
}

.fb-post-link-horizontal:hover {
  color: #0d5dbf;
}

/* Custom scrollbar for horizontal Facebook posts */
.facebook-posts-wrapper-horizontal::-webkit-scrollbar {
  height: 10px;
}

.facebook-posts-wrapper-horizontal::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 5px;
}

.facebook-posts-wrapper-horizontal::-webkit-scrollbar-thumb {
  background: #c13504;
  border-radius: 5px;
}

.facebook-posts-wrapper-horizontal::-webkit-scrollbar-thumb:hover {
  background: #a02d03;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .facebook-section-horizontal {
    width: 96%;
  }
  
  .fb-post-card-horizontal {
    min-width: 320px;
    max-width: 320px;
  }
}

@media (max-width: 768px) {
  .facebook-section-horizontal {
    width: 95%;
    margin: 20px 0;
  }
  
  .facebook-posts-wrapper-horizontal {
    height: 330px;
  }
  
  .fb-post-card-horizontal {
    min-width: 280px;
    max-width: 280px;
    height: 300px;
  }
  
  .fb-post-image-horizontal {
    height: 130px;
  }
  
  .fb-post-content-horizontal {
    height: 110px;
    padding: 10px 12px;
  }
  
  .fb-post-message-horizontal {
    font-size: 12px;
    -webkit-line-clamp: 2;
  }
}

/* Research Activities Card — compact red variant */
.research-activities-card {
  width: 100%;
  margin: 0px auto 24px;
  background: linear-gradient(135deg, #da0000 0%, #930000 100%);
  border-radius: 7px;
  padding: 2px;
 /* box-shadow: 0 8px 15px rgba(255, 95, 109, 0.18);*/
  position: relative;
  overflow: hidden;
  max-width: 1200px;
}

.research-activities-card::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -40%;
  width: 160%;
  height: 160%;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 60%);
  animation: pulse 10s ease-in-out infinite;
  opacity: 0.9;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.45; }
  50% { transform: scale(1.06); opacity: 0.65; }
}

.research-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.research-icon {
  margin-left: 15px;
  width: 30px;
  height: 30px;
  color: #fff;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.15));
}

.research-card-title {

  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin: 10px 0 0 0;
  text-shadow: 0 1px 3px rgba(0,0,0,0.18);
}

.research-activities-list {
  list-style: none;
  padding: 0;
  margin: 0;
  z-index: 1;
}

.research-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.07);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  backdrop-filter: blur(6px);
}

.research-item:hover {
  transform: translateX(6px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  background: rgba(255,255,255,1);
}

.research-item:last-child {
  margin-bottom: 0;
}

.activity-icon {
  width: 20px;
  height: 20px;
  min-width: 20px;
  color: #990000;
  margin-top: 2px;
  filter: drop-shadow(0 1px 2px rgba(255,95,109,0.18));
}

.research-item span {
  font-size: 14px;
  line-height: 1.45;
  color: #000000;
  font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .research-activities-card { width: 98%; padding: 0px; border: solid 2px red;}
  .research-card-title { font-size: 18px; }
  .research-icon { width: 32px; height: 32px; }
}

/* Actual News - Modern Card Style */
.content-right-home {
  width: 500px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0;
  border-radius: 7px;
  position: relative;
}

.content-right-home::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 60%);
  animation: pulseNews 10s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes pulseNews {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.4; }
  50% { transform: scale(1.08) rotate(10deg); opacity: 0.65; }
}

.content-right-home .news_heading {
  position: sticky;
  z-index: 1;
  padding: 10px 20px 10px;
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.18);
  background: linear-gradient(135deg, #da0000 0%, #930000 100%);
  border-bottom: 1px dotted #D7D5D5;
}

.content-right-home .news_content {
  padding: 12px;
  position: relative;
  z-index: 1;
  background: #eaeaea;
}

.content-right-home .news_card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 7px;
  overflow: hidden;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  backdrop-filter: blur(10px);
}

.content-right-home .news_card.in-view {
  opacity: 1;
  transform: translateY(0);
}

.content-right-home .news_card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 1);
}

.content-right-home .news_card_media {
  position: relative;
  width: 100%;
  height: 145px !important;
  margin-top: 15px;
  overflow: hidden;
  background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
}

.content-right-home .news_card_media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.content-right-home .news_card:hover .news_card_media img {
  transform: scale(1.1);
}

.content-right-home .news_card_body {
  padding: 0px;
}

.content-right-home .news_card_title {
  font-size: 14px;
  text-align: left;
  font-weight: 600;
  color: #482d2d;
  margin: 0 0 10px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.content-right-home .news_card_title a {
  color: #2d3748;
  text-decoration: none;
  transition: color 0.25s ease;
}

.content-right-home .news_card_title a:hover {
  color: #ea6666;
}

.content-right-home .news_card_excerpt {
  font-size: 12px;
  text-align: justify;
  line-height: 1.5;
  color: #672929;
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.content-right-home .news_card_more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #8d0000;
  text-decoration: none;
  transition: all 0.25s ease;
  padding: 4px 6px;
  border-radius: 6px;
  background: rgba(234, 102, 102, 0.247);
}

.content-right-home .news_card_more:hover {
  background: rgba(234, 102, 102, 0.2);
  transform: translateX(4px);
  color: #6b0000;
}

/* Custom scrollbar for news */
.content-right-home::-webkit-scrollbar {
  width: 8px;
}

.content-right-home::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
}

.content-right-home::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.3);
  border-radius: 4px;
  transition: background 0.3s ease;
}

.content-right-home::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.5);
}

/* Animation keyframes */
@keyframes cardFadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .content-right-home {
    width: 480px;
  }
  
  .content-right-home .news_card_media {
    height: 140px;
  }
}

@media (max-width: 768px) {
  .content-right-home {
    width: 100%;
    max-height: 600px;
    border-radius: 7px;
    margin-bottom: 20px;
  }
  
  .content-right-home .news_heading {
    font-size: 18px;
    padding: 15px;
  }
  
  .content-right-home .news_content {
    padding: 12px;
  }
  
  .content-right-home .news_card {
    margin-bottom: 12px;
  }
  
  .content-right-home .news_card_media {
    height: 120px;
  }
  
  .content-right-home .news_card_body {
    padding: 6px;
  }
  
  .content-right-home .news_card_title {
    font-size: 15px;
  }
  
  .content-right-home .news_card_excerpt {
    font-size: 12px;
  }
}

/* Facebook Section — modern red design inspired by Research Activities */
:root {
  --fb-card-h: 240px;
  --fb-gap-row: 24px;
  --fb-gap-col: 44px;
}

/* Animated pulse for container */
@keyframes fbPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 95, 109, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(255, 95, 109, 0); }
}

/* Main container — red gradient like Research Activities */
.facebook-section-horizontal {
  width: 96vw;
  max-width: 1800px;
  position: relative;
  background: rgb(236, 236, 236);
  border-radius: 7px;
  border: solid 2px #c13604;
  box-shadow: 0 8px 24px rgba(255, 45, 45, 0.25);
  animation: fbPulse 3s infinite;
}

/* Heading with icon */
.facebook-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 16px;
 
  letter-spacing: 0.5px;
}

.facebook-icon {
flex-shrink: 0;
width: 32px;
height: 32px;
}

.facebook-heading::before {
  font-size: 24px;
  
}

/* Wrapper — 1 row height */
.facebook-posts-wrapper-horizontal {
  max-height: calc(var(--fb-card-h) + 28px);
  height: calc(var(--fb-card-h) + 28px);
  overflow-y: auto;
  overflow-x: hidden;
 /* padding: 6px;*/
  background: transparent;
  border-radius: 7px;
}

/* Custom scrollbar */
.facebook-posts-wrapper-horizontal::-webkit-scrollbar {
  width: 10px;
}
.facebook-posts-wrapper-horizontal::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}
.facebook-posts-wrapper-horizontal::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  border: 2px solid transparent;
}
.facebook-posts-wrapper-horizontal::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* Grid layout */
.fb-posts-list-horizontal {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-auto-rows: var(--fb-card-h);
  gap: var(--fb-gap-row) var(--fb-gap-col);
  padding: 12px;
  box-sizing: border-box;
}

/* Card — glassmorphism white with hover effect */
@keyframes fbCardSlideIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.fb-post-card-horizontal {
  height: var(--fb-card-h);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-radius: 7px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  animation: fbCardSlideIn 0.4s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.fb-post-card-horizontal:hover {
  transform: translateX(6px) translateY(-3px);
  background: rgba(255, 255, 255, 1);
}

/* Red accent line on top */
.fb-post-card-horizontal::before {
  content: "";
  height: 3px;
  display: block;
  background: linear-gradient(90deg, #c30010, #920000);
  opacity: 0.9;
}

/* Image section */
.fb-post-image-horizontal {
  height: calc(var(--fb-card-h) * 0.58);
  background: linear-gradient(135deg, #ffe5e9, #fff0f0);
  overflow: hidden;
  /*position: relative;*/
}

.fb-post-image-horizontal::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(255,255,255,0.8) 100%);
  pointer-events: none;
}

.fb-post-image-horizontal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.fb-post-card-horizontal:hover .fb-post-image-horizontal img {
  transform: scale(1.08);
}

/* Content area */
.fb-post-content-horizontal {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: calc(var(--fb-card-h) * 0.42);
  background: rgba(255, 255, 255, 0.95);
}

.fb-post-message-horizontal {
  margin: 0 0 8px;
  color: #374151;
  font-size: 12px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 500;
}

/* Footer with date and link */
.fb-post-footer-horizontal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border-top: 1px solid rgba(255, 95, 109, 0.15);
  padding-top: 8px;
  margin-top: auto;
}

.fb-post-date-horizontal {
  font-size: 11px;
  color: #9ca3af;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.fb-post-date-horizontal::before {
  content: "📅";
  font-size: 11px;
}

.fb-post-link-horizontal {
  font-size: 11px;
  font-weight: 700;
  color: #de0316;
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(255, 95, 109, 0.1);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}

.fb-post-link-horizontal:hover {
  background: rgba(255, 45, 45, 0.15);
  transform: translateX(3px);
  color: #830000;
}

.fb-post-link-horizontal::after {
  font-size: 14px;
  font-weight: 700;
}

/* No posts message */
.no-posts {
  padding: 40px;
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  font-size: 15px;
}

/* Responsive — mobile */
@media (max-width: 1000px) {
  :root {
    --fb-card-h: 220px;
    --fb-gap-col: 20px;
  }
  
  .facebook-section-horizontal {
    width: 88%;
    max-height: 50rem;
    overflow-y: auto;
   /* padding: 16px 18px;*/
    margin: 20px auto;
    animation: none;
  }
  
  .facebook-heading {
    font-size: 18px;
  }
  
  .facebook-posts-wrapper-horizontal {
    max-height: none;
    height: auto;
  }
  
  .fb-posts-list-horizontal {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 16px;
  }
  
  .fb-post-card-horizontal {
    height: auto;
  }
  
  .fb-post-image-horizontal {
    height: 140px;
  }
  
  .fb-post-content-horizontal {
    height: auto;
    min-height: 80px;
  }
}

.fb-posts-list-horizontal {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 320px)); /* cards zajistí stejnou šířku */
  grid-auto-rows: var(--fb-card-h);
  gap: var(--fb-gap-row) var(--fb-gap-col);
  padding: 12px;
  box-sizing: border-box;

  /* CENTRING */
  justify-content: center; /* center whole grid when max columns < container */
  justify-items: center;   /* center items inside each grid cell */
  align-items: start;
}

/* Card sizing + centering behavior */
.fb-post-card-horizontal {
  width: 100%;
  max-width: 320px;        /* kontroluje šířku karty */
  height: var(--fb-card-h);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

/* Mobile: 1 sloupec, karta se zmenší na dostupnou šířku a zůstane centrovaná */
@media (max-width: 768px) {
  .fb-posts-list-horizontal {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 18px;
    justify-content: center;
    justify-items: center;
  }

  .fb-post-card-horizontal {
    max-width: 720px;   /* omezení, ale šířka přizpůsobí rodiči */
    width: calc(100% - 24px); /* ponechá trochu vnitřního odsazení */
    height: auto;
  }

  .fb-post-image-horizontal { height: 150px; }
  .fb-post-content-horizontal { height: auto; min-height: 80px; }
}

/* Ensure Latest News heading is sticky (fix: target .news_heading used in index.php) */
.content-right-home {
  position: relative;         /* already required for sticky context */
  overflow-y: auto;           /* scrollable container */
  scrollbar-gutter: stable;   /* prevent width jitter when scrollbar appears */
  box-sizing: border-box;
}

/* Make the H2 with class .news_heading sticky inside the right column */
.content-right-home .news_heading {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  box-sizing: border-box;
  z-index: 20;
  background: linear-gradient(135deg, #da0000 0%, #930000 100%); /* or use #fff if you prefer */
  color: #fff;

  text-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

/* Fallback for browsers without scrollbar-gutter */
@supports not (scrollbar-gutter: stable) {
  .content-right-home .news_heading { padding-right: 28px; }
}

.news-heading, .news_heading { }
.news-icon {
  width: 1.7rem;
  height: 2rem;
  vertical-align: middle;
  margin-right: 0.5rem;
  display: inline-block;
}

.research-activities-card .research-activities-list {
  background-color: #e7e7e7;
  padding: 0.75rem;
  border-radius: 0px;
  margin: 0;
  list-style: none;
}
.research-activities-card .research-activities-list .research-item {
  background: #ffffffc6;
  margin: 0.4rem 0;
  padding: 0.5rem 0.5rem 0.5rem 1rem;
}

/* Publications Card - matching Research Activities */
.publications-card {
  margin-bottom: 30px;
}

.publications-card .research-activities-list {
  background-color: #e7e7e7;
  padding-left: 1.2rem;
  border-radius: 0px;
  margin: 0;
  list-style: none;
}

/* Publication items styling inside research card */
.publications-card .pub-item {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 2px;
  padding: 4px 4px;
  margin-bottom: 6px;
  margin-left: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.publications-card .pub-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  background: rgba(255,255,255,1);
}

.publications-card .pub-item:last-child {
  margin-bottom: 0;
}

.publications-card .pub-title {
  display: block;
  font-weight: 600;
  color: #000;
  margin-bottom: 6px;
  line-height: 1.4;
}

.publications-card .pub-authors,
.publications-card .pub-reference {
  font-size: 11px;
  color: #333;
}

/* Reduce heading height for Research Activities, Publications, and Latest News */
.research-card-title,
.news_heading {
  line-height: 1.1;
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 5px;
  margin-bottom: 5px;
}

.research-card-header {
  margin-top: 8px;
  min-height: 32px;
}

/* Facebook heading — match Latest News (red gradient, white text) */
.facebook-section-horizontal .facebook-heading {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 20;
  padding: 10px 20px;
  margin: 0 0 12px 0;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.18);
  background: linear-gradient(135deg, #da0000 0%, #930000 100%);
  border-bottom: 1px dotted #D7D5D5;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Ensure icon inside facebook-heading is white */
.facebook-section-horizontal .facebook-heading svg,
.facebook-section-horizontal .facebook-heading .icon {
  width: 1.5rem;
  height: 1.5rem;
  color: #fff;
  fill: none;
  stroke: currentColor;
  display: inline-block;
}


/* ========================================
   MODERN PAGE_CONTENT STYLING
   Scientific Institution Professional Design
   ======================================== */

/* Typography improvements */
.page_content {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: #2c3e50;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 40px !important;
  margin-bottom: 30px;
}

/* Modern headings with gradient accents */
.page_content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, #c13604, #d94e1f, transparent) 1;
  position: relative;
  letter-spacing: -0.5px;
}

.page_content h1::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #c13604, #d94e1f);
  border-radius: 2px;
}

.page_content h2 {
 /* font-size: 1.875rem;*/
  font-weight: 600;
  color: black;
  margin-top: 40px;
  margin-bottom: 20px;
  padding-left: 20px;
/*  border-left: 4px solid #c13604; */
  background: linear-gradient(90deg, rgba(193, 54, 4, 0.05), transparent);
  padding: 12px 20px;
  border-radius: 0 8px 8px 0;
  transition: all 0.3s ease;
}

.page_content h2:hover {
  background: linear-gradient(90deg, rgba(193, 54, 4, 0.1), transparent);
  transform: translateX(4px);
}

.page_content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #34495e;
  margin-top: 32px;
  margin-bottom: 16px;
  padding-left: 16px;
 /* border-left: 3px solid #d94e1f;*/
}

.page_content h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #555;
  margin-top: 24px;
  margin-bottom: 12px;
}

/* Paragraph styling */
.page_content p {
  margin-bottom: 20px;
  text-align: justify;
  hyphens: none;
  font-size: 0.9rem;
}

.page_content p:first-of-type {
  margin-left: 0px !important;
  font-size: 0.9rem;
  color: #555;
  line-height: 1.75;
}

/* Lists with modern styling */
.page_content ul,
.page_content ol {
  margin: 24px 0 24px 0px;
  padding-left: 20px;
}

.page_content li {
  margin-bottom: 12px;
  line-height: 1.7;
  position: relative;
  padding-left: 8px;
}

.page_content ul li::marker {
  color: #c13604;
  font-size: 1.2em;
}

.page_content ol li::marker {
  color: #c13604;
  font-weight: 600;
}

/* Links with professional styling */
.page_content a {
  color: #c13604;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
  font-weight: 600;
}

.page_content a:hover {
  color: #d94e1f;
  border-bottom-color: #d94e1f;
}

/* Images with modern treatment */
.page_content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin: 14px 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page_content img:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Blockquotes for important information */
.page_content blockquote {
  background: linear-gradient(135deg, #fff5f2 0%, #ffffff 100%);
  border-left: 5px solid #c13604;
  margin: 32px 0;
  padding: 24px 32px;
  font-style: italic;
  color: #555;
  border-radius: 0 8px 8px 0;
  box-shadow: 0 2px 8px rgba(193, 54, 4, 0.08);
  position: relative;
}

.page_content blockquote::before {
  content: '"';
  font-size: 4rem;
  color: rgba(193, 54, 4, 0.15);
  position: absolute;
  top: -10px;
  left: 10px;
  font-family: Georgia, serif;
  line-height: 1;
}

/* Tables with modern styling */
.page_content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 32px 0;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.page_content table thead {
 background: linear-gradient(135deg, #e2e2e2 0%, #f5ae96 100%);
  color: black;
}

.page_content table th {
  padding: 16px;
  text-align: left;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.5px;
}

.page_content table td {
  padding: 14px 16px;
  border-bottom: 1px solid #e9ecef;
}

.page_content table tbody tr {
  transition: background 0.2s ease;
}

.page_content table tbody tr:hover {
  background: rgba(193, 54, 4, 0.03);
}

.page_content table tbody tr:last-child td {
  border-bottom: none;
}

/* Code blocks for technical content */
.page_content pre,
.page_content code {
  background: #f4f5f7;
  border: 1px solid #e1e4e8;
  border-radius: 6px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9rem;
}

.page_content pre {
  padding: 20px;
  overflow-x: auto;
  margin: 24px 0;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.page_content code {
  padding: 2px 6px;
  color: #c13604;
}

.page_content pre code {
  border: none;
  padding: 0;
  color: inherit;
  background: transparent;
}

/* Highlight boxes for key information */
.page_content .highlight,
.page_content .info-box {
 /* background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%);*/
 /* border-left: 5px solid #ffc107;*/
  padding: 2px 2px;
/*  margin: 24px 0;*/
/*  border-radius: 0 8px 8px 0;*/
 /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);*/
}

.page_content .success-box {
  background: linear-gradient(135deg, #e8f5e9 0%, #ffffff 100%);
  border-left-color: #4caf50;
}

.page_content .warning-box {
  background: linear-gradient(135deg, #fff3e0 0%, #ffffff 100%);
  border-left-color: #ff9800;
}

.page_content .error-box {
  background: linear-gradient(135deg, #ffebee 0%, #ffffff 100%);
  border-left-color: #f44336;
}

/* Buttons/CTAs */
.page_content .btn,
.page_content button,
.page_content input[type="submit"] {
  display: inline-block;
  background: linear-gradient(135deg, #c13604 0%, #d94e1f 100%);
  color: white;
  padding: 10px 10px;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(193, 54, 4, 0.3);
  text-decoration: none;
  text-align: center;
}

.page_content .btn:hover,
.page_content button:hover,
.page_content input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(193, 54, 4, 0.4);
  background: linear-gradient(135deg, #d94e1f 0%, #e6673a 100%);
}

/* Responsive adjustments */
@media (max-width: 980px) {
  .page_content {
    padding: 24px !important;
    border-radius: 8px;
  }

  .page_content h1 {
    font-size: 2rem;
  }

  .page_content h2 {
    font-size: 1.5rem;
    margin-top: 32px;
  }

  .page_content h3 {
    font-size: 1.25rem;
  }

  .page_content p:first-of-type {
    font-size: 1rem;
  }
}

@media (max-width: 600px) {
  .page_content {
    padding: 20px !important;
  }

  .page_content h1 {
    font-size: 1.75rem;
  }

  .page_content h2 {
    font-size: 1.375rem;
  }

  .page_content table {
    font-size: 0.55rem;
  }

  .page_content table th,
  .page_content table td {
    padding: 10px 12px;
  }
}

/* Add subtle animation on page load */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page_content {
  animation: fadeInUp 0.6s ease-out;
}

/* Keep visual ::after under h1, but hide all real <hr> lines */

/* Ensure the pseudo-line under h1 is visible (override any earlier 'display:none') */
.page_content h1::after {
  display: block !important;
  opacity: 1 !important;
}

/* Hide actual HR elements inserted from editor inside page content */
.page_content hr,
.content .page_content hr,
.page_content h1 + hr,
.page_content h2 + hr,
.page_content h3 + hr {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  border: none !important;
  padding: 0 !important;
}

/* Also hide elements commonly used as divider by editors (safety net) */
.page_content .divider,
.page_content .separator,
.page_content .hr,
.page_content .line {
  display: none !important;
}

/* ================================
   LINK CARDS - compact, subtle gradient, full title, wider horizontal gap
   ================================ */

.page_content .link-cards-wrapper {
  display: grid;
  /* desktop: 3 ve sloupci; upravuje se přes max-width níže */
  grid-template-columns: repeat(1, 1fr);
  gap: 18px 18px;            /* row-gap 18px, column-gap 40px (větší horizontální mezera) */
  margin: 22px auto;
  width: 100%;
  max-width: 660px;         /* zajišťuje, že karty zůstanou malé a line-up bude 2–3 na řádek */
 /* justify-items: center;*/
}

/* Kompaktní karta — pevná šířka, výška závislá na obsahu (plný text) */
.page_content a.link-card {
  width: 200px;  
  height: auto;           /* menší karta */
  display: flex;
  flex-direction: column;
 /* align-items: center;*/
  justify-content: center;
 /* text-align: center;*/

  /* jemný (subtle) gradient - ne agresivní */
  background: linear-gradient(135deg, rgba(193,54,4,0.4) 0%, rgba(230,115,80,0.2) 60%, rgba(255,255,255,0.2) 100%);
  color: #1f2933;           /* tmavší text pro lepší čitelnost na jemném pozadí */
  text-decoration: none;

  border: 1px solid rgba(193,54,4,0.8);
  border-radius: 7px;
  box-shadow: 0 4px 12px rgba(15,23,42,0.04);

  padding: 10px 12px;
  overflow: visible;        /* umožní zobrazení celého titulku i když je delší */
  transition: transform .22s cubic-bezier(.2,.8,.2,1), box-shadow .22s ease;
}

/* Zrušit dřívější ::after ikonu (pokud existuje) */
.page_content a.link-card::after { display: none !important; }

/* Titulek — plný text, nezkracovat */
.page_content a.link-card .link-card-title {
  font-size: 14px;
  font-weight: 600;
  color: inherit;
  line-height: 1.25;
  margin: 0;
  padding: 0;
  white-space: normal;      /* povolit zalamování */
  overflow: visible;
  text-overflow: unset;
  word-break: break-word;
  hyphens: auto;
}

/* Hover efekt jemný */
.page_content a.link-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(193,54,4,0.10);
}

/* Fokus */
.page_content a.link-card:focus {
  outline: 3px solid rgba(193,54,4,0.14);
  outline-offset: 3px;
}

/* Tablet: 2 karty na řádek */
@media (max-width: 980px) {
  .page_content .link-cards-wrapper {
    grid-template-columns: repeat(1, 1fr);
    gap: 16px 32px;
    max-width: 680px;
  }
  .page_content a.link-card { width: auto; height: auto; padding: 10px; }
  .page_content a.link-card .link-card-title { font-size: 13px; }
}

/* Mobile: 2 karty na řádek (menší) */
@media (max-width: 600px) {
  .page_content .link-cards-wrapper {
    grid-template-columns: repeat(1, 1fr);
    gap: 12px 20px;
    max-width: 360px;
  }
  .page_content a.link-card { width: auto; padding: 8px; }
  .page_content a.link-card .link-card-title { font-size: 12px; }
}

/* --- Fix: odstranit velký whitespace pod link-cards-wrapper --- */

/* zmenšit spodní margin wrapperu (pokud nějaký vznikl) */
.page_content .link-cards-wrapper {
  margin-top: 25px;    /* lehké odsazení nahoře */
  margin-bottom: -65px !important; /* odstraní velkou mezeru pod galerií */
  align-self: start;
}

/* pokud následuje odstavec nebo prvek se standardním margin-top, zrušíme ho */
.page_content .link-cards-wrapper + p,
.page_content .link-cards-wrapper + .wp-block-paragraph,
.page_content .link-cards-wrapper + .some-block,
.page_content .link-cards-wrapper + div {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* skrýt prázdné odstavce přímo před nebo za wrapperem */
.page_content p:empty,
.page_content p:empty::before,
.page_content p:only-child:empty {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* zamezit, aby anchor.link-card dělal nechtěný block-level spacing */
.page_content .link-cards-wrapper a.link-card {
  display: inline-flex; /* místo block/flex kvůli lepšímu flow v gridu */
  vertical-align: top;
  box-sizing: border-box;
}

/* Doladění layoutu: když je wrapper v bloku s velkým line-height, nastavíme menší */
.page_content .link-cards-wrapper,
.page_content .link-cards-wrapper * {
  line-height: 1;
}

/* Bezpečnostní pravidlo: pokud někde existuje staré pravidlo `a {width:100%}` přepišeme ho jen pro link-card */
.page_content a.link-card[style],
.page_content a.link-card {
  max-width: none;
  width: auto !important;
}

/* MOBILE: větší a čitelnější karty (1 nebo 2 na řádek podle šířky) */
@media (max-width: 600px) {
  .page_content .link-cards-wrapper {
    /* Pokud chcete 1 karta/řádek použijte 1fr, pro 2 větší karty ponechte repeat(2,1fr) */
    grid-template-columns: repeat(1, 1fr);
    gap: 16px 24px;
    max-width: 420px; /* vhodné pro větší karty na mobilu */
    margin-left: auto;
    margin-right: auto;
    padding-left: 8px;
    padding-right: 8px;
  }

  .page_content a.link-card {
    width: 92%;          /* karta zabere většinu šířky viewportu */
    max-width: 380px;    /* ochrana proti příliš velkým obrazovkám */
    padding: 14px 14px;  /* větší výplň pro čitelnost */
    border-radius: 12px;
    font-size: 16px;     /* větší text */
    line-height: 1.3;
  }

  .page_content a.link-card .link-card-title {
    font-size: 13px;
    font-weight: 600;
    -webkit-line-clamp: 5; /* povolit víc řádků pro delší titulky */
    overflow: visible;
    white-space: normal;
  }

  .page_content a.link-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.10);
  }
}

/* === MOBILE: 1 sloupec, auto rozměry === */
@media (max-width: 600px) {
  .page_content .link-cards-wrapper {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 12px !important;
  }

  .page_content a.link-card {
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    aspect-ratio: auto !important;
    display: block !important;
    padding: 18px 16px !important;
    font-size: 16px !important;
    line-height: 1.4 !important;
  }

  .page_content a.link-card .link-card-title {
    font-size: 13px !important;
    font-weight: 600 !important;
    display: block !important;
    -webkit-line-clamp: unset !important;
    overflow: visible !important;
    white-space: normal !important;
  }
}


/* ====================================
   Publications List - Ultra Compact Design
   ==================================== */

.publications-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
}

.publications-filters {
    background: whitesmoke;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    border: 2px solid rgba(255,0,0,0.5);
}

.publications-filters h3 {
    color: black;
    margin: 0 0 12px -15px;
    font-size: 18px;
    font-weight: 600;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-group label {
    color:black;
    font-weight: 500;
    font-size: 13px;
    white-space: nowrap;
}

.filter-group select,
.filter-group input[type="text"] {
    padding: 5px 8px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    background: rgba(255,255,255,0.95);
    font-size: 13px;
    transition: all 0.3s ease;
  
}

.filter-group select {
    width: 185px;
}

.filter-group select:focus,
.filter-group input[type="text"]:focus {
    outline: none;
    border-color: black;
    background: white;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.2);
}

.filter-group input[type="text"] {
    width: 150px;
}

.filter-btn {
    padding: 5px 5px !important;
    background: white;
    color: #667eea;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 30px !important;
    width: 80px !important;
    font-size: 12px !important;
    margin: 20px 0px 0px 0px !important;
}

.filter-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.publications-header {
     background: #f8f9fa;
    padding: 12px 18px;
    border-radius: 6px;
    margin-bottom: 18px;
    border-left: 4px solid red;
}

.publications-header h2 {
    margin: 0 0 6px 0;
    color: #2d3748;
    font-size: 18px;
}

.publications-info {
    color: #4a5568;
    font-size: 13px;
    margin: 0;
}

.publications-info .highlight {
    color: #667eea;
    font-weight: 600;
}

.error-message {
    background: #fee;
    color: #c33;
    padding: 8px 12px;
    border-radius: 5px;
    border-left: 3px solid #c33;
    margin-bottom: 15px;
    font-size: 12px;
}

.no-results {
    text-align: center;
    padding: 40px 20px;
    color: #718096;
    font-size: 13px;
    background: #f8f9fa;
    border-radius: 6px;
}

/* Simple bullet list style */
.publications-list {
    list-style: disc;
    padding-left: 20px;
    margin: 0;
}

.publications-list li {
    margin-bottom: 10px;
    font-size: 12px;
    line-height: 1.5;
    color: #2d3748;
}

.publications-list li::marker {
    color: #667eea;
}

.publications-list li a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.2s ease;
}

.publications-list li a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.publication-type {
    display: inline-block;
    padding: 2px 6px;
    background: #e6f2ff;
    color: #0066cc;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
    margin-left: 6px;
    vertical-align: middle;
}

@media (max-width: 968px) {
    .filter-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .filter-group select,
    .filter-group input[type="text"] {
        flex: 1;
        min-width: auto;
        width: auto;
    }
    
    .filter-btn {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .publications-list li {
        font-size: 11px;
    }
}


:root {
  /* upravte podle skutečné výšky header_top (padding + height) */
  --header-top-height: 145px;
}

/* Always keep header_top fixed on top */
.header_top {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 99999 !important;
  box-sizing: border-box;
  /* zachovat původní vizuál */
  background-clip: padding-box;
}

/* Push the header container below the fixed header */
.header_cont {
  margin-top: var(--header-top-height) !important;
  /* pokud bylo nastaveno jiné umístění, zajistíme kontext */
  position: relative !important;
  clear: both !important;
}

/* Pokud header_cont následuje přímo za header_top v DOM, alternativní selektor */
.header_top + .header_cont {
  margin-top: var(--header-top-height) !important;
}

/* Mobile / tablet doladění: zmenšit odsazení na menších obrazovkách */
@media (max-width: 980px) {
  :root { --header-top-height: 120px; }
  .header_cont { margin-top: var(--header-top-height) !important; }
}

@media (max-width: 640px) {
  :root { --header-top-height: 100px; }
  .header_cont { margin-top: var(--header-top-height) !important; }
}

.header_small_cont {
  margin-top: var(--header-top-height) !important;
  box-sizing: border-box;
}
/* Ensure small header variant also respects top offset when placed after header_top */
.header_top + .header_small_cont,
.header_top + .header_cont + .header_small_cont {
  margin-top: var(--header-top-height) !important;
}
/* Mobile tweaks */
@media (max-width: 980px) {
  .header_small_cont { margin-top: 120px !important; }
}
@media (max-width: 640px) {
  .header_small_cont { margin-top: 100px !important; }
}

/* ========================================
   Page Navigation Buttons (Back/Next/Top)
   ======================================== */

/* Container for navigation buttons */
.page-navigation-buttons {
  position: fixed;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Back button - left side */
.nav-btn-back {
  position: fixed;
  left: 2rem;
  top: 65%;
  transform: translateY(-50%);
  z-index: 1000;
}

/* Next button - right side */
.nav-btn-next {
  position: fixed;
  right: 2rem;
  top: 65%;
  transform: translateY(-50%);
  z-index: 1000;
}

/* To Top button - bottom right */
.nav-btn-top {
  position: fixed;
  right: 20px;
  bottom: 30px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.nav-btn-top.visible {
  opacity: 1;
  visibility: visible;
}

/* Button base styling */
.nav-button {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #c13604 0%, #d94e1f 100%);
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(193, 54, 4, 0.3);
  transition: all 0.3s ease;
  text-decoration: none;
}

.nav-button:hover {

  box-shadow: 0 6px 20px rgba(193, 54, 4, 0.4);
  background: linear-gradient(135deg, #d94e1f 0%, #e6673a 100%);
}

.nav-button:active {
/*  transform: scale(0.95);*/
}

/* SVG icons styling */
.nav-button svg {
  width: 24px;
  height: 24px;
  fill: white;
}

/* Hide on homepage */
body.home .nav-btn-back,
body.home .nav-btn-next,
body.home .nav-btn-top {
  display: none !important;
}

/* Responsive - hide on mobile */
@media (max-width: 768px) {
  .nav-btn-back,
  .nav-btn-next {
 /*   display: none !important;*/
  }
  
  .nav-btn-top {
    right: 15px;
    bottom: 20px;
  }
  
  .nav-button {
    width: 45px;
    height: 45px;
  }
  
  .nav-button svg {
    width: 20px;
    height: 20px;
  }
}

/* Animation for scroll-triggered top button */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-btn-top.visible {
  animation: fadeInUp 0.3s ease;
}


/* reduce hover transform and shadow (gentler) */
.nav-button:hover {
 
  box-shadow: 0 4px 10px rgba(193,54,4,0.28);
}


/* smaller svg icon */
.nav-button svg {
  width: 18px;
  height: 18px;
  fill: white;
  display: block;
}

/* label styling - positioned outside the small circle */
.nav-button .nav-label {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #f8f5ec;
  color: #000;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  line-height: 1;
  opacity: 0.95;
  pointer-events: none;
}

/* Back: label to the right */
.nav-btn-back .nav-label {
  left: calc(100% + 8px);
}

/* Next: label to the left */
.nav-btn-next .nav-label {
  right: calc(100% + 8px);
  left: auto;
}

/* Top: label above the button */
.nav-btn-top .nav-label {
  bottom: calc(100% + 8px);
  top: auto;
  left: 50%;
  transform: translateX(-50%);
}

/* smaller Top button animation */
.nav-btn-top {
  width: 42px;
  height: 42px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}
.nav-btn-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* responsive tweaks */
@media (max-width: 980px) {
  .nav-button { width: 40px; height: 40px; }
  .nav-button svg { width: 16px; height: 16px; }
  .nav-button .nav-label { display: none; }
  .nav-btn-back, .nav-btn-next { display: none !important; } /* keep only Top on mobile */
}

@media (max-width: 768px) {
  .activity-icon {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    margin-top: 0 !important;
  }

  .research-item,
  .research-item span {
    font-size: 13px !important;
    line-height: 1.4 !important;
  }

  /* pokud používáte další varianty (např. .research-item .text), přepište i je */
  .research-item * {
    font-size: 13px !important;
  }
}

/* extra small phones */
@media (max-width: 480px) {
  .activity-icon { width: 16px !important; height: 16px !important; min-width: 14px !important; }
  .research-item, .research-item span { font-size: 13px !important; line-height: 1.35 !important; }
}
 
.header_cont_text img,
.header_cont_text > span img {
  margin-left: -5% !important;
  display: block;
  max-width: 620px;     /* desktop / tablet max */
  width: auto !important;
  height: auto !important;
  margin: 0 auto;
}

/* Mobile: výrazně menší logo */
@media (max-width: 768px) {
  .header_cont_text img,
  .header_cont_text > span img {
   margin-left: -30% !important;

   display: block;
   max-width: 270px !important;
    width: auto !important;
     height: auto !important;
    margin: 0 auto;
}
}

/* Extra small phones */
@media (max-width: 480px) {
  .header_cont_text img,
  .header_cont_text > span img {
   margin-left: -30% !important;

   display: block;
   width: 270px !important;
   max-width: 270px !important;
     height: auto !important;
    margin: 0 auto;
  }
}

/* ========================================
   FOOTER: 3 rows (Quick Links | Contact | Map)
   ======================================== */

@media (max-width: 980px) {

  /* Footer: plná šířka, jeden sloupec */
  footer {
    padding: 24px 16px !important;
    min-height: 0 !important;
  }

  /* Site-info: vertikální stack (3 řádky) */
  .site-info {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 24px !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  /* === ROW 1: Quick Links (3 sloupce) === */
  .site-info > .footer_left {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border-right: none !important;
  }

  .footer_left .footer_links {
    -webkit-column-count: 3 !important;
    -moz-column-count: 3 !important;
    column-count: 3 !important;
    column-gap: 20px !important;
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .footer_left .footer_links li {
    display: block;
    margin-bottom: 10px;
    padding-left: 18px;
    position: relative;
    break-inside: avoid;
  }

  .footer_left .footer_links li::before {
    content: "\2022";
    position: absolute;
    left: 0;
    top: 0;
    color: #ffffff;
    font-size: 14px;
  }

  .footer_left .footer_links li a {
    display: block;
    padding: 4px 0;
    font-size: 13px;
    color: #ffffff;
    text-decoration: none;
  }

  .footer_left .footer_links li a:hover {
    color: #ffcccc;
  }

  /* === ROW 2: Contact (1 sloupec, kompaktní) === */
  .site-info > .footer_center {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 10px !important;
    border-right: none !important;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }

  .footer_center .footer_contact_item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 13px;
  }

  .footer_center .footer_contact_item .footer_icon,
  .footer_center .footer_contact_item svg.footer_icon {
    width: 18px !important;
    height: 18px !important;
    flex: 0 0 18px !important;
    margin-top: 2px;
  }

  .footer_center .footer_contact_item span {
    font-size: 13px !important;
    line-height: 1.5;
  }

  /* === ROW 3: Map + GPS Coordinates === */
  .site-info > .footer_right {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center;
  }

  .footer_right iframe {
    width: 100% !important;
    max-width: 100% !important;
    height: 180px !important;
    border-radius: 8px !important;
    margin: 0 0 0px 0 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  }

  /* GPS Coordinates (pokud chcete přidat) */
  .footer_right .gps-coords {
    font-size: 12px;
    color: #ffffff;
    margin-top: 8px !important;
    left: 20px !important;
    opacity: 0.9;
  }

  /* Headings */
  .footer_left .footer_heading,
  .footer_center .footer_heading {
    font-size: 16px !important;
    margin-bottom: 12px !important;
    color: #ffffff;
  }

}

/* Extra small phones: Quick Links 2 sloupce místo 3 */
@media (max-width: 640px) {
  
  .footer_left .footer_links {
    -webkit-column-count: 1 !important;
    -moz-column-count: 1 !important;
    column-count: 1 !important;
    column-gap: 16px !important;
  }

  .footer_left .footer_links li a {
    font-size: 12px !important;
  }

  .footer_center .footer_contact_item {
    font-size: 12px !important;
  }

  .footer_center .footer_contact_item span {
    font-size: 12px !important;
  }

  .footer_right iframe {
    height: 180px !important;
  }

  .footer_left .footer_heading,
  .footer_center .footer_heading {
    font-size: 15px !important;
  }
}

/* Very small screens: Quick Links 1 sloupec */
@media (max-width: 420px) {
  
  .footer_left .footer_links {
    -webkit-column-count: 1 !important;
    -moz-column-count: 1 !important;
    column-count: 1 !important;
  }

  .footer_right iframe {
    height: 160px !important;
  }
}

/* MOBILE: footer - centered single column visually, quick-links in 2 columns */
@media (max-width: 640px) {
  /* stack sections and center everything */
  .site-info {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 18px !important;
    padding: 12px !important;
  }

  .footer_left,
  .footer_center,
  .footer_right {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
  }

  /* Quick links: two columns, block centered, balanced fill */
  .footer_left .footer_links {
    -webkit-column-count: 1 !important;
    -moz-column-count: 1 !important;
    column-count: 1 !important;
    -webkit-column-gap: 12px !important;
    -moz-column-gap: 12px !important;
    column-gap: 12px !important;
    -webkit-column-fill: balance !important;
    column-fill: balance !important;
    max-width: 320px !important;    /* adjust so two columns fit on mobile */
    margin: 0 auto 6px auto !important; /* center the two-column block */
    padding: 0 !important;
    list-style: none !important;
  }

  /* Ensure each item stays intact and has comfortable spacing */
  .footer_left .footer_links li {
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    -moz-column-break-inside: avoid;
    margin: 6px 0 !important;
    padding-left: 0 !important;
    text-align: left; /* keep link text readable in narrow columns */
  }

  /* Make links fill their column width and be easily tappable */
  .footer_left .footer_links li a {
    display: block !important;
    padding: 6px 4px !important;
    font-size: 14px !important;
    text-align: left !important; /* left inside column keeps neat alignment */
    color: #ffffff !important;
  }

  /* Center headings and reduce font slightly */
  .footer_left .footer_heading,
  .footer_center .footer_heading {
    text-align: center !important;
    font-size: 15px !important;
    margin-bottom: 10px !important;
  }

  /* Contact: center items vertically and horizontally */
  .footer_center .footer_contact_item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    font-size: 14px !important;
    padding: 1px 0 !important;
    text-align: center !important;
  }

  .footer_center .footer_contact_item .footer_icon,
  .footer_center .footer_contact_item svg.footer_icon {

    margin: 0 auto !important;
    width: 18px !important;
    height: 18px !important;
    flex: 0 0 auto !important;
  }

  .footer_center .footer_contact_item span,
  .footer_center .footer_contact_item a {
    display: block !important;
    color: #ffffff !important;
  }

  /* Map: center and limit width/height to avoid overflow */
  .footer_right {
    text-align: center !important;
  }
  .footer_right iframe {
    width: calc(100% - 32px) !important;
    max-width: 420px !important;
    height: 160px !important;
    margin: 0 auto !important;
    display: block !important;
    border-radius: 8px !important;
  }

  .footer_right .gps-coords {
    margin-top: 8px !important;
    font-size: 13px !important;
    text-align: center !important;
  }

  /* Tighten vertical spacing to be compact */
  footer {
    padding: 16px 8px !important;
  }
}

/* MOBILE: odstranit bullets před odkazy v Quick Links a centrovat obsah */
@media (max-width: 640px) {
  .footer_left .footer_links,
  .footer_left .footer_links ul {
    list-style: none !important;
    margin: 0 auto !important;
    padding: 0 !important;
    text-align: center !important;
  }

  /* zrušit pseudo-bullet, který se vytváří ::before */
  .footer_left .footer_links li::before {
    content: none !important;
    display: none !important;
  }

  /* zajistit žádný levý odsazení */
  .footer_left .footer_links li {
    padding-left: 0 !important;
    margin: 6px 0 !important;
    display: inline-block !important;
    width: 50% !important; /* 2 sloupce: 4+4 při 8 položkách */
    box-sizing: border-box !important;
    text-align: center !important;
    vertical-align: top !important;
  }

  .footer_left .footer_links li a {
    display: inline-block !important;
    width: 100% !important;
    text-align: center !important;
    padding: 6px 4px !important;
  }
}

@media (max-width: 640px) {
  .footer_left .footer_img,
  .footer_left .footer_img2,
  .footer_center .footer_img,
  .footer_center .footer_img2,
  .footer_center .footer_contact_item .footer_icon,
  .footer_center .footer_contact_item svg.footer_icon,
  .footer_left .footer_heading::before,
  .footer_center .footer_heading::before {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* po skrytí ikon zarovnáme a upravíme odsazení */
  .footer_center .footer_contact_item {
    padding-left: 0 !important;
    gap: 6px !important;
    align-items: center !important;
  }

  /* zamezit nechtěnému odsazení v položkách quick links */
  .footer_left .footer_links li {
    padding-left: 0 !important;
  }
}

@media (max-width: 640px) {
  .footer_right .gps-coords {
    margin-left: 0 !important;       /* odstraní inline margin-left:30% */
    margin-right: 0 !important;
    margin-top: 8px !important;
    margin-bottom: 0 !important;
    width: auto !important;
    display: block !important;
    text-align: center !important;
    font-size: 11px !important;      /* požadovaná velikost písma */
    line-height: 1.4 !important;
    padding: 0 6px !important;
    box-sizing: border-box !important;
    visibility: visible !important;
  }
}

/* ========================================
   PROJECT FILTERS & MODAL POPUP
   ======================================== */

/* Project filters dropdown */
.project-filters {
  display: flex;
  gap: 20px;
  margin: 24px 0;
  padding: 20px;
  background: #f7fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  flex-wrap: wrap;
  align-items: center;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
 /* min-width: 200px;*/
}

.filter-group label {
  font-size: 13px;
  font-weight: 600;
  color: #4a5568;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-group select {
  padding: 7px 10px;
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  background: #ffffff;
  color: #2d3748;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-group select:hover {
  border-color: #a0aec0;
}

.filter-group select:focus {
  outline: none;
  border-color: #4299e1;
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.filter-btn {
  padding: 12px 24px;
  background: #1a365d;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-btn:hover {
  background: #2c5282;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26, 54, 93, 0.3);
}

.project-count {
  margin-left: auto;
  padding: 8px 16px;
  background: #edf2f7;
  border-radius: 6px;
  font-size: 14px;
  color: #2d3748;
  font-weight: 500;
}

/* Kompaktní tabulka */
.projects-compact-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 32px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  border-radius: 8px;
  overflow: hidden;
}

.projects-compact-table thead {
  background: #1a365d;
  color: #ffffff;
}

.projects-compact-table thead th {
  padding: 16px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.projects-compact-table tbody tr {
  border-bottom: 1px solid #e2e8f0;
  transition: background-color 0.2s ease;
}

.projects-compact-table tbody tr:hover {
  background-color: #f7fafc;
}

.projects-compact-table tbody td {
  padding: 14px 16px;
  font-size: 13px;
  color: #2d3748;
}

.project-name-link {
  color: #2c5282;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
  cursor: pointer;
}

.project-name-link:hover {
  color: #1a365d;
  text-decoration: underline;
}

/* Modal popup */
.project-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999;
  align-items: center;
  justify-content: center;
}

.project-modal.active {
  display: flex;
}

.project-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.project-modal-content {
  position: relative;
  background: #ffffff;
  border-radius: 12px;
  max-width: 800px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.project-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #f7fafc;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: #4a5568;
  transition: all 0.2s ease;
  z-index: 10;
}

.project-modal-close:hover {
  background: #e2e8f0;
  color: #1a365d;
  transform: rotate(90deg);
}

.project-modal-body {
  padding: 32px;
}

.project-modal-body h2 {
  margin: 0 0 24px 0;
  color: #1a365d;
  font-size: 22px;
  padding-right: 40px;
  line-height: 1.3;
}

.project-detail-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detail-row {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #e2e8f0;
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-row.full-width {
  flex-direction: column;
  gap: 8px;
}

.detail-label {
  font-weight: 600;
  color: #4a5568;
  min-width: 180px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail-value {
  color: #2d3748;
  flex: 1;
  font-size: 14px;
  line-height: 1.6;
}

.detail-value a {
  color: #2c5282;
  word-break: break-all;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .project-filters {
    flex-direction: column;
    gap: 12px;
  }

  .filter-group {
    width: 100%;
    min-width: 100%;
  }

  .project-count {
    width: 100%;
    text-align: center;
    margin-left: 0;
  }

  .project-modal-content {
    width: 95%;
    max-height: 90vh;
  }

  .project-modal-body {
    padding: 24px 16px;
  }

  .detail-row {
    flex-direction: column;
    gap: 6px;
  }

  .detail-label {
    min-width: auto;
  }
}

/* Zrušit všechny max-width/width omezení na rodičích */
.content,
.content_cont,
.content_right,
.page_content {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
}

/* Desktop: page_content centrovaný, max 1000px */
@media screen and (min-width: 769px) {
  .page_content {
    max-width: 1000px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* Tablet a mobil: plná šířka s paddingem */
@media screen and (max-width: 768px) {
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
  }

  .content,
  .content_cont,
  .content_right {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .page_content {
    width: calc(100vw - 20px) !important; /* viewport width - malé odsazení */
    max-width: calc(100vw - 20px) !important;
    margin: 10px auto !important;
    padding: 15px !important;
    border-left: none !important; /* odstraň okraje, které zabírají místo */
    border-right: none !important;
  }

  /* Zajistit, že nic nepřetéká */
  .page_content * {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Tabulky - horizontální scroll */
  .page_content table {
    display: block !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    width: 100% !important;
  }

  /* Obrázky */
  .page_content img {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    display: block !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

/* Extra malé mobily */
@media screen and (max-width: 480px) {
  .page_content {
    width: calc(100vw - 20px) !important;
    max-width: calc(100vw - 10px) !important;
    padding: 20px !important;
    margin: 5px auto !important;
    font-size: 12px !important;
  }

  .page_content h1 {
    font-size: 1.3rem !important;
  }

  .page_content h2 {
    font-size: 1.2rem !important;
  }

   .page_content h3 {
    font-size: 0.9rem !important;
  }

  .page_content p {
    font-size: 14px !important;
    line-height: 1.5 !important;
  }
}

/* === SIMPLE FIX: Responzivní tabulka projektů === */

/* Wrapper pre mobilný scroll */
.department-projects-container {
  width: 100%;
  overflow-x: hidden;
}

.projects-compact-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}

/* Mobilní zobrazení - horizontální scroll pouze pro tabulku */
@media screen and (max-width: 768px) {
  .projects-compact-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    font-size: 11px;
  }
  
  .projects-compact-table thead,
  .projects-compact-table tbody,
  .projects-compact-table tr {
    display: table;
    width: 100%;
  }
  
  .projects-compact-table th,
  .projects-compact-table td {
    padding: 5px 3px;
    font-size: 10px;
    white-space: normal;
    word-wrap: break-word;
    max-width: 150px;
  }
  
  /* Zkrátit sloupce */
  .projects-compact-table th:nth-child(1),
  .projects-compact-table td:nth-child(1) {
    min-width: 120px;
  }
  
  .projects-compact-table th:nth-child(2),
  .projects-compact-table td:nth-child(2) {
    min-width: 80px;
  }
  
  .projects-compact-table th:nth-child(3),
  .projects-compact-table td:nth-child(3) {
    min-width: 70px;
  }
  
  .projects-compact-table th:nth-child(4),
  .projects-compact-table td:nth-child(4) {
    min-width: 60px;
  }
}

/* Extra malé mobily - skrýt typ */
@media screen and (max-width: 480px) {
  .projects-compact-table th:nth-child(4),
  .projects-compact-table td:nth-child(4) {
    display: none;
  }
  
  .projects-compact-table th,
  .projects-compact-table td {
    font-size: 9px;
    padding: 3px 2px;
  }
}

/* === Footer Social Icons - Mobile Only === */

/* Skryť footer ikony na desktope */
.footer_social_icons.mobile_only {
  display: none;
}

/* Zobraziť footer ikony len na mobile */
@media screen and (max-width: 768px) {
  /* Skryť header ikony na mobile */
  .header_right_group .social_icons {
    display: none !important;
  }

  /* Zobraziť footer ikony na mobile */
  .footer_social_icons.mobile_only {
    display: block;
    text-align: center;
    padding: 10px 0;
    margin-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }

  .footer_social_icons h3 {
    color: #fff;
    font-size: 15px;
    margin-bottom: 15px;
    font-weight: 600;
    font-family: 'My', Tahoma;
  text-transform: uppercase;
  }

  .footer_social_icons .social_icons_container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
  }

  .footer_social_icons .social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
  }

  .footer_social_icons .social:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
  }

  .footer_social_icons .social svg {
    width: 20px;
    height: 20px;
    fill: #fff;
  }

  /* Farby pre jednotlivé sociálne siete */
  .footer_social_icons .social.facebook:hover {
    background: #1877f2;
  }

  .footer_social_icons .social.youtube:hover {
    background: #ff0000;
  }

  .footer_social_icons .social.twitter:hover {
    background: #1da1f2;
  }

  .footer_social_icons .social.linkedin:hover {
    background: #0077b5;
  }

  .footer_social_icons .social.email:hover {
    background: #d32f2f;
  }
}

/* === FIX: Unified scrollbar behavior across browsers === */

/* 1) Modern solution: scrollbar-gutter (Chrome/Edge 94+, Firefox 97+) */
.content-right-home,
.pub-list {
  scrollbar-gutter: stable; /* rezervuje prostor pro scrollbar, padding zůstává konzistentní */
}

/* 2) Fallback: explicitní padding-right jen pro Chromium (overlay scrollbar) */
@supports not (scrollbar-gutter: stable) {
  /* Chromium (Chrome/Edge) — overlay scrollbar nepotřebuje extra padding */
  @media screen and (-webkit-min-device-pixel-ratio:0) and (min-resolution:.001dpcm) {
    .content-right-home .news_content {
      padding-right: 0px !important;
    }
  }

  /* Firefox — clasic scrollbar, ponechat původní padding */
  @-moz-document url-prefix() {
    .content-right-home .news_content {
      padding-right: 12px !important; /* nebo původní hodnota */
    }
  }
}

/* 3) Force consistent custom scrollbar design (optional — red styled scrollbar) */
.content-right-home::-webkit-scrollbar,
.pub-list::-webkit-scrollbar {
  width: 10px; /* pevná šířka pro Chromium */
}

.content-right-home::-webkit-scrollbar-track,
.pub-list::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
}

.content-right-home::-webkit-scrollbar-thumb,
.pub-list::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.3); /* nebo #c13604 pro červený */
  border-radius: 4px;
}

.content-right-home::-webkit-scrollbar-thumb:hover,
.pub-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.5);
}

/* Firefox scrollbar styling (non-standard, limited support) */
.content-right-home,
.pub-list {
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.3) rgba(255,255,255,0.1);
}

/* Centrovat filter tlačítko na mobilu */
@media (max-width: 968px) {
  .publications-filters .filter-row {
    flex-direction: column;
    align-items: center;
  }
  
  .publications-filters .filter-group {
    width: 100%;
    align-items: center;
  }
  
  .publications-filters .filter-btn {
    margin: 10px auto 0 !important;
    display: block;
    width: 120px !important;
  }
}

/* Extra malé mobily */
@media (max-width: 480px) {
  .publications-filters .filter-btn {
    width: 100px !important;
    font-size: 11px !important;
    padding: 4px 4px !important;
  }
}