:root {
--ev-blue: #1f3f75;
--ev-blue-dark: #16325d;
--ev-gold: #c7a45a;
--ev-gold-light: #e0c692;
--ev-bg: #ececec;
--ev-text: #1a1a1a;
--ev-muted: #666;
--ev-white: #fff;
--ev-border: #d9e0ea;
}

/* OSNOVA */

body {
background: var(--ev-bg);
color: var(--ev-text);
}

.ev-wrap {
width: 100%;
max-width: 1280px;
margin: 0 auto;
}

.site-info {
width: 100%;
max-width: 1280px;
margin: 40px auto 0 !important;
padding: 0 !important;
background: transparent !important;
color: inherit !important;
}

.inside-site-info {
max-width: 1280px !important;
padding: 0 !important;
}

.copyright-bar {
width: 100%;
}

.site-info .ev-site-footer {
position: relative;
overflow: hidden;
display: block !important;
width: 100% !important;
padding: 0 34px !important;
background-color: #17233d !important;
background-image: url("https://arhiva.eparhijavaljevska.rs/wp-content/uploads/2026/02/futer-1.jpg") !important;
background-position: center !important;
background-repeat: no-repeat !important;
background-size: cover !important;
color: #f4f0e6;
}

.site-info .ev-site-footer__inner {
position: relative;
z-index: 1;
display: grid !important;
grid-template-columns: minmax(0, 1.2fr) 220px minmax(0, 1.2fr) !important;
align-items: center !important;
gap: 28px !important;
max-width: 100%;
margin: 0 auto;
min-height: 170px;
padding: 28px 0 30px;
}

.site-info .ev-site-footer__nav {
justify-self: start;
}

.site-info ul.ev-footer-menu {
display: flex !important;
flex-wrap: wrap !important;
justify-content: flex-start !important;
align-items: center !important;
gap: 10px 20px !important;
margin: 0 !important;
padding: 0 !important;
list-style: none !important;
max-width: 360px !important;
}

.site-info ul.ev-footer-menu li {
display: block !important;
list-style: none !important;
margin: 0 !important;
padding: 0 !important;
}

.site-info ul.ev-footer-menu a {
color: #f4f0e6;
text-decoration: none;
font-size: 14px;
line-height: 1.3;
letter-spacing: 0.02em;
text-transform: uppercase;
font-weight: 400;
}

.site-info ul.ev-footer-menu a:hover,
.site-info ul.ev-footer-menu a:focus {
color: var(--ev-gold-light);
}

.site-info .ev-site-footer__brand {
display: inline-flex;
align-items: center;
justify-content: center;
width: min(100%, 180px);
margin: 0 auto;
text-decoration: none;
}

.site-info .ev-site-footer__brand img {
display: block;
width: 100%;
max-width: 180px;
height: auto;
filter: drop-shadow(0 12px 20px rgba(0,0,0,0.28));
}

.site-info .ev-site-footer__copy {
justify-self: end;
max-width: 430px;
color: #f4f0e6;
font-size: 15px;
line-height: 1.45;
letter-spacing: 0.01em;
text-align: right;
text-transform: uppercase;
font-weight: 400;
}

@media (max-width: 1024px) {
  .site-info .ev-site-footer {
    padding-left: 24px;
    padding-right: 24px;
  }

  .site-info .ev-site-footer__inner {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    min-height: 0;
    padding: 34px 0 36px;
  }

  .site-info .ev-site-footer__nav,
  .site-info .ev-site-footer__copy {
    justify-self: center;
  }

  .site-info ul.ev-footer-menu {
    justify-content: center !important;
    max-width: 100%;
  }

  .site-info .ev-site-footer__copy {
    text-align: center;
    max-width: 100%;
  }
}

@media (max-width: 680px) {
  .site-info .ev-site-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .site-info ul.ev-footer-menu {
    gap: 8px 14px;
  }

  .site-info ul.ev-footer-menu a {
    font-size: 13px;
  }

  .site-info .ev-site-footer__brand img {
    max-width: 140px;
  }

  .site-info .ev-site-footer__copy {
    font-size: 13px;
    letter-spacing: 0.02em;
  }
}

/* Hard hide legacy top strip above logo. */
.ev-top-header,
.ev-top-header-inner,
position: absolute;
top: 100%;
left: 0;
min-width: 260px;
background: #1b1f33;
list-style: none;
margin: 0;
padding: 0;
z-index: 50;
}

#menu-glavni li:hover > ul {
display: block;
}

#menu-glavni ul li {
width: 100%;
}

#menu-glavni ul li a {
display: block;
color: #fff;
text-decoration: none;
padding: 10px 14px;
border-top: 1px solid rgba(255,255,255,0.08);
}

/* RESPONSIVE */

