/* --- Globalni styl obsahu stranek --- */

/* Hlavni textove bloky */
.content-text-wide {
  max-width: 900px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.7;
}

/* Nadpisy */
.content-text-wide h1,
.content-text-wide h2,
.content-text-wide h3 {
  font-weight: 600;
  margin-bottom: 1.2rem;
}

/* Odkazy v textu */
.content-text-wide a {
  color: #2c3e9f;
  text-decoration: none;
  font-weight: 500;
}
.content-text-wide a:hover {
  text-decoration: underline;
}

/* Obrazky */
.content-text-wide img {
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Cards pro fotky */
.content-text-wide .card {
  border: none;
  border-radius: 10px;
  overflow: hidden;
}

/* Vzdalenosti mezi sekcemi */
.content-text-wide .row {
  margin-bottom: 2rem;
}

.navbar-separator {
  border-left: 1px solid #ccc;
  height: 24px;
  margin: 0 12px;
}

.lang-switch a {
  font-size: 0.9rem;
  color: #666 !important;
  padding-left: 6px;
  padding-right: 6px;
}

.lang-switch a:hover {
  color: #000 !important;
}

.btn-register {
  background-color: #2e2b5e;
  color: white;
  padding: 10px 20px;
  font-size: 1.1rem;
  border-radius: 5px;
  text-decoration: none;
}
.btn-register:hover {
  background-color: #25234a;
  color: white;
}

hr.border-custom {
  border-top: 3px solid #2e2b5e !important;
  opacity: 1;
}

.heading-main {
  color: #2e2b5e;
}

/* Zarovnani do bloku */
.text-justify {
  text-align: justify;
}

/* Stejna vyska textu pro vsechny karty */
.fixed-text-height {
  min-height: 80px;
}

/* Hover efekt karty */
.card {
  transition: transform 0.2s ease-in-out;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.lang-switch img,
.lang-switch .fi {
  width: 24px;
  height: 16px;
  border-radius: 2px;
  display: inline-block;
}

/* Aktivni hlavni sekce v menu */
.navbar .nav-link.active {
  font-weight: bold;
  color: #2e2b5e !important;
}

/* Aktivni stranka v dropdownu */
.dropdown-menu .dropdown-item.active {
  font-weight: bold;
  background-color: #2e2b5e;
  color: #fff !important;
}

:root {
  --brand-color: #2e2b5e;
}

.navbar .nav-link.active-section {
  font-weight: bold;
  color: var(--brand-color) !important;
}

.dropdown-menu .dropdown-item.active-item,
.dropdown-menu .dropdown-item.active-item:hover {
  background-color: var(--brand-color) !important;
  color: #fff !important;
}

/* Aktivni sekce */
.navbar .nav-link.active-section {
  font-weight: bold;
  color: #2e2b5e !important;
}

/* Aktivni polozka v dropdownu */
.dropdown-item.active-item,
.dropdown-item.active-item:focus,
.dropdown-item.active-item:hover {
  background-color: #2e2b5e;
  color: #fff !important;
}

/* Zarovnani sipky dropdown */
.navbar-nav .nav-item.dropdown {
  display: flex;
  align-items: center;
}

.navbar-nav .dropdown-toggle-split {
  padding-left: 0.25rem;
  padding-right: 0.25rem;
  margin-left: -4px;
}

/* Dropdown na hover (desktop) */
@media (min-width: 992px) {
  .navbar .dropdown:hover > .dropdown-menu {
    display: block;
    margin-top: 0;
  }
}

/* Dropdown pozice */
.navbar .dropdown-menu {
  top: 100%;
  left: 0;
  margin-top: 0;
}

.navbar .dropdown-menu.dropdown-menu-end {
  left: auto;
  right: 0;
}

/* TIMELINE PRO LECTORAT */

.timeline {
  position: relative;
  padding-left: 20px;
  margin: 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 12px;
  width: 2px;
  height: 100%;
  background: #2e2b5e;
}

.timeline li {
  position: relative;
  margin-bottom: 30px;
  list-style: none;
}

.timeline-badge {
  position: absolute;
  left: -5px;
  top: 0;
  background: #2e2b5e;
  color: white;
  font-weight: bold;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  text-align: center;
  line-height: 40px;
}

.timeline-panel {
  margin-left: 60px;
  padding: 10px 15px;
  background: white;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.hero-wrap { position: relative; }

/* Santoral chip nad karuselem */
.santoral-chip {
  z-index: 1030;
  pointer-events: none;
}
.santoral-chip .badge {
  font-size: 1rem;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.25);
}

/* Instagram v navbaru */
.navbar .epep-instagram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  color: #2e2b5e;
  transition: background-color .15s ease, color .15s ease, transform .1s ease;
}

.navbar .epep-instagram:hover {
  background: rgba(202,65,83,.12);
  color: #ca4153;
  transform: translateY(-1px);
}

/* Jazyk + IG zarovnani */
.navbar .lang-social .nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding-top: 0;
  padding-bottom: 0;
}

.navbar .lang-social .fi {
  line-height: 1;
  transform: translateY(-1px);
}

.navbar .epep-instagram svg {
  display: block;
}

/* Instagram logo */
.instagram-logo {
  height: 30px;
  width: auto;
  display: block;
}

.instagram-logo-link {
  padding: 0 .4rem;
  display: inline-flex;
  align-items: center;
}

.instagram-logo-link:hover {
  opacity: .85;
}

.nav-right-stack {
  display: flex;
  align-items: center;
}

.nav-right-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.1;
}

.aula-float {
  position: absolute;
  top: 8px;
  right: 3.25rem;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 600;
  color: #2e2b5e;
  background: rgba(46, 43, 94, 0.08);
  text-decoration: none;
  white-space: nowrap;
}

.aula-float:hover {
  text-decoration: none;
  background: rgba(46, 43, 94, 0.14);
  color: #2e2b5e;
}

@media (min-width: 992px) {
  .aula-float {
    right: 0.75rem;
    top: 8px;
  }
  .navbar {
    padding-top: 0px;
  }
  #navbarNavDropdown {
    margin-top: 40px;
  }
}

/* Hero brand sekce (nahrazuje inline style="background-color:#2e2b5e; color:white;") */
.hero-brand {
  background-color: #2e2b5e;
  color: #fff;
  margin-top: 1.5rem;
}

/* Brand tlacitka (nahrazuje inline style="background-color:#2e2b5e; color:white;" na <a class="btn">) */
.btn-brand,
.btn-brand:hover,
.btn-brand:focus,
.btn-brand:active {
  background-color: #2e2b5e !important;
  border-color: #2e2b5e !important;
  color: #fff !important;
}

/* Karty s hover efektem pro rozcestniky */
.card-hover-brand {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}
.card-hover-brand:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(46, 43, 94, 0.18) !important;
}
