:root {
  --hds-ink: #0f2a2b;
  --hds-teal: #055154;
  --hds-deep: #02383a;
  --hds-accent: #0f8f73;
  --hds-accent-2: #17b68e;
  --hds-sand: #eef4f1;
  --hds-mist: #f7faf8;
  --hds-line: #d7e3de;
  --hds-white: #fff;
  --hds-muted: #5a6f6d;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(2, 56, 58, 0.12);
  --wrap: 1180px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.75rem;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--hds-ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(23, 182, 142, 0.12), transparent 60%),
    radial-gradient(900px 400px at 100% 0%, rgba(5, 81, 84, 0.08), transparent 55%),
    linear-gradient(180deg, #f4f8f6 0%, #ffffff 28%, #f7faf8 100%);
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--hds-accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--hds-deep); }

.hds-wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.hds-wrap--narrow { width: min(100% - 2rem, 760px); }

.skip-link {
  position: absolute; left: -999px; top: 0; background: #000; color: #fff; padding: .5rem 1rem; z-index: 10000;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.screen-reader-text,
.hds-hp {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Header */
.hds-header {
  position: sticky; top: 0; z-index: 100;
  overflow: visible;
  color: #fff;
  background: linear-gradient(180deg, rgba(14,31,21,.96), rgba(14,31,21,.88));
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.hds-header::after {
  content: "";
  position: absolute; inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0));
  pointer-events: none;
}
/* Inner pages: same botanical plane as contact + footer (home keeps overlay on slider) */
body:not(.home) .hds-header {
  background:
    linear-gradient(135deg, rgba(2,56,58,.90), rgba(5,81,84,.82)),
    url("../images/bkg-contact.webp") center / cover no-repeat;
  border-bottom-color: rgba(255,255,255,.14);
}
.hds-header--overlay {
  position: absolute;
  top: 0; left: 0; right: 0;
  background: linear-gradient(180deg, rgba(5,81,84,.48), rgba(5,81,84,.22));
  border-bottom-color: rgba(255,255,255,.06);
  backdrop-filter: blur(4px);
}
.hds-header__inner {
  width: min(100% - 2rem, var(--wrap));
  margin: 0 auto;
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 106px;
}
.hds-logo-wrap {
  display: inline-flex;
  align-items: center;
  gap: .9rem;
  text-decoration: none;
  color: #fff;
}
.hds-logo {
  display: inline-flex; align-items: center; justify-content: center;
  width: 102px; height: 102px; flex: 0 0 102px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(255,255,255,.2);
  overflow: hidden;
}
.hds-logo img,
.hds-logo .custom-logo {
  max-width: 88%; max-height: 88%; width: auto; height: auto; object-fit: contain;
  filter: none;
  background: transparent;
  border-radius: 0;
  padding: 0;
}
.hds-logo-titles {
  display: grid;
  gap: .2rem;
  line-height: 1.2;
  max-width: min(34ch, 42vw);
}
.hds-logo-titles strong {
  color: #fff;
  font-size: .9rem;
  letter-spacing: .02em;
  font-weight: 700;
}

.hds-nav {
  display: flex; flex-direction: column; align-items: flex-end; gap: .7rem;
  margin-left: auto;
  position: relative; z-index: 2;
}
.hds-nav__top {
  display: flex; align-items: center; gap: .75rem;
}
.hds-nav__list {
  display: flex; gap: .15rem 1.05rem; list-style: none; margin: 0; padding: 0; align-items: center; flex-wrap: wrap;
}
.hds-nav__list a {
  color: rgba(255,255,255,.94); text-decoration: none; font-weight: 700; font-size: .95rem; letter-spacing: .01em;
}
.hds-nav__list a:hover { color: #fff; }
.hds-nav__list > li > a {
  display: inline-flex; align-items: center;
  min-height: 2.2rem;
  border-bottom: 2px solid transparent;
}
.hds-nav__list > li > a:hover,
.hds-nav__list > li.current-menu-item > a,
.hds-nav__list > li.current-menu-ancestor > a {
  border-color: var(--hds-accent-2);
}

.hds-lang { display: flex; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.hds-lang a {
  display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 999px;
  text-decoration: none; font-size: .75rem; font-weight: 700; color: #fff; border: 1px solid rgba(255,255,255,.36);
  background: rgba(255,255,255,.08);
}
.hds-lang .is-active a { background: var(--hds-accent); color: #fff; border-color: var(--hds-accent); }

.hds-nav-toggle__input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.hds-nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.08); padding: 10px; cursor: pointer; border-radius: 999px;
  position: relative; z-index: 3;
  align-items: center; justify-content: center;
}
.hds-nav-toggle span {
  display: block; height: 2px; background: #fff; margin: 6px 0; border-radius: 2px;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  border: 0; border-radius: 999px; padding: .85rem 1.35rem; font-weight: 700; font-family: inherit;
  cursor: pointer; text-decoration: none; transition: transform .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--hds-accent); color: #fff; }
.btn--primary:hover { background: var(--hds-deep); color: #fff; }
.btn--ghost { background: rgba(255,255,255,.16); color: #fff; border: 1px solid rgba(255,255,255,.45); }
.btn--ghost:hover { background: #fff; color: var(--hds-deep); }
.btn--dark { background: var(--hds-deep); color: #fff; }
.btn--sm { padding: .55rem 1rem; font-size: .9rem; }

/* Hero */
.hds-hero {
  position: relative;
  min-height: min(78vh, 720px);
  color: #fff;
  overflow: hidden;
  background: var(--hds-deep);
}
.hds-header--overlay + .hds-main .hds-hero { padding-top: 106px; }
.hds-hero__track { position: absolute; inset: 0; }
.hds-hero__slide {
  position: absolute; inset: 0;
  display: grid; align-items: end;
  background:
    linear-gradient(120deg, rgba(70,76,78,.48), rgba(52,58,62,.28)),
    var(--hero-image) center/cover no-repeat;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.03);
  transition: opacity .7s ease, transform .9s ease, visibility .7s;
}
.hds-hero__slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 1;
}
.hds-hero__overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(255,255,255,.14), transparent 42%),
    linear-gradient(180deg, rgba(52,58,62,.08) 0%, rgba(52,58,62,.34) 100%);
  pointer-events: none;
}
.hds-hero__content {
  position: relative; z-index: 1; padding: 5rem 0 5.5rem;
  animation: hdsHeroIn .7s ease both;
}
.hds-hero__slide:not(.is-active) .hds-hero__content { animation: none; }
@keyframes hdsHeroIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.hds-hero h1 {
  font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.08; margin: .4rem 0 1rem; max-width: 16ch; font-weight: 700;
}
.hds-hero__lead { font-size: 1.15rem; max-width: 40ch; opacity: .95; }
.hds-hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.hds-eyebrow {
  text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700;
  color: var(--hds-accent); margin: 0 0 .5rem;
}
.hds-hero .hds-eyebrow { color: rgba(255,255,255,.8); }

.hds-hero__controls {
  position: absolute; left: 0; right: 0; bottom: 1.25rem; z-index: 3;
  display: flex; align-items: center; justify-content: flex-end; gap: .65rem;
  pointer-events: none;
}
.hds-hero__controls > * { pointer-events: auto; }
.hds-hero__nav {
  width: 42px; height: 42px; border-radius: 999px; border: 1px solid rgba(255,255,255,.45);
  background: rgba(2,56,58,.35); color: #fff; font-size: 1.5rem; line-height: 1;
  cursor: pointer; display: grid; place-items: center; backdrop-filter: blur(6px);
  transition: background .2s ease, border-color .2s ease;
}
.hds-hero__nav:hover { background: var(--hds-accent); border-color: var(--hds-accent); }
.hds-hero__dots { display: flex; gap: .4rem; align-items: center; }
.hds-hero__dot {
  width: 9px; height: 9px; border-radius: 999px; border: 0; padding: 0;
  background: rgba(255,255,255,.4); cursor: pointer; transition: width .25s ease, background .25s ease;
}
.hds-hero__dot.is-active { width: 26px; background: #fff; }

/* Sections */
.hds-section { padding: 5rem 0; }
.hds-section__head { margin-bottom: 2rem; }
.hds-section__head h1,
.hds-section__head h2,
.hds-about h2,
.hds-contact h2 {
  font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.15; margin: 0; color: var(--hds-deep);
}
.hds-section__head--row {
  display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap;
}
.hds-link { font-weight: 700; text-decoration: none; color: var(--hds-accent); }
.hds-link:hover { text-decoration: underline; }

/* About */
.hds-about__grid {
  display: grid;
  grid-template-columns: minmax(200px, 280px) minmax(0, 62ch);
  gap: clamp(1.75rem, 4vw, 3.25rem);
  align-items: start;
  justify-content: center;
  margin-inline: auto;
}
.hds-about__media {
  margin: 0; border-radius: calc(var(--radius) + 4px); overflow: hidden; box-shadow: var(--shadow);
  max-width: 280px;
}
.hds-about__media img { width: 100%; aspect-ratio: 3/4; object-fit: cover; filter: grayscale(1); display: block; }
.hds-about__body p { font-size: 1.05rem; line-height: 1.7; }
.hds-about__credit {
  margin-top: 1.5rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--hds-teal); font-size: .9rem;
}

/* Board */
.hds-board {
  position: relative;
  background:
    radial-gradient(680px 280px at 12% 0%, rgba(15, 143, 115, 0.1), transparent 70%),
    radial-gradient(520px 240px at 92% 100%, rgba(5, 81, 84, 0.08), transparent 65%),
    linear-gradient(180deg, #e8f2ee 0%, #f4f8f6 48%, #eef5f2 100%);
  border-block: 1px solid rgba(215, 227, 222, 0.85);
}
.hds-board__head {
  text-align: center;
  max-width: 36rem;
  margin-inline: auto;
  margin-bottom: 2.75rem;
}
.hds-board__head::after {
  content: "";
  display: block;
  width: 2.75rem;
  height: 3px;
  margin: 1rem auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--hds-accent), var(--hds-accent-2));
}
.hds-board__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.75rem 1.15rem;
}
.hds-board__card {
  width: min(100%, 196px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transition: transform .28s ease;
}
.hds-board__card:hover { transform: translateY(-5px); }
.hds-board__photo {
  width: 108px;
  height: 108px;
  margin: 0 0 .9rem;
  border-radius: 50%;
  overflow: hidden;
  background: #d9ebe4;
  box-shadow:
    0 0 0 3px #fff,
    0 0 0 5px rgba(15, 143, 115, 0.45),
    0 12px 28px rgba(2, 56, 58, 0.12);
  transition: box-shadow .28s ease, transform .28s ease;
}
.hds-board__card:hover .hds-board__photo {
  transform: scale(1.04);
  box-shadow:
    0 0 0 3px #fff,
    0 0 0 5px var(--hds-accent),
    0 16px 34px rgba(2, 56, 58, 0.16);
}
.hds-board__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hds-board__meta { max-width: 17ch; }
.hds-board__card h3 {
  font-family: var(--font-display);
  font-size: 1.02rem;
  line-height: 1.25;
  margin: 0 0 .35rem;
  color: var(--hds-deep);
  font-weight: 650;
}
.hds-board__card p {
  margin: 0;
  color: var(--hds-muted);
  font-size: .82rem;
  line-height: 1.35;
}

/* Cards */
.hds-cards { display: grid; gap: 1.25rem; }
.hds-cards--3 { grid-template-columns: repeat(3, 1fr); }
.hds-cards--4 { grid-template-columns: repeat(4, 1fr); }
.hds-card {
  background: var(--hds-white); border: 1px solid var(--hds-line); border-radius: var(--radius);
  overflow: hidden; position: relative; transition: transform .25s ease, box-shadow .25s ease;
}
.hds-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.hds-card > a:not(.hds-card__pdf) {
  display: block; color: inherit; text-decoration: none; padding: 1.15rem; height: 100%;
}
.hds-card__media { margin: -1.15rem -1.15rem 1rem; aspect-ratio: 16/10; overflow: hidden; background: linear-gradient(135deg, #eef6f3, #dceee6); }
.hds-card__media img { width: 100%; height: 100%; object-fit: cover; }
.hds-card__media img[src*="card-fallback-logo"],
.hds-card__media img[src*="logo-drustvo"],
.hds-card__media img[src*="logo-header-iw"] { object-fit: contain; padding: 1.35rem; background: linear-gradient(160deg, #f4faf7 0%, #e4f1eb 55%, #d7ebe3 100%); }
.hds-card h2, .hds-card h3 { font-family: var(--font-display); font-size: 1.25rem; margin: 0 0 .5rem; color: var(--hds-deep); line-height: 1.25; }
.hds-card p { color: var(--hds-muted); margin: 0 0 1rem; }
.hds-card__date {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--hds-accent); margin-bottom: .4rem;
}
.hds-card__pdf {
  position: absolute;
  top: .75rem;
  right: .75rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  padding: .35rem .7rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1;
  background: rgba(255, 255, 255, .95);
  color: var(--hds-deep);
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(2, 56, 58, .18);
}
.hds-card__pdf:hover {
  background: var(--hds-accent);
  color: #fff;
}

.hds-news { background: var(--hds-deep); color: #fff; }
.hds-news .hds-eyebrow, .hds-news h2, .hds-news .hds-link { color: #fff; }
.hds-news .hds-card { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); }
.hds-news .hds-card h3, .hds-news .hds-card .hds-link { color: #fff; }
.hds-news .hds-card p { color: rgba(255,255,255,.78); }
.hds-news .hds-card__date { color: var(--hds-accent-2); }

.hds-links-block { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--hds-line); }
.hds-links-block h3 { margin: 0 0 .75rem; font-family: var(--font-display); color: var(--hds-deep); }
.hds-links-block ul { margin: 0; padding-left: 1.1rem; columns: 2; gap: 2rem; }
.hds-links-block a { color: var(--hds-teal); }

/* Education */
.hds-edu__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.hds-edu__item {
  display: grid; place-items: center; min-height: 120px; padding: 1rem; text-align: center;
  border-radius: var(--radius); background: var(--hds-white); border: 1px solid var(--hds-line);
  text-decoration: none; color: var(--hds-deep); font-weight: 700; transition: .2s ease;
}
.hds-edu__item:hover { background: var(--hds-deep); color: #fff; border-color: var(--hds-deep); }

/* Gallery */
.hds-gallery__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem;
}
.hds-gallery-tabs__nav {
  display: flex; flex-wrap: wrap; gap: .65rem;
  margin: 0 0 1.75rem;
  padding: .85rem;
  border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(238,244,241,.92));
  border: 1px solid var(--hds-line);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85);
}
.hds-gallery-tabs__tab {
  appearance: none; -webkit-appearance: none;
  border: 1px solid var(--hds-line); background: var(--hds-white); color: var(--hds-deep);
  padding: .72rem 1.15rem; min-height: 50px; border-radius: 999px;
  font-family: var(--font-body); font-size: .95rem; font-weight: 700; line-height: 1.25;
  cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
  display: inline-flex; align-items: center; gap: .6rem;
  box-shadow: 0 2px 10px rgba(2,56,58,.07);
}
.hds-gallery-tabs__label { text-align: left; }
.hds-gallery-tabs__tab:hover {
  border-color: rgba(15,143,115,.45);
  background: rgba(23,182,142,.1);
  color: var(--hds-deep);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(2,56,58,.12);
}
.hds-gallery-tabs__tab.is-active {
  background: linear-gradient(135deg, var(--hds-teal), var(--hds-accent));
  color: #fff; border-color: transparent;
  box-shadow: 0 10px 28px rgba(2,56,58,.24);
  transform: translateY(-1px);
}
.hds-gallery-tabs__tab:focus-visible {
  outline: 2px solid var(--hds-accent-2);
  outline-offset: 2px;
}
.hds-gallery-tabs__count {
  display: inline-grid; place-items: center; flex-shrink: 0;
  min-width: 1.85rem; height: 1.85rem; padding: 0 .45rem;
  border-radius: 999px; background: rgba(2,56,58,.08); color: var(--hds-teal);
  font-size: .82rem; font-weight: 800;
}
.hds-gallery-tabs__tab.is-active .hds-gallery-tabs__count,
.hds-gallery-tabs__tab:hover .hds-gallery-tabs__count {
  background: rgba(255,255,255,.22);
  color: inherit;
}
.hds-gallery--archive .hds-section__head h1 {
  font-family: var(--font-display);
  color: var(--hds-deep);
}
.hds-gallery--archive .hds-gallery__grid {
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}
.hds-gallery__group + .hds-gallery__group { margin-top: 2rem; }
.hds-gallery__group-title {
  margin: 0 0 .8rem;
  font-family: var(--font-display);
  color: var(--hds-deep);
}
.hds-gallery__group[hidden] { display: none !important; }
.hds-gallery__item.is-lightbox-only { display: none; }
.hds-gallery__item {
  display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 4/3; background: var(--hds-sand);
  cursor: zoom-in; position: relative; box-shadow: 0 8px 24px rgba(2,56,58,.09);
}
.hds-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.hds-gallery__item:hover img { transform: scale(1.05); }

/* Lightbox */
.hds-lightbox {
  position: fixed; inset: 0; z-index: 10050;
  display: grid; place-items: center;
  background: rgba(2, 56, 58, .88);
  padding: 1.25rem;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .25s ease, visibility .25s ease;
}
.hds-lightbox.is-open {
  opacity: 1; visibility: visible; pointer-events: auto;
}
.hds-lightbox__figure {
  margin: 0; max-width: min(1100px, 100%); max-height: min(86vh, 100%);
  display: grid; gap: .75rem; justify-items: center;
}
.hds-lightbox__figure img {
  max-width: 100%; max-height: min(78vh, 900px);
  width: auto; height: auto; object-fit: contain;
  border-radius: 10px; box-shadow: 0 24px 60px rgba(0,0,0,.35);
  background: #012628;
}
.hds-lightbox__caption {
  margin: 0; color: rgba(255,255,255,.85); font-size: .92rem; font-weight: 600;
}
.hds-lightbox__close,
.hds-lightbox__nav {
  position: absolute; border: 0; cursor: pointer;
  color: #fff; background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.28);
  backdrop-filter: blur(6px);
  transition: background .2s ease;
}
.hds-lightbox__close:hover,
.hds-lightbox__nav:hover { background: var(--hds-accent); border-color: var(--hds-accent); }
.hds-lightbox__close {
  top: 1rem; right: 1rem; width: 44px; height: 44px; border-radius: 999px;
  font-size: 1.5rem; line-height: 1;
}
.hds-lightbox__nav {
  top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 999px; font-size: 1.75rem; line-height: 1;
  display: grid; place-items: center;
}
.hds-lightbox__nav--prev { left: 1rem; }
.hds-lightbox__nav--next { right: 1rem; }
@media (max-width: 640px) {
  .hds-lightbox__nav { width: 40px; height: 40px; font-size: 1.4rem; }
  .hds-lightbox__nav--prev { left: .4rem; }
  .hds-lightbox__nav--next { right: .4rem; }
}

/* Partners */
.hds-partners__viewport {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.hds-partners__track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: hdsMarquee 42s linear infinite;
}
.hds-partners__track:hover { animation-play-state: paused; }
@keyframes hdsMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.hds-partners__item {
  flex: 0 0 160px; height: 88px; display: grid; place-items: center; background: #fff;
  border: 1px solid var(--hds-line); border-radius: 12px; padding: .75rem;
}
.hds-partners__item img { max-height: 54px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .85; }
.hds-partners__item:hover img { filter: none; opacity: 1; }

/* Contact */
.hds-contact {
  background:
    linear-gradient(135deg, rgba(2,56,58,.92), rgba(15,143,115,.78)),
    url("../images/bkg-contact.webp") center/cover;
  color: #fff;
}
.hds-contact h2, .hds-contact .hds-eyebrow { color: #fff; }
.hds-contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.hds-contact__list { list-style: none; padding: 0; margin: 1.5rem 0; }
.hds-contact__list li { margin-bottom: 1rem; }
.hds-contact__list a { color: #fff; }
.hds-contact__list strong { display: block; opacity: .7; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }

.hds-form { display: grid; gap: .75rem; }
.hds-form input,
.hds-form textarea {
  width: 100%; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.12);
  color: #fff; border-radius: 12px; padding: .9rem 1rem; font: inherit;
}
.hds-form input::placeholder,
.hds-form textarea::placeholder { color: rgba(255,255,255,.7); }
.hds-form__msg { min-height: 1.2em; margin: 0; font-weight: 600; }

/* Membership modal */
.hds-modal[hidden] { display: none !important; }
.hds-modal { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 1rem; }
.hds-modal__backdrop { position: absolute; inset: 0; background: rgba(2,56,58,.62); }
.hds-modal__dialog {
  position: relative; z-index: 1; width: min(960px, 100%); max-height: min(90vh, 900px);
  overflow: auto; background: #fff; border-radius: 18px; box-shadow: var(--shadow); padding: 1.5rem;
}
.hds-modal__close {
  position: absolute; top: .6rem; right: .8rem; border: 0; background: transparent;
  font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--hds-deep);
}
.hds-modal__grid,
.hds-modal__grid--page {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: start;
}
.hds-modal__info h2, .hds-modal__form h3, .hds-modal__form h2 {
  font-family: var(--font-display); color: var(--hds-deep); margin-top: 0;
}
.hds-modal__form .hds-form input,
.hds-modal__form .hds-form textarea,
.hds-modal__grid--page .hds-form input {
  background: #fff; color: var(--hds-ink); border: 1px solid var(--hds-line);
}
.hds-modal__form .hds-form input::placeholder { color: #8a9b99; }
.hds-check { display: flex; gap: .6rem; align-items: flex-start; font-size: .95rem; color: var(--hds-ink); }
.hds-pay-list { padding-left: 1.1rem; }
.hds-pay-list li { margin-bottom: .4rem; }

/* Footer — same photo as home contact so the page reads as one plane */
.hds-footer {
  position: relative;
  isolation: isolate;
  background: var(--hds-deep);
  color: rgba(255,255,255,.86);
  padding-top: 3.25rem;
  overflow: hidden;
}
.hds-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("../images/bkg-contact.webp") center / cover no-repeat;
}
.hds-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(135deg, rgba(2,56,58,.92), rgba(15,143,115,.78));
}
.hds-footer a { color: #fff; }
.hds-footer__inner {
  position: relative; z-index: 1;
  width: min(100% - 2rem, var(--wrap)); margin: 0 auto 2rem;
  display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 2.5rem; align-items: start;
}
.hds-footer__brand-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .75rem;
  margin-bottom: .85rem;
}
.hds-footer__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 128px;
  height: 128px;
  flex: 0 0 128px;
  border-radius: 50%;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255,255,255,.18);
}
.hds-footer__logo img {
  width: auto;
  height: auto;
  max-width: 88%;
  max-height: 88%;
  object-fit: contain;
  margin: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}
