/*!
Theme Name: charita
Theme URI: https://charita.sk/
Author: cverna
Author URI: https://cverna.sk/
Description: Theme for Charita
Version: 1.0
Text Domain: charita
*/

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

/* ---- Accessibility ---- */

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus visible — viditeľný outline pre klávesnicových používateľov */
:focus-visible {
  outline: 2px solid var(--wp--preset--color--primary-1, #8a1d03);
  outline-offset: 2px;
}

/* Skip link focus target — bez outline ringu */
main:focus {
  outline: none;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---- /Accessibility ---- */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 2em;
  background-color: var(--wp--preset--color--gray-1);
}
body {
  max-width: 2100px;
  margin: 0 auto;
}
main {
  background-color: #fff;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: var(--wp--custom--spacing--size-m);
  font-family: var(--wp--preset--font-family--nadpisove-pismo);
}

p.has-velkost-h-1-font-size,
p.has-velkost-h-2-font-size,
p.has-velkost-h-3-font-size,
p.has-velkost-h-4-font-size,
p.has-velkost-h-5-font-size,
p.has-velkost-h-6-font-size {
  line-height: 1.1;
  font-weight: 600;
}

img,
video {
  width: 100%;
  height: auto;
  max-width: 100%;
  vertical-align: bottom;
}

strong {
  font-weight: 600;
}

#skiptocontent a {
  position: absolute;
  top: -90px;
  left: 0;
  color: var(--wp--preset--color--white);
  background: var(--wp--preset--color--primary-1);
  transition: top 1s ease-out;
  z-index: 10000;
  display: inline-block;
  padding: 7px;
}

#skiptocontent a:focus {
  top: 0;
}

main ul.wp-block-list,
main ol.wp-block-list {
  margin-left: 1.25rem !important;
}

hr.wp-block-separator {
  margin-top: var(--wp--custom--spacing--size-xl-2-xl) !important;
  margin-bottom: var(--wp--custom--spacing--size-xl-2-xl) !important;
  background-color: var(--wp--preset--color--gray-4);
  border: none;
  height: 1px;
}

address {
  font-style: normal;
}

input,
select,
button,
textarea {
  border-radius: var(--wp--custom--layout--radius);
  border: 1px solid rgba(230, 230, 230, 1);
  font-size: var(--wp--custom--typography--step-0);
  font-family: var(--wp--preset--font-family--bezny-text);
  padding: var(--wp--custom--spacing--size-2-xs);
  width: 100%;
}
input[type="checkbox"] {
  width: auto;
  height: 20px;
  width: 20px;
  accent-color: var(--wp--preset--color--primary-1); /* farba zaškrtnutia */
  cursor: pointer;
}
/* 1. Finálny dizajn selectov pre Charita.sk */
select {
  /* Vypnutie natívneho vzhľadu OS */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  /* Dizajn boxu */
  background-color: #ffffff;

  /* Typografia */
  font-size: 16px;
  font-weight: 400;
  /* Vrátil som na 400 (normálne), aby to pôsobilo jemnejšie ako na obrázku */
  line-height: 1.5;
  color: #000000;

  /* Rozmery */
  padding: 12px 45px 12px 25px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  cursor: pointer;

  /* NOVÁ ŠÍPKA: Farba #8A1D03 */
  /* Všimnite si v kóde nižšie časť stroke='%238A1D03' - to je vaša farba */
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238A1D03' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 20px center;
  background-size: 16px auto;
}

/* 2. Stav po kliknutí (Focus) */
select:focus {
  border-color: #8a1d03;
}

select:focus-visible {
  outline: 2px solid #8a1d03;
  outline-offset: 2px;
}

/* 3. Fix pre IE */
select::-ms-expand {
  display: none;
}

select#filter-district,
select#filter-target-group,
select#filter-service,
button#filter-button,
input[type="submit"] {
  width: auto;
}
.cky-btn,
.cky-accordion-btn,
.cky-show-desc-btn {
  width: auto;
}
.cky-btn-accept,
.cky-btn-reject {
  background: var(--wp--preset--color--primary-4) !important;
}
.cky-btn-customize,
.cky-btn-accept,
.cky-btn-reject,
.cky-btn-preferences {
  border-color: var(--wp--preset--color--primary-4) !important;
  color: #000 !important;
}
button.cky-btn-revisit:hover {
  background-color: transparent !important;
}
.hero-carousel__pause {
  display: none !important;
}
label {
  color: var(--wp--preset--color--black);
  font-weight: 400;
  margin-bottom: var(--wp--custom--spacing--size-s);
  display: block;
  text-align: left;
}

header {
  padding: var(--wp--custom--spacing--size-s-m) var(--wp--custom--layout--edge);
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  background-color: var(--wp--preset--color--white);
  border-bottom: 0.5px solid var(--wp--preset--color--gray-3);
}

.cverna-header-logo,
.cverna-footer-logo {
  width: 144px;
}

header > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wp-block-button a,
button,
input[type="submit"] {
  background-color: var(--wp--preset--color--primary-1);
  border: none;
  color: var(--wp--preset--color--white);
  text-decoration: none;
  padding: var(--wp--custom--spacing--size-s) var(--wp--custom--spacing--size-s);
  font-weight: 600;
  line-height: 1;
  font-family: var(--wp--preset--font-family--bezny-text);
  font-size: 14px;
  display: inline-block;
  text-transform: uppercase;
}

input[type="submit"],
.wp-block-button a {
  border-radius: 2rem !important;
  margin-top: var(--wp--custom--spacing--size-m);
}

.wp-block-button a:hover,
button:hover,
input[type="submit"]:hover {
  background-color: var(--wp--preset--color--gray-3) !important;
  color: var(--wp--preset--color--primary-1) !important;
}

blockquote.wp-block-quote {
  border-left: none;
  margin: 0 0 1.75em;
  padding-left: 0 !important;
  border: none !important;
}

blockquote > p {
  display: flex;
  flex-direction: column;
  gap: var(--wp--custom--spacing--size-xs);
  color: var(--wp--preset--color--primary-1);
  font-weight: 600;
  margin-bottom: 0;
  font-size: var(--wp--preset--font-size--velkost-h-6);
  font-family: var(--wp--preset--font-family--nadpisove-pismo);
}

blockquote > p:before {
  content: "“ ";
  width: 60px;
  height: 40px;
  color: var(--wp--preset--color--primary-1);
  display: block;
  font-size: var(--wp--preset--font-size--velkost-h-1);
  line-height: 1;
}

blockquote cite {
  color: var(--wp--preset--color--primary-1) !important;
  font-size: var(--wp--custom--typography--step-0) !important;
}

.wp-block-embed__wrapper iframe {
  aspect-ratio: 16 / 9;
  width: 100% !important;
  height: auto;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  /* Pomer strán 16:9 */
  height: 0;
  overflow: hidden;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.wp-block-group.is-style-sivy-box-s-paddingom {
  background-color: var(--wp--preset--color--gray-1);
  padding: var(--wp--custom--spacing--size-m-l);
}

.wp-block-column.is-style-sivy-box-s-paddingom {
  background-color: var(--wp--preset--color--gray-1);
  padding: var(--wp--custom--spacing--size-m-l);
}

.is-style-sivy-box-s-paddingom img {
  max-width: var(--wp--custom--spacing--size-3-xl) !important;
}

footer {
  background-color: var(--wp--preset--color--primary-4);
}

footer p {
  margin-top: var(--wp--custom--spacing--size-m);
}

footer h2 {
  margin-bottom: var(--wp--custom--spacing--size-m-l);
}

footer > div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

footer a {
  text-decoration: none;
  color: var(--wp--preset--color--black);
}

footer a:hover {
  text-decoration: underline;
}

footer li {
  list-style: none;
}

section,
footer {
  padding-top: var(--wp--custom--layout--sekcie);
  padding-bottom: var(--wp--custom--layout--sekcie);
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.is-style-hero-sekcia .wp-block-media-text__content {
  padding: 0;
}

.is-style-hero-sekcia .wp-block-media-text__content > div {
  padding: var(--wp--custom--spacing--size-2-xl-3-xl)
    var(--wp--custom--spacing--size-s);
}

/* Vlastný štýl pre odkaz so šípkou */
.is-style-odkaz-so-sipkou a {
  text-decoration: none;
}

.is-style-odkaz-so-sipkou a::after,
.is-style-odkaz-so-sipkou span::after {
  content: "";
  display: inline-block;
  width: 0.5em;
  height: 0.85em;
  background-color: currentColor;
  mask-image: url('data:image/svg+xml,<svg width="7" height="12" viewBox="0 0 7 12" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 0.5L6 6L1 11.5" stroke="white" stroke-width="1.5"/></svg>');
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  vertical-align: middle;
  margin-left: 0.4em;
  transition: transform 0.2s ease-out;
}

.is-style-odkaz-so-sipkou a:hover,
.is-style-odkaz-so-sipkou span:hover {
  text-decoration: underline;
  color: var(--wp--preset--color--black);
}

.is-style-odkaz-so-sipkou a:hover::after,
.is-style-odkaz-so-sipkou span:hover::after {
  transform: translateX(4px);
}

/* MENU */
#mega-menu-wrap-hlavne-menu
  #mega-menu-hlavne-menu
  > li.mega-menu-item
  > a.mega-menu-link {
  font-weight: 600 !important;
}

/* Základný vzhľad tlačidla */
.menu-button-1 a,
.menu-button-2 a {
  display: inline-block !important;
  padding: 0 var(--wp--custom--spacing--size-s) !important;
  background-color: var(--wp--preset--color--primary-3) !important;
  color: var(--wp--preset--color--primary-1) !important;
  border-radius: 2rem !important;
  text-decoration: none;
  font-weight: 600;
  line-height: 1;
  transition:
    background-color 0.2s ease-in-out,
    color 0.2s ease-in-out;
  height: auto !important;
  text-transform: uppercase !important;
  font-size: 14px !important;
  margin-top: 10px !important;
  margin-bottom: 10px !important;
}

.menu-button-2 a {
  background-color: var(--wp--preset--color--primary-1) !important;
  color: white !important;
}

/* Zrušenie globálneho podčiarknutia špecificky pre tlačidlo */
.menu-button-1 a,
.menu-button-1 a:hover,
.menu-button-2 a,
.menu-button-2 a:hover {
  text-decoration: none;
}

/* Vzhľad tlačidla po prejdení myšou (hover) */
.menu-button-1 a:hover,
.menu-button-2 a:hover {
  background-color: var(--wp--preset--color--gray-3) !important;
  color: var(--wp--preset--color--primary-1) !important;
}

.is-style-sirka-920 {
  max-width: 920px;
  margin-left: auto !important;
  margin-right: auto !important;
}

.schema-faq-section {
  background-color: var(--wp--preset--color--gray-2);
  padding: var(--wp--custom--spacing--size-xs)
    var(--wp--custom--spacing--size-s-m);
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
}

.schema-faq-question {
  font-size: var(--wp--custom--typography--step-1);
  position: relative;
  cursor: pointer;
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-family: var(--wp--preset--font-family--nadpisove-pismo);
}

.schema-faq-question:after {
  content: "+";
  -webkit-transition-duration: 0.8s;
  -moz-transition-duration: 0.8s;
  -o-transition-duration: 0.8s;
  transition-duration: 0.8s;
  font-family: var(--wp--preset--font-family--bezny-text);
  font-size: var(--wp--custom--typography--step-2);
  color: var(--wp--preset--color--primary-1);
  font-weight: 200;
}

.schema-faq-question.active:after {
  transform: rotate(45deg);
}

.schema-faq-answer {
  margin-top: var(--wp--custom--spacing--size-m);
}

.post-in-list {
  background-color: var(--wp--preset--color--gray-1);
}

.post-in-list h2 {
  margin-bottom: var(--wp--custom--spacing--size-s);
}

article .post-content {
  padding: var(--wp--custom--spacing--size-m)
    var(--wp--custom--spacing--size-m-l) var(--wp--custom--spacing--size-m-l)
    var(--wp--custom--spacing--size-m-l);
}

.post-content h2 a {
  text-decoration: none;
}

.post-content h2 a:hover {
  text-decoration: underline;
}

.cv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(23rem, 100%), 1fr));
  gap: var(--wp--custom--spacing--size-m);
}

