:root {
  --bg-body: #c9c9c9;
  --bg-body2: #949AA0;
  --bg-wrapper: #ffffff;
  --bg-sidebar: #f4faf0;
  --bg-nav: #cfc8ab;
  --bg-hero: #f5f5f5;
  --bg-footer: #141414;

  --text-main: #292929;
  --text-dark: #000000;
  --text-light: #ffffff;
  --text-muted: #4a4a4a;
  --text-accent: #f2851e;
  --text-accent-dark: #a65e2e;
  --text-grey: #5a5a5a;
  --text-footer-muted: #858271;
  --text-credits: #454241;
  --text-credits-hover: #353231;

  --shadow-nav: #9f987b;
  --shadow-light: rgba(0,0,0,0.15);

  --border-light: #e0e0e0;
  --border-np: #f4faf0;

  --sidebar-bg-image: url('https://puchov.fara.sk/media/obrazky/sidebar.png');
}

html {
  font-size: 18px;
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

body {
  background-color: var(--bg-body);
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.6;
  font-size: 0.9375rem;
  text-align: center;
}

#wrapper {
  background-color: var(--bg-wrapper);
  width: 75rem;
  margin: 1.875rem auto 1.875rem auto; /* menší horný okraj */
  padding: 1.25rem;
  position: relative;
  text-align: left;
}

/*
header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

h1 a {
  color: var(--bg-nav);
  font-size: 4.5rem;     
  font-weight: normal;
  letter-spacing: 0.2rem;
  line-height: 1em;
  text-decoration: none;
}

h1 a span {
  color: var(--text-dark);
  font-size: 5.5rem;   
}

nav {
  background-color: var(--bg-nav);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 3.75rem;
  width: 74%;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
}

nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

nav li a {
  font-size: 1.375rem;
  color: var(--text-light);
  text-shadow: 0.0625rem 0.0625rem 0 var(--shadow-nav);
  text-decoration: none;
  transition: text-shadow 0.3s ease, color 0.3s ease;
}

nav li a:hover {
  color: #f5f5f5;
  text-shadow: 0.0625rem 0.0625rem 0.1875rem var(--bg-nav);
  text-decoration: underline;
}
*/

/* HLAVIČKA – vertikálne rozloženie */
header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 0.5rem; /* menší horný okraj */
}


/* Nadpis */
/* ============================
   NADPIS STRÁNKY (H1)
   ============================ */

h1 a {
  color: var(--bg-nav);
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: 0.05rem;
  line-height: 1.2;
  text-decoration: none;
  display: inline-block;

  /* Jemný spodný akcent */
  padding-bottom: 0.4rem;
  border-bottom: 2px solid #e0e0e0;

  /* Prechod pre jemný hover efekt */
  transition: color 0.25s ease, border-color 0.25s ease;
}

/* Farebný akcent v názve */
h1 a span {
  color: var(--text-dark);
  font-size: 3rem;
  font-weight: 700;
}

/* Hover efekt (len na desktopoch) */
@media (min-width: 800px) {
  h1 a:hover {
    color: var(--text-dark);
    border-color: var(--bg-nav);
  }
}

/* Mobilná verzia */
@media (max-width: 600px) {
  h1 a {
    font-size: 2.3rem;
  }

  h1 a span {
    font-size: 2.5rem;
  }
}


/* Podtitul */
.subtitle {
  margin-top: 0.3rem;
  font-size: 1.2rem;
  color: var(--text-dark);
  letter-spacing: 0.05rem;
}


/* NAVIGÁCIA */
nav {
  background-color: var(--bg-nav);
  width: 100%; /* plná šírka */
  height: 3.75rem;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
}

nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

nav li a {
  /*font-size: 1.375rem;*/
  font-size: 1.20rem;
  color: var(--text-light);
  text-shadow: 0.0625rem 0.0625rem 0 var(--shadow-nav);
  text-decoration: none;
  transition: text-shadow 0.3s ease, color 0.3s ease;
}

nav li a:hover {
  color: #f5f5f5;
  text-shadow: 0.0625rem 0.0625rem 0.1875rem var(--bg-nav);
  text-decoration: underline;
}

/* HERO obrázok */
.hero {
  justify-content: center;
  align-items: center;
  height: auto;
  margin: 1.25rem 0;
  background-color: var(--bg-hero);
  opacity: 0;
  animation: fadeIn 0.3s ease-in forwards;
  width: 100%;
  box-shadow: 0 0.75rem 1.5rem var(--shadow-light);
}


.hero {
  justify-content: center;
  align-items: center;
  height: auto;
  margin: 1.25rem 0;
  background-color: var(--bg-hero);
  opacity: 0;
  animation: fadeIn 0.3s ease-in forwards;
  width: 100%;
  box-shadow: 0 0.75rem 1.5rem var(--shadow-light);
}

