/* ============================================================
   Institute of Informatics FERI — Design v5
   University of Maribor — CGP compliant
   Colors: UM Blue #006A8E · Accent Yellow #ffc70f
   ============================================================ */

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

:root {
  --um-blue:        #006A8E;
  --um-blue-dark:   #004d66;
  --um-blue-light:  #e6f1f5;
  --accent:         #ffc70f;
  --ink:            #1f2933;
  --text:           #4a5560;
  --muted:          #8a949e;
  --border:         #e4e7ea;
  --bg:             #f3f4f5;
  --white:          #ffffff;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', 'Calibri', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 0.95rem;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Titillium Web', sans-serif;
}

/* ── TOP STRIP ── */
.top-strip {
  background: var(--um-blue);
  height: 4px;
  width: 100%;
}

/* ── HEADER ── */
.site-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--accent);
  opacity: 0;
  transition: opacity .5s ease;
  pointer-events: none;
}
.site-header.is-scrolled::after { opacity: 1; }
.header-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: stretch;
  gap: 1.5rem;
}

/* ── LOGOS left ── */
.logo-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  text-decoration: none;
}
.logo-group img {
  height: 80px;
  width: auto;
  display: block;
}

/* ── RIGHT: title + subtitle + nav ── */
.header-left {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex: 1;
  min-width: 0;
  padding-right: 1.5rem;
}

/* ── TITLE AND SUBTITLE ── */
.brand-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  gap: 0.1rem;
}
.brand-link:hover .brand-name { color: var(--um-blue-dark); }
.brand-name {
  font-family: 'Titillium Web', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--um-blue);
  line-height: 1.2;
  white-space: nowrap;
}

/* ── MAIN NAV ── */
.main-nav {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  margin-left: 0;
}
.main-nav a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  padding: 1rem 0.55rem 0.4rem 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  position: relative;
  transition: color .18s;
}
.main-nav a:first-child { padding-left: 0; }
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0.55rem;
  right: 0.55rem;
  bottom: 0.1rem;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}
.main-nav a:first-child::after { left: 0; }
.main-nav a:hover { color: var(--um-blue); }
.main-nav a:hover::after { transform: scaleX(1); }
.main-nav a.active { color: var(--um-blue); }
.main-nav a.active::after { transform: scaleX(1); }
.main-nav a.cms-link {
  color: var(--muted);
  font-size: 0.8rem;
  margin-left: 0.25rem;
  padding-left: 0.7rem;
}
.main-nav a.cms-link::after { display: none; }
.main-nav a.cms-link:hover { color: var(--um-blue); }

/* ── PAGE LAYOUT ── */
.page-wrapper {
  max-width: 1600px;
  margin: 0 auto;
  padding: 2.5rem 2rem 4rem;
  display: grid;
  grid-template-columns: 232px 1fr;
  gap: 2.5rem;
  align-items: start;
}
.page-wrapper.no-sidebar { grid-template-columns: 1fr; max-width: 1000px; }
.page-wrapper.no-sidebar.wide { max-width: 1600px; }