.post-meta,
.post-meta a {
  color: #000;
  font-size: 14px;
}

.post-meta a {
  border: 1px solid #000;
  padding: 0.5rem;
  border-radius: 12px;
  text-decoration: none;
}

.post-meta a:hover {
  text-decoration: underline;
}

.post-meta {
  align-items: center;
  margin-bottom: var(--wp--custom--spacing--size-m);
  justify-content: space-between;
  display: flex;
}

.cv-edge {
  padding-left: var(--wp--custom--spacing--size-s);
  padding-right: var(--wp--custom--spacing--size-s);
}

.post-in-list img {
  aspect-ratio: 16/9;
  object-fit: cover;
}

.cv-single-article h1 {
  margin-bottom: var(--wp--custom--spacing--size-s);
}

.cv-single-article .post-meta {
  margin-bottom: var(--wp--custom--spacing--size-xl-2-xl);
  font-size: 16px;
  color: var(--wp--preset--color--gray-5);
  justify-content: center;
}

.cv-single-article .post-meta a {
  border: none;
  color: var(--wp--preset--color--gray-5);
  font-size: 16px;
  padding: 0;
}

.cv-single-article .post-meta span + span {
  border-left: 1px solid var(--wp--preset--color--gray-5);
  padding-left: var(--wp--custom--spacing--size-3-xs);
  margin-left: var(--wp--custom--spacing--size-3-xs);
}

.cv-single-article .entry-content > * {
  margin-top: var(--wp--custom--spacing--size-s-m);
}

.cv-single-article .entry-content h2 {
  font-size: var(--wp--custom--typography--step-2);
}

.cv-single-article .entry-content h3 {
  font-size: var(--wp--custom--typography--step-1);
}

.cv-single-article .entry-content h2,
.cv-single-article .entry-content h3 {
  margin-top: var(--wp--custom--spacing--size-m-l);
  margin-bottom: 0;
}

/*.entry-content > p:first-child {
  font-family: var(--wp--preset--font-family--nadpisove-pismo);
  font-size: var(--wp--preset--font-size--velkost-h-6);
}*/
.slick-track {
  display: flex !important;
  /* gap: var(--wp--custom--spacing--size-m);*/
}

.projekty-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--wp--custom--spacing--size-m);
}

.projekty-grid article a {
  display: grid;
  grid-template-columns: 1fr;
  background-color: var(--wp--preset--color--primary-2);
}

.projekty-grid .projekt-content {
  padding: var(--wp--custom--spacing--size-m-l);
}

.projekty-grid .projekt-content h3 {
  margin-bottom: var(--wp--custom--spacing--size-m);
}

.projekt-thumbnail img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  height: 100%;
}

.projekty-grid a {
  text-decoration: none;
}