@media (max-width: 860px) {

#menu-glavni {
flex-wrap: wrap;
}

#menu-glavni > li > a {
padding: 10px 12px;
font-size: 13px;
}

}
/* TAČAN FIX ZA SUBMENU */

.ev-main-menu-desktop #menu-glavni > li {
  position: relative !important;
}

.ev-main-menu-desktop #menu-glavni > li > ul.sub-menu {
  display: none !important;
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  min-width: 280px !important;
  background: #1b1f33 !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  z-index: 9999 !important;
}

.ev-main-menu-desktop #menu-glavni > li:hover > ul.sub-menu {
  display: block !important;
}

.ev-main-menu-desktop #menu-glavni > li > ul.sub-menu > li {
  display: block !important;
  width: 100% !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.ev-main-menu-desktop #menu-glavni > li > ul.sub-menu > li > a {
  display: block !important;
  color: #fff !important;
  text-decoration: none !important;
  padding: 10px 14px !important;
  white-space: nowrap !important;
  background: #1b1f33 !important;
  border-top: 1px solid rgba(255,255,255,0.08) !important;
}
/* Firefox / GP submenu hard fix */

.ev-main-menu-desktop #menu-glavni > li > ul.sub-menu {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.ev-main-menu-desktop #menu-glavni > li:hover > ul.sub-menu {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Three static areas */

.ev-cards-3-band {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: #2f5f8d;
  padding: 10px 0;
}

.ev-cards-3 {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.ev-static-card {
  min-height: 420px;
  background: transparent;
  color: #fff !important;
  text-decoration: none !important;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.ev-static-card img {
  display: block;
  width: 100%;
  height: 315px;
  object-fit: cover;
}

.ev-static-card span {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px 18px;
  font-size: 32px;
  line-height: 1.1;
  font-weight: 700;
  text-wrap: balance;
  min-height: 112px;
  background: #0f2746;
  color: #fff !important;
  text-decoration: none !important;
}

.ev-dual-banner-row {
  margin: 22px 0 10px;
}

.ev-dual-banner-row__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.ev-dual-banner-row__item {
  overflow: hidden;
  background: transparent;
}

.ev-dual-banner-row__item img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 1024px) {
  .ev-cards-3 {
    grid-template-columns: 1fr;
  }

  .ev-static-card {
    min-height: 340px;
  }

  .ev-static-card img {
    height: 230px;
  }

  .ev-static-card span {
    font-size: 28px;
  }

  .ev-dual-banner-row__grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* AKTUELNO */

.ev-akt-head {
display: flex;
align-items: center;
gap: 14px;
margin: 18px 0 12px;
}

.ev-akt-head h2 {
margin: 0;
font-size: 40px;
line-height: 1;
letter-spacing: 0.02em;
font-weight: 800;
color: var(--ev-blue);
white-space: nowrap;
}

.ev-akt-line {
flex: 1 1 auto;
height: 2px;
background: rgba(31,63,117,0.35);
}

.ev-akt-head a {
display: inline-flex;
align-items: center;
gap: 8px;
text-decoration: none;
color: var(--ev-blue);
font-weight: 700;
font-size: 30px;
white-space: nowrap;
}

.ev-akt-head a span {
font-size: 34px;
line-height: 1;
}

.ev-akt-grid {
display: grid;
grid-template-columns: 2fr 2fr 1.2fr;
grid-template-areas:
  "main main side1"
  "main main side2"
  "side3 side4 side5";
gap: 10px;
}

.ev-akt-card {
position: relative;
overflow: hidden;
background: #0f2746;
min-height: 210px;
}

.ev-akt-card .ev-akt-card-badge,
.ev-akt-slide .ev-akt-card-badge {
position: absolute;
top: 10px;
left: 10px;
z-index: 5;
display: inline-flex;
align-items: center;
padding: 0 !important;
font-size: 28px !important;
font-weight: 800 !important;
line-height: 1 !important;
letter-spacing: 0.03em !important;
text-transform: uppercase !important;
color: #c62525 !important;
background: transparent !important;
border: 0 !important;
border-radius: 0 !important;
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45) !important;
box-shadow: none !important;
pointer-events: none;
}

@media (max-width: 680px) {
  .ev-akt-card .ev-akt-card-badge,
  .ev-akt-slide .ev-akt-card-badge {
    font-size: 22px !important;
  }
}

.ev-akt-card .ev-akt-thumb-link,
.ev-akt-card .ev-akt-thumb-link img {
display: block;
width: 100%;
height: 100%;
}

.ev-akt-card .ev-akt-thumb-link img {
object-fit: cover;
}

.ev-akt-card .ev-card-content {
position: absolute;
left: 0;
right: 0;
bottom: 0;
padding: 12px 12px 10px;
color: #fff;
background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.75) 70%, rgba(0,0,0,0.9) 100%);
}

