 /*
Theme Name: Lovecraft Lite
Theme URI: https://example.com/lovecraft-lite
Author: Tvoje Meno
Author URI: https://example.com
Description: Jednoduchá minimalistická téma podobná Lovecraft, bez WooCommerce a komentárov.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lovecraft-lite
*/

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  background-color: #fffcf4;; /* Hlavné pozadie */
  color: #000000; /* Čierny text */
  font-size: 18px;
  line-height: 1.5;
}
img {
  max-width: 100%;
  height: auto;
  display: block; /* Odstráni medzeru pod obrázkom */
}
header {
  margin-bottom: 30px; /* alebo padding-bottom: 30px; */
}
body.home .container {
  margin-top: 80px;
}
.category .post-thumbnail img {
  max-width: 300px; /* alebo akákoľvek vhodná šírka */
  height: auto;
  display: block;
  margin-bottom: 1em;
}
.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.deka{font-size:16px !important;}
.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

a {
  color: #A90000; /* Červené odkazy na stránkach */
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #C1BAA1; /* Akcentová farba pre hover */
  text-decoration: none;
}

header {
  background-color: #b80000; /* Primárna farba */
  padding: 15px 15px;
  box-shadow: 0 2px 5px rgba(0,0,0,2.1);
}

header a {
  color: #ECEBDE; /* Kontrastná farba */
  font-weight: 600;
  font-size: 20px;
  text-transform: none;
}

nav {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 15px;
  background: #fffcf4; /* Svetlé pozadie */
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  max-width: 1000px;
  margin: 10px auto 30px;
  box-sizing: border-box;
}

nav img {
  height: 40px;
  display: block;
}

nav ul.nav-menu {color:#fffcf4;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  flex-grow: 1;
}

nav ul.nav-menu li a {
  font-weight: 600;
  color: #2c456b; /* Čierne odkazy v menu */
  padding: 5px 8px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

nav ul.nav-menu li a:hover,
nav ul.nav-menu li.current-menu-item a {
  background-color: #C1BAA1; /* Akcentová farba */
  color: #ECEBDE; /* Kontrastná farba */
}

.container {
  max-width: 900px;
  margin: 40px auto 40px;
  padding: 0 10px;
  box-sizing: border-box;
}

h1 {font-size:20px;
  color: #870000;  /* Čierne nadpisy */
  margin-top: 20;
}
h2 {font-size:18px;
  color: #0b5394;  /* Čierne nadpisy */
  margin-top: 20;
}
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-bottom: 60px;
}

.post-box {
  background: #f3f3ea; /* Svetlé pozadie Cleveland: 1px solid #C1BAA1; /* Akcentová farba */
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.8);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.post-box img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 1px solid #C1BAA1; /* Akcentová farba */
  flex-shrink: 0;
}

.post-box h2 {
  font-size: 20px;
  margin: 15px 15px 10px;
  color: #A90000; /* Čierny nadpis (kategórie) */
  line-height: 1.2;
}

.post-box p {
  flex-grow: 1;
  margin: 0 15px 15px;
  font-size: 15px;
  color: #000000; /* Čierny text */
  line-height: 1.4;
}

.post-box a {
  color: #A90000; /* Čierne odkazy v kategóriách */
  text-decoration: none;
  transition: color 0.2s ease;
}

.post-box a:hover {
  color: #C1BAA1; /* Akcentová farba pre hover */
  text-decoration: underline;
}

footer {
  background: #b80000; /* Primárna farba */
  color: #ECEBDE; /* Kontrastná farba */
  text-align: center;
  padding: 20px 10px;
  margin-top: auto;
  font-size: 14px;
}

@media (max-width: 768px) {
  main {
    padding: 15px 10px;
  }
  nav {
    flex-direction: column;
    gap: 10px;
  }
  nav ul.nav-menu {
    justify-content: center;
  }
  .post-box img {
    height: 140px;
  }
  .post-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.header-banner {
  width: 100vw;
  max-height: 300px;
  overflow: hidden;
  margin: 0;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.header-banner img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

.banner-wrapper {
  margin-bottom: 40px;
  max-height: 300px;
  overflow: hidden;
}

.banner-img {
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: cover;
  display: block;
  border-radius: 10px;
}

.fullwidth-banner {
  margin: 0;
  padding: 0;
  line-height: 0;
}

.fullwidth-banner img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 300px;
}

@media (max-width: 768px) {
  .fullwidth-banner img {
    max-height: 180px;
  }
}

@media (max-width: 480px) {
  .fullwidth-banner img {
    max-height: 140px;
  }
}

.horizontal-banner {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 40px auto;
  padding: 10px 0;
  width: 100%;
  box-sizing: border-box;
}

.horizontal-banner img {
  width: 100%;
  max-width: 970px;
  height: auto;
  display: block;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.green-button {
  background-color: #28a745; /* zelená farba */
  color: white;
  padding: 10px 20px;
margin:20px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.green-button:hover {
  background-color: #218838; /* tmavšia zelená pri hoveri */
}

.project-details {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
  margin-top: 2rem;
}

.project-info {
  flex: 1;
  min-width: 250px;
}

.project-description {
  flex: 2;
  min-width: 300px;
}

.three-part-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  align-items: start;
  margin: 3rem 0;
}

.left-column h2 {
  font-size: 1.5rem;
  line-height: 1.4;
  margin-bottom: 1rem;
  font-style: italic;
}

.left-column img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.text-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.text-columns .column p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #333;
}

/* Responzívne zobrazenie */
@media (max-width: 768px) {
  .three-part-layout {
    grid-template-columns: 1fr;
  }

  .text-columns {
    grid-template-columns: 1fr;
  }

  .left-column h2 {
    font-size: 1.3rem;
  }
}

.custom-three-column {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  margin: 3rem 0;
  align-items: start;
}

.left-side h2 {
  font-size: 1.5rem;
  font-style: italic;
  margin-bottom: 1rem;
}

.left-side img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.text-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.text-columns .column p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #333;
}