.hds-footer__titles {
  display: grid;
  gap: .2rem;
  line-height: 1.25;
  max-width: 28ch;
}
.hds-footer__titles strong {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.hds-footer__site { font-weight: 700; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.35); }
.hds-footer__meta { margin: .85rem 0 0; color: rgba(255,255,255,.78); line-height: 1.7; }
.hds-footer__meta a { text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.28); }
.hds-footer__label {
  margin: 0 0 .85rem; font-size: .75rem; letter-spacing: .12em;
  text-transform: uppercase; font-weight: 700; color: rgba(255,255,255,.55);
}
.hds-footer__nav ul,
.hds-footer__list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; flex-wrap: nowrap; gap: .45rem;
}
.hds-footer__nav li,
.hds-footer__list li { width: 100%; }
.hds-footer__nav a,
.hds-footer__list a {
  display: block;
  text-decoration: none;
  font-weight: 600;
  padding: .15rem 0;
}
.hds-footer__nav a:hover,
.hds-footer__list a:hover { color: var(--hds-accent-2); }
.hds-footer__note {
  margin: 0 0 1rem; max-width: 28ch; color: rgba(255,255,255,.72); line-height: 1.55;
}
.hds-footer__cta .btn { margin-top: .25rem; }
.hds-footer__bar {
  position: relative; z-index: 1;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  align-items: center;
  width: min(100% - 2rem, var(--wrap)); margin: 0 auto; padding: 1rem 0 1.4rem;
  font-size: .92rem;
}
.hds-footer__legal a { text-decoration: none; font-weight: 600; }
.hds-footer__legal a:hover { color: var(--hds-accent-2); }
.hds-credit a { font-weight: 700; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.45); }

