/* Main Stylesheet for VitaminDaKalcium.online */
:root {
    --primary-blue: #00609c;
    /* Estimated from VitaminDaKalcium logo/text */
    --accent-orange: #f58428;
    /* Estimated from buttons/icons */
    --text-grey: #6c757d;
    --bg-light: #f8f9fa;
    --nav-bg: #e2e6ea;
    /* Slightly darker grey for nav bar */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #fff;
    color: #333;
    max-width: 1920px;
    margin: 0 auto;
    /* Box shadow removed */
}

/* Header */

.main-header{
  background: #e2e2e2;     /* světle šedý pruh */
  padding: 22px 0;
  text-align: left;        /* už ne centrovat */
}

/* vnitřní šířka jako obsah webu */
.header-inner{
  max-width: 1900px;   
  margin: 0 auto;
  padding: 0 18px;

  display: flex;
  align-items: center;
  gap: 28px;
}

/* logo vlevo */
.header-logo img{
  display: block;
  height: 100px;           
  width: auto;
  margin-left: 3rem;
}

/* search uprostřed – dlouhá pill */
.header-search{
  flex: 1;
  display: flex;
  align-items: center;

  background: #fff;
  border: 2px solid var(--primary-blue);
  border-radius: 999px;
  height: 56px;
  padding: 0 18px;
}

/* lupa uvnitř vlevo */
.header-search-icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--primary-blue);
  margin-right: 10px;
}

.header-search-input{
  border: none;
  outline: none;
  width: 100%;
  font-size: 1.05rem;
  font-weight: 600;
  color: #333;
}

.header-search-input::placeholder{
  color: #9a9a9a;
  font-weight: 600;
}

/* odkaz vpravo */
.header-project-link{
  font-size: 1.15rem;
  margin-right: 4rem;
  margin-left: 3rem;
  font-weight: 700;
  color: #222;
  text-decoration: none;
  white-space: nowrap;
}

.header-project-link:hover{
  text-decoration: underline;
}

/* Responsivita */
@media (max-width: 768px){
  .header-inner{
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .header-project-link{
    text-align: center;
    font-size: 1.6rem;
  }

  .header-logo{
    display: flex;
    justify-content: center;
  }
}


@media (min-width: 1400px) {
 main.container {
    max-width: 1900px;
  }
}

/* Hero Section */
.hero-section {
    background: url('assets/img/hero.jpg') no-repeat center center;
    background-size: cover;
    height: 400px;
    /* Increased height for better visibility of the hero image */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Fallback if no image */
    background-color: #fcebd0;
}

.hero-text {
    color: var(--primary-blue);
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* Category Nav */
.category-nav {
    background-color: var(--nav-bg);
    padding: 15px 30px;
    border-bottom: 4px solid #fff;
    margin-left: 50px;
    margin-right: 50px;
	position: relative;
	top: -15px;
    border-radius: 12px;
}

.cat-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: color 0.2s;
    background-color: #e2e6ea;
    padding: 10px;
    border-radius: 8px;
    /* Optional: adds a bit of shape */
}

.cat-link:hover {
    color: var(--primary-blue);
    text-decoration: none;
    background-color: #dbe0e5;
}

/* Post Cards */
.post-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid #eee;
}

.post-card-body {
    padding: 20px;
}

.post-badge {
    background-color: var(--primary-blue);
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 10px;
}

.post-icon-img {
    float: right;
    height: 38px;
    width: auto;
	position: relative;
	top: -5px;
}

.post-title {
    color: var(--primary-blue);
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 10px;
    line-height: 1.2;
}

.post-text {
    color: var(--primary-blue);
    /* Based on image, text seems blue-ish too, or dark grey */
    font-size: 0.79rem;
    line-height: 1.25;
    margin-bottom: 15px;
}

.post-img-container {
    height: 100%;
    min-height: 200px;
    background-color: #eee;
    background-size: cover;
    background-position: center;
}

@media (max-width: 768px) {
	.post-img-container {
		aspect-ratio: 16 / 9;
		background-size: cover;
	}
	  /* druhý sloupec (s obrázkem) přehodit nahoru */
	  .post-card .row.g-0 > div:nth-child(2) {
		order: -1;
	  }

	  /* aby měl cover na mobilu z čeho kreslit */
	  .post-img-container {
		min-height: 180px;
		height: auto;
	  }
}


.btn-action {
    background-color: var(--accent-orange);
    color: white;
    border: none;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    padding: 5px 10px;
    font-weight: 600;
    font-size: 0.9rem;
	position: relative;
	left: 20px;
}