.main-layout {
  display: flex;
  gap: 1.25rem;      /* 20px */
  max-width: 75rem; /* 1000px */
  margin: 0 auto;
}

main {
  flex: 1;
  padding-bottom: 0.625rem; /* 10px */
  width: 100%;
  margin-left: 0;
  order: 2;
}

main a {
  color: var(--text-main);
  text-decoration: underline;
}

main a:hover {
  color: var(--text-dark);
  transition: color 0.3s ease;
}

main h2 {
  font-size: 1.375rem; /* 22px */
  font-style: italic;
  font-weight: normal;
  margin: 1.25rem 0; /* 20px */
  color: #333;
}

main h3, h3 a {
  color: var(--text-accent);
  font-size: 1.125rem; /* 18px */
  margin: 1.875rem 0 1.25rem 0;
  margin: 1rem 0 0 0;
}

main h3 a:hover {
  color: var(--text-accent-dark);
  transition: color 0.3s ease;
}

main h4 {
  font-size: 0.9375rem; /* 15px */
  margin-top: 0.625rem; /* 10px */
}

main em {
  display: block;
  margin: -20px 0 10px 0;
}

main p,
main p.spat {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

main p.zoznam {
  margin-bottom: 0px;
}

main p.datum-clanku {
  display: block;
  margin: 0px 0 10px 0;
  color: var(--text-dark);
  font-style: italic;
}

main ul, main ol {
  color: var(--text-muted);
  margin: -10px 0 20px 25px;
}

main ul, main ol li {
  margin-top: 0px;
}

main ul.vnoreny-zoznam,
main li.za-vnorenym-zoznamom {
  margin-left: 20px;
  margin-top: 0px;
}

main li.PrvaPolozka {
  margin-top: -20px;
}

#sidebar {
  flex: 0 0 15.625rem; /* 250px */
  order: 1;
  background-color: var(--bg-sidebar);
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  padding: 1.25rem; /* 20px */
  gap: 0;
  min-height: 100%;
  background: url('https://puchov.fara.sk/media/obrazky/sidebar.png') repeat-y;
  background-color: #f4faf0;
  content-visibility: auto;
}

#sidebar section {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 0;
}

#sidebar h3 {
  font-size: 1.875rem;
  font-style: italic;
  font-weight: normal;
  color: var(--text-accent);
  letter-spacing: -0.0625rem;
  margin: -0.3125rem 0 0.9375rem -0.125rem;
}

#sidebar img {
  max-width: 100%;
  height: auto;
  opacity: 0;
  animation: fadeIn 0.3s ease-in forwards;
}

#sidebar .interier-bohosluzby {
  margin-top: 5px;
  width: 15.625rem;  /* 250px */
  height: 8.75rem;   /* 140px */
}

#sidebar a.rozpis {
  background: var(--bg-wrapper);
  color: var(--text-grey);
  font-style: italic;
  text-align: center;
  text-decoration: none;
  padding: 0.125rem 0;
  display: block;
  white-space: nowrap;
  transition: color 0.3s ease;
  width: var(--sidebar-width);
}

#sidebar a.rozpis:hover {
  color: var(--text-dark);
}

.link-arrow::before {
  content: "» ";
}

#sidebar h4 {
  margin-top: 1.25rem; /* 20px */
}

#sidebar table {
  width: 100%;
  border-collapse: collapse;
}

#sidebar table tr + tr td {
  border-top: 1px solid var(--border-light);
}s

#sidebar table td {
  padding: 0.25rem 0.375rem; /* 4px / 6px */
  text-align: right;
}

#sidebar ul.sidebar-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

#sidebar ul.sidebar-links li {
  margin: 5px;
  /*margin: 0.625rem 0; /* 10px */
  font-size: 0.875rem; /* 14px */
}

#sidebar ul.sidebar-links li a {
  color: var(--text-main);
  text-decoration: underline;
  transition: color 0.3s ease;
}

#sidebar ul.sidebar-links li a:hover {
  color: var(--text-dark);
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  background-color: var(--bg-footer);
  padding: 1.25rem 1.25rem; /* 20px */
  font-style: italic;
  margin-bottom: 0;
}

footer section {
  flex: 1 1 15.625rem; /* 250px */
  min-width: 15.625rem; /* 250px */
}

footer h4 {
  color: var(--text-footer-muted);
  font-size: 1.0625rem; /* 17px */
  font-weight: normal;
  margin-bottom: 0.625rem; /* 10px */
}

footer p,
footer address p {
  color: var(--text-light);
  font-size: 0.75rem; /* 12px */
  padding-left: 0.1875rem; /* 3px */
}

footer a {
  color: var(--text-light);
  text-decoration: underline;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #858271;

}