.ev-akt-card .ev-title-md,
.ev-akt-card .ev-title-md a {
margin: 4px 0 0;
color: #fff;
text-decoration: none;
line-height: 1.2;
font-size: 32px;
}

.ev-akt-card .ev-meta {
font-size: 16px;
color: rgba(255,255,255,0.85);
}

.ev-akt-card--1 { grid-area: main; min-height: 620px; }
.ev-akt-card--2 { grid-area: side1; }
.ev-akt-card--3 { grid-area: side2; }
.ev-akt-card--4 { grid-area: side3; }
.ev-akt-card--5 { grid-area: side4; }
.ev-akt-card--6 { grid-area: side5; min-height: 240px; }

.ev-akt-slider {
position: relative;
}

.ev-akt-slider-track {
position: relative;
width: 100%;
height: 100%;
}

.ev-akt-slide {
position: absolute;
inset: 0;
opacity: 0;
pointer-events: none;
transition: opacity 0.35s ease;
}

.ev-akt-slide.is-active {
opacity: 1;
pointer-events: auto;
z-index: 1;
}

.ev-akt-slider-btn {
position: absolute;
top: 50%;
transform: translateY(-50%);
width: 44px;
height: 44px;
border: 0;
border-radius: 999px;
background: rgba(15, 39, 70, 0.72);
color: #fff;
cursor: pointer;
z-index: 3;
display: inline-flex;
align-items: center;
justify-content: center;
font-size: 26px;
line-height: 1;
transition: background 0.2s ease;
}

.ev-akt-slider-btn:hover,
.ev-akt-slider-btn:focus-visible {
background: rgba(15, 39, 70, 0.92);
outline: none;
}

.ev-akt-slider-btn--prev {
left: 12px;
}

.ev-akt-slider-btn--next {
right: 12px;
}

@media (max-width: 1280px) {
.ev-akt-head h2 { font-size: 34px; }
.ev-akt-head a { font-size: 24px; }
.ev-akt-head a span { font-size: 30px; }
.ev-akt-card .ev-title-md,
.ev-akt-card .ev-title-md a { font-size: 24px; }
.ev-akt-card--1 { min-height: 520px; }
}

@media (max-width: 1024px) {
.ev-akt-grid {
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "main main"
    "side1 side2"
    "side3 side4"
    "side5 side5";
}
.ev-akt-card--1 { min-height: 420px; }
.ev-akt-card--6 { min-height: 220px; }
}

@media (max-width: 680px) {
.ev-akt-head h2 { font-size: 28px; }
.ev-akt-head a { font-size: 20px; }
.ev-akt-head a span { font-size: 26px; }
.ev-akt-line { display: none; }
.ev-akt-grid {
  grid-template-columns: 1fr;
  grid-template-areas:
    "main"
    "side1"
    "side2"
    "side3"
    "side4"
    "side5"
    "side6";
}
.ev-akt-card { min-height: 220px; }
.ev-akt-card--1 { min-height: 280px; }
.ev-akt-card .ev-title-md,
.ev-akt-card .ev-title-md a { font-size: 20px; }
.ev-akt-slider-btn {
  width: 38px;
  height: 38px;
  font-size: 22px;
}
}

/* MISIONARSKA DELATNOST */

.ev-mis-band {
  position: relative;
  left: 50%;
  right: 50%;
  width: 100vw;
  margin-left: -50vw;
  margin-right: -50vw;
  background: #2f5f8d;
  padding: 12px 0;
  border: 0;
}

.ev-section-head--mission {
  max-width: 1280px;
  margin: 0 auto 10px;
  padding: 0;
}

.ev-section-head--mission h2,
.ev-section-head--mission a,
.ev-section-head--mission::after {
  color: #fff !important;
  background-color: transparent;
}

.ev-section-head--mission::after {
  background: rgba(255, 255, 255, 0.4) !important;
}

.ev-mis-grid {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.ev-mis-col {
  min-width: 0;
}

.ev-mis-col-title {
  margin: 0 0 8px;
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ev-mis-slider {
  position: relative;
  min-height: 320px;
  background: #0f2746;
  overflow: hidden;
}

.ev-mis-slide {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.ev-mis-slide img {
  display: block;
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.ev-mis-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 39, 70, 0.74);
  color: #fff;
  cursor: pointer;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.2s ease;
}

.ev-mis-slider-btn:hover,
.ev-mis-slider-btn:focus-visible {
  background: rgba(15, 39, 70, 0.95);
  outline: none;
}

.ev-mis-slider-btn--prev {
  left: 8px;
}

.ev-mis-slider-btn--next {
  right: 8px;
}

.ev-mis-slider-btn span {
  font-size: 22px;
}

.ev-mis-post-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 12px;
  color: #fff;
  font-size: 30px;
  line-height: 1.12;
  font-weight: 700;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.82) 74%, rgba(0, 0, 0, 0.92) 100%);
}

