/*
 Theme Name: Tvoja Dark Child Theme
*/

/* Global */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
	  min-height: 100%; /* radšej min-height ako height */  overflow-x: hidden;
}
 
.content {
  flex: 1; /* vytlačí footer na spodok */
}
.full-width-band {
  width: 100vw; /* 100% šírky viewportu (obrazovky) */
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background-color: #f0f0f0; /* Pridajte farbu pozadia podľa potreby */
  padding: 20px; /* Voliteľné odsadenie */
  text-align: center; /* Voliteľné zarovnanie */
}
@media (max-width: 1200px) {
    .custom-band .inner-container {
        max-width: 90%; /* Na menších obrazovkách sa prispôsobí */
    }
}
@media (max-width: 768px) {
    .custom-band {
        height: 300px; /* Zmenší výšku na mobiloch */
        padding: 15px;
    }
}
body {
    font-family: "Rubik", sans-serif;
    font-size: 20px;
    background: #f9f9f9;
    color: #222;
    line-height: 1.5; padding-bottom: 60px;
}

/* Header */
header.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 10px;
    background: #047857;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1); height:50px;
}
h1{font-family: 'Merriweather', serif; color:#EAEAD5;font-size:26px !important;}
header.site-header h3, {
       color:#ded5ab; 
    font-weight: 400;
}

h2, h3{font-family: 'Merriweather', serif;
  
  color: #6DAC68;
  line-height: 1.1;
  margin-bottom: 1em;
}
h2 {color:#6DAC68;
  font-size: 1.4em;
  margin-top: 1.5em;
}

h3 {color: #b00000;
  font-size: 1.4em;
  margin-top: 1.1em;
}
.site-title { text-shadow: 0 2px 6px rgba(0,0,0,0.8);font-size:26px;font-family: 'Merriweather', serif;color:#6DAC68;}
header.site-header nav ul {
    list-style: none;
    display: flex;
    gap: 15px;
}

header.site-header nav a {
    background: #047857;
    color: #fff;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,2.2);
}

header.site-header nav a:hover {
    background: #065f46;
}
.custom-band {
            width: 100vw;
            position: relative;
            left: 50%;
            right: 50%;
            margin-left: -50vw;
            margin-right: -50vw;
            background-color: #002448;
           padding: 30px;
            display: flex;
            justify-content: center;
            align-items: center;
            color: white;
        }
 
.custom-band h2, .custom-band h3.custom-band h2, .custom-band h3, .custom-band3 h2, .custom-band3 h3, .custom-band2 h2, .custom-band2 h3, .custom-band4 h2, .custom-band4 h3. .custom-bandw h2, .custom-bandw h3  {
  color: #ded5ab;
  font-weight: bold;
  margin: 0;
}
.custom-band .inner-container, .custom-band3 .inner-container, .custom-band2 .inner-container, .custom-band4 .inner-container {
  max-width: 1100px;
  width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
}
.custom-band3 {
            width: 100vw;
            position: relative;
            left: 50%;
            right: 50%;
            margin-left: -50vw;
            margin-right: -50vw;
            background-color: #002448;
           padding: 30px;
            display: flex;
            justify-content: center;
            align-items: center;
            color: white;
        }
.custom-band2 {
            width: 100vw;
            position: relative;
            left: 50%;
            right: 50%;
            margin-left: -50vw;
            margin-right: -50vw;
            background-color: #b80000;
           padding: 30px;
            display: flex;
            justify-content: center;
            align-items: center;
            color: white;
        }
		.custom-band2 h2 {
  color:#ded5ab;
  
    font-weight: bold; /* Hrubé písmo */
    
    margin: 0; /* Odstránenie predvolených okrajov */
        
}
.full-width-bandw {
  width: 100vw; /* 100% šírky viewportu (obrazovky) */
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background-color: #f0f0f0; /* Pridajte farbu pozadia podľa potreby */
  padding: 20px; /* Voliteľné odsadenie */
  text-align: center; /* Voliteľné zarovnanie */
}
.custom-bandw {
            width: 900px;
            position: relative;
            left: 50%;
            right: 50%;
            margin-left: -50vw;
            margin-right: -50vw;
            padding: 30px;
            display: flex;
            justify-content: center;
            align-items: center;
            color: white;
        }
 .custom-bandw .inner-container {
  max-width: 900px;
  width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
}
/* Content */
.page-content a {
    display: inline-block;
    background: #b80000;
    color: #fff;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    margin: 8px 0;
}
p {text-align:justify;}
.page-content a:hover {
    background: #8f0000;
}

.page-content img {
    border-radius: 12px;
    display: block;
    margin: 20px 0;
}

.content-inner {text-indent: 30px;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* Hero Banner */
.hero-banner {
    width: 100%;
    max-height: 400px;
    height: 400px;
    background-image: url('images/imoc.jpeg');
    background-size: cover;
    background-position: center;
    position: relative;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}

.hero-banner .hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.hero-banner .hero-content p {
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .hero-banner {
        height: 300px;
    }
    .hero-banner .hero-content h2 {
        font-size: 2rem;
    }
}



.section-inner {
    max-width: 900px;
    padding: 0 20px;
    box-sizing: border-box;
}

.section-1 {
    background-color: #047857;
}

.section-2 {
    background-color: #B80000;
}

/* Child Pages */
.child-pages {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
    max-width: 300px;
}

 

.child-page-link:hover {
    background: #065f46;
}
.child-page-button {margin-bottom:15px;max-width:700px;
    display: flex;
    flex-wrap: wrap;
  padding: 8px 16px;
    background:#0052A4;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.3s;
}
.child-page-button:hover {
    background: #b80000;
}
/* Main Menu */
.main-menu ul {
    list-style: none;
    display: flex;
    gap: 15px;
    padding: 0;
    margin: 20px 0;
}

.main-menu a.child-page-link {
    background: #047857;
    color: #fff;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.main-menu a.child-page-link:hover {
    background: #065f46;
}

/* Parent Buttons */
.parent-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
}

.parent-page-button {max-width:700px;
    display: inline-block;
    background: #047857;
    color: #fff;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.parent-page-button:hover {
    background: #065f46;
}

/* Navigation Buttons */
.navigation-buttons {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
}

.navigation-buttons .prev-button a,
.navigation-buttons .next-button a {
    background: #b80000;
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
}

.navigation-buttons .prev-button a:hover,
.navigation-buttons .next-button a:hover {
    background: #8f0000;
}

/* Footer */
footer.site-footer {font-size:16px;text-indent: 60px;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40px;
  line-height: 10px;
  background-color: #222;
  color: #fff;
  text-align: center;
  z-index: 1000; /* aby bol nad obsahom */
}
/* Tri stĺpce vedľa seba */
.three-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px; /* medzera medzi fotkami */
  margin: 20px 0;
}

.three-columns img {
  width: 100%;
  height: auto;
  border-radius: 8px; /* jemné zaoblenie */
  box-shadow: 0 2px 6px rgba(0,0,0,0.1); /* decentný tieň */
  transition: transform 0.3s;
}

.three-columns img:hover {
  transform: scale(1.05);
}
@media (max-width: 900px) {
  .three-columns { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .three-columns { grid-template-columns: 1fr; }
}

/* Obal tabuľku wrapperom, aby bola scrollovateľná na mobile */
.table-wrapper {
  width: 100%;
  overflow-x: auto; /* umožní horizontálny scroll na malých obrazovkách */
  -webkit-overflow-scrolling: touch;
  margin: 20px 0;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Základná tabuľka pre desktop */
table {
  width: 40%;
  border-collapse: collapse;
  font-size: 16px;
  line-height: 1.4;
  background: #fff;
}

table th,
table td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: left;
}

table th {
  background: #f4f4f4;
  font-weight: bold;
}

/* Mobile view – rozbitie do kariet */
@media (max-width: 768px) {
  table,
  thead,
  tbody,
  th,
  td,
  tr {
    display: block; /* všetko sa zmení na blok */
  }

  thead {
    display: none; /* schová hlavičku tabuľky */
  }

  tr {
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    background: #fff;
  }

  td {
    border: none;
    display: flex;
    justify-content: space-between;
    padding: 8px 5px;
  }

  td::before {
    content: attr(data-label); /* názov stĺpca doplníme sem */
    font-weight: bold;
    color: #333;
    margin-right: 10px;
  }
}

.styled-link {
    display: inline-block; /* Zabezpečí, že odkaz je obdĺžnikový */
    padding: 10px 20px; /* Vnútorný okraj pre pohodlný vzhľad */
    background-color: #e0e0e0; /* Svetlosivé pozadie */
    color: #333; /* Farba textu */
    text-decoration: none; /* Odstráni podčiarknutie odkazu */
    border-radius: 5px; /* Zaoblené rohy */
    transition: background-color 0.3s ease; /* Plynulý prechod pri hoveri */
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.styled-link:hover {
    background-color: #d0d0d0; /* Tmavší odtieň pri prechode myšou */
    color: #000; /* Tmavší text pri hoveri */
}
@media (max-width: 480px) {
    .child-buttons {
        flex-direction: column;   /* tlačidlá pod sebou */
        align-items: center;      /* centrovanie */
        gap: 8px;                 /* menšia medzera medzi buttonmi */
    }

    .child-page-button {
        width: 100%;              /* buttony sa natiahnu na šírku kontajnera */
        max-width: 300px;         /* maximálna šírka buttonu */
        text-align: center;
    }
}