.projekty-grid .post-excerpt {
  color: var(--wp--preset--color--black);
  margin-bottom: var(--wp--custom--spacing--size-l-xl);
}

.cely-box-klikaci {
  position: relative;
}

.cely-box-klikaci .natiahnuty-odkaz a::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
}

.najnovsie-clanky-kategoria h3 a {
  text-decoration: none;
}

.najnovsie-clanky-kategoria a:hover {
  text-decoration: underline;
}

.entry-content {
  max-width: 70ch;
  margin: var(--wp--custom--spacing--size-m-l) auto 0 auto;
}

.pisu-o-nas-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--wp--custom--spacing--size-m);
  max-width: var(--wp--style--global--wide-size);
}

.pisu-o-nas-item {
  border-radius: var(--wp--custom--layout--radius, 8px);
  overflow: hidden;
  height: 100%;
  min-height: 60vw;
}

.pisu-o-nas-item:nth-child(1) {
  background-color: var(--wp--preset--color--primary-2);
}

.pisu-o-nas-item:nth-child(1),
.pisu-o-nas-item:nth-child(6) {
  color: var(--wp--preset--color--primary-1);
}

.pisu-o-nas-item:nth-child(2) .pisu-o-nas-item__content,
.pisu-o-nas-item:nth-child(4) .pisu-o-nas-item__content,
.pisu-o-nas-item:nth-child(8) .pisu-o-nas-item__content {
  justify-content: end;
}

.pisu-o-nas-item:nth-child(3) .pisu-o-nas-item__image:after {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  background: #8a201b;
  background: linear-gradient(
    90deg,
    rgba(138, 32, 27, 1) 0%,
    rgba(138, 32, 27, 0) 100%
  );
  opacity: 0.75;
}
.pisu-o-nas-item:nth-child(4) .pisu-o-nas-item__image:after {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  background: #c0def5;
  background: linear-gradient(
    0deg,
    rgba(192, 222, 245, 1) 0%,
    rgba(192, 222, 245, 0) 100%
  );
  opacity: 0.75;
}
.pisu-o-nas-item:nth-child(8) .pisu-o-nas-item__image:after {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  background: #fee5d7;
  background: linear-gradient(
    0deg,
    rgba(254, 229, 215, 1) 0%,
    rgba(254, 229, 215, 0) 100%
  );
  opacity: 0.75;
}
.pisu-o-nas-item:nth-child(2) h3,
.pisu-o-nas-item:nth-child(3) h3,
.pisu-o-nas-item:nth-child(5) h3,
.pisu-o-nas-item:nth-child(7) h3,
.pisu-o-nas-item:nth-child(9) h3 {
  color: var(--wp--preset--color--white);
}

.pisu-o-nas-item:nth-child(2) h3,
.pisu-o-nas-item:nth-child(4) h3,
.pisu-o-nas-item:nth-child(8) h3 {
  margin-bottom: 0;
}

.pisu-o-nas-item:nth-child(3) h3,
.pisu-o-nas-item:nth-child(5) h3,
.pisu-o-nas-item:nth-child(7) h3 {
  font-size: var(--wp--preset--font-size--velkost-h-4) !important;
}
.pisu-o-nas-item:nth-child(3) a,
.pisu-o-nas-item:nth-child(5) a,
.pisu-o-nas-item:nth-child(7) a,
.pisu-o-nas-item:nth-child(8) a,
.pisu-o-nas-item:nth-child(9) a {
  color: var(--wp--preset--color--white);
}

.pisu-o-nas-item:nth-child(5) {
  background: linear-gradient(
    288.21deg,
    #8a1d03 22.18%,
    #d88561 67.31%,
    #db6f40 94.39%
  );
}

.pisu-o-nas-item:nth-child(6) {
  background-color: var(--wp--preset--color--primary-4);
}

.pisu-o-nas-item:nth-child(9) {
  background-color: var(--wp--preset--color--primary-1);
}

.pisu-o-nas-item__link-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s ease-in-out;
  position: relative;
}

.pisu-o-nas-item__link-wrapper:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.pisu-o-nas-item__image {
  z-index: 1;
}

.pisu-o-nas-item__image img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
}

.pisu-o-nas-item__content {
  padding: var(--wp--custom--spacing--size-m-l);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 5;
  gap: var(--wp--custom--layout--sekcie);
}

.pisu-o-nas-item__description {
  font-size: var(--wp--preset--font-size--small);
  line-height: 1.6;
}

.wpcf7-list-item {
  margin-left: 0;
}

.wp-block-file:not(.wp-element-button) {
  font-size: var(--wp--custom--typography--step-0);
}

.wp-block-file a {
  color: var(--wp--preset--color--black);
  text-decoration: none;
  background-image: url(images/download.svg);
  background-repeat: no-repeat;
  background-position: left top;
  background-size: 32px;
  padding-left: calc(var(--wp--custom--spacing--size-m) + 32px);
  display: inline-block;
}

.wp-block-file a:hover {
  color: var(--wp--preset--color--primary-1);
  text-decoration: underline;
}

.wp-block-file a em {
  font-style: normal;
  display: block;
  color: var(--wp--preset--color--gray-5);
  font-size: 0.9rem;
}