.btn-action:hover {
    background-color: #d97420;
    color: white;
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.page-item .page-link {
    color: var(--primary-blue);
    border-radius: 5px;
    margin: 0 3px;
    border: 1px solid #dee2e6;
}

.page-item.active .page-link {
    background-color: #fff;
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    font-weight: bold;
}

/* Ads Banner */
.ads-banner-container {
    padding: 0;
    margin: 0 auto;
    width: 100%;
}

.ads-banner img {
    width: 100%;
    height: auto;
    display: block;
	margin: 0 auto;
}

/* Footer */
.footer {
    padding: 0;
    font-size: 0.8rem;
    text-align: center;
    width: 100%;
}

.footer-top {
    background-color: #e9ecef;
    /* Light grey */
    padding: 15px 0;
    color: #000;
    font-weight: 600;
}

.footer-bottom {
    background-color: var(--primary-blue);
    /* Blue */
    color: white;
    padding: 10px 0;
    font-weight: 600;
}

/* ===== Equal-height karty per řádek, bez ořezu textu ===== */

/* 1) V každém řádku se sloupce natáhnou na výšku nejvyššího */
.posts-row{
  align-items: stretch;
}

/* 2) Každý sloupec funguje jako flex kontejner, aby karta mohla vyplnit výšku */
.posts-row > [class*="col-"]{
  display: flex;
}

/* 3) Karta vyplní výšku sloupce (= výška nejvyšší karty v řádku) */
.posts-row .post-card{
  flex: 1;
  width: 100%;
}

/* 4) Vnitřní layout karty musí také vyplnit výšku */
.posts-row .post-card .row.g-0{
  height: 100%;
}

.posts-row .post-card .col-md-7,
.posts-row .post-card .col-md-5{
  height: 100%;
}

/* 5) Levá část: flex sloupec, tlačítko vždy dole */
.posts-row .post-card-body{
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* 6) Text se NEořezává – jen dovolíme přirozenou výšku */
.posts-row .post-text{
  overflow: visible;
}

/* 7) Tlačítko dolů (stejné místo odspodu) */
.posts-row .post-card-body .text-end{
  margin-top: auto;
}

/* 8) Obrázek vpravo přes celou výšku karty */
.posts-row .post-img-container{
  height: 100%;
  min-height: 100%;
}
/* zajistí, že vnitřní Bootstrap .row v kartě se opravdu natáhne */
.posts-row .post-card { display: flex; }
.posts-row .post-card > .row { flex: 1; }

.zpet {
	  background-color: #14a0cb;
	  color: #fff;
	  text-decoration: none;
	  margin-top: 2em;
	  margin-bottom: 2em;
	}
	
.zpet:hover {
	  background-color: #ef7d2d;
	  color: #fff;
	}	
	
figcaption strong {
	color: #14a0cb;
}


.video-wrap video { max-height: 58vh; object-fit: contain; }	
	
	/* Playlist */
.playlist {
  max-height: 70vh;
  overflow-y: auto;
  background: #fff;
}
.playlist-item {
  border: 1px solid #e4e9f1;
  padding: .6rem .6rem;
  margin-bottom: .6rem;
  cursor: pointer;
  position: relative;
}
.playlist-item:hover {
  border-color: #17a2b820; /* jemný hover */
  box-shadow: 0 0 0 2px rgba(23,162,184,0.08) inset;
}
.playlist-item.active {
  border-color: #14a0cb;        
  box-shadow: 0 0 0 2px rgba(13,110,253,.12) inset;
}
.playlist-item .title {
  font-weight: 700;
  font-size: .92rem;
  line-height: 1.05rem;
  color: #14a0cb;
  margin-bottom: .25rem;
}
.playlist-item .meta {
  font-size: .7rem;
  color: #000;
}
.playlist-controls .btn { padding: .35rem .35rem; line-height: 1; }

/* kulaté šipky nahoru/dolů jako ve screenu */
.playlist-controls .btn { border-radius: 999px; }

/* na menších displejích ať je vše nad sebou */
@media (max-width: 991.98px) {
  .video-wrap video { max-height: 40vh; }
  .playlist { max-height: none; }
}

.btn-outline-primary {  
  color: #fff;
  background-color: #14a0cb;
  border-color: #14a0cb;
}

.btn-outline-primary:hover {
  color: #14a0cb;
  border-color: #fff;
  background-color: #fff; 
}

/* schovat svislý scrollbar, ale nechat programově posouvat */
.playlist {
  max-height: 70vh;
  overflow-y: auto;
  scroll-behavior: smooth;
  -ms-overflow-style: none;   /* IE/Edge */
  scrollbar-width: none;      /* Firefox */
}
.playlist::-webkit-scrollbar { display: none; } /* Chrome/Safari/Opera */

.playlist-item:first-child { margin-top: .25rem; }

h2.nadpis {
    color: #14a0cb;
}

.blue {
    color: #14a0cb;
}

