:root {
  --green-1: #038d44;
  --green-2: #2f9a58;
  --accent: #ffd24d;
  --bg: #f7f7f7;
  --text: #222;
}

* {
  box-sizing: border-box;
}
body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial;
  margin: 0;
  color: var(--text);
  background: var(--bg);
}

.container{width:80%;margin:0 auto;padding:0 18px}

html,
body {
  overflow-x: hidden;
}

.full-bleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  box-sizing: border-box;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  gap: 12px;
  background: #005d2b;
  color: #fff;
}

.left-group {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 4px;
}
.logo-wrap {
  flex: 0 0 auto;
}

.site-title {
  color: var(--bg);
  font-weight: 800;
  letter-spacing: 1px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.site-title .title-top {
  font-size: 16px;
  line-height: 1;
}
.site-title .title-bottom {
  font-size: 20px;
  line-height: 1;
  margin-top: 4px;
  color: var(--accent);
}

.shortcuts {
  display: flex;
  gap: 12px;
  align-items: center;
}
.shortcut {
  color: var(--green-1);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  padding: 6px 8px;
  border-radius: 4px;
  transition: transform 0.18s cubic-bezier(0.2, 0.9, 0.3, 1), opacity 0.12s;
}
.shortcut:hover {
  opacity: 0.95;
  transform: translateY(-3px);
}
.header-inner .shortcut {
  color: #fff;
}
.header-inner .shortcut:hover {
  background: rgba(255, 255, 255, 0.08);
  opacity: 1;
}
.shortcut:active {
  transform: scale(0.98);
}

.shortcut.pulse {
  animation: btnPulse 0.28s ease;
}
@keyframes btnPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.96);
  }
  100% {
    transform: scale(1);
  }
}

.site-main {
  padding: 50px 0;
}

.site-main h2 {
  font-size: 20px;
  color: #0f172a;
  margin-bottom: 8px;
}
.site-main p {
  line-height: 1.6;
  color: #334155;
}
.panel {
  max-width: 100%;
}
.panel {
  background: white;
  padding: 22px;
  margin: 18px 0;
  border-radius: 4px;
  box-shadow: 0 6px 18px rgba(10, 10, 10, 0.04);
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.5s ease;
}
.panel h2 {
  margin-top: 0;
}
.panel.visible {
  opacity: 1;
  transform: none;
}