.wp-block-file + .wp-block-file {
  border-top: 1px solid var(--wp--preset--color--gray-2);
  padding-top: var(--wp--custom--spacing--size-xs);
  margin-top: var(--wp--custom--spacing--size-xs);
}

.cv-cielovky {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(23rem, 100%), 1fr));
}

.cv-cielovka a {
  background-color: var(--wp--preset--color--gray-1);
  display: grid;
  grid-template-columns: 1fr 1fr;
  text-decoration: none;
  -webkit-transition: all 1000ms linear;
  -ms-transition: all 1000ms linear;
  transition: all 1000ms linear;
  min-height: 168px;
}

.cv-cielovka a:hover {
  background-color: var(--wp--preset--color--primary-2);
}

.cv-cielovka a:hover span {
  text-decoration: underline;
}

.cv-cielovka-text {
  padding: var(--wp--custom--spacing--size-s);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cv-bg-white {
  background-color: var(--wp--preset--color--white);
}

.cv-border-bottom {
  border-bottom: 1px solid var(--wp--preset--color--gray-3);
}

.cv-margin-top {
  margin-top: var(--wp--custom--spacing--size-m);
}

/*
 * Vynútené odstránenie predvoleného paddingu z bloku Media & Text
 */
.wp-block-media-text > .wp-block-media-text__content {
  padding: 0 !important;
}

.cff-diocess-grid {
  --pocetch: 1;
  display: grid;
  grid-template-columns: repeat(var(--pocetch), 1fr);
  gap: 1rem;
}

a.cff-diocese-block {
  background-color: #f5f5f5;
  padding: var(--wp--custom--spacing--size-s-m);
}

a.cff-diocese-block img {
  height: clamp(2.1875rem, 1.5625rem + 2.7778vw, 4.0625rem);
  width: auto;
  object-fit: none;
  max-width: none;
}

.cv-cielovka-img figure {
  height: 100%;
}

.cv-cielovka-img img {
  object-fit: cover;
  height: 100%;
}

.cv-cielovka-text h3 {
  padding-right: var(--wp--custom--spacing--size-m);
}

.projekt-meta {
  margin-top: var(--wp--custom--spacing--size-l-xl);
}

.projekt-meta p + p {
  margin-top: var(--wp--custom--spacing--size-xs);
}

.projekt-meta strong,
.projekt-meta b {
  display: block;
}

.page-numbers {
  display: flex;
  gap: 0;
  list-style: none;
  margin-left: 0;
  justify-content: center;
  padding-bottom: var(--wp--custom--layout--sekcie);
}

.page-numbers li > * {
  text-decoration: none;
  color: var(--wp--preset--color--black);
  padding: 0 0.5rem;
}

.page-numbers li .current,
.page-numbers li a:hover {
  color: var(--wp--preset--color--primary-1);
  text-decoration: underline;
}

/* START SEKY plugin */
.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.tabs-navigation {
  display: flex;
}

.tabs-navigation .tab-button {
  background-color: transparent;
  border-bottom: 0.5px solid var(--wp--preset--color--gray-3);
  color: var(--wp--preset--color--black);
  width: auto;
  border-radius: 0;
  text-transform: none;
  font-weight: 400;
  font-family: var(--wp--preset--font-family--bezny-text);
  font-size: var(--wp--custom--typography--step-0);
}

.tabs-navigation .tab-button.active,
.tabs-navigation .tab-button:hover {
  border-bottom-color: var(--wp--preset--color--primary-1);
  color: var(--wp--preset--color--primary-1);
  background-color: transparent !important;
  cursor: pointer;
}

.tabs-content {
  padding-top: var(--wp--custom--spacing--size-l-xl);
  max-width: 960px;
}

button#filter-button {
  border: none;
  padding: 12px 25px;
  background-color: var(--wp--preset--color--primary-4);
  color: var(--wp--preset--color--black);
  border-radius: 2rem;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  min-height: 50px;
  width: 100%;
}

.facility-card {
  padding: 0;
  gap: 0;
}

.cff-services-grid {
  align-items: normal;
}

.cff-services-grid .cff-service-item {
  text-decoration: none;
}

.cff-services-grid h2 {
  font-size: var(--wp--custom--typography--step-1) !important;
}

.cff-services-grid p {
  color: var(--wp--preset--color--black);
  margin-top: 0.5rem;
}

.facilities-grid-4 {
  flex-wrap: wrap;
}

#facilities-filters > div {
  gap: 0.25rem;
  flex: 0 0 auto;
  display: block;
  align-self: end;
}

/* END SEKY PLUGIN */

/* Zmení len farbu guličky na červenú */
.is-style-valid-1 li::marker {
  color: var(--wp--preset--color--primary-1);
}
.cv-img-fill {
  object-fit: cover;
  height: 100%;
}
/* slider loga */
.slick-arrow {
  width: 32px;
  height: 32px;
  clip-path: none;
  padding: 3px;
  border-radius: 100%;
  background-color: var(--wp--preset--color--primary-1);
}
/* Logo slider - fallback kým sa Slick nenačíta */
.is-style-logo-slider:not(.slick-initialized) {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem 0.5rem !important;
  padding-left: 2rem;
  padding-right: 2rem;
}