/* ── SIDEBAR ── */
.sidebar {
  position: sticky;
  top: 9.5rem;
  background: var(--white);
  overflow: hidden;
}
.sidebar-header {
  background: var(--um-blue);
  color: var(--white);
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  padding: 0.7rem 1rem;
}
.sidebar a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  font-size: 0.85rem;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: background .15s, color .15s, padding .15s;
}
.sidebar > div:last-child > a { border-bottom: none; }
.sidebar > div:last-child .sidebar-child:last-child { border-bottom: none; }
.sidebar a:hover { background: var(--um-blue-light); color: var(--um-blue); }
.sidebar a.active {
  background: var(--um-blue-light);
  color: var(--um-blue);
  font-weight: 700;
}
.sidebar-children { background: #fbfcfc; }
.sidebar-child {
  display: block;
  padding: 0.5rem 1rem 0.5rem 1.85rem;
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: background .15s, color .15s;
}
.sidebar-child:hover { background: var(--um-blue-light); color: var(--um-blue); }
.sidebar-child.active-child {
  color: var(--um-blue);
  font-weight: 700;
  background: var(--um-blue-light);
}
.sidebar-child.sidebar-child-tertiary {
  padding: 0.5rem 1rem 0.5rem 1.7rem;
}
.sidebar-child.sidebar-child-tertiary:hover {
  color: var(--um-blue);
  background: var(--um-blue-light);
}
.sidebar-child.sidebar-child-tertiary.active-child {
  color: var(--um-blue);
  font-weight: 500;
  background: var(--um-blue-light);
}
/* ── CONTENT ── */
.content { min-width: 0; }

/* ── PAGE TITLE ── */
.page-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.page-title-rule {
  display: none;
}
.page-subtitle {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 1.75rem;
}

/* ── CARDS ── */
.card {
  background: var(--white);
  padding: 1.85rem 2.15rem;
  margin-bottom: 1.25rem;
}

/* ── SECTION HEADING ── */
.section-heading {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 1.75rem 0 0.85rem;
}
.section-heading:first-child { margin-top: 0; }
.section-heading::before {
  content: '';
  display: block;
  width: 4px;
  height: 19px;
  background: var(--accent);
  border-radius: 2px;
  flex-shrink: 0;
}
.section-heading h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--um-blue);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.section-heading h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--um-blue);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

/* ── GALLERY ── */
.gallery-masonry {
  columns: 3;
  column-gap: 0.75rem;
}

.gallery-thumb {
  display: block;
  width: 100%;
  border: 0px;
  overflow: hidden;
  background: var(--um-blue-light);
  cursor: pointer;
  padding: 0;
  transition: border-color .15s, transform .15s;
  margin-bottom: 0.75rem;
  break-inside: avoid;
}

.gallery-thumb img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
  object-fit: contain !important;
}

.gallery-thumb:hover {
  transform: scale(1.02);
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  user-select: none;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  font-size: 2rem;
  cursor: pointer;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
  line-height: 1;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255,199,15,0.4);
}

.lightbox-close {
  top: 1.5rem;
  right: 1.5rem;
}

.lightbox-prev {
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  font-family: 'Titillium Web', sans-serif;
  letter-spacing: 0.1em;
}

@media (max-width: 768px) {
  .gallery-masonry {
    columns: 2;
  }
}

@media (max-width: 560px) {
  .lightbox-prev {
    left: 0.5rem;
  }

  .lightbox-next {
    right: 0.5rem;
  }
}

@media (max-width: 480px) {
  .gallery-masonry {
    columns: 1;
  }
}

/* ── TYPOGRAPHY ── */
h2 { font-size: 1.15rem; font-weight: 700; color: var(--ink); margin: 1.5rem 0 0.5rem; }
h3 { font-size: 0.97rem; font-weight: 600; color: var(--ink); margin: 1rem 0 0.3rem; }
p  { line-height: 1.85; color: var(--text); margin-bottom: 0.9rem; font-size: 0.95rem; }
p:has(+ ul:not(.arrow-list):not(.dot-list)),
p:has(+ ol) { margin-bottom: 0; }
a  { color: var(--um-blue); transition: color .15s; }
a:hover { color: var(--um-blue-dark); }

/* ── INTRO PARAGRAPH (with accent bar) ── */
.intro {
  display: flex;
  gap: 0.85rem;
  align-items: stretch;
  margin-bottom: 1.4rem;
}
/*.intro::before {
  content: '';
  display: block;
  width: 4px;
  background: var(--accent);
  border-radius: 2px;
  flex-shrink: 0;
}*/
.intro p { 
  margin: 0; 
  font-size: 1.05rem; 
  font-weight: 300;
  color: var(--ink);
}

/* ── LISTS ── */
ul, ol { padding-left: 1rem; }

.arrow-list { 
  list-style: none; 
  padding: 0; 
  margin: 0; 
}
.dot-list { 
  list-style: none; 
  padding: 0 0 0 1rem; 
  margin: 0; }
  