/* News grid styles */
.news-grid {
  padding: 10px;
}
.news-grid .news-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #fff, #fbfbfb);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(10, 10, 10, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s;
}
.news-grid .news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(10, 10, 10, 0.08);
}
.news-media {
  height: 160px;
  background: linear-gradient(45deg, #e6f9f0, #f0fff8);
  display: block;
  overflow: hidden;
}
.news-media img{width:100%;height:100%;object-fit:cover;display:block}
.news-body {
  padding: 16px;
}
.news-date {
  display: block;
  color: #64748b;
  font-size: 13px;
  margin-bottom: 6px;
}
.news-body h3 {
  margin: 0 0 8px 0;
  color: #0f172a;
}
.news-body p {
  margin: 0 0 12px;
  color: #475569;
}
.read-more {
  font-size: 13px;
  padding: 6px 8px;
  border-radius: 4px;
}

@media (min-width: 720px) {
  .news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
  .news-grid .news-card {
    flex-direction: column;
  }
}

.map-panel {
  position: relative;
  padding-bottom: 18px;
}
.map {
  height: 360px;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 12px;
  border: 2px solid rgba(0, 0, 0, 0.06);
}
.map.embed iframe {
  border: 0;
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 4px;
}
.contact-card {
  position: relative;
  right: auto;
  top: auto;
  background: #ffffff;
  border-radius: 4px;
  padding: 18px;
  box-shadow: 0 14px 30px rgba(2, 6, 23, 0.08);
  width: 320px;
  max-width: 92%;
  margin: 16px auto;
  border-left: 6px solid #035e33;
}
.contact-card h3 {
  margin-top: 0;
}

/* Make section labels uppercase as requested */
.contact-card h3,
.news-body h3 {
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

/* Layout the #mapa section as a two-column flex row (map 70% / contact 30%) */
#mapa{display:flex;flex-direction:row;gap:18px;align-items:flex-start}
#mapa .map{flex:0 0 70%}
#mapa .contact-card{position:relative;flex:0 0 30%;width:auto;max-width:none;margin:0;box-shadow:0 18px 40px rgba(2,6,23,0.12);background:rgba(255,255,255,0.98)}

@media (max-width:800px){
  #mapa{flex-direction:column}
  #mapa .map,#mapa .contact-card{flex-basis:100%;width:100%}
}

/* Hero banner */
.hero {
  padding: 0;
  margin: 0;
}
.hero-banner {
  width: 100%;
  display: block;
  border-radius: 0;
  box-shadow: none;
  height: auto;
  max-height: none;
}

/* hero with green background and centered, scaled image */
.hero.full-bleed {
  background: none;
  padding: 0;
}
.hero .hero-banner {
  width: 100%;
  max-width: none;
  display: block;
  margin: 0 auto;
  height: auto;
  object-fit: contain;
}

/* Sponsor carousel styles (3 items visible) */
.sponsor-carousel {
  height: 160px;
  position: relative;
  overflow: hidden;
  margin-top: 12px;
  background: transparent;
  /* inner horizontal padding so logos aren't flush to viewport edges */
  padding: 16px 24px;
}
.sponsor-track {
  display: flex;
  transition: transform 0.6s ease;
  align-items: center;
}
.sponsor-item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}
.sponsor-item img {
  max-height: 120px;
  max-width: 100%;
  object-fit: contain;
  opacity: 0.55;
  filter: grayscale(10%);
  transition: opacity 0.36s ease, transform 0.36s ease, filter 0.36s ease;
}
.sponsor-item.visible img {
  opacity: 1;
  filter: none;
  transform: scale(1.02);
}
.sponsor-carousel .placeholder {
  color: #94a3b8;
  padding: 20px;
}

.sponsor-grid {
  display: none;
}

/* Map contact button */
.map-contact-btn {
  position: absolute;
  right: 18px;
  top: 12px;
  background: #035e33;
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  font-weight: 800;
  letter-spacing: 1px;
  cursor: pointer;
  text-transform: uppercase;
  z-index: 50;
  box-shadow: 0 8px 18px rgba(3, 94, 51, 0.18);
  transition: transform 0.12s ease, opacity 0.12s;
}
.map-contact-btn:hover {
  transform: translateY(-3px);
  opacity: 0.95;
}
.map-contact-btn:active {
  transform: scale(0.98);
}

/* sponsors */
.sponsors .sponsor {
  background: transparent;
  border: none;
  padding: 10px;
  border-radius: 4px;
  text-align: center;
  color: #374151;
  font-weight: 700;
  box-shadow: none;
}

/* Sponsors full-bleed white band: the section itself spans full viewport but inner .sponsors-inner
	keeps content centered and constrained. We keep the carousel background transparent so
	logos sit cleanly on the white band. */
#sponzorji.full-bleed {
  background: #ffffff;
  padding: 22px 0;
  margin: 0;
  box-shadow: none;
  border-radius: 0;
}
.sponsors-inner {
  padding: 6px 0;
}

/* highlight animation for contact card */
.contact-card.highlight {
  animation: highlightFlash 1.2s ease forwards;
}
@keyframes highlightFlash {
  0% {
    box-shadow: 0 8px 26px rgba(3, 94, 51, 0.06);
  }
  50% {
    box-shadow: 0 18px 44px rgba(3, 94, 51, 0.16);
  }
  100% {
    box-shadow: 0 8px 26px rgba(3, 94, 51, 0.06);
  }
}

/* Per request: remove the visual box-shadow and left border from the contact card.
   Use !important to ensure overrides regardless of earlier rules. Keep background/spacing. */
.contact-card{
  box-shadow: none !important;
  border-left: none !important;
}

@media (max-width:800px){
  /* also remove the mobile left-border override */
  .map-panel .contact-card{ border-left: none !important; box-shadow: none !important; }
}