/* Keď Slick inicializuje, musí byť block, nie flex */
.is-style-logo-slider.slick-initialized,
.is-style-logo-slider.slick-initialized.is-layout-flex,
.is-style-logo-slider.slick-initialized.wp-block-gallery-is-layout-flex {
  display: block !important;
  padding-left: 2rem;
  padding-right: 2rem;
}

.is-style-logo-slider .slick-track {
  display: flex !important;
  align-items: center;
}

.is-style-logo-slider .slick-slide {
  padding: 0 0.5rem;
}

.is-style-logo-slider .slick-slide img {
  max-height: 180px;
  width: auto;
  margin: 0 auto;
  object-fit: contain;
}

.is-style-logo-slider .slick-prev,
.is-style-logo-slider .slick-next {
  top: calc(50% - 16px);
  position: absolute;
  z-index: 20;
}
.is-style-logo-slider .slick-prev {
  left: 0;
}
.is-style-logo-slider .slick-next {
  right: 0;
}
.cff-services-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
}
.cff-services-grid .cff-service-item {
  width: 100% !important;
}
#facilities-filters select {
  width: 100%;
}

/* 1. Nastavenie pre VŠETKY obrázky (aj funkčné) */
.facility-card img {
  width: 100%;
  aspect-ratio: 3 / 2; /* Drží pomer strán 3:2 */
  object-fit: cover; /* Aby sa dobrý obrázok nedeformoval */
  display: block;
}

/* ===== ol.is-style-valid-1 – Timeline numbered list ===== */

ol.is-style-valid-1 {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  margin-top: var(--wp--custom--spacing--size-s);
}

ol.is-style-valid-1::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(
    to bottom,
    var(--wp--preset--color--primary-1),
    var(--wp--preset--color--primary-1) 60%,
    transparent
  );
}

ol.is-style-valid-1 > li {
  position: relative;
  padding: 6px 0 18px 56px;
  counter-increment: cv-cisla-counter;
}

ol.is-style-valid-1 > li::before {
  content: counter(cv-cisla-counter);
  position: absolute;
  left: 0;
  top: 2px;
  width: 40px;
  height: 40px;
  background-color: var(--wp--preset--color--primary-1);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

ol.is-style-valid-1 > li:last-child {
  padding-bottom: 0;
}

ol.is-style-valid-1 ol {
  list-style: none;
  margin: 8px 0 0 0;
  padding: 0;
}

ol.is-style-valid-1 ol li {
  position: relative;
  padding: 4px 0 4px 20px;
  font-size: 0.95em;
}

ol.is-style-valid-1 ol li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--wp--preset--color--primary-1);
  font-weight: 700;
  font-size: 1.1em;
  line-height: 1.4;
}
.wpcf7 form .wpcf7-response-output,
.mc4wp-alert {
  padding: 1rem;
}
.wpcf7-list-item {
  margin-left: 0;
}
.wpcf7-checkbox span > label {
  margin-top: 0;
  margin-bottom: 1.5rem;
}
.wpcf7 form .wpcf7-response-output,
.mc4wp-alert {
  border: none;
  border-left: 5px solid rgba(50, 50, 120, 1);
  background-color: rgba(50, 50, 120, 0.25);
  color: var(--clr-black);
}
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output {
  border-left: 5px solid rgba(214, 129, 71, 1);
  background-color: rgba(214, 129, 71, 0.25);
}
.wpcf7 form.sent .wpcf7-response-output {
  border-left: 5px solid rgba(50, 50, 120, 1);
}
.wpcf7 form.spam .wpcf7-response-output {
  background-color: rgba(214, 129, 71, 0.25);
}
.grecaptcha-badge {
  right: -99999rem !important;
}

.hero-zariadenie {
  grid-template-columns: 1fr 50%;
  display: grid;
  align-items: center;
}
@media only screen and (max-width: 900px) {
  .hero-zariadenie {
    grid-template-columns: 100% !important;
  }
  .hero-zariadenie figure {
    order: 1;
  }
  .hero-zariadenie > div {
    order: 2;
  }
}
/* RESPONSIVEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE*/
@media only screen and (min-width: 400px) {
  .cff-diocess-grid {
    --pocetch: 2;
  }
}