.arrow-list li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.96rem;
}
.arrow-list li:last-child { border-bottom: none; }
.arrow-list a { text-decoration: none; font-weight: 600; }
.arrow-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: var(--accent);
  border-radius: 3px;
  flex-shrink: 0;
  transition: transform .15s;
}
.arrow-list li:hover .arrow-icon { transform: translateX(3px); }
.dot-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.96rem;
  color: var(--text);
}
.dot-list li:last-child { border-bottom: none; }
.dot-list li::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--um-blue);
  flex-shrink: 0;
}

/* ── DETAIL LIST (key-value) ── */
.detail-list { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.detail-list li {
  display: flex;
  gap: 0.6rem;
  padding: 0.35rem 0;
  font-size: 0.96rem;
  color: var(--text);
}
.detail-list li::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 0.6rem;
}

/* ── CONTACT ── */
.contact-info { list-style: none; padding: 0; }
.contact-info li { padding: 0.3rem 0; font-size: 0.95rem; color: var(--text); }

/* ── TAGS ── */
.tag {
  display: inline-block;
  background: var(--um-blue-light);
  color: var(--um-blue);
  border-radius: 3px;
  padding: 2px 9px;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 2px;
}
.tag-btn {
  padding: 5px 14px;
  border: 1px solid var(--um-blue);
  background: transparent;
  color: var(--um-blue);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 3px;
  transition: all .15s;
}
.tag-btn.active { background: var(--um-blue); color: var(--white); }
.tag-btn:hover { background: var(--accent); color: var(--ink); border-color: var(--accent); }

/* ── META ── */
.meta { font-size: 0.79rem; color: var(--muted); }

/* ── CARD GRID ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-top: 0.75rem;
}
.grid-card {
  background: var(--white);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  overflow: hidden;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.grid-card:hover {
  transform: translateY(-3px);
}
.grid-card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.grid-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.grid-card-placeholder {
  width: 100%;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--um-blue-light);
}
.grid-card-placeholder span {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.15em;
  color: var(--um-blue); text-transform: uppercase;
}
.grid-card-accent { height: 3px; background: var(--accent); flex-shrink: 0; }
.grid-card-body { padding: 1.25rem 1.5rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.grid-card-date {
  font-size: 0.75rem; color: var(--muted); margin-bottom: 0.35rem;
  display: block; text-transform: uppercase; letter-spacing: 0.06em;
}
.grid-card-title {
  font-size: 1rem; font-weight: 700; color: var(--ink);
  margin: 0 0 0.5rem; line-height: 1.4;
}
.grid-card-summary { font-size: 0.9rem; color: var(--text); line-height: 1.6; margin: 0; flex: 1; }
.grid-card-tags { margin-top: 0.8rem; display: flex; flex-wrap: wrap; gap: 3px; }


/* ── SECTION NEWS ── */
.section-news { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.section-news .card-grid {
  grid-template-columns: repeat(auto-fit, minmax(264px, 1fr));
}
.section-news-title {
  font-size: 0.83rem; font-weight: 700; color: var(--um-blue);
  text-transform: uppercase; letter-spacing: 0.13em;
  margin: 0 0 1rem; display: flex; align-items: center; gap: 0.5rem;
}
.section-news-title::before {
  content: ''; display: block; width: 22px; height: 3px;
  background: var(--accent); border-radius: 2px;
}

/* ── FILTER BAR ── */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin-bottom: 1.5rem;
}
.filter-label {
  font-size: 0.72rem; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.08em; margin-right: 4px;
}

