@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&display=swap');

:root {
  --dark-blue: #2f4b7c;
  --deep-forest: #264653;
  --rust-orange: #0aca87;
  --light-beige: #f4f1ea;
  --background: #f8f9fa;
  --header-bg: #2e3a4e;
}

body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  background: var(--background);
  color: #222;
  line-height: 1.6;
}

header {
  background: linear-gradient(rgba(46, 58, 78, 0.7), rgba(46, 58, 78, 0.8)),
              url("assets/header-bg.jpg") center/cover no-repeat;
  color: white;
  padding: 2.5rem 1rem;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}


.logo-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
}

.logo-wrap img {
  height: 120px;
  width: auto;
  margin-bottom: 0.5rem;
  display: block;
  transform-origin: center center;
  transition: transform 0.3s ease, filter 0.3s ease, box-shadow 0.3s ease;
}

.logo-wrap img {
  height: 120px;
  width: auto;
  margin-bottom: 0.5rem;
  display: block;
  transform-origin: center center;
  transition: transform 0.3s ease, filter 0.3s ease, box-shadow 0.3s ease;
}

.logo-wrap h1 {
  font-size: 2.2rem;
  margin: 0;
  text-align: center;
  white-space: nowrap;
  color: var(--rust-orange);
}

nav {
  background: var(--deep-forest);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

nav a {
  color: #fff;
  text-decoration: none;
  padding: 1rem;
  display: inline-block;
  font-weight: 600;
  transition: background 0.2s ease;
}

nav a:hover {
  background: var(--rust-orange);
  color: white;
}

main {
  padding: 2rem 1rem;
  max-width: 1000px;
  margin: auto;
}

section {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  margin-bottom: 2rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  border-left: 6px solid var(--rust-orange);
}

section h2 {
  margin-top: 0;
  color: var(--deep-forest);
  border-bottom: 2px solid #eee;
  padding-bottom: 0.5rem;
}

footer {
  background: var(--header-bg);
  color: white;
  text-align: center;
  padding: 1.2rem;
  font-size: 0.9rem;
}

/* Galleri */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery img:hover {
  transform: scale(1.03);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.8), 
              0 0 30px rgba(255, 255, 255, 0.5);
}

/* Team SDGK */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 10px;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.1);
  animation: fadeIn 0.3s ease;
}

.team-page {
  padding: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.team-member {
  flex: 1 1 280px;
  background: var(--light-beige);
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  padding: 1.5rem;
  text-align: center;
  transition: 0.3s ease;
}

.team-member:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

.team-member img {
  width: 100%;
  max-width: 180px;
  border-radius: 8px;
  margin-bottom: 1rem;
}

/* Formatterings-støtte */

a {
  color: var(--rust-orange);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

b {
  font-weight: 600;
}

i {
  font-style: italic;
}

u {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .gallery img,
  .team-member {
    max-width: 100%;
  }
}
@keyframes pulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.08); }
  100% { transform: scale(1); }
}
.caddybook-item {
  background: #fff;
  border: 1px solid #ddd;
  text-align: center;
  padding: 1rem;
  margin: 0.5rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.caddybook-item:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.caddybook-item div {
  font-weight: bold;
  color: var(--deep-forest);
}
html {
  scroll-padding-top: 110px; /* matcher nav-høyde */
}
/* ---------- Footer version ---------- */
#version-info {
  margin-top: 4px;
  font-size: 11px;
  font-family: monospace;
  opacity: 0.6;
}
/* ---------- Styre (uten bilder) ---------- */
.styre-wrap {
  width: 100%;
  overflow-x: auto;
}

.styre-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 15px;
}

.styre-table th,
.styre-table td {
  padding: 12px 10px;
  text-align: left;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  vertical-align: top;
}

.styre-table thead th {
  font-weight: 700;
  border-bottom: 2px solid #0aca87;
}

/* ---------- Styre: samme farge i alle kolonner ---------- */
.styre-name,
.styre-role,
.styre-info {
  color: #000; /* evt: inherit */
}


.styre-info {
  opacity: 0.85;
}

@media (max-width: 720px) {
  .styre-table {
    font-size: 14px;
  }
}
.styre-info-empty {
  font-style: italic;
  opacity: 0.6;
}
/* ---------- Lenker i innhold ---------- */
main a {
  color: #0066cc;
}

main a:hover {
  color: #004999;
  text-decoration: underline;
}
/* ---------- Dokumentarkiv ---------- */
.docs-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.doc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  padding: 12px 14px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 10px;
  background: #fff;
}

.doc-name {
  font-weight: 600;
  word-break: break-word;
}

.doc-actions {
  flex-shrink: 0;
}

.doc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(0,0,0,0.06);
  color: #000;
  text-decoration: none;
  font-weight: 600;
}

.doc-btn:hover {
  background: rgba(0,0,0,0.10);
  text-decoration: none;
}