:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --primary: #0e183d;
  --secondary: #f4c400;
  --text: #121b3f;
  --muted: #5f6a82;
  --border: #e6ecf6;
  --shadow: rgba(14,24,61,0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

.container {
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
}

.banner {
  width: 100%;
  background: linear-gradient(180deg, rgba(14,24,61,0.95) 0%, rgba(14,24,61,0.78) 100%);
  color: #ffffff;
  position: relative;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  text-align: center;
}

.banner-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 72px;
  max-width: 72px;
}

.banner-icon.left {
  left: 1.5rem;
}

.banner-icon.right {
  right: 1.5rem;
}

.ministry-text {
  font-size: clamp(1.1rem, 2.1vw, 1.6rem);
  font-weight: 700;
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.4;
}

/* Bosnia-style header alignment */
.banner {
  gap: 1rem;
}

.banner .banner-icon.left {
  position: static;
  transform: none;
  flex-shrink: 0;
  width: 80px;
  height: 80px;
}

.banner .banner-icon.right {
  position: static;
  transform: none;
  flex-shrink: 0;
  width: 72px;
  height: 72px;
}

.banner .ministry-text {
  margin: 0;
  text-align: left;
  flex: 1;
}

@media (max-width: 760px) {
  .banner {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
  }

  .banner .banner-icon.left,
  .banner .banner-icon.right {
    position: static;
    transform: none;
    width: 56px;
    height: 56px;
  }

  .banner .ministry-text {
    text-align: center;
  }
}

.lang-flags {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  display: flex;
  gap: 0.65rem;
  z-index: 10;
}

.lang-flags a {
  display: inline-flex;
}

.lang-flags img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  opacity: 0.75;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.lang-flags a.active img,
.lang-flags img:hover {
  opacity: 1;
  transform: translateY(-1px);
  outline: 2px solid rgba(255,255,255,0.95);
  outline-offset: 2px;
}

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 10px 30px var(--shadow);
}

nav .nav-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
}

nav .nav-top .ministry-text {
  display: none;
  color: var(--primary);
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(14,24,61,0.05);
}

.menu-toggle span {
  width: 100%;
  height: 3px;
  background: var(--primary);
  border-radius: 999px;
}

nav .nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1rem;
  margin: 0 0.2rem;
  color: var(--text);
  font-weight: 600;
  border-radius: 10px;
  transition: background 0.2s ease, color 0.2s ease;
}

nav .nav-link:hover,
nav .nav-link.nav-active {
  color: var(--primary);
  background: rgba(14,24,61,0.07);
}

section {
  padding: 3rem 1rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 2rem;
  align-items: start;
}

.two-col > div {
  min-width: 0;
}

@media (max-width: 960px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

.slideshow {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  min-height: 320px;
  background: #08152f;
}

.slideshow img {
  width: 100%;
  height: auto;
  display: none;
}

.slideshow img.active {
  display: block;
}

.caption {
  color: #ffffff;
  background: rgba(0, 0, 0, 0.75);
  padding: 0.85rem 1rem;
  margin: 0;
  position: relative;
  font-size: 0.95rem;
  line-height: 1.5;
}

section[style] {
  background: var(--surface);
  border-radius: 24px;
  border: 1px solid var(--border);
}

h1,
h2,
h3 {
  color: var(--primary);
  margin-top: 0;
}

h1 {
  font-size: clamp(2rem, 3vw, 2.8rem);
}

h2 {
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  margin-bottom: 1rem;
}

p,
li {
  color: var(--muted);
}

ul,
ol {
  padding-left: 1.35rem;
}

ul li,
ol li {
  margin-bottom: 0.85rem;
}

.read-more {
  display: inline-flex;
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.read-more:hover {
  color: hsl(226, 87%, 31%);
}

.more-content {
  display: none;
  margin-top: 1.5rem;
}

footer,
.site-footer {
  background: #0e183d !important;
  color: #ffffff !important;
  text-align: center !important;
  padding: 15px !important;
  font-size: 14px !important;
}

footer a,
.site-footer a,
footer .nav-link,
.site-footer .nav-link {
  color: #f4c400 !important;
  text-decoration: none !important;
}

marquee {
  background: #0e183d !important;
  color: #ffffff !important;
}

@media (max-width: 760px) {
  nav {
    flex-direction: column;
    align-items: stretch;
    padding: 0;
  }

  nav .nav-top {
    display: flex;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
  }

  nav .nav-top .ministry-text {
    display: block;
    width: 100%;
    color: var(--primary);
  }

  .menu-toggle {
    display: flex !important;
  }

  nav .nav-link {
    display: none !important;
    width: 100%;
    margin: 0;
    padding: 1rem 1.25rem;
    border-radius: 0;
    border-bottom: 1px solid var(--border);
  }

  nav.open .nav-link {
    display: flex !important;
  }

  .banner {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
  }

  .banner .banner-icon.left,
  .banner .banner-icon.right {
    position: static;
    transform: none;
    width: 56px;
    height: 56px;
  }

  .banner .ministry-text {
    text-align: center;
  }
}