.date {
  color: var(--text-light);
  font-size: 0.611rem; /* 11px pri base 18px */
  font-style: italic;
  position: absolute;
  right: 0.278rem; /* 5px pri base 18px */
  top: -1.833rem; /* -33px pri base 18px */
}

.credits {
  color: var(--text-credits);
  font-size: 0.6875rem; /* 11px */
  font-style: italic;
  position: absolute;
  bottom: -1.25rem; /* -20px */
  left: 0;
  text-align: center;
  width: 100%;

}

.credits a {
  color: var(--text-credits);
}

.credits a:hover {
  color: var(--text-credits-hover);
  text-decoration: none;
}

.tucne-pismo {
  font-weight: bold;
}

.kurziva {
  font-style: italic;
}

.np {
  background-color: var(--border-np);
}

.prezentacie {
  list-style-type: none;
  text-align: left;
  width: auto;
  margin-left: 0; /* 0px */
}

.prezentacie li {
  margin-top: 0.625rem; /* 10px */
}

.prezentacie li:nth-child(odd) {
  background-color: var(--border-np);
}

.rows {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.row {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.5rem;
  border-bottom: 1px solid var(--grey-200);
}

.row.np {
  background-color: var(--grey-100);
  border-left: 3px solid var(--grey-400);
}

.label {
  flex: 1;
  color: var(--grey-800);
}

.value {
  flex: 1;
  text-align: right;
  color: var(--grey-700);
}

.full {
  flex: 1;
  font-style: italic;
  color: var(--grey-600);
}

.value a {
  color: var(--link-blue);
  text-decoration: none;
}

.value a:hover {
  text-decoration: underline;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 12px var(--shadow-light);
  margin-bottom: 20px;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

details {
  margin-bottom: 1rem;
  border: 1px solid var(--grey-300);
  border-radius: 6px;
  padding: 0.5rem 0.5rem;
  background: var(--bg-wrapper);
}

summary {
  font-weight: bold;
  cursor: pointer;
  color: var(--text-main);
  transition: color 0.3s ease;
}

summary:hover {
  color: var(--text-dark);
}

details[open] {
  background: var(--bg-wrapper);
  border-color: var(--bg-sidebar);
}

.kn-text {
  margin-top: 0.5rem;
  padding-left: 0.5rem;
}

.mobilny-hospic-emanuel {
  display: block;
  width: 100%;
  height: auto;
  margin: 20px auto 20px;
}

.fatimska-panna-maria {
  display: block;       
  max-width: 100%;       
  height: auto;       
  margin: 20px auto 20px;
}

img {
  border-radius: 5px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.30);
  display: block;
  max-width: 100%;
  height: auto;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.imgr {
  float: right;
  margin: 5px 0 5px 10px;
  opacity: 0;
  animation: fadeIn 0.3s ease-in forwards;
  display: inline-block; /* dôležité */
}

img.no-style {
  border-radius: 0;
  box-shadow: none;
  transform: none;
  filter: none;
}

dl {
  margin: 1.75rem 0;
  border-left: 3px solid #e3e3e3;
  padding-left: 1.25rem;
}

dt {
  font-weight: 600;
  margin-top: 1rem;
  color: #222;
  line-height: 1.4;
}

dd {
  margin: 0.35rem 0 1rem 0;
  color: #444;
  line-height: 1.55;
}

/* ============================
   ZÁKLADNÉ NASTAVENIA SEKCIÍ
   ============================ */

.section {
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 1.5rem;
  margin: 2rem 0;
  background: #fafafa;

  /* Jemný tieň */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);

  /* Prechod pre hover efekt */
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

/* Hover efekt len na desktopoch */
@media (min-width: 800px) {
  .section:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
  }
}

/* Nadpisy sekcií */
.section h3 {
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: #333;
}

/* ============================
   RIADKY A ICH ODDENENIE
   ============================ */

.section .rows {
  margin-top: 1rem;
}

.section .row {
  padding: 1rem 0;
  border-bottom: 1px solid #ddd;
  line-height: 1.6;
  text-align: center;
}

/* Posledný riadok bez čiary */
.section .row:last-child {
  border-bottom: none;
}

/* Striedavé pozadie pre lepšiu orientáciu */
.section .row:nth-child(odd) {
  background: #f5f5f5;
  border-radius: 6px;
}

/* ============================
   TYPOGRAFIA
   ============================ */

.tucne-pismo {
  font-weight: 600;
  color: #222;
}

.section .label,
.section .value,
.section .full {
  text-align: center;
}

/* ============================
   MOBILNÁ OPTIMALIZÁCIA
   ============================ */

@media (max-width: 600px) {
  .section {
    padding: 1.2rem;
  }

  .section .row {
    padding: 0.9rem 0;
  }

  .section h3 {
    font-size: 1.3rem;
  }
}