@media only screen and (min-width: 782px) {
  .cff-diocess-grid {
    --pocetch: 3;
  }

  a.cff-diocese-block {
    padding: var(--wp--custom--spacing--size-l-xl)
      var(--wp--custom--spacing--size-m-l);
  }

  .pisu-o-nas-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 1fr 1fr 1fr;
  }

  .pisu-o-nas-item:nth-child(9) {
    grid-column: 1 / 3;
  }

  .pisu-o-nas-item {
    min-height: unset;
  }

  .projekty-grid article a {
    grid-template-columns: 1fr 1fr;
  }

  .projekty-grid article a .projekt-thumbnail {
    grid-column: 2;
    grid-row: 1;
    /*padding-left: var(--wp--custom--layout--sekcie);*/
  }

  .projekty-grid article a .projekt-content {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex-direction: column;
  }

  .projekty-grid article a .projekt-content > *:last-child {
    margin-top: auto;
  }

  .is-style-hero-sekcia,
  .wp-block-media-text.has-media-on-the-right.is-style-hero-sekcia {
    padding: 0;
    display: grid;
    grid-template-columns:
      minmax(var(--wp--custom--spacing--size-s), 1fr) minmax(
        0,
        calc(var(--wp--style--global--wide-size) / 2)
      )
      minmax(0, calc(var(--wp--style--global--wide-size) / 2)) minmax(
        var(--wp--custom--spacing--size-s),
        1fr
      ) !important;
    max-width: none;
  }

  .is-style-hero-sekcia .wp-block-media-text__media {
    grid-column: 1 / 3 !important;
  }

  .is-style-hero-sekcia .wp-block-media-text__content {
    grid-column: 3 !important;
  }

  .is-style-hero-sekcia .wp-block-media-text__content > div {
    padding-right: var(--wp--custom--spacing--size-s) !important;
    padding-left: calc(var(--wp--custom--layout--sekcie) / 1);
  }

  .has-media-on-the-right.is-style-hero-sekcia .wp-block-media-text__media {
    grid-column: 3 / -1 !important;
  }

  .has-media-on-the-right.is-style-hero-sekcia .wp-block-media-text__content {
    grid-column: 2 !important;
  }

  .has-media-on-the-right.is-style-hero-sekcia
    .wp-block-media-text__content
    > div {
    padding-left: 0 !important;
    padding-right: calc(var(--wp--custom--layout--sekcie) / 1) !important;
  }

  footer > div {
    grid-template-columns: 1fr 1fr;
  }

  .cverna-header-logo,
  .cverna-footer-logo {
    width: 160px;
  }

  .right-pc {
    text-align: right;
  }
}

@media only screen and (min-width: 1101px) {
  a.cff-diocese-block {
    padding: var(--wp--custom--spacing--size-l-xl);
  }

  .pisu-o-nas-grid {
    grid-template-columns: repeat(4, 1fr);
    /* 3 stĺpce na väčších obrazovkách */
    grid-template-rows: 1fr 1fr 1fr;
  }

  .pisu-o-nas-item:nth-child(3) {
    grid-column: 3 / 5;
  }

  .pisu-o-nas-item:nth-child(5) {
    grid-column: 2 / 4;
  }

  .pisu-o-nas-item:nth-child(7) {
    grid-column: 1 / 3;
  }

  .pisu-o-nas-item:nth-child(9) {
    grid-column: 4;
  }

  footer > div {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }

  .menu-button-1 a,
  .menu-button-2 a {
    margin-left: 0.5rem !important;
    margin-right: 0.5rem !important;
  }
}

@media only screen and (min-width: 1600px) {
  .cff-diocess-grid {
    --pocetch: 4;
    gap: var(--wp--custom--spacing--size-m);
  }
}
@media only screen and (max-width: 390px) {
  .is-style-odkaz-so-sipkou span {
    font-size: 0.85rem;
  }
}

@media only screen and (max-width: 700px) {
  .is-style-hero-sekcia .wp-block-media-text__content {
    text-align: center;
  }

  .is-style-mobile-left .wp-block-media-text__content {
    text-align: left;
  }

  .is-style-hero-sekcia .wp-block-media-text__content .wp-block-buttons {
    justify-content: center;
    gap: 0.5rem;
  }

  .is-style-mobile-left .wp-block-media-text__content .wp-block-buttons {
    justify-content: start;
  }

  .is-style-hero-sekcia .wp-block-media-text__content .wp-block-buttons > * {
    min-width: 190px;
  }

  .mobpl {
    padding-left: var(--wp--custom--spacing--size-s) !important;
  }
}

/* ========================================
   Hero Carousel
   ======================================== */

.hero-carousel {
  position: relative;
  overflow: hidden;
}

/* Všetky slidy rovnaká výška */
.hero-carousel .slick-track {
  display: flex !important;
}

.hero-carousel .slick-slide {
  height: auto !important;
}

.hero-carousel .slick-slide > div {
  height: 100%;
}

.hero-carousel__slide {
  display: flex !important;
  flex-direction: column-reverse;
  position: relative;
  overflow: hidden;
}

/* Light text pre tmavé pozadia */
.hero-carousel__slide--light-text,
.hero-carousel__slide--light-text h1,
.hero-carousel__slide--light-text h2,
.hero-carousel__slide--light-text h3,
.hero-carousel__slide--light-text p {
  color: #fff !important;
}

.hero-carousel__content {
  padding: 0;
}

.hero-carousel__content-inner {
  position: relative;
  padding: var(--wp--custom--layout--sekcie) var(--wp--custom--spacing--size-s);
  box-sizing: border-box;
}

/* SVG pozadie (plameň) - cez celý slide, prilepené dole vpravo */
.hero-carousel__svg-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: auto 90%;
  background-repeat: no-repeat;
  background-position: right bottom;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
}