.hds-cookie {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
  background: rgba(2, 56, 58, .96);
  color: #fff;
  border-top: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 -12px 40px rgba(0,0,0,.18);
}
.hds-cookie__inner {
  width: min(100% - 2rem, var(--wrap));
  margin: 0 auto;
  padding: .85rem 0;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.hds-cookie p { margin: 0; max-width: 70ch; line-height: 1.5; color: rgba(255,255,255,.88); }
.hds-cookie a { color: #fff; font-weight: 700; }

/* Single */
.hds-article h1 { font-family: var(--font-display); color: var(--hds-deep); font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; }
.hds-article__meta { color: var(--hds-muted); font-weight: 600; }
.hds-section.hds-single { padding-top: 0; }
.hds-article__media { margin: 1.5rem 0; border-radius: var(--radius); overflow: hidden; }
.hds-article__banner {
  margin: 0 0 2rem;
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
  border-radius: 0;
  overflow: hidden;
}
.hds-article__banner img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
}
.hds-article__content { font-size: 1.05rem; line-height: 1.75; }
.hds-article__content p { margin: 0 0 1rem; }
.hds-article__content p a { font-weight: 600; }
.hds-article__content ul { margin: 0 0 1.25rem 1.25rem; }
.hds-article__content li { margin-bottom: .35rem; }
.hds-article__content em { font-style: italic; }
.hds-article__content sub { font-size: .75em; vertical-align: sub; }

/* Responsive */
@media (max-width: 1200px) {
  .hds-gallery--archive .hds-gallery__grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 980px) {
  .hds-about__grid,
  .hds-contact__grid,
  .hds-modal__grid,
  .hds-modal__grid--page,
  .hds-footer__inner { grid-template-columns: 1fr; }

  .hds-cards--3, .hds-cards--4, .hds-edu__grid, .hds-gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hds-board__card { width: min(100%, 168px); }
  .hds-board__grid { gap: 1.5rem 1rem; }
  .hds-links-block ul { columns: 1; }
  .hds-header__inner { min-height: 84px; }
  .hds-logo img,
  .hds-logo .custom-logo { max-width: 100%; max-height: 100%; }
  .hds-logo { width: 72px; height: 72px; flex-basis: 72px; }
  .hds-logo img,
  .hds-logo .custom-logo { padding: 0; }
  .hds-logo-titles { max-width: min(28ch, 52vw); }
  .hds-logo-titles strong { font-size: .72rem; letter-spacing: .02em; }
  .hds-header--overlay + .hds-main .hds-hero { padding-top: 84px; }
  .hds-nav-toggle { display: block; }
  .hds-nav-toggle__input:checked + .hds-nav-toggle + .hds-nav,
  .hds-nav.is-open { display: flex !important; }
  .hds-nav {
    position: fixed; top: 84px; left: 0; right: 0;
    display: none; flex-direction: column;
    align-items: stretch; gap: 1rem;
    min-height: calc(100vh - 84px);
    background: rgba(9,22,14,.98); padding: 1rem 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,.12); box-shadow: var(--shadow);
    z-index: 101;
    overflow-y: auto;
  }
  .hds-nav.is-open { display: flex; }
  .hds-nav__top {
    justify-content: space-between;
    flex-wrap: wrap;
  }
  .hds-nav__list { flex-direction: column; align-items: stretch; }
  .hds-nav__list a {
    color: #fff;
    padding: .7rem 0;
    font-size: 1.05rem;
  }
  .hds-nav .btn { width: fit-content; }
}

