/*
Theme Name: Prosvjeta Child
Description: Namenska podređena tema za javni sajt SPKD Prosvjeta Austrija, zasnovana na GeneratePress.
Author: SPKD Prosvjeta Austrija
Template: generatepress
Version: 1.3.1
Text Domain: prosvjeta-child
Requires PHP: 8.0
*/

/* Base design tokens, scoped to Prosvjeta editorial components. */
:root {
  --ps-navy: #173454;
  --ps-red: #a9283e;
  --ps-ink: #192b3e;
  --ps-paper: #f5f6f8;
  --ps-line: #dce1e7;
  --ps-radius: 12px;
}
.ps-section {
  padding-block: clamp(2.5rem, 6vw, 5rem);
}
.ps-kicker {
  color: var(--ps-red);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
}
.ps-section h2 {
  line-height: 1.2;
}
.ps-card {
  border: 1px solid var(--ps-line);
  border-radius: var(--ps-radius);
  padding: clamp(1rem, 3vw, 1.75rem);
  background: #fff;
  overflow-wrap: anywhere;
}
.ps-card img {
  border-radius: calc(var(--ps-radius) - 4px);
}
.ps-hero {
  background: var(--ps-navy);
  color: #fff;
  padding: clamp(2.5rem, 7vw, 6rem) clamp(1.25rem, 5vw, 4rem);
  border-radius: var(--ps-radius);
}
.ps-hero h1, .ps-hero h2, .ps-hero p { color: inherit; }
.ps-hero .wp-block-button__link {
  background: var(--ps-red);
  color: #fff;
  border-radius: 6px;
}
.ps-hero .wp-block-button__link:hover,
.ps-hero .wp-block-button__link:focus-visible { background: #852034; color: #fff; }
:where(.ps-section, .ps-hero, .ps-card) :focus-visible {
  outline: 3px solid #c78328;
  outline-offset: 4px;
}
@media (max-width: 650px) {
  .ps-hero { border-radius: 8px; }
  .ps-section { padding-block: 2rem; }
}

/* Local Noto fonts. */
@font-face { font-family: 'Noto Sans'; src: url('fonts/NotoSans-Regular.woff') format('woff'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Noto Sans'; src: url('fonts/NotoSans-Bold.woff') format('woff'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Noto Sans'; src: url('fonts/NotoSans-Italic.woff') format('woff'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Noto Sans'; src: url('fonts/NotoSans-BoldItalic.woff') format('woff'); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: 'Noto Serif'; src: url('fonts/NotoSerif-Regular.woff') format('woff'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Noto Serif'; src: url('fonts/NotoSerif-Bold.woff') format('woff'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Noto Serif'; src: url('fonts/NotoSerif-Italic.woff') format('woff'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Noto Serif'; src: url('fonts/NotoSerif-BoldItalic.woff') format('woff'); font-weight: 700; font-style: italic; font-display: swap; }
 
/* Remove only the leading content gap on the static front page. */
body.home.page .site-main > article > .inside-article {
  padding-top: 0;
}
body.home.page .site-main > article > .inside-article > .entry-content {
  margin-top: 0;
}
body.home.page .entry-content > .wp-block-cover:first-child {
  margin-top: 0;
}

/* Responsive opening Cover; desktop dimensions remain editable in Gutenberg. */
@media (max-width: 767px) {
  body.home.page .entry-content > .wp-block-cover:first-child {
    min-height: 440px !important;
    padding: 2rem 1.25rem;
  }
  body.home.page .entry-content > .wp-block-cover:first-child h1 {
    font-size: clamp(30px, 7vw, 42px) !important;
    line-height: 1.15;
    overflow-wrap: anywhere;
  }
  body.home.page .entry-content > .wp-block-cover:first-child p {
    font-size: 17px !important;
    line-height: 1.55;
  }
  body.home.page .entry-content > .wp-block-cover:first-child .wp-block-buttons {
    flex-wrap: wrap;
    justify-content: center;
    gap: .75rem;
  }
}

/* Front-page content begins immediately below the header. */
body.home.page #page > .site-content {
  padding-top: 0 !important;
}
body.home.page .site-main {
  margin-top: 0 !important;
}

/* Editorial cards: scoped to the news Query Loop. */
.ps-news-grid {
  margin: 30px 0 0;
}
.ps-news-grid .wp-block-post-template {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 24px !important;
  list-style: none;
  padding: 0 !important;
  margin: 0 !important;
}
.ps-news-grid .wp-block-post-template > li {
  min-width: 0;
  width: auto !important;
  margin: 0 !important;
}
.ps-news-grid .wp-block-post-template > li > .wp-block-group {
  height: 100%;
  box-sizing: border-box;
  padding: 0 !important;
  margin: 0 !important;
  border: 1px solid #e1e6eb;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 3px 12px rgba(23,52,84,.05);
}
.ps-news-grid .wp-block-post-featured-image {
  display: block;
  margin: 0 !important;
  width: 100% !important;
  max-width: none !important;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #eef1f4;
}
.ps-news-grid .wp-block-post-featured-image a,
.ps-news-grid .wp-block-post-featured-image img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}
.ps-news-grid .wp-block-post-title {
  font-family: 'Noto Serif', Georgia, serif;
  font-size: clamp(18px, 1.55vw, 22px) !important;
  line-height: 1.4 !important;
  font-weight: 700 !important;
  letter-spacing: 0;
  margin: 16px 18px 10px !important;
  overflow-wrap: anywhere;
}
.ps-news-grid .wp-block-post-title a {
  color: #173454 !important;
  text-decoration: none;
}
.ps-news-grid .wp-block-post-title a:hover,
.ps-news-grid .wp-block-post-title a:focus-visible {
  color: #a9283e !important;
  text-decoration: underline;
}
.ps-news-grid .wp-block-post-date {
  font-family: 'Noto Sans', sans-serif;
  color: #606a77 !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
  margin: 0 18px 18px !important;
}
.ps-news-grid .wp-block-post-date a {color: inherit !important;}
.ps-news-grid .wp-block-query-pagination {display:none;}
@media(max-width:850px) {
  .ps-news-grid .wp-block-post-template {grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:18px !important;}
}
@media(max-width:520px) {
  .ps-news-grid .wp-block-post-template {grid-template-columns:1fr !important;gap:16px !important;}
  .ps-news-grid .wp-block-post-title {font-size: 20px !important;}
}

/* Prosvjeta 1.3: the approved editorial homepage. */
.psh-top,.psh-footer,.psh-hero,.psh-section,.psh-stats,.psh-membership {--psh-navy:#173454;--psh-dark:#10263e;--psh-red:#a9283e;--psh-ink:#203143;--psh-muted:#596675;--psh-cream:#f7f5f0;--psh-line:#e4e6e8;}
.psh-top {background:#10263e;color:#e9eef4;font:400 12px/1.6 'Noto Sans',sans-serif;}
.psh-chrome-wrap,.psh-wrap {width:calc(100% - 96px);max-width:1240px;margin-inline:auto!important;box-sizing:border-box;}
.psh-top .psh-chrome-wrap {display:flex;justify-content:space-between;align-items:center;gap:20px;padding:9px 0;}
.psh-top-links {display:flex;gap:22px;align-items:center;}
.psh-top a {color:#fff;text-decoration:none;}
.psh-top a:hover {text-decoration:underline;}
.site-header {background:#173454;}
.site-header .inside-header {max-width:1240px;min-height:94px;box-sizing:border-box;padding-block:12px;}
.site-header .main-navigation .main-nav ul li a {font-family:'Noto Sans',sans-serif;font-size:14px;font-weight:700;}
.site-header .main-navigation .main-nav ul li.psh-member-menu > a {border:1px solid #b5c2cf;border-radius:3px;line-height:1.5;padding:10px 15px;}
body.home.page #page>.site-content,body.home.page.one-container .site-content {padding-top:0!important;}
body.home.page .site-main,body.home.page .entry-content {margin-top:0!important;}
body.home.page .entry-content > .alignfull.psh-hero,
body.home.page .entry-content > .alignfull.psh-section,
body.home.page .entry-content > .alignfull.psh-stats,
body.home.page .entry-content > .alignfull.psh-membership {
  margin-inline:calc(50% - 50vw)!important;width:auto!important;max-width:none!important;
  margin-block:0!important;padding:0;box-sizing:border-box;
}
body.home.page:has(.psh-hero){overflow-x:clip;}
.psh-hero,.psh-section,.psh-stats,.psh-membership {color:#203143;font-family:'Noto Sans',sans-serif;box-sizing:border-box;}
.psh-hero h1,.psh-section h2,.psh-section h3,.psh-stats h2,.psh-membership h2 {font-family:'Noto Serif',Georgia,serif;font-weight:700;line-height:1.22;margin:0;}
.psh-hero p,.psh-section p,.psh-stats p,.psh-membership p {margin:0;}
.psh-hero {display:grid!important;grid-template-columns:44% 56%;align-items:stretch;min-height:550px;background:#173454;color:white;overflow:hidden;}
.psh-hero-copy {display:flex!important;flex-direction:column;justify-content:center;align-items:flex-start;padding:66px 45px 70px max(48px,calc((100vw - 1240px)/2));margin:0!important;min-width:0;}
.psh-hero h1 {color:white;font-size:clamp(42px,4.2vw,66px)!important;letter-spacing:-.035em;line-height:1.12;margin:0 0 20px!important;max-width:500px;}
.psh-hero .psh-hero-description {color:#d9e3ed;font-size:17px;max-width:425px;margin-bottom:30px!important;}
.psh-hero .psh-hero-image {position:relative;min-width:0;margin:0!important;min-height:550px;overflow:hidden;}
.psh-hero-image img {width:100%!important;height:100%!important;position:absolute;inset:0;object-fit:cover;object-position:center 36%;display:block;}
.psh-hero-image:after {content:'';position:absolute;inset:0;background:linear-gradient(90deg,#173454 0%,transparent 18%);pointer-events:none;}
.psh-eyebrow {display:flex;gap:10px;align-items:center;color:#a9283e;font-weight:700;font-size:12px;line-height:1.6;letter-spacing:.10em;}
.psh-eyebrow:before {content:'';width:28px;height:2px;background:currentColor;flex-shrink:0;}
.psh-hero .psh-eyebrow,.psh-stats .psh-eyebrow {color:#efbac1;margin-bottom:24px!important;font-size:11px;}
.psh-hero .wp-block-buttons,.psh-membership .wp-block-buttons {gap:12px;margin:0!important;}
.psh-hero .wp-block-button__link,.psh-membership .wp-block-button__link {background:#a9283e;color:#fff;font:700 14px/1.5 'Noto Sans',sans-serif;display:inline-flex;align-items:center;justify-content:center;padding:13px 22px;min-height:46px;border-radius:3px;}
.psh-hero .psh-outline .wp-block-button__link {background:transparent;border:1px solid #abc0d2;color:white;}
.psh-section>.psh-wrap {padding-block:66px;}
.psh-events>.psh-wrap {padding-block:56px;}
.psh-news {background:#f7f5f0;}
.psh-media {background:#f5f6f7;}
.psh-heading {display:flex!important;align-items:flex-end;justify-content:space-between;gap:24px;margin:0 0 30px!important;}
.psh-heading h2 {font-size:36px!important;letter-spacing:-.025em;margin-top:8px!important;color:#203143;}
.psh-heading .psh-intro {color:#596675;margin-top:12px!important;max-width:660px;font-size:16px;}
.psh-heading .wp-block-buttons,.psh-project-card .wp-block-buttons {margin:0!important;}
.psh-text-link .wp-block-button__link,.psh-more {padding:0 0 3px!important;background:none!important;color:#a9283e!important;border:none!important;border-bottom:1px solid #d7a0aa!important;border-radius:0!important;text-decoration:none!important;font:700 14px/1.6 'Noto Sans',sans-serif;white-space:nowrap;}
.psh-event-grid,.psh-project-grid,.psh-school-grid,.psh-photo-grid {display:grid!important;gap:20px;}
.psh-event-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
.psh-event {border:1px solid #e4e6e8;display:grid;grid-template-columns:100px minmax(0,1fr);gap:21px;min-height:160px;padding:20px 22px;border-radius:5px;background:white;box-shadow:0 3px 16px #17345407;align-items:center;}
.psh-event-image {display:block;background:#f3f4f6;}
.psh-event-image img {display:block;width:100px;height:132px;object-fit:contain;}
.psh-meta {color:#a9283e;font-weight:700;font-size:12px;letter-spacing:.045em;}
.psh-event h3 {font-size:20px!important;margin:6px 0 9px!important;}
.psh-event-location {color:#596675;font-size:13px;}
.psh-event h3 a,.psh-news-layout h3 a,.psh-school-grid h3 a {color:#203143;text-decoration:none;}
.psh-event h3 a:hover,.psh-news-layout h3 a:hover,.psh-school-grid h3 a:hover {color:#a9283e;}
.psh-news-layout {display:grid;grid-template-columns:minmax(0,1.13fr) minmax(0,1fr);gap:35px;}
.psh-lead {background:#fff;border:1px solid #e5e3de;border-radius:5px;overflow:hidden;}
.psh-card-image {display:block;background:#eef0f3;overflow:hidden;}
.psh-card-image img {display:block;width:100%;height:100%;object-fit:cover;}
.psh-lead .psh-card-image {height:330px;}
.psh-lead .psh-card-copy {padding:24px 28px;}
.psh-lead h3 {font-size:25px!important;margin:11px 0 15px!important;}
.psh-news-list {display:grid;gap:15px;}
.psh-news-row {display:grid;grid-template-columns:160px minmax(0,1fr);gap:19px;align-items:center;background:white;border:1px solid #e5e3de;border-radius:4px;padding:15px;}
.psh-news-row .psh-card-image {height:106px;}
.psh-news-row h3 {font-size:18px!important;margin:6px 0 0!important;}
.psh-project-grid {grid-template-columns:repeat(3,minmax(0,1fr));}
.psh-project-card {padding:27px!important;background:#f4f6f8;border-top:3px solid #173454;border-radius:0 0 5px 5px;min-height:205px;margin:0!important;}
.psh-project-card .psh-symbol {display:grid;place-items:center;background:white;color:#173454;border:1px solid #dce3eb;width:49px;height:49px;border-radius:50%;font-size:25px;margin-bottom:17px!important;}
.psh-project-card h3 {font-size:21px!important;margin-bottom:10px!important;}
.psh-project-card p:not(.psh-symbol) {font-size:14px;color:#596675;margin-bottom:15px!important;}
.psh-project-card .psh-text-link .wp-block-button__link {border-bottom:0!important;}
.psh-stats {background:#173454;color:white;}
.psh-stat-grid {display:grid!important;grid-template-columns:1.3fr repeat(3,minmax(0,1fr));gap:30px;align-items:center;padding-block:48px;}
.psh-stats h2 {font-size:27px!important;color:white;}
.psh-stats .psh-eyebrow {margin-bottom:8px!important;}
.psh-stat {border-left:1px solid #ffffff40;padding-left:24px;margin:0!important;}
.psh-stat .psh-stat-number {font:700 43px/1.1 'Noto Serif',Georgia,serif;color:white;white-space:nowrap;}
.psh-stat p:last-child {font-size:13px;color:#d9e4ee;margin-top:8px!important;}
.psh-school-grid {grid-template-columns:repeat(3,minmax(0,1fr));}
.psh-school-card .psh-card-image {height:176px;border-radius:4px;}
.psh-school-card .psh-card-copy {padding-top:12px;}
.psh-school-card h3 {font-size:19px!important;margin-top:8px!important;}
.psh-photo-grid {grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;}
.psh-photo-grid img {width:100%;height:190px;object-fit:cover;border-radius:2px;}
.psh-membership {background:#a9283e;color:white;}
.psh-membership-inner {display:flex!important;align-items:center;justify-content:space-between;gap:20px;padding-block:35px;}
.psh-membership h2 {font-size:29px!important;color:white;margin-bottom:6px!important;}
.psh-membership .wp-block-button__link {background:white;color:#a9283e;}
.psh-footer {background:#10263e;color:#bdccda;padding:50px 0 26px;font:400 13px/1.65 'Noto Sans',sans-serif;}
.psh-footer-grid {display:grid;grid-template-columns:1.5fr 1fr 1fr 1.3fr;gap:36px;}
.psh-footer h3 {font:700 15px/1.4 'Noto Sans',sans-serif;color:white;margin:0 0 12px;}
.psh-footer p {margin:0;}
.psh-footer a {color:#dbe6f0;text-decoration:none;}
.psh-footer a:hover {color:white;text-decoration:underline;}
.psh-footer .custom-logo {width:180px;max-width:100%;height:auto;margin-bottom:20px;}
.psh-footer-menu {list-style:none;margin:0;padding:0;}
.psh-footer-menu li {margin:0 0 5px;}
.psh-footer-bottom {margin-top:35px;padding-top:18px;border-top:1px solid #ffffff27;font-size:12px;display:flex;justify-content:space-between;gap:18px;}
.psh-footer-bottom a {margin-left:14px;}
@media(max-width:1000px){
  .psh-chrome-wrap,.psh-wrap {width:calc(100% - 48px);}
  .psh-hero-copy {padding-left:24px;}
  .psh-hero h1 {font-size:43px!important;}
  .psh-news-row {grid-template-columns:110px minmax(0,1fr);}
  .psh-stat-grid {grid-template-columns:repeat(3,minmax(0,1fr));}
  .psh-stat-intro {grid-column:1/-1;}
}
@media(max-width:720px){
  .psh-chrome-wrap,.psh-wrap {width:calc(100% - 36px);}
  .psh-top .psh-chrome-wrap {align-items:flex-start;gap:12px;}
  .psh-top-links {gap:10px;}
  .psh-hero {grid-template-columns:1fr;min-height:0;}
  .psh-hero-copy {padding:44px 24px;}
  .psh-hero h1 {font-size:42px!important;}
  .psh-hero .psh-hero-image {min-height:300px;}
  .psh-hero-image:after {display:none;}
  .psh-section>.psh-wrap,.psh-events>.psh-wrap {padding-block:40px;}
  .psh-heading {align-items:flex-start;flex-direction:column;gap:12px;}
  .psh-heading h2 {font-size:30px!important;}
  .psh-event-grid,.psh-news-layout,.psh-project-grid,.psh-school-grid {grid-template-columns:1fr;}
  .psh-news-layout {gap:20px;}
  .psh-lead .psh-card-image {height:230px;}
  .psh-stat-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;}
  .psh-stat .psh-stat-number {font-size:35px;}
  .psh-photo-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
  .psh-photo-grid img {height:130px;}
  .psh-membership-inner {align-items:flex-start;flex-direction:column;}
  .psh-footer-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;}
  .psh-footer-bottom {flex-direction:column;}
}
@media(max-width:380px){.psh-footer-grid{grid-template-columns:1fr;}.psh-event{grid-template-columns:78px minmax(0,1fr);padding:15px;gap:12px;}.psh-event-image img{width:78px;height:112px;}.psh-news-row{padding:10px;gap:10px;grid-template-columns:92px minmax(0,1fr);}.psh-news-row h3{font-size:16px!important;}}

/* 1.3.1: GeneratePress/legacy WP group inner containers must not become
   individual grid or flex items. Keep Gutenberg blocks intact. */
body.home.page .entry-content :is(.psh-hero,.psh-section,.psh-stats,.psh-membership) .wp-block-group__inner-container,
body.home.page .entry-content :is(.psh-hero,.psh-section,.psh-stats,.psh-membership) > .wp-block-group__inner-container {
  display:contents!important;
  width:auto!important;
  max-width:none!important;
  padding:0!important;
  margin:0!important;
}
body.home.page .entry-content :is(.psh-hero,.psh-section,.psh-stats,.psh-membership) .wp-block-group {
  max-width:none;
  box-sizing:border-box;
}
body.home.page .entry-content :is(.psh-section,.psh-stats,.psh-membership) .psh-wrap {
  width:calc(100% - 96px)!important;
  max-width:1240px!important;
  margin-inline:auto!important;
}
body.home.page .entry-content .psh-heading,
body.home.page .entry-content .psh-section-intro,
body.home.page .entry-content .psh-project-grid,
body.home.page .entry-content .psh-stat-intro,
body.home.page .entry-content .psh-membership-copy {
  padding:0!important;
}
body.home.page .entry-content .psh-hero-copy {max-width:none!important;min-width:0!important;}
body.home.page .entry-content .psh-hero-image {width:100%!important;max-width:none!important;}
body.home.page .entry-content .psh-project-grid {width:100%!important;}
body.home.page .entry-content .psh-stat-grid {grid-template-columns:1.3fr repeat(3,minmax(0,1fr));}
body.home.page:has(.psh-membership) #page>.site-content {padding-bottom:0!important;}
body.home.page:has(.psh-membership) .site-main {margin-bottom:0!important;}
body.home.page:has(.psh-membership) .entry-content {margin-bottom:0!important;}
@media(max-width:1000px){
  body.home.page .entry-content :is(.psh-section,.psh-stats,.psh-membership) .psh-wrap {width:calc(100% - 48px)!important;}
  body.home.page .entry-content .psh-stat-grid {grid-template-columns:repeat(3,minmax(0,1fr));}
}
@media(max-width:720px){
  body.home.page .entry-content :is(.psh-section,.psh-stats,.psh-membership) .psh-wrap {width:calc(100% - 36px)!important;}
  body.home.page .entry-content .psh-stat-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
}

/* Vertikalni razmaci početne stranice */
.psh-section .psh-wrap {
    padding-top: 66px !important;
    padding-bottom: 66px !important;
}

.psh-events .psh-wrap {
    padding-top: 56px !important;
    padding-bottom: 56px !important;
}

/* Dugme za učlanjivanje */
.psh-membership .wp-block-button__link {
    background: #ffffff !important;
    color: #a9283e !important;
    padding: 14px 24px;
    border-radius: 4px;
    font-weight: 700;
}

/* Mobilni prikaz */
@media (max-width: 720px) {
    .psh-section .psh-wrap {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }
}

/* Uvodna sekcija – ravnomerniji raspored */
.psh-hero {
    grid-template-columns: 44% 56%;
}

.psh-hero-copy {
    padding: 65px 40px 65px clamp(32px, 6vw, 120px) !important;
    width: 100%;
}

.psh-hero h1 {
    max-width: 640px !important;
    font-size: clamp(42px, 4vw, 72px) !important;
}

.psh-hero-copy .psh-hero-description {
    max-width: 520px;
}

@media (max-width: 720px) {
    .psh-hero {
        grid-template-columns: 1fr;
    }

    .psh-hero-copy {
        padding: 44px 24px !important;
    }
}

/* Širina zaglavlja */
@media (min-width: 1200px) {
    .site-header .inside-header {
        max-width: 1700px;
        padding-left: 40px;
        padding-right: 40px;
    }

    .psh-top .psh-chrome-wrap {
        max-width: 1700px;
    }
}

/* Padajući meniji */

.main-navigation .main-nav ul ul {
    background: #ffffff;
    box-shadow: 0 8px 25px rgba(0,0,0,.15);
    border-top: 3px solid #a9283e;
}

.main-navigation .main-nav ul ul li a {
    color: #173454 !important;
    background: transparent;
    font-size: 14px;
    font-weight: 500 !important;
    line-height: 1.5;
    padding: 13px 20px;
}

.main-navigation .main-nav ul ul li:hover > a,
.main-navigation .main-nav ul ul li.current-menu-item > a {
    background: #f5f3f0;
    color: #a9283e !important;
}

.main-navigation .main-nav > ul > li:hover > a {
    color: #efbac1 !important;
}

@media (min-width: 769px) {
    .main-navigation .main-nav ul ul {
        width: 300px;
    }
}

/* Poravnanje uvodne sekcije sa zaglavljem */

@media (min-width: 1200px) {

    body.home.page .entry-content > .alignfull.psh-hero {
        padding-inline: max(40px, calc((100vw - 1700px) / 2 + 40px)) !important;
        grid-template-columns: 44% 56%;
    }

    .psh-hero-copy {
        padding-left: 0 !important;
    }

}
@media (min-width: 769px) {
    .psh-hero-image:after {
        background: linear-gradient(
            90deg,
            #173454 0%,
            transparent 15%,
            transparent 95%,
            #173454 100%
        );
    }
}

/* Društvene mreže u gornjoj traci */

.psh-top-links {
    gap: 18px;
}

.psh-top-links .psh-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    color: #ffffff;
    transition: opacity .2s ease, transform .2s ease;
}

.psh-social-icon svg {
    width: 17px;
    height: 17px;
    display: block;
}

.psh-top-links .psh-social-icon:hover {
    opacity: .7;
    transform: translateY(-2px);
}

/* Poravnanje gornje trake */

@media (min-width: 1200px) {
    .psh-top .psh-chrome-wrap {
        width: calc(100% - 80px);
        max-width: 1620px;
    }
}

/* Mobilno zaglavlje i navigacija */

@media (max-width: 768px) {

    .psh-hero-copy {
        padding-top: 28px;
    }

    .main-navigation .main-nav > ul > li > a {
        line-height: 48px;
    }

    .main-navigation .main-nav > ul > li.sfHover > a,
    .main-navigation .main-nav > ul > li.current-menu-item > a,
    .main-navigation .main-nav > ul > li.current-menu-ancestor > a {
        color: #efbac1 !important;
    }

    .main-navigation .main-nav ul ul li a {
        padding: 11px 20px;
        font-size: 14px;
    }

}

/* Pojedinačni članci */

.single-post .inside-article {
    max-width: 1200px;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
}

.single-post .inside-article > .entry-header {
    order: -2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 30px;
}

.single-post .inside-article > .post-image,
.single-post .inside-article > .featured-image {
    order: -1;
    margin: 0 0 35px;
}

.single-post .entry-title {
    font-family: 'Noto Serif', Georgia, serif;
    font-size: clamp(30px, 3vw, 48px);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -.025em;
    color: #173454;
}

.single-post .entry-meta {
    font-size: 14px;
    color: #747b85;
    margin-top: 18px;
}

.single-post .entry-meta .byline {
    display: none;
}

.single-post .entry-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Noto Sans', sans-serif;
    font-size: 18px;
    line-height: 1.85;
    color: #292f37;
}

.single-post .entry-content p {
    margin-bottom: 24px;
}

.single-post .entry-content h2,
.single-post .entry-content h3 {
    font-family: 'Noto Serif', Georgia, serif;
    color: #173454;
    line-height: 1.35;
    margin-top: 36px;
    margin-bottom: 18px;
}

@media (max-width: 768px) {
    .single-post .entry-content {
        font-size: 16px;
        line-height: 1.75;
    }

    .single-post .entry-title {
        font-size: 30px;
    }
}

/* Kategorije i datum članka */

.single-post .entry-header .entry-meta {
    display: none;
}

.psh-article-category {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.psh-article-category a {
    color: #a9283e;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-decoration: none;
}

.psh-article-date {
    font-size: 14px;
    color: #747b85;
    margin-top: 18px;
}

/* Deljenje članka */

.psh-share {
    margin: 40px 0;
    padding: 25px 0;
    border-top: 1px solid #e4e6e8;
    border-bottom: 1px solid #e4e6e8;
}

.psh-share h3 {
    font-size: 17px;
    color: #173454;
    margin-bottom: 18px;
}

.psh-share a {
    display: inline-block;
    padding: 10px 20px;
    margin: 0 8px 8px 0;
    background: #173454;
    color: #fff;
    font-size: 14px;
    text-decoration: none;
    border-radius: 4px;
}

.psh-share a:hover {
    background: #a9283e;
    color: #fff;
}

/* Povezani članci */

.psh-related {
    margin: 25px 0 40px;
}

.psh-related h2 {
    color: #173454;
    font-size: 30px;
    margin-bottom: 25px;
}

.psh-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.psh-related-card {
    display: block;
    border: 1px solid #e4e6e8;
    text-decoration: none;
    overflow: hidden;
    border-radius: 5px;
}

.psh-related-card img {
    display: block;
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.psh-related-card h3 {
    font-family: 'Noto Serif', Georgia, serif;
    font-size: 20px;
    line-height: 1.4;
    padding: 18px;
    margin: 0;
    color: #173454;
}

.psh-related-card:hover h3 {
    color: #a9283e;
}

@media (max-width: 768px) {
    .psh-related-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

/* Uklanjanje suvišne navigacije članka */

.single-post footer.entry-meta .cat-links,
.single-post .post-navigation {
    display: none;
}

.single-post footer.entry-meta .tags-links {
    font-size: 13px;
    margin-top: 24px;
}

.single-post footer.entry-meta .tags-links a {
    color: #747b85;
    text-decoration: none;
}

/* Oznake članaka - tagovi */

.single-post footer.entry-meta .tags-links {
    font-size: 0;
    margin-top: 20px;
    color: #747b85;
}

.single-post footer.entry-meta .tags-links a {
    display: inline-block;
    font-size: 13px;
    color: #173454;
    background: #f2f4f6;
    border: 1px solid #e4e6e8;
    padding: 6px 12px;
    margin: 0 6px 6px 0;
    border-radius: 4px;
    text-decoration: none;
    transition: .2s ease;
}

.single-post footer.entry-meta .tags-links a:hover {
    background: #173454;
    border-color: #173454;
    color: #fff;
}

.single-post footer.entry-meta .tags-links::before {
    content: "Теме:";
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    color: #747b85;
    margin-right: 12px;
}

.psd-legacy-card:not(:has(img))::before {
    content: "Просвјета";
    display: grid;
    place-items: center;
    height: 230px;
    background: #173454;
    color: #fff;
    font-family: 'Noto Serif', Georgia, serif;
    font-size: 24px;
}

/* Prosvjeta: O nama. Scoped to the About page blocks. */
.psa-about{font-family:'Noto Sans',sans-serif;color:#203143;font-size:17px;line-height:1.75}
.psa-about h2,.psa-about h3{font-family:'Noto Serif',Georgia,serif;color:#173454;line-height:1.25;font-weight:700}
.psa-about h2{font-size:clamp(29px,3.3vw,44px);margin:0 0 20px}
.psa-about h3{font-size:23px;margin:0 0 12px}
.psa-about p{margin:0 0 15px}
.psa-about .psa-kicker{font-size:12px;font-weight:700;letter-spacing:.1em;color:#a9283e;margin-bottom:12px}
.psa-intro{display:grid;grid-template-columns:1fr 1.15fr;gap:40px;align-items:center;padding:6px 0 48px}
.psa-intro-copy{min-width:0}
.psa-intro-photo{margin:0!important}
.psa-intro-photo img{display:block;width:100%;height:auto;border-radius:5px}
.psa-intro-photo figcaption{font-size:12px;color:#747b85;margin-top:8px;text-align:right}
.psa-mission{background:#f6f5f2;border-left:4px solid #a9283e;padding:35px 40px;margin:0 0 48px}
.psa-mission p:last-child,.psa-values p:last-child{margin-bottom:0}
.psa-work{margin:0 0 48px}
.psa-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.psa-card{display:flex;flex-direction:column;border:1px solid #e4e6e8;padding:26px;border-radius:5px}
.psa-card .psa-number{font:700 15px 'Noto Sans',sans-serif;color:#a9283e;margin-bottom:14px}
.psa-card .psa-link{margin:auto 0 0;padding-top:10px}
.psa-link a{color:#a9283e;font-size:14px;font-weight:700;text-decoration:none}
.psa-link a:hover{text-decoration:underline}
.psa-values{background:#173454;color:#e7eef5;padding:40px;margin:0 0 48px;border-radius:5px}
.psa-values h2{color:white}
.psa-values .psa-kicker{color:#efbac1}
.psa-cta{padding-top:10px}
.psa-cta a{display:inline-block;background:#a9283e;border-radius:3px;color:white;padding:12px 18px;font-size:15px;font-weight:700;text-decoration:none}
.psa-cta a:hover{background:#852034}
.psa-details{margin:0 0 20px}
.psa-detail-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;list-style:none!important;padding:0!important;margin:0!important}
.psa-detail-links li{margin:0!important}
.psa-detail-links a{display:block;padding:15px 18px;color:#173454;border:1px solid #e4e6e8;border-radius:4px;font-weight:700;text-decoration:none}
.psa-detail-links a::after{content:' →';color:#a9283e}
.psa-detail-links a:hover{border-color:#a9283e;color:#a9283e}
@media(max-width:780px){.psa-intro{grid-template-columns:1fr;gap:20px;padding-bottom:32px}.psa-grid,.psa-detail-links{grid-template-columns:1fr}.psa-mission,.psa-values{padding:24px}.psa-about{font-size:16px}}
/* Ispravka Gutenberg kontejnera na stranici O nama */

.psa-about .wp-block-group__inner-container,
.psa-about > .wp-block-group__inner-container {
    display: contents !important;
    width: auto !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.psa-about .wp-block-group {
    max-width: none !important;
    box-sizing: border-box;
}

.psa-about .psa-intro-photo {
    width: 100% !important;
    max-width: none !important;
}

/* Историјат: Gutenberg timeline */
.pshi-history{font:400 17px/1.75 'Noto Sans',sans-serif;color:#203143}
.pshi-history .wp-block-group__inner-container{display:contents!important;width:auto!important;max-width:none!important;margin:0!important;padding:0!important}
.pshi-history .wp-block-group{box-sizing:border-box;max-width:none!important}
.pshi-history h2,.pshi-history h3{font-family:'Noto Serif',Georgia,serif;color:#173454;font-weight:700;line-height:1.3}
.pshi-history h2{font-size:clamp(28px,3vw,42px);margin:0 0 22px}
.pshi-history h3{font-size:23px;margin:0 0 9px}
.pshi-history p{margin:0 0 15px}
.pshi-history .pshi-kicker{font-size:12px;font-weight:700;letter-spacing:.1em;color:#a9283e;margin:0 0 12px}
.pshi-intro{padding:35px 40px!important;background:#173454;color:#e7eef5;border-radius:5px;margin:0 0 44px!important}
.pshi-intro h2{color:#fff}
.pshi-intro .pshi-kicker{color:#efbac1}
.pshi-intro p:last-child{margin-bottom:0}
.pshi-section{margin:0 0 48px!important;padding:0!important}
.pshi-timeline{position:relative;margin:28px 0 0!important;padding:0!important}
.pshi-timeline::before{content:'';position:absolute;left:147px;top:16px;bottom:18px;width:2px;background:#dce1e7}
.pshi-history .pshi-row{position:relative;display:grid!important;grid-template-columns:125px minmax(0,1fr);gap:44px;margin:0!important;padding:0 0 24px!important;align-items:start}
.pshi-history .pshi-row::before{content:'';position:absolute;top:18px;left:141px;height:14px;width:14px;border:3px solid white;background:#a9283e;border-radius:50%;box-shadow:0 0 0 1px #a9283e;box-sizing:border-box}
.pshi-history .pshi-year{font-family:'Noto Serif',Georgia,serif;font-size:clamp(22px,2vw,30px);font-weight:700;color:#a9283e;text-align:right;line-height:1.2;margin:12px 0 0!important;white-space:nowrap}
.pshi-history .pshi-copy{background:#fff;border:1px solid #e4e6e8;border-radius:5px;padding:22px 26px!important;min-width:0;margin:0!important}
.pshi-copy p:last-child{margin-bottom:0}
.pshi-austria{background:#f6f5f2;padding:35px 40px!important;border-radius:5px}
.pshi-austria .pshi-row::before{border-color:#f6f5f2}
.pshi-austria .pshi-row:last-child{padding-bottom:0!important}
.pshi-original details{background:#f6f5f2;border:1px solid #e4e6e8;border-radius:5px;margin:0 0 12px;padding:18px 22px}
.pshi-original details summary{font-family:'Noto Serif',Georgia,serif;font-size:20px;color:#173454;font-weight:700;cursor:pointer}
.pshi-original details[open] summary{margin-bottom:18px}
.pshi-original details p{margin:0 0 18px}
.pshi-original a{color:#a9283e}
@media(max-width:700px){.pshi-history{font-size:16px}.pshi-intro,.pshi-austria{padding:24px!important}.pshi-timeline::before{left:7px;top:12px}.pshi-history .pshi-row{display:block!important;padding:0 0 24px 28px!important}.pshi-history .pshi-row::before{left:1px;top:8px}.pshi-history .pshi-year{text-align:left;margin:0 0 12px!important}.pshi-history .pshi-copy{padding:18px!important}.pshi-original details{padding:15px}}
@media(min-width:701px){.pshi-history .pshi-year{font-size:clamp(20px,1.7vw,25px)}}

/* Statut: dokument sa sadržajem i člancima */
.pss-document{font:400 17px/1.85 'Noto Sans',sans-serif;color:#27313d}
.pss-document h2,.pss-document h3{font-family:'Noto Serif',Georgia,serif;font-weight:700;color:#173454;line-height:1.3}
.pss-document>h2{font-size:clamp(26px,3vw,40px);margin:0 0 24px}
.pss-document p{margin:0 0 16px;overflow-wrap:break-word}
.pss-toc{background:#f6f5f2;border-left:4px solid #a9283e;padding:25px 30px;margin:32px 0 42px}
.pss-toc h3{font-size:23px;margin:0 0 16px}
.pss-toc ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 28px;list-style:none;margin:0!important;padding:0!important}
.pss-toc li{margin:0!important;min-width:0}
.pss-toc a{display:block;padding:7px 0;color:#173454;text-decoration:none;font-size:14px;line-height:1.5}
.pss-toc a:hover,.pss-toc a:focus-visible{color:#a9283e;text-decoration:underline}
.pss-article{scroll-margin-top:36px;margin:0 0 32px;border:1px solid #e4e6e8;border-radius:5px;padding:28px 32px}
.pss-article-title{font-size:clamp(21px,2vw,28px);margin:0 0 22px;padding-bottom:14px;border-bottom:2px solid #a9283e}
.pss-article p:last-child{margin-bottom:0}
@media(max-width:700px){.pss-document{font-size:16px;line-height:1.75}.pss-toc{padding:20px}.pss-toc ul{grid-template-columns:1fr;gap:4px}.pss-article{padding:20px 17px}}
@media print{.pss-toc{display:none}.pss-article{border:0;padding:0;margin:0 0 22px}.pss-article-title{break-after:avoid}.pss-document{font-size:11pt;color:#000}}

/* Platforma o radu */
.psp-platform{color:#27313d;font:400 17px/1.85 'Noto Sans',sans-serif}
.psp-platform-title,.psp-platform-heading{font-family:'Noto Serif',Georgia,serif;color:#173454;font-weight:700;line-height:1.3}
.psp-platform-title{font-size:clamp(26px,3vw,40px);margin:0 0 25px}
.psp-platform-intro{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,240px);gap:30px;align-items:center;background:#f6f5f2;border-left:4px solid #a9283e;padding:28px 32px;margin:0 0 36px}
.psp-platform-preamble p{margin:0 0 16px}
.psp-platform-preamble p:last-child{margin:0}
.psp-platform-logo{margin:0!important;min-width:0;text-align:center}
.psp-platform-logo img{display:block;width:100%;height:auto;max-width:240px;margin:auto;object-fit:contain}
.psp-platform-heading{font-size:clamp(24px,3vw,34px);margin:0 0 24px;color:#a9283e}
.psp-platform-points{display:grid;gap:16px}
.psp-platform .psp-platform-point{margin:0;padding:22px 28px;border:1px solid #e4e6e8;border-left:3px solid #a9283e;border-radius:4px;background:#fff}
@media(max-width:700px){.psp-platform{font-size:16px;line-height:1.75}.psp-platform-intro{grid-template-columns:1fr;padding:22px;gap:18px}.psp-platform-logo img{max-width:160px}.psp-platform .psp-platform-point{padding:18px}}
@media print{.psp-platform{font-size:11pt;color:#000}.psp-platform-intro,.psp-platform .psp-platform-point{border:0;background:white;padding:0}.psp-platform-point{break-inside:avoid}}

/* Scroll to Top */

a.generate-back-to-top,
a.generate-back-to-top:visited {
    background-color: #a9283e !important;
    color: #ffffff !important;
    border-radius: 6px;
    width: 46px;
    line-height: 46px;
    right: 25px;
    bottom: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

a.generate-back-to-top:hover,
a.generate-back-to-top:focus {
    background-color: #173454 !important;
    color: #ffffff !important;
}

@media (max-width: 768px) {
    a.generate-back-to-top {
        right: 15px;
        bottom: 15px;
    }
}