/* Modern CSS for Nessbakkan Vel Website */

:root {
  /* Light mode colors */
  --primary-color: #2c5530;
  --secondary-color: #4a7c59;
  --accent-color: #7fad8a;
  --text-color: #333;
  --text-light: #666;
  --background-color: #f8fffe;
  --card-background: #ffffff;
  --border-color: #e0e7e0;
  --shadow: 0 2px 10px rgba(44, 85, 48, 0.1);
  --shadow-hover: 0 4px 20px rgba(44, 85, 48, 0.15);
  --border-radius: 8px;
}

/* Dark mode colors */
[data-theme="dark"] {
  --primary-color: #7fad8a;
  --secondary-color: #a8d4b0;
  --accent-color: #4a7c59;
  --text-color: #e8f5e8;
  --text-light: #b8d4b8;
  --background-color: #181818;
  --card-background: #242424;
  --border-color: #404040;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* Auto dark mode based on system preference */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --primary-color: #7fad8a;
    --secondary-color: #a8d4b0;
    --accent-color: #4a7c59;
    --text-color: #e8f5e8;
    --text-light: #b8d4b8;
    --background-color: #181818;
    --card-background: #242424;
    --border-color: #404040;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.4);
  }
}

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

html {
  background-color: var(--background-color);
  transition: background-color 0.3s ease;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
  background-image: linear-gradient(135deg, var(--background-color) 0%, var(--card-background) 100%);
  min-height: 100vh;
  transition: background-color 0.3s ease, background-image 0.3s ease;
}

/* Visually-hidden skip link that appears on keyboard focus */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  background: var(--card-background);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  z-index: 1000;
}

/* General link styles for better visibility in dark mode */
a {
  color: var(--primary-color);
  text-decoration: underline;
  text-decoration-color: var(--primary-color);
  text-underline-offset: 3px;
  transition: color 0.3s ease, text-decoration-color 0.3s ease;
  font-weight: 500;
}

a:hover {
  color: var(--secondary-color);
  text-decoration-color: var(--secondary-color);
  text-decoration-thickness: 2px;
}

a:visited {
  color: var(--accent-color);
  text-decoration-color: var(--accent-color);
}

a:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
  border-radius: 2px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  background: linear-gradient(135deg, rgba(44, 85, 48, 0.4), rgba(74, 124, 89, 0.3)), 
              url('img/nessbakkanvel.png') center center/cover no-repeat;
  color: white;
  padding: 3rem 0;
  box-shadow: var(--shadow);
  position: relative;
  min-height: 200px;
}

header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(44, 85, 48, 0.3), rgba(74, 124, 89, 0.2));
  z-index: 1;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  position: relative;
  z-index: 2;
  text-align: center;
}

.logo {
  display: none; /* Hide the logo image since we're using it as background */
}

