/* Od Žiliny Fest 2026 — Finálny roztiahnutý layout */
:root {
  --ink: #2d132c;       /* Tmavá elegantná vínová na text */
  --muted: #645c64;
  --accent: #f0a500;    /* Teplá zlatá farba z plagátu */
  --accent-dark: #cf7500;
  --primary: #801336;   /* Hlavná vínovočervená z dizajnu plagátu */
  --bg-light: #f9f6f9;
  --line: #ebdceb;
  --radius: 12px;
  --radius-small: 6px;  /* Menšie zaoblenie podľa požiadavky */
  --font: "Ubuntu", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  line-height: 1.7;
  color: var(--ink);
  background: #fff;
  font-size: 1.05rem;
}

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

a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-dark);
}

main {
  max-width: 1000px; /* Roztiahnuté z pôvodných 720px pre vzdušnejší dizajn */
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

/* Hero sekcia */
.hero {
  text-align: center;
  padding: 3.5rem 0 2.5rem;
}

.hero-logo {
  width: min(100%, 460px);
  height: auto;
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.05));
}

.hero-info {
  background: var(--bg-light);
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: var(--radius-small); /* Menší border-radius pre informačný box */
  border: 1px solid var(--line);
}

.hero-badge {
  margin: 0 0 0.25rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
}

.hero-meta {
  margin: 0;
  font-size: 1rem;
  color: var(--muted);
  font-weight: 500;
}

/* Sekcie generálne */
.section {
  padding: 3rem 0;
  border-top: 1px solid var(--line);
}

.section-head {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 1.5rem;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.section-head.center {
  text-align: center;
}

.prose {
  font-size: 1.1rem;
  max-width: 850px;
  margin: 0 auto;
  text-align: justify;
}

.prose p {
  margin: 0 0 1.25rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

/* Plagát obal */
.poster-wrap {
  max-width: 650px;
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  border-radius: var(--radius);
  overflow: hidden;
}

.poster-wrap img {
  border: 1px solid var(--line);
}

/* Dvojstĺpcový programový Layout */
.program-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-top: 2rem;
}

@media (min-width: 850px) {
  .program-container {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.program-block {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.program-block-title {
  font-size: 1.4rem;
  margin-top: 0;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary);
  color: var(--primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Štítok pre čas v sprievodnom programe */
.time-badge {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  background: var(--accent-dark);
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* Časová os hlavného programu */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.tl-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding-bottom: 1.25rem;
  border-bottom: 1px dashed var(--line);
}

.tl-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.tl-time {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  background: var(--primary);
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  min-width: 65px;
  text-align: center;
}

.tl-content {
  flex: 1;
}

.tl-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
  color: var(--ink);
}

.tl-desc {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0;
}

/* Zvýraznená položka (Ščamba) */
.tl-item.featured {
  background: #fff;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid var(--accent);
  box-shadow: 0 4px 12px rgba(240, 165, 0, 0.1);
}
.tl-item.featured .tl-time {
  background: var(--accent-dark);
}

/* Sprievodný program zoznam */
.side-program-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.side-item {
  background: #fff;
  padding: 1.1rem 1.25rem;
  border-radius: 8px;
  border-left: 4px solid var(--primary);
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.side-item h5 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
}

.side-item p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.5;
}

.side-item.highlighted {
  border-left-color: var(--accent);
  background: linear-gradient(to right, #fffdf7, #fff);
}

/* Spodné texty a partneri */
.partners-intro {
  font-weight: 500;
  margin-bottom: 2rem;
}

.partners {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 1.5rem;
  align-items: center;
  justify-items: center;
}

@media (min-width: 600px) {
  .partners {
    grid-template-columns: repeat(4, 1fr);
  }
}

.partner-cell img {
  max-height: 65px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.partner-cell img:hover {
  transform: scale(1.05);
}

.legal {
  text-align: center;
  font-size: 0.95rem;
  color: var(--muted);
  margin-top: 2.5rem;
  line-height: 1.6;
}

/* Sekcia Ministerstvo */
.ministry-section {
  background: var(--bg-light);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 2.5rem 2rem !important;
  margin-top: 2rem;
}

.ministry-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

@media (min-width: 650px) {
  .ministry-container {
    flex-direction: row;
    text-align: left;
    gap: 2.5rem;
  }
}

.ministry-logo-wrap {
  flex-shrink: 0;
}

.ministry-logo-wrap img {
  max-height: 80px;
  width: auto;
  display: block;
}

.ministry-text {
  flex: 1;
}

.support-statement {
  font-style: italic;
  font-weight: 600;
  font-size: 1.05rem;
  margin: 0 0 0.5rem 0;
  color: var(--ink);
}

.patronage-statement {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