/* Keď je obrázok vľavo, plameň prilepený k ľavému okraju */
.hero-carousel__slide--media-left .hero-carousel__svg-bg {
  background-position: left bottom;
}

.hero-carousel__text {
  position: relative;
  z-index: 1;
}

.hero-carousel__content {
  display: flex;
  align-items: center;
}

.hero-carousel__media {
  width: 100%;
  overflow: hidden;
  margin: 0;
}

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

/* Dots - pod sliderom, na stred */
.hero-carousel .slick-dots {
  position: static !important;
  display: flex !important;
  justify-content: center;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: var(--wp--custom--spacing--size-3-xs) 0;
}

.hero-carousel .slick-dots li {
  margin: 0;
  padding: 0;
  width: auto;
  height: auto;
}

.hero-carousel .slick-dots li button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(0, 0, 0, 0.15);
  padding: 0;
  font-size: 0;
  line-height: 0;
  color: transparent;
  cursor: pointer;
  transition: background 0.2s;
}

.hero-carousel .slick-dots li button:before {
  display: none;
}

.hero-carousel .slick-dots li.slick-active button {
  background: rgba(0, 0, 0, 0.5);
}

/* Arrows */
.hero-carousel__arrow {
  z-index: 10;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.2) !important;
  border-radius: 50%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.hero-carousel__arrow:hover,
.hero-carousel__arrow:focus {
  background: rgba(255, 255, 255, 0.4) !important;
  color: #fff;
}

.hero-carousel .slick-prev {
  left: 16px;
}

.hero-carousel .slick-next {
  right: 16px;
}

.hero-carousel .slick-prev:before,
.hero-carousel .slick-next:before {
  content: none;
}

/* Mobile - obrázok hore, text dole (column-reverse) */
@media only screen and (max-width: 700px) {
  .hero-carousel__content-inner {
    text-align: center;
    padding-top: var(--wp--custom--spacing--size-3-xs);
    padding-bottom: var(--wp--custom--spacing--size-l);
  }

  .hero-carousel__content-inner .wp-block-buttons {
    justify-content: center;
    gap: 0.5rem;
  }

  .hero-carousel__content-inner .wp-block-buttons > * {
    min-width: 190px;
  }

  .hero-carousel .slick-dots {
    padding: var(--wp--custom--spacing--size-3-xs) 0
      var(--wp--custom--spacing--size-s);
  }
}

/* Desktop layout */
@media only screen and (min-width: 700px) {
  .hero-carousel__slide {
    display: grid !important;
    grid-template-columns:
      minmax(var(--wp--custom--spacing--size-s), 1fr)
      minmax(0, calc(var(--wp--style--global--wide-size) / 2))
      minmax(0, calc(var(--wp--style--global--wide-size) / 2))
      minmax(var(--wp--custom--spacing--size-s), 1fr);
    min-height: 70vh;
    align-items: stretch;
  }

  .hero-carousel__svg-bg {
    grid-column: 2;
    grid-row: 1;
    position: relative;
    z-index: 1;
  }

  .hero-carousel__content {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    align-items: center;
    z-index: 2;
  }

  .hero-carousel__content-inner {
    padding-right: var(--wp--custom--layout--sekcie);
    padding-left: 0;
  }

  .hero-carousel__media {
    grid-column: 3 / -1;
    grid-row: 1;
    z-index: 2;
  }

  .hero-carousel__media img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .hero-carousel__media {
    position: relative;
  }

  /* Dots na desktope - absolútne na stred dole */

  /* Media on left variant */
  .hero-carousel__slide--media-left .hero-carousel__content {
    grid-column: 3;
    grid-row: 1;
  }

  .hero-carousel__slide--media-left .hero-carousel__content-inner {
    padding-left: calc(var(--wp--custom--layout--sekcie, 0px) / 1);
    padding-right: var(--wp--custom--spacing--size-s);
  }

  .hero-carousel__slide--media-left .hero-carousel__media {
    grid-column: 1 / 3;
    grid-row: 1;
  }
}

/* ========================================
   Carousel Pause tlačidlo
   ======================================== */
.hero-carousel__pause {
  position: absolute;
  bottom: 12px;
  right: 16px;
  z-index: 20;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
}

.hero-carousel__pause:hover,
.hero-carousel__pause:focus-visible {
  background: rgba(0, 0, 0, 0.5);
}

/* Wrapper pre carousel + pause btn */
.hero-carousel {
  position: relative;
}

/* ========================================
   404 tlačidlá (accessible, bez inline JS)
   ======================================== */
.btn-404 {
  display: inline-block;
  text-decoration: none;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 9999px;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.btn-404--primary {
  background-color: #8a1d03;
  color: #ffffff;
}

.btn-404--primary:hover,
.btn-404--primary:focus-visible {
  background-color: #6e1702;
  color: #ffffff;
}

.btn-404--outline {
  background-color: transparent;
  color: #8a1d03;
  padding: 13px 32px;
  border: 2px solid #8a1d03;
}

.btn-404--outline:hover,
.btn-404--outline:focus-visible {
  background-color: #8a1d03;
  color: #fff;
}