/* Responzívne zobrazenie */
@media (max-width: 768px) {
  .custom-three-column {
    grid-template-columns: 1fr;
  }

  .text-columns {
    grid-template-columns: 1fr;
  }

  .left-side h2 {
    font-size: 1.3rem;
  }
}
.gallery-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  align-items: start;
  margin: 3rem 0;
}

.left-column h2 {
  font-size: 1.5rem;
  font-style: italic;
  margin-bottom: 1rem;
}

.left-column img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.text-blocks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.text-blocks .text-column p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #333;
}

/* Responzívne zobrazenie */
@media (max-width: 768px) {
  .gallery-layout {
    grid-template-columns: 1fr;
  }

  .text-blocks {
    grid-template-columns: 1fr;
  }

  .left-column h2 {
    font-size: 1.3rem;
  }
}

.intro-text {
  grid-column: 1 / -1;
  text-align: center;
  margin-bottom: 2rem;
}

.intro-text p {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #2c456b;
  font-style: italic;
}

.custom-row {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

.full-width-text {
  flex: 0 0 100%;
  font-size: 1.2rem;
  line-height: 1.6;
  color: #2c456b;
  font-style: italic;
  text-align: center;
}

.two-columns .column {
  flex: 0 0 50%;
  padding: 0 15px;
  box-sizing: border-box;
}

.two-columns .column p {
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
}

/* Mobilná verzia */
@media (max-width: 768px) {
  .two-columns .column {
    flex: 0 0 100%;
    padding: 10px 0;
  }
}

.with-left-image {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  width: 80%; /* rozšírenie celej sekcie */
  margin: 3rem auto;
  padding: 0;
  align-items: start;
}

.right-columns {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.text-blocks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

/* Textový štýl a nadpis */
.full-width-text {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #2c456b;
  font-style: italic;
}

.left-column h2 {
  font-size: 1.5rem;
  font-style: italic;
  margin-bottom: 1rem;
  color: #2c456b;
}

.left-column img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  margin-top: 1rem;
}

.text-column p {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
}

/* Responzívne */
@media (max-width: 1024px) {
  .with-left-image {
    width: 95%;
  }
}

@media (max-width: 768px) {
  .with-left-image {
    grid-template-columns: 1fr;
    width: 100%;
    padding: 0 1rem;
  }

  .text-blocks {
    grid-template-columns: 1fr;
  }

  .left-column h2 {
    font-size: 1.3rem;
  }
}

.custom-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  max-width: 100%; /* prepíše akýkoľvek limit z .container */
}

.right-columns {
  width: 100%;
}

.full-width-text {
  grid-column: 1 / -1;
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.text-blocks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

/* Tri stĺpce s obrázkami a textom */
.three-columns-container {
    max-width: 1000px; /* Zhodné s main v téme */
    margin: 0 auto;
    background-color: #ECEBDE; /* Pozadie z palety */
    padding: 2rem;
    box-sizing: border-box;
}

.three-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.column {
    flex: 1 1 30%;
    box-sizing: border-box;
    padding: 1rem;
    text-align: center;
    background: #D7D3BF; /* Svetlé pozadie z palety */
    border: 1px solid #C1BAA1; /* Okraj z palety */
    border-radius: 8px;
}

.column img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.column h3 {
    color: #a90000; /* Primárna farba z palety */
    font-size: 20px;
    margin: 15px 0 10px;
}

.column p {
    color: #000; /* Primárna farba z palety */
    font-size: 20px;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .column {
        flex: 1 1 100%; /* Stĺpce pod seba na mobile */
    }
}

/* Ochrana proti konfliktom s .container a .entry-content */
.entry-content .three-columns-container {
    width: 100% !important;
    max-width: 1000px !important;
    margin: 0 auto !important;
}

.entry-content .three-columns-container,
main .three-columns-container,
.container .three-columns-container,
article .three-columns-container {
    width: 100% !important;
    max-width: 1000px !important;
    margin: 0 auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.entry-content,
.container,
main,
article {
    max-width: 1000px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
 padding-top: 10px;
}

.custom-section2,
.custom-section3 {text-align:justify;
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 30px;
  flex-wrap: wrap;margin-bottom: 10px;
}

/* Obrázky */
.custom-section2 img,
.custom-section3 img {
   max-height: 350px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;    /* obrázok sa nezmenšuje pod 150px */
  display: block;
  /* Ak chceš zarovnať vertikálne na vrch */
  align-self: flex-start;
}

/* Textové bloky vedľa obrázka */
.custom-section2 .text-block,
.custom-section3 .text-block {
  flex: 1;
  min-width: 250px;
  /* Prípadne padding, aby nebol text úplne nalepený */
  padding-top: 5px; margin-bottom:5px;
}

/* Obrázok vpravo */
.custom-section3.image-right {
  flex-direction: row-reverse;
}

/* Responzívne pre mobil */
@media (max-width: 768px) {
  .custom-section2,
  .custom-section3.image-right {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .custom-section2 .text-block,
  .custom-section3 .text-block { 
    text-align: left;
    width: 100%; 
    padding-top: 15px; margin-bottom: 5px;  !important;
  }
}