.header-text {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.header-text h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.header-text p {
  font-size: 1.3rem;
  opacity: 0.95;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Navigation */
nav {
  background: var(--card-background);
  padding: 1rem 0;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Universell regel: Fjern sticky på alle mobile enheter for bedre kompatibilitet */
@media (max-width: 768px) {
  nav {
    position: static;
  }
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.nav-list a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.nav-list a:hover,
.nav-list a.active {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

/* Main content */
main {
  padding: 3rem 0;
}

.content-card {
  background: var(--card-background);
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
  transition: box-shadow 0.3s ease;
}

.content-card:hover {
  box-shadow: var(--shadow-hover);
}

.page-title {
  font-size: 2.2rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  text-align: center;
}

.subtitle {
  font-size: 1.4rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
  font-weight: 600;
}

p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  line-height: 1.7;
}

/* Home page specific styles */
.welcome-section {
  text-align: center;
  margin-bottom: 3rem;
}

.welcome-section h1 {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.welcome-section .subtitle {
  font-size: 1.3rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 2rem auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.feature-card {
  background: var(--card-background);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.feature-card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.feature-card a {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background: var(--primary-color);
  color: white !important;
  text-decoration: none;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
  font-weight: 500;
}

.feature-card a:hover {
  background: var(--secondary-color);
  color: white !important;
  transform: translateY(-2px);
}

/* Contact info styles */
.contact-info {
  background: var(--background-color);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  border-left: 4px solid var(--primary-color);
  margin: 1.5rem 0;
}

.contact-info p {
  margin-bottom: 0.5rem;
}

.contact-info strong {
  color: var(--primary-color);
}

/* Board member list */
.board-list {
  list-style: none;
  margin: 1.5rem 0;
}

.board-list li {
  background: var(--background-color);
  padding: 1rem;
  margin-bottom: 0.5rem;
  border-radius: var(--border-radius);
  border-left: 4px solid var(--accent-color);
}

.board-list li strong {
  color: var(--primary-color);
}

.board-list a {
  color: var(--secondary-color);
  text-decoration: none;
}

.board-list a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

/* Playground features */
.playground-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.playground-item {
  background: var(--background-color);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  text-align: center;
  border: 2px solid var(--border-color);
  transition: all 0.3s ease;
}

.playground-item:hover {
  border-color: var(--accent-color);
  transform: translateY(-3px);
}

.playground-item h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

/* Map section styling */
.map-section {
  margin: 3rem 0;
  text-align: center;
}

.map-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 1.5rem auto;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--card-background);
  padding: 1rem;
}

.map-container iframe {
  width: 100%;
  height: 400px;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
}

.map-container:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

/* Events/News page styles */
.events-section {
  margin-bottom: 3rem;
}

.events-container {
  margin-top: 1.5rem;
}

.event-card {
  background: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  margin-bottom: 1.5rem;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.event-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.event-card.upcoming {
  border-left: 4px solid var(--primary-color);
}

.event-card.past {
  border-left: 4px solid var(--text-light);
  opacity: 0.85;
}

.event-header {
  background: var(--background-color);
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
}

.event-type {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.event-icon {
  font-size: 1.2rem;
}

.event-category {
  background: var(--primary-color);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

.event-date {
  text-align: right;
  color: var(--text-color);
}

.event-date strong {
  color: var(--primary-color);
}

.event-content {
  padding: 1.5rem;
}

.event-title {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.3rem;
  font-weight: 600;
}

.event-location {
  color: var(--text-light);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.event-description {
  line-height: 1.6;
  color: var(--text-color);
}

.no-events {
  text-align: center;
  padding: 2rem;
  color: var(--text-light);
  font-style: italic;
}

.error-message {
  background: #ffebee;
  border: 1px solid #f44336;
  border-radius: var(--border-radius);
  padding: 1rem;
  text-align: center;
  color: #c62828;
}

/* Documents page styles */
.document-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--background-color);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
}

.filter-btn {
  background: var(--card-background);
  border: 2px solid var(--border-color);
  border-radius: 25px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-color);
}

.filter-btn:hover {
  border-color: var(--accent-color);
  transform: translateY(-1px);
}

.filter-btn.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.documents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.document-card {
  background: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.document-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.document-header {
  background: var(--background-color);
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
}

.document-icon {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.file-icon {
  font-size: 1.5rem;
}

.category-icon {
  font-size: 1rem;
}

.document-meta {
  text-align: right;
  font-size: 0.85rem;
}

.document-category {
  display: block;
  color: var(--primary-color);
  font-weight: 600;
}

.document-date {
  color: var(--text-light);
}

.document-content {
  padding: 1.5rem;
}

.document-title {
  color: var(--primary-color);
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
}

.document-description {
  color: var(--text-color);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.document-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.document-type {
  background: var(--accent-color);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.75rem;
}

.document-actions {
  display: flex;
  gap: 0.75rem;
  padding: 0 1.5rem 1.5rem;
}

.download-btn, .view-btn {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: var(--border-radius);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  text-align: center;
  display: inline-block;
}

.download-btn {
  background: var(--primary-color);
  color: white;
}

.download-btn:hover {
  background: var(--secondary-color);
  transform: translateY(-1px);
}

.view-btn {
  background: var(--background-color);
  color: var(--text-color);
  border: 2px solid var(--border-color);
}

.view-btn:hover {
  border-color: var(--accent-color);
  background: var(--accent-color);
  color: white;
}

.no-documents {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-light);
  font-style: italic;
  background: var(--background-color);
  border-radius: var(--border-radius);
  border: 2px dashed var(--border-color);
}

/* Image modal */
.image-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: white;
  border-radius: var(--border-radius);
  max-width: 90vw;
  max-height: 90vh;
  overflow: hidden;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: var(--background-color);
  border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
  margin: 0;
  color: var(--primary-color);
}

.close-modal {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-light);
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-modal:hover {
  color: var(--primary-color);
}

.modal-body {
  padding: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-image {
  max-width: 100%;
  max-height: 70vh;
  height: auto;
  border-radius: var(--border-radius);
}

/* Content sections */
.content-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border-color);
}

.content-section:first-of-type {
  margin-top: 2rem;
  border-top: none;
  padding-top: 0;
}

/* Enhanced About page styling */
.intro-section {
  margin-bottom: 3rem;
  text-align: center;
}

.intro-text {
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

.vision-section {
  margin-bottom: 3rem;
}

.goals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.goal-item {
  background: var(--card-background);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  border: 2px solid var(--border-color);
  text-align: center;
  transition: all 0.3s ease;
}

.goal-item:hover {
  border-color: var(--accent-color);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.goal-item h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.membership-section {
  margin-bottom: 3rem;
  background: var(--card-background);
  padding: 2rem;
  border-radius: var(--border-radius);
  border: 2px solid var(--border-color);
}

.membership-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.membership-benefits ul {
  list-style: none;
  padding: 0;
}

.membership-benefits li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.membership-benefits li:before {
  content: "✓ ";
  color: var(--accent-color);
  font-weight: bold;
}

.social-section {
  margin-bottom: 3rem;
  background: linear-gradient(135deg, var(--card-background) 0%, var(--background-color) 100%);
  padding: 2rem;
  border-radius: var(--border-radius);
  text-align: center;
  border: 1px solid var(--border-color);
}

.org-info-section {
  margin-bottom: 3rem;
}

.org-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.org-item {
  background: var(--background-color);
  padding: 1rem;
  border-radius: var(--border-radius);
  border-left: 4px solid var(--accent-color);
}

.address-section {
  margin-top: 2rem;
  text-align: center;
}

.address-section address {
  background: var(--card-background);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  border: 2px solid var(--border-color);
  font-style: normal;
  display: inline-block;
}

.board-section {
  margin-bottom: 3rem;
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.board-member {
  background: var(--card-background);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  border: 2px solid var(--border-color);
  text-align: center;
  transition: all 0.3s ease;
}

.board-member:hover {
  border-color: var(--accent-color);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.board-member.leader {
  border-color: #ffd700;
  background: linear-gradient(135deg, #fff9e6 0%, #fffaeb 100%);
}

.board-member.treasurer {
  border-color: #32cd32;
  background: linear-gradient(135deg, #f0fff0 0%, #f5fff5 100%);
}

.member-role {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.member-name {
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.member-contact a {
  color: var(--secondary-color);
  text-decoration: none;
  font-size: 0.9rem;
}

.member-contact a:hover {
  text-decoration: underline;
}

.board-contact {
  margin: 2rem 0;
  text-align: center;
  background: var(--background-color);
  padding: 1.5rem;
  border-radius: var(--border-radius);
}

.main-contact a {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--primary-color);
  text-decoration: none;
}

.main-contact a:hover {
  text-decoration: underline;
}

.board-engagement {
  margin-top: 2rem;
}

.engagement-list {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}

.engagement-list li {
  padding: 0.8rem;
  margin: 0.5rem 0;
  background: var(--background-color);
  border-radius: var(--border-radius);
  border-left: 4px solid var(--accent-color);
}

.election-info {
  font-style: italic;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

/* Bidra page styling */
.financial-support-section {
  margin-bottom: 3rem;
}

.support-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.support-card {
  background: var(--card-background);
  padding: 2rem;
  border-radius: var(--border-radius);
  border: 2px solid var(--border-color);
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
}

.support-card:hover {
  border-color: var(--accent-color);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.support-card.bank-transfer {
  border-left: 4px solid #1e88e5;
}

.support-card.vipps {
  border-left: 4px solid #ff6b35;
}

.support-card.grasrot {
  border-left: 4px solid #4caf50;
}

.support-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.support-card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.account-number, .vipps-number, .org-number {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
  background: var(--background-color);
  padding: 1rem;
  border-radius: var(--border-radius);
  margin: 1rem 0;
  letter-spacing: 1px;
}

.vipps-name {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--secondary-color);
  margin: 0.5rem 0;
}

.support-note {
  font-size: 0.9rem;
  color: var(--text-light);
  font-style: italic;
  margin-top: 1rem;
}

.external-link {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background: var(--primary-color);
  color: white !important;
  text-decoration: none;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
  font-weight: 500;
}

.external-link:hover {
  background: var(--secondary-color);
  color: white !important;
  transform: translateY(-2px);
}

.grasrot-stats-section {
  margin-bottom: 3rem;
  text-align: center;
}

.stats-container {
  background: var(--card-background);
  padding: 2rem;
  border-radius: var(--border-radius);
  border: 2px solid var(--border-color);
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  overflow-x: auto;
}

.stats-container iframe {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.volunteer-section {
  margin-bottom: 3rem;
}

.volunteer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.volunteer-card {
  background: var(--card-background);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  border: 2px solid var(--border-color);
  text-align: center;
  transition: all 0.3s ease;
}

.volunteer-card:hover {
  border-color: var(--accent-color);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.volunteer-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.volunteer-card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.volunteer-card p {
  line-height: 1.6;
  color: var(--text-color);
}

.volunteer-card a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 500;
}

.volunteer-card a:hover {
  text-decoration: underline;
}

.contribution-contact {
  background: var(--background-color);
  padding: 2rem;
  border-radius: var(--border-radius);
  border: 2px solid var(--border-color);
  text-align: center;
  margin-bottom: 3rem;
}

.contact-options {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.contact-btn {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--primary-color);
  color: white !important;
  text-decoration: none;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 1.1rem;
}

.contact-btn:hover {
  background: var(--secondary-color);
  color: white !important;
  transform: translateY(-2px);
}

/* QR Code link styling */
.qr-code-link {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background-color: var(--accent-color);
  color: white !important;
  text-decoration: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.qr-code-link:hover {
  background-color: var(--primary-color);
  color: white !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  text-decoration: none;
}

/* Dark mode toggle button */
.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  background: var(--card-background);
  border: 2px solid var(--border-color);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
  color: var(--text-color);
}

.theme-toggle:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent-color);
}

/* Responsive adjustments for theme toggle */
@media (max-width: 768px) {
  .theme-toggle {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
    top: 15px;
    right: 15px;
  }
}

@media (max-width: 480px) {
  .theme-toggle {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    top: 10px;
    right: 10px;
  }
}

/* Responsive design */
@media (max-width: 768px) {
  header {
    min-height: 150px;
    padding: 2rem 0;
  }
  
  .header-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .header-text h1 {
    font-size: 2.2rem;
  }
  
  .header-text p {
    font-size: 1.1rem;
  }
  
  /* Mobile navigation - ikke sticky og kompakt */
  nav {
    position: static;
    padding: 0.5rem 0;
  }
  
  .nav-list {
    flex-direction: row;
    gap: 0.5rem;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  
  .nav-list a {
    padding: 0.5rem 0.3rem;
    font-size: 0.85rem;
    white-space: nowrap;
  }
  
  .welcome-section h1 {
    font-size: 2.2rem;
  }
  
  .content-card {
    padding: 1.5rem;
  }
  
  .container {
    padding: 0 15px;
  }
  
  .event-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .event-date {
    text-align: center;
  }
  
  .event-content {
    padding: 1rem;
  }
  
  .documents-grid {
    grid-template-columns: 1fr;
  }
  
  .document-filters {
    justify-content: center;
  }
  
  .filter-btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
  
  .document-header {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
  
  .document-meta {
    text-align: center;
  }
  
  .document-actions {
    flex-direction: column;
  }
  
  .modal-content {
    max-width: 95vw;
    max-height: 95vh;
  }
  
  .map-container {
    padding: 0.5rem;
  }
  
  .map-container iframe {
    height: 350px;
  }
  
  .goals-grid {
    grid-template-columns: 1fr;
  }
  
  .membership-info {
    grid-template-columns: 1fr;
  }
  
  .org-details {
    grid-template-columns: 1fr;
  }
  
  .board-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
  
  .intro-text {
    font-size: 1.1rem;
  }
  
  .membership-section,
  .social-section {
    padding: 1.5rem;
  }
  
  .support-methods {
    grid-template-columns: 1fr;
  }
  
  .volunteer-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-options {
    flex-direction: column;
    align-items: center;
  }
  
  .stats-container {
    padding: 1rem;
    overflow-x: auto;
  }
  
  .stats-container iframe {
    width: 100%;
    max-width: 550px;
    height: 600px;
  }
}

@media (max-width: 480px) {
  header {
    min-height: 120px;
    padding: 1.5rem 0;
  }
  
  .header-text h1 {
    font-size: 1.8rem;
  }
  
  .header-text p {
    font-size: 1rem;
  }
  
  /* Ekstra kompakt navigasjon på små skjermer */
  nav {
    padding: 0.3rem 0;
  }
  
  .nav-list {
    gap: 0.2rem;
  }
  
  .nav-list a {
    padding: 0.4rem 0.2rem;
    font-size: 0.8rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .playground-features {
    grid-template-columns: 1fr;
  }
  
  .map-container iframe {
    height: 300px;
  }
  
  .page-title {
    font-size: 1.8rem;
  }
  
  .support-card {
    padding: 1.5rem;
  }
  
  .stats-container iframe {
    height: 500px;
  }
  
  .account-number, .vipps-number, .org-number {
    font-size: 1.2rem;
  }
}

/* Skjermer med lav høyde (typisk mobile i landscape) */
@media (max-height: 500px) {
  /* Fjern sticky helt på lave skjermer */
  nav {
    position: static !important;
    padding: 0.25rem 0;
  }
  
  .nav-list {
    gap: 0.3rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0.2rem 0;
  }
  
  .nav-list a {
    padding: 0.3rem 0.4rem;
    font-size: 0.75rem;
    white-space: nowrap;
    min-width: fit-content;
  }
  
  /* Kompakter header på lave skjermer */
  header {
    min-height: 80px !important;
    padding: 0.5rem 0 !important;
  }
  
  .header-text h1 {
    font-size: 1.4rem !important;
  }
  
  .header-text p {
    font-size: 0.85rem !important;
  }
  
  /* Reduser padding generelt for å spare plass */
  .content-card {
    padding: 1rem;
  }
  
  main {
    padding: 1rem 0;
  }
  
  .container {
    padding: 0 10px;
  }
  
  .page-title {
    font-size: 1.6rem;
  }
}

/* Ekstra lave skjermer (under 400px høyde) */
@media (max-height: 400px) {
  nav {
    padding: 0.2rem 0;
  }
  
  .nav-list a {
    padding: 0.25rem 0.3rem;
    font-size: 0.7rem;
  }
  
  header {
    min-height: 60px !important;
    padding: 0.3rem 0 !important;
  }
  
  .header-text h1 {
    font-size: 1.2rem !important;
  }
  
  .header-text p {
    font-size: 0.75rem !important;
  }
  
  main {
    padding: 0.5rem 0;
  }
  
  .content-card {
    padding: 0.75rem;
  }
}

/* Last updated styling - more subtle and discrete */
.last-updated {
  margin: 0.5rem 0;
  text-align: center;
  padding: 0.5rem;
  background: transparent;
  border: none;
  opacity: 0.7;
}

.last-updated small {
  font-size: 0.75rem;
  color: var(--text-light) !important;
  font-weight: 400;
  font-style: italic;
}

/* Dark mode specific improvements */
[data-theme="dark"] .last-updated {
  background: transparent;
}

[data-theme="dark"] .last-updated small {
  color: var(--text-light) !important;
  opacity: 0.8;
}

/* Auto dark mode for last-updated styling */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .last-updated {
    background: transparent;
  }
  
  :root:not([data-theme="light"]) .last-updated small {
    color: var(--text-light) !important;
    opacity: 0.8;
  }
}

/* Footer styling - subtle and discrete */
footer {
  margin-top: 2rem;
  padding: 1rem 0;
  text-align: center;
  opacity: 0.7;
}

footer p {
  font-size: 0.8rem;
  color: var(--text-light);
  margin: 0;
  font-weight: 400;
}

/* Ensure iframe borders work in dark mode */
[data-theme="dark"] iframe {
  border: 1px solid var(--border-color);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) iframe {
    border: 1px solid var(--border-color);
  }
}