/* ── TABLE ── */
table { width: 100%; border-collapse: collapse; font-size: 0.89rem; margin-top: 0.5rem; }
th {
  background: var(--um-blue); color: var(--white); text-align: left;
  padding: 10px 13px; font-size: 0.71rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
}
td { padding: 10px 13px; border-bottom: 1px solid var(--border); vertical-align: top; color: var(--text); }
tr:nth-child(even) td { background: #fbfcfc; }
tr:hover td { background: #fff9e6; }

/* ── PROSE ── */
.prose {
  line-height: 1.85;
  color: var(--text);
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
}
.prose h2, .prose h3 { color: var(--ink); margin: 1.2rem 0 0.5rem; }
.prose p { margin-bottom: 0.9rem; font-size: 0.9rem; }
.prose ul { margin-bottom: 0.9rem; }
.prose a { font-weight: 600; }

.prose * {
  max-width: 100%;
}

.prose ol,
.prose ul {
  padding-left: 1rem;
}

.prose ol li,
.prose ul li {
  margin-bottom: 0.5rem;
  padding-left: 0.25rem;
}

/* ── STAFF GRID ── */
.staff-section { margin-bottom: 2rem; }
.staff-section-title {
  font-family: 'Titillium Web', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--accent);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.former-toggle {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  padding: 0;
  margin: 0;
  width: 1rem;
  height: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.former-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.former-toggle-icon {
  display: block;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  transform: rotate(45deg) translate(-1px, -1px);
  transform-origin: center;
  transition: transform 0.15s;
}
.former-toggle-icon.is-open {
  transform: rotate(225deg) translate(-1px, -1px);
}
.staff-grid--hidden { display: none; }
.staff-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.staff-card {
  background: var(--white);
  padding: 1.4rem 1rem;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; text-decoration: none;
  transition: box-shadow .2s, transform .2s, border-color .2s;
  position: relative;
  overflow: hidden;
}

.staff-card:hover {
  transform: translateY(-3px);
}
.staff-avatar {
  width: 76px; height: 76px; border-radius: 50%;
  overflow: hidden; background: var(--um-blue-light);
  margin-bottom: 0.8rem; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 700; color: var(--um-blue);
}
.staff-avatar img { width: 100%; height: 100%; object-fit: cover; }
.staff-name {
  font-weight: 700; font-size: 1rem; color: var(--um-blue);
  margin: 0 0 0.15rem; line-height: 1.3;
}
.staff-academic-title { font-size: 0.8rem; color: var(--muted); font-style: italic; margin: 0 0 0.3rem; }
.staff-role { font-size: 0.8rem; color: var(--text); line-height: 1.35; margin: 0 0 0.55rem; flex: 1; }
.staff-divider { width: 26px; height: 2px; background: var(--accent); margin: 0.35rem auto; }
.staff-email { font-size: 0.85rem; color: var(--um-blue); word-break: break-all; }

/* ── PARTNER CARD ── */
.partner-card {
  background: var(--white);
  border-left: 4px solid var(--accent);
  padding: 1.3rem 1.6rem;
  margin-bottom: 1rem;
  display: flex; gap: 1.6rem; align-items: flex-start;
}
.partner-logo {
  width: 104px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-right: 1px solid var(--border); padding-right: 1.1rem;
  align-self: stretch;
}
.partner-logo img { max-width: 92px; max-height: 50px; object-fit: contain; }
.partner-body { flex: 1; min-width: 0; }
.partner-name { font-weight: 700; font-size: 1.02rem; color: var(--ink); margin: 0 0 0.4rem; }
.partner-desc { font-size: 0.89rem; color: var(--text); margin: 0 0 0.5rem; }
.partner-link { font-size: 0.82rem; color: var(--um-blue); text-decoration: none; font-weight: 600; }
.partner-link:hover { text-decoration: underline; }

/* ── PROJECT CARD ── */
.project-card {
  background: var(--white);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  overflow: hidden;
  transition: box-shadow .2s, transform .2s, border-color .2s;
  padding: 1.25rem 1.5rem;
}
.project-card:hover {
  transform: translateY(-3px);
}
.project-card-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.6rem;
}
.project-card-status.active { color: #2e7d32; }
.project-card-status.past   { color: var(--muted); }
.project-card-status::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.project-card-title {
  font-family: 'Titillium Web', sans-serif;
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 0.5rem;
  line-height: 1.4;
}
.project-card-desc {
  font-size: 0.84rem;
  color: var(--text);
  line-height: 1.6;
  margin: 0 0 0.75rem;
  flex: 1;
}
.project-card-year {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border);
}

/* ── BACK LINK ── */
.back-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.84rem; color: var(--um-blue); text-decoration: none;
  font-weight: 600; margin-top: 1.5rem;
}
.back-link:hover { gap: 0.6rem; }

/* ── EMPTY STATE ── */
.empty-state { color: var(--muted); font-size: 0.95rem; padding: 0.5rem 0; }

/* ── EXTERNAL LINK ROW ── */
.external-link {
  margin-top: 1.25rem; padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.external-link a { font-size: 0.88rem; font-weight: 600; text-decoration: none; }

/* ── HERO CAROUSEL ── */
.hero-carousel {
  position: relative;
  overflow: hidden;
  background: var(--um-blue);
}
.hero-carousel-track {
  display: flex;
  transition: transform .5s ease;
}
.hero-slide {
  min-width: 100%;
  display: flex;
  min-height: 440px;
}
.hero-slide-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 4rem;
  background: linear-gradient(135deg, var(--um-blue) 0%, var(--um-blue-dark) 100%);
  color: var(--white);
}
.hero-slide-text .hero-slide-title {
  font-family: 'Titillium Web', sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
  margin: 0 0 1rem;
}
.hero-slide-subtitle {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.9);
  max-width: 480px;
}
.hero-slide-image {
  flex: 1;
  background-size: cover;
  background-position: center;
}
.hero-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.1);
  color: var(--white);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s;
  z-index: 2;
}
.hero-carousel-arrow:hover { background: rgba(255,255,255,0.25); }
.hero-carousel-prev { left: 1.5rem; }
.hero-carousel-next { right: 1.5rem; }
.hero-carousel-dots {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}
.hero-carousel-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: background .15s;
}
.hero-carousel-dot.active { background: var(--accent); }