@media (max-width: 1024px) {
  .ev-mis-col-title {
    font-size: 22px;
  }

  .ev-mis-slider,
  .ev-mis-slide img {
    height: 260px;
    min-height: 260px;
  }

  .ev-mis-post-title {
    font-size: 26px;
  }
}

/* PREDAVANJA I TRIBINE */

.ev-tribine-band {
  margin: 0 0 14px;
}

.ev-tribine-slider {
  position: relative;
  overflow: hidden;
  margin: 0 -6px;
}

.ev-tribine-track {
  display: flex;
  transition: transform 0.35s ease;
  will-change: transform;
}

.ev-tribine-card {
  flex: 0 0 33.3333%;
  min-width: 0;
  padding: 0 6px;
  box-sizing: border-box;
}

.ev-tribine-link {
  position: relative;
  display: block;
  min-height: 320px;
  overflow: hidden;
  background: #0f2746;
  text-decoration: none;
}

.ev-tribine-link img {
  display: block;
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.ev-tribine-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 12px;
  color: #fff;
  font-size: 26px;
  line-height: 1.12;
  font-weight: 700;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.82) 74%, rgba(0, 0, 0, 0.92) 100%);
}

.ev-tribine-slider-btn[disabled] {
  opacity: 0.45;
  cursor: default;
}

.ev-tribine-slider .ev-mis-slider-btn {
  z-index: 30;
  pointer-events: auto !important;
}

@media (max-width: 1024px) {
  .ev-tribine-link,
  .ev-tribine-link img {
    min-height: 260px;
    height: 260px;
  }

  .ev-tribine-title {
    font-size: 22px;
  }
}

@media (max-width: 680px) {
  .ev-tribine-link,
  .ev-tribine-link img {
    min-height: 230px;
    height: 230px;
  }

  .ev-tribine-title {
    font-size: 19px;
  }

  .ev-tribine-band--svetinje .ev-tribine-link,
  .ev-tribine-band--svetinje .ev-tribine-link img {
    min-height: 166px !important;
    height: 166px !important;
  }

  .ev-tribine-band--svetinje .ev-tribine-title {
    font-size: 15px !important;
    padding: 8px 8px !important;
  }
}

/* CATEGORY GRID LAYOUT (all requested home sections) */

body.category-evesti .site-content .content-area,
body.category-vesti .site-content .content-area,
body.category-namesnistva .site-content .content-area,
body.category-misionarska-delatnost .site-content .content-area,
body.category-soz .site-content .content-area,
body.category-pnhz .site-content .content-area,
body.category-kss .site-content .content-area,
body.category-tribine .site-content .content-area,
body.category-veronauka .site-content .content-area,
body.category-svetinje .site-content .content-area,
body.category-manastiri .site-content .content-area {
  width: 100% !important;
}

body.category-evesti .site-content .widget-area,
body.category-vesti .site-content .widget-area,
body.category-namesnistva .site-content .widget-area,
body.category-misionarska-delatnost .site-content .widget-area,
body.category-soz .site-content .widget-area,
body.category-pnhz .site-content .widget-area,
body.category-kss .site-content .widget-area,
body.category-tribine .site-content .widget-area,
body.category-veronauka .site-content .widget-area,
body.category-svetinje .site-content .widget-area,
body.category-manastiri .site-content .widget-area {
  display: none !important;
}

.ev-cat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 18px;
}

.ev-cat-card {
  min-width: 0;
  background: #fff;
  overflow: hidden;
}

.ev-cat-thumb,
.ev-cat-thumb img,
.ev-cat-no-thumb {
  display: block;
  width: 100%;
  height: 220px;
}

.ev-cat-thumb img {
  object-fit: cover;
}

.ev-cat-no-thumb {
  background: #14365f;
}

.ev-cat-card-content {
  padding: 10px 12px 12px;
}

.ev-cat-title,
.ev-cat-title a {
  margin: 0;
  color: #1f2f45;
  text-decoration: none;
  font-size: 19px;
  line-height: 1.15;
}

.ev-cat-card-content .ev-meta {
  margin-top: 8px;
  color: #8f9aaa;
  font-size: 12px;
}

.navigation.pagination {
  margin-top: 6px;
}

@media (max-width: 1200px) {
  .ev-cat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .ev-cat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .ev-cat-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .ev-cards-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .ev-cards-3 .ev-static-card--bishop {
    order: 1;
    grid-column: 1 / -1;
  }

  .ev-cards-3 .ev-static-card--schema {
    order: 2;
  }

  .ev-cards-3 .ev-static-card--schedule {
    order: 3;
  }
}