/* Subtle layout improvements */
.panel {
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.panel.visible {
  transform: none;
  box-shadow: 0 12px 40px rgba(10, 10, 10, 0.06);
}

/* Improve link appearance inside contact card */
.contact-card a {
  color: #035e33;
  text-decoration: none;
  font-weight: 700;
}
.contact-card a:hover {
  text-decoration: underline;
}

/* Contact rows: icon on the left, text on the right */
.contact-row{
  display:flex;
  align-items:center;
  gap:12px;
  padding:8px 0;
}
.contact-icon{
  flex:0 0 36px;
  width:36px;
  height:36px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--green-1);
}
.contact-icon svg{width:20px;height:20px;display:block}
.contact-text{flex:1;min-width:0}
.contact-label{font-size:11px;color:#64748b;text-transform:uppercase;font-weight:700;margin-bottom:2px}
.contact-value{font-size:15px;color:#0f172a;word-break:break-word}
.contact-value a{color:#035e33;text-decoration:none}
.contact-row + .contact-row{border-top:1px solid rgba(2,6,23,0.04);padding-top:12px}

#vec-informacij.panel{
  background: #ffffff;
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 12px 36px rgba(10,10,10,0.04);
}
#vec-informacij h3{
  margin: 0 0 12px 0;
  font-size: 18px;
  color: var(--green-1);
  text-transform: uppercase;
  letter-spacing: 1px;
}
#vec-informacij h4{
  margin: 14px 0 8px 0;
  font-size: 13px;
  text-transform: uppercase;
  color: #0f172a;
}
#vec-informacij dl{
  margin: 0 0 12px 0;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 8px 18px;
  align-items: start;
}
#vec-informacij dt{
  font-size: 12px;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 500;
}
#vec-informacij dd{
  margin: 0 0 6px 0;
  color: #0f172a;
}

#social-stream {
    width: 100%;
    max-height: 400px;
    overflow: auto;
}

.teams{margin-top:8px}
.teams h5{margin:12px 0 6px 0;font-size:14px;color:var(--green-1);text-transform:uppercase}
.teams p{margin:0 0 10px;color:#334155}

@media (max-width:720px){
  #vec-informacij dl{grid-template-columns:1fr}
  #vec-informacij dt{margin-top:6px}
}

.info-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px;align-items:start}
.info-left,.info-right{min-width:0}

.team-table{border-top:1px solid rgba(2,6,23,0.06);margin-top:8px}
.team-row{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px;padding:10px 0;border-bottom:1px solid rgba(2,6,23,0.04)}
.team-row.header{font-weight:800;background:transparent;border-bottom:1px solid rgba(2,6,23,0.06);padding-top:8px}
.team-col{font-size:13px;color:#0f172a}
.team-col.team-name{font-weight:500;color:var(--green-1)}

@media (max-width:900px){
  .info-grid{grid-template-columns:1fr}
  .team-row{grid-template-columns:1fr}
  .team-row.header{display:none}
}

.social-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;align-items:stretch}
.social-panel{padding:12px 0;margin:18px 0}
.social-grid .fb-plugin{min-width:0}
.fb-plugin iframe{border-radius:6px}
.insta-wrap{background:#fff;border-radius:6px;padding:8px;display:flex;align-items:center;justify-content:center}
.insta-wrap #instaFeed{width:100%}
.social-grid .fb-plugin{min-width:0}
.fb-plugin iframe{border-radius:4px}
.insta-wrap h4{margin:0 0 8px 0;color:var(--green-1);text-transform:uppercase;font-size:13px}
.insta-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.insta-item{width:100%;padding-top:100%;position:relative;overflow:hidden;border-radius:4px;background:#f3f4f6}
.insta-item img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.insta-item a{display:block;width:100%;height:100%}
.insta-fallback{margin-top:10px}

@media (max-width:920px){
  .social-grid{grid-template-columns:1fr;}
}

@media (max-width:520px){
  .insta-grid{grid-template-columns:repeat(2,1fr)}
}

/* Flipbook full-bleed styles */
.flipbook.full-bleed{background:transparent;padding:0;margin:18px 0}
.flipbook-frame{width:100%;height:680px;max-height:85vh;overflow:hidden}
.flipbook-frame iframe{width:100%;height:100%;border:0;display:block}

@media (max-width:900px){
  .flipbook-frame{height:520px}
}
@media (max-width:520px){
  .flipbook-frame{height:420px}
}

.site-footer {
  padding: 28px 0;
  background: #434343;
  color: #fff;
}
.site-footer .footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 6px 18px;
}
.site-footer p {
  margin: 0;
}

.socials {
  display: flex;
  gap: 14px;
  align-items: center;
}
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f6d226; /* use color so SVGs can choose stroke or fill */
  text-decoration: none;
  opacity: 0.95;
  transition: opacity 0.12s ease, transform 0.12s;
}
.social-link:hover {
  opacity: 1;
  transform: translateY(-3px);
}
.social-link svg {
  width: 20px;
  height: 20px;
  display: block;
  /* do not force fill/stroke here; SVGs should set fill or stroke to currentColor */
}