.home-section {
  max-width: 1600px;
  margin: 2.5rem auto 0;
  padding: 0 2rem 4rem;
}

@media (max-width: 920px) {
  .hero-slide { flex-direction: column; min-height: auto; }
  .hero-slide-image { min-height: 220px; }
  .hero-slide-text { padding: 2rem; }
  .hero-slide-title { font-size: 1.8rem; }
}
@media (max-width: 560px) {
  .hero-carousel-arrow { width: 36px; height: 36px; font-size: 1.1rem; }
}



/* ── RESPONSIVE ── */
@media (max-width: 920px) {
  .page-wrapper { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .staff-grid { grid-template-columns: repeat(2, 1fr); }
  .header-inner { flex-wrap: wrap; }
}
@media (max-width: 560px) {
  .staff-grid { grid-template-columns: 1fr; }
  .header-inner { padding: 1rem; }
  .page-wrapper { padding: 1.5rem 1rem 3rem; }
  .card { padding: 1.35rem 1.25rem; }
}



/* ── LANGUAGE SWITCHER ─────────────────────────────────────── */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  padding: 0.15rem 0.5rem;
  margin-left: 1rem;
  border: 2px solid var(--accent);
  border-radius: 3px;
  color: var(--accent);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s;
  white-space: nowrap;
}
.lang-switcher:hover {
  background-color: var(--accent);
  color: #fff;
}

/* ── LANG SWITCHER & CMS (inside nav) ─────────────────────────────── */
.main-nav .lang-switcher {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  margin-left: 0.5rem;
  padding: 1rem 0.55rem 0.4rem;
  border: none;
  background: none;
  transition: opacity 0.15s;
}
.main-nav .lang-switcher:hover { opacity: 0.75; }

.main-nav .cms-link {
  color: var(--muted);
  font-weight: 400;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: color 0.15s;
}
.main-nav .cms-link:hover { color: var(--ink); }
@media (max-width: 920px) {
  .brand-name {
    white-space: normal;
  }

  .main-nav {
    flex-wrap: wrap;
  }

  .header-left {
    min-width: 0;
  }
}