/* Accordion */
.hds-accordion { margin: 2rem 0; border: 1px solid #808f95; border-left: 1px solid #1a6b5b; border-radius: 0; overflow: hidden; background: #fff; }
.hds-accordion__item { border-bottom: 1px solid #808f95; margin: 0; }
.hds-accordion__item:last-child { border-bottom: none; }
.hds-accordion__title { display: flex; align-items: center; justify-content: space-between; padding: 1rem 2.1rem 1rem 1.25rem; font-weight: 500; font-size: 1rem; cursor: pointer; background: #fff; transition: background .2s, color .2s; list-style: none; color: #1a6b5b; position: relative; }
.hds-accordion__title::-webkit-details-marker { display: none; }
.hds-accordion__title::marker { content: ""; }
.hds-accordion__title::after { content: '›'; font-size: 1.45rem; font-weight: 300; color: #1a6b5b; transition: transform .25s; position: absolute; right: .9rem; top: 50%; transform: translateY(-50%); }
.hds-accordion__item[open] .hds-accordion__title::after { transform: translateY(-50%) rotate(90deg); color: #fff; }
.hds-accordion__item[open] .hds-accordion__title { background: #1a6b5b; color: #fff; }
.hds-accordion__content { padding: 1.25rem 1.5rem; line-height: 1.7; }
.hds-accordion__content ol, .hds-accordion__content ul { padding-left: 1.5rem; }
.hds-accordion__content li { margin-bottom: .4rem; }
.hds-accordion__content p { margin-bottom: .75rem; }

/* Homepage redesign (WSSA + local society color) — does not affect inner pages */
body.home,
body.front-page {
  --wrap: min(100% - 2.5rem, 1320px);
  background:
    linear-gradient(180deg, #e8f4ea 0%, #fff 18%, #fff8ec 52%, #eef7f2 100%);
}
body.home .hds-main,
body.front-page .hds-main {
  width: 100%;
  max-width: none;
}
body.home .hds-hero,
body.home .hds-spotlight,
body.home .hds-section,
body.home .hds-footer,
body.front-page .hds-hero,
body.front-page .hds-spotlight,
body.front-page .hds-section,
body.front-page .hds-footer {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  border-radius: 0;
}
body.home .hds-hero,
body.front-page .hds-hero {
  min-height: min(82vh, 760px);
}
body.home .hds-hero__slide,
body.front-page .hds-hero__slide {
  background:
    var(--hero-image) center/cover no-repeat;
  align-items: end;
}
body.home .hds-hero__overlay,
body.front-page .hds-hero__overlay {
  background: linear-gradient(180deg, rgba(8, 42, 28, .08) 0%, rgba(8, 42, 28, .12) 48%, rgba(8, 42, 28, .78) 100%);
}
body.home .hds-hero__bar,
body.front-page .hds-hero__bar {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 1.4rem 0 5.2rem;
}
body.home .hds-hero__bar-inner,
body.front-page .hds-hero__bar-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}
body.home .hds-hero__kicker,
body.front-page .hds-hero__kicker {
  margin: 0 0 .35rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  font-weight: 700;
  color: #f2c94c;
}
body.home .hds-hero__bar h2,
body.front-page .hds-hero__bar h2 {
  margin: 0;
  max-width: 22ch;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  line-height: 1.15;
  text-shadow: 0 8px 24px rgba(0,0,0,.35);
}
body.home .hds-hero__meta,
body.front-page .hds-hero__meta {
  margin: .45rem 0 0;
  color: rgba(255,255,255,.92);
  font-weight: 600;
}
body.home .hds-hero__bar-actions,
body.front-page .hds-hero__bar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}
body.home .hds-hero .btn--ghost,
body.front-page .hds-hero .btn--ghost {
  background: #1f8a4d;
  border-color: #1f8a4d;
  color: #fff;
}
body.home .hds-hero .btn--ghost:hover,
body.front-page .hds-hero .btn--ghost:hover {
  background: #fff;
  color: #145c34;
}

.btn--ghost-ink {
  background: transparent;
  color: var(--hds-deep);
  border: 1px solid var(--hds-deep);
}
.btn--ghost-ink:hover { background: var(--hds-deep); color: #fff; }

body.home .hds-about__actions,
body.front-page .hds-about__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin: 1.1rem 0 .6rem;
}

body.home .hds-card--pub .hds-card__media--cover,
body.front-page .hds-card--pub .hds-card__media--cover {
  aspect-ratio: 3 / 4;
  background:
    linear-gradient(180deg, #f4faf6, #e4eee8);
  display: grid;
  place-items: center;
}
body.home .hds-card--pub .hds-card__media--cover img,
body.front-page .hds-card--pub .hds-card__media--cover img {
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
}

.hds-spotlight {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: 168px;
}
.hds-spotlight__item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .35rem;
  padding: 1.6rem 1.4rem;
  color: #fff;
  text-decoration: none;
  min-height: 168px;
  transition: filter .2s ease, transform .2s ease;
}
.hds-spotlight__item:hover { filter: brightness(1.08); color: #fff; transform: translateY(-2px); }
.hds-spotlight__item span {
  font-family: var(--font-display);
  font-size: 1.55rem;
  line-height: 1.15;
  font-weight: 700;
}
.hds-spotlight__item small {
  font-size: .95rem;
  opacity: .92;
  max-width: 22ch;
}
.hds-spotlight__item--pubs { background: #1b6b3a; }
.hds-spotlight__item--news { background: #e3a312; }
.hds-spotlight__item--meet { background: #1d7ea8; }
.hds-spotlight__item--join { background: #c45a1a; }

body.home .hds-about,
body.front-page .hds-about {
  background:
    linear-gradient(90deg, rgba(27, 107, 58, .08), transparent 42%),
    #fff;
}
body.home .hds-news,
body.front-page .hds-news {
  background:
    linear-gradient(135deg, #145c34, #1d7ea8);
}
body.home .hds-pubs,
body.front-page .hds-pubs {
  background: linear-gradient(180deg, #fff8e6, #fff);
}
body.home .hds-events,
body.front-page .hds-events {
  background: linear-gradient(180deg, #e8f6ee, #fff);
}
body.home .hds-edu,
body.front-page .hds-edu {
  background: #fff3d6;
}
body.home .hds-edu__item,
body.front-page .hds-edu__item {
  background: #fff;
  border-color: #e3a312;
}
body.home .hds-edu__item:hover,
body.front-page .hds-edu__item:hover {
  background: #1b6b3a;
  border-color: #1b6b3a;
}
body.home .hds-gallery,
body.front-page .hds-gallery {
  background: linear-gradient(180deg, #eaf4fb, #fff);
}

@media (max-width: 980px) {
  .hds-spotlight { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .hds-spotlight { grid-template-columns: 1fr; }
  .hds-cards--3, .hds-cards--4, .hds-edu__grid, .hds-gallery__grid {
    grid-template-columns: 1fr;
  }
  .hds-board__card { width: min(100%, 46%); }
  .hds-board__photo { width: 96px; height: 96px; }
  .hds-board__grid { gap: 1.35rem .75rem; }
  .hds-gallery-tabs__nav { padding: .65rem; gap: .5rem; }
  .hds-gallery-tabs__tab {
    width: 100%;
    justify-content: space-between;
    font-size: .92rem;
    padding: .7rem .95rem;
  }
  .hds-hero { min-height: 70vh; }
  .hds-accordion__title { font-size: .95rem; padding: .85rem 1rem; }
}
