/* 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;  
  --font: "Ubuntu", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

/* OPRAVA: Odstavce pouze uvnitř sekce main, aby nedeformovaly hlavičku a menu webu */
main p {
  padding: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 1.25rem !important; 
  line-height: 1.8 !important;        
}

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; 
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

/* Hero sekcia - Zmenšené miesto nad bannerom */
.hero {
  text-align: center;
  padding: 0.5rem 0 0.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: 1.5rem 2.5rem;
  border-radius: var(--radius-small);
  border: 1px solid var(--line);
}

.hero-badge h1 {
  margin: 0 0 0.25rem 0;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
}

.hero-badge h2 {
  margin: 0 0 0.5rem 0;
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--ink);
}

.hero-badge h3 {
  margin: 0 0 1rem 0;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent-dark);
}

.hero-meta h2 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

/* Úprava prvej sekcie (banneru), aby nebola pod headerom zbytočná medzera */
.hero + .section {
  padding-top: 0;
}

.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 */
.prose {
  font-size: 1.1rem;
  max-width: 850px;
  margin: 0 auto;
  text-align: center;
}

/* Plagát obal */
.poster-wrap {
  max-width: 100%;
  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);
}

/* Sekcia pre zdieľanie */
.share-box {
  max-width: 750px;
  margin: 2.5rem auto 1rem;
  text-align: center;
  background: var(--bg-light);
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.share-text {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary) !important;
  margin: 0 0 1.5rem 0 !important;
}

.share-buttons {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 1.5rem !important;
  justify-content: center !important;
}

/* ZVĚTŠENÁ kruhová tlačítka KOMPLETNĚ BEZ STÍNU */
.btn-share {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 64px !important;              
  height: 64px !important;             
  border-radius: 50% !important;
  text-decoration: none !important;
  color: #fff !important;
  box-shadow: none !important;         
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  padding: 0 !important;
}

/* Plynulý scale efekt na 1.1 */
.btn-share:hover {
  transform: scale(1.1) !important;
  color: #fff !important;
  box-shadow: none !important;
}

.btn-facebook {
  background-color: #1877f2 !important;
}

.btn-whatsapp {
  background-color: #25d366 !important;
}

/* Zvětšené vnitřní SVG ikony */
.btn-share svg {
  display: block !important;
  width: 32px !important;              
  height: 32px !important;             
  margin: 0 !important;
}

/* Video Sekcia */
.video-block {
  max-width: 100%;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--line);
  background: #000;
}

.video-block video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.video-caption {
  max-width: 750px;
  margin: 1.5rem auto 0 auto;
  text-align: center;
  font-size: 1.1rem;
  color: var(--ink);
}

.video-caption p:last-child {
  color: var(--primary) !important;
}

/* 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;
  }
  .prose {
    font-size: 1.25rem;
  }
}

.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 {
  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);
}

/* 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.highlighted {
  border-left-color: var(--accent);
  background: linear-gradient(to right, #fffdf7, #fff);
}

/* Partneri - RESPONSIVNÍ MOBILNÍ LAYOUT (LOGA POD SEBOU) */
.partners {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.partner-cell {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.partner-cell a {
  display: block;
  width: 100%;
  text-align: center;
}

.partner-cell img {
  width: auto;
  max-width: 85%; /* Bezpečné zobrazení, aby nelezlo ke krajům displeje */
  height: auto;
  max-height: 80px; /* Jednotná maximální výška pro čisté zarovnání pod sebou */
  object-fit: contain;
  transition: transform 0.2s ease;
  margin: 0 auto;
}

/* Tablet a desktop zobrazení (vedle sebe na 4 sloupce) */
@media (min-width: 600px) {
  .partners {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem 1.5rem;
  }
  
  .partner-cell img {
    max-width: 100%;
    max-height: 65px;
  }
}

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

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

/* 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;
}

.support-statement {
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--ink);
}

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