.footer-copy{color:#fff;margin:0;font-size:14px}

@media (max-width: 720px) {
  .site-footer .footer-inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  /* on small screens make socials flow in the column layout */
  .site-footer .socials{
    position: static;
    transform: none;
    margin-top: 6px;
  }
}

@media (max-width: 800px) {
  .header-inner {
    padding: 12px;
  }
  .site-title {
    font-size: 14px;
  }
  .shortcuts {
    display: none;
  }

  .logo {
    width: 56px;
    height: 56px;
  }
  .map-panel .contact-card {
    position: static;
    width: auto;
    margin-top: 12px;
    border-left: 6px solid #035e33;
  }
  .hero-banner {
    width: 100%;
    height: 240px;
  }
}

/* Small phones and narrow viewports: tighter layout */
@media (max-width: 480px) {
  /* container narrower and less padding */
  .container{width:92%;padding:0 12px}

  /* header compact */
  .header-inner{padding:10px 12px;gap:8px}
  .logo{width:48px;height:48px}
  .site-title .title-top{font-size:13px}
  .site-title .title-bottom{font-size:16px}

  /* reduce panel padding and radius for compactness */
  .panel{padding:14px;margin:12px 0;border-radius:4px}

  /* hero smaller height */
  .hero-banner{height:200px;object-fit:cover}

  /* news cards stack and image smaller */
  .news-media{height:120px}
  .news-body{padding:12px}

  /* contact card compact rows */
  .contact-card{padding:12px;width:100%;box-shadow:none}
  .contact-row{gap:10px;padding:6px 0}
  .contact-icon{flex:0 0 28px;width:28px;height:28px}
  .contact-icon svg{width:16px;height:16px}
  .contact-label{font-size:10px}
  .contact-value{font-size:14px}

  /* sponsor carousel smaller */
  .sponsor-carousel{height:120px;padding:10px}
  .sponsor-item img{max-height:80px}

  /* social grid stacks, keep consistent spacing */
  .social-grid{grid-template-columns:1fr;gap:12px}
  .fb-plugin iframe{height:320px}

  /* flipbook smaller on phones */
  .flipbook-frame{height:360px}

  /* info panel stacking adjustments */
  .info-grid{grid-template-columns:1fr}
  #vec-informacij dl{grid-template-columns:1fr}

  /* team table stacks rows already at 900px; ensure compact spacing */
  .team-row{padding:8px 0}
}

/* mobile nav removed per user request */

/* spacing between news articles on small phones */
@media (max-width:480px){
  .news-grid .news-card{margin-bottom:24px}
}

.muted {
  color: #666;
}

#scrollProgress {
  position: fixed;
  left: 0;
  top: 0;
  height: 4px;
  background: var(--accent);
  width: 0%;
  z-index: 60;
  transition: width 0.12s linear;
}

#backToTop {
  position: fixed;
  right: 20px;
  bottom: 22px;
  background: #035e33;
  color: white;
  border: none;
  padding: 10px 12px;
  border-radius: 4px;
  box-shadow: 0 10px 24px rgba(3, 94, 51, 0.18);
  cursor: pointer;
  font-weight: 700;
  display: none;
  z-index: 70;
  transition: transform 0.12s, opacity 0.12s;
}
#backToTop.show {
  display: block;
  opacity: 1;
}
#backToTop:active {
  transform: scale(0.96);
}
/* hide native scrollbars visually but keep scrolling functional */
html, body {
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}
html::-webkit-scrollbar { display: none; width: 0; height: 0; }

/* fallback: remove any browser-specific colored thumb rules */
html::-webkit-scrollbar-track { background: transparent; }
html::-webkit-scrollbar-thumb { background: transparent; }
