/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html, body {
  overflow-x: hidden;
}

/* Color Palette:
   Primary Dark:   #27445D
   Secondary Dark: #497D74
   Accent:         #71BBB2
   Light:          #EFE9D5
*/

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #EFE9D5;
  color: #27445D;
  line-height: 1.6;
}

/* Container to constrain content on desktops */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Header Styles */
header {
  background: linear-gradient(90deg, #27445D, #497D74);
  color: #EFE9D5;
  padding: 15px 0;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #EFE9D5;
}

.logo-img {
  width: 50px;
  height: auto;
  margin-right: 10px;
}

.site-name {
  font-size: 1.8rem;
  font-weight: bold;
}

nav ul {
  list-style: none;
  display: flex;
}

nav ul li {
  margin-left: 20px;
}

nav ul li a {
  color: #EFE9D5;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #71BBB2;
}

/* Burger Menu Styles */
.burger {
  display: none;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px;
  background: #EFE9D5;
  transition: all 0.3s ease;
}

/* Hero Block Styles */
.hero {
  background: linear-gradient(90deg, #497D74, #71BBB2);
  color: #EFE9D5;
  text-align: center;
  padding: 60px 20px;
  margin-top: 0; /* Ensures hero is flush with header */
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
}

/* Section Styles */
section {
  margin: 40px 0;
}

/* Paragraph Styling */
p {
  margin-bottom: 20px;
  font-size: 1rem;
}

.intro-paragraph {
  font-size: 1.1rem;
  font-weight: 500;
  color: #27445D;
}

/* Responsive Images */
.responsive-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Custom Unordered List */
/* Custom Bullet List Style Block */
.custom-bullet {
  list-style: none; /* Remove default bullets */
  padding: 0;
  margin: 20px 0;
}

.custom-bullet li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
  font-size: 1.1rem;
  color: #27445D;
}

.custom-bullet li:before {
  content: "\2022"; /* Unicode bullet character */
  position: absolute;
  left: 0;
  top: 0;
  color: #497D74;
  font-size: 1.1rem;
  line-height: 1.2;
}


/* Custom Ordered List */
/* Custom Numbered List Style Block */
.custom-numbered {
  counter-reset: custom-counter; /* Reset counter */
  list-style: none; /* Remove default numbers */
  padding: 0;
  margin: 20px 0;
}

.custom-numbered li {
  counter-increment: custom-counter; /* Increment counter for each li */
  position: relative;
  padding-left: 35px; /* Space for the custom number */
  margin-bottom: 10px;
  font-size: 1.1rem;
  color: #27445D;
}

.custom-numbered li:before {
  content: counter(custom-counter) ".";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1.1rem;
  color: #497D74;
  font-weight: bold;
}


/* Modern Table Style Block */

#review-table {
  width: 100%;
  overflow-x: auto;               /* aktiver horisontal rulling */
  -webkit-overflow-scrolling: touch; /* jevn scroll på iOS */
  margin: 0;                      /* null ekstra marger */
}

.modern-table {
  width: 100%;
  min-width: 640px;               /* tvinger scroll på smale skjermer */
  border-collapse: collapse;
  background: #EFE9D5;
  border: 1px solid #497D74;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  font-size: 1rem;
}

/* 3) Topptekst */
.modern-table thead {
  background: #27445D;
}

.modern-table thead th {
  color: #EFE9D5;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 2px solid #497D74;
  white-space: nowrap;            /* hindrer linjebrudd i overskrifter */
}

/* 4) Rader i innholdet */
.modern-table tbody tr {
  border-bottom: 1px solid #497D74;
}

.modern-table tbody tr:nth-child(even) {
  background: rgba(71, 125, 116, 0.1);
}

.modern-table tbody tr:hover {
  background: rgba(113, 187, 178, 0.3);
}

/* 5) Celler */
.modern-table tbody td {
  padding: 12px 16px;
  border-right: 1px solid #497D74;
}

.modern-table tbody td:last-child {
  border-right: none;
}


/* 6) Mindre skrift og polstring på svært små skjermer */
@media (max-width: 480px) {
  .modern-table {
    font-size: 0.875rem;
  }
  .modern-table thead th,
  .modern-table tbody td {
    padding: 10px 12px;
  }
}

/* Pros and Cons Style Block */
.pros-cons-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 20px 0;
}

.pros,
.cons {
  flex: 1;
  min-width: 280px;
  padding: 20px;
  border-radius: 8px;
  background-color: #EFE9D5;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.pros {
  border: 2px solid #71BBB2;
}

.cons {
  border: 2px solid #D9534F;
}

.pros h3,
.cons h3 {
  margin-bottom: 15px;
  font-size: 1.5rem;
  text-align: center;
}

.pros ul,
.cons ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pros li,
.cons li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  font-size: 1rem;
}

.pros li:before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: #71BBB2;
  font-size: 1.2rem;
  line-height: 1;
}

.cons li:before {
  content: "\2717";
  position: absolute;
  left: 0;
  top: 0;
  color: #27445D;
  font-size: 1.2rem;
  line-height: 1;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #27445D;
  color: #EFE9D5;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  font-size: 1.5rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  transition: background 0.3s ease;
  z-index: 1000;
}

.back-to-top:hover {
  background: #497D74;
}

/* Footer Styles */
footer {
  background: #27445D;
  color: #EFE9D5;
  padding: 20px 0;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.footer-links a {
  margin: 0 15px;
  color: #EFE9D5;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #71BBB2;
}

.footer-logos {
  margin: 20px 0;
}

.footer-logos a {
  margin: 0 10px;
  display: inline-block;
}

.footer-logos img {
  width: 80px;
  height: auto;
  border-radius: 4px;
}

.footer-text {
  font-size: 0.9rem;
}

/* Media Queries for Mobile Responsiveness */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    align-items: center;
  }
  
  /* Hide the regular nav list and show burger menu */
  nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    text-align: center;
  }
  
  /* When nav is active, display as block */
  nav ul.nav-active {
    display: flex;
  }
  
  nav ul li {
    margin: 10px 0;
  }
  
  .burger {
    display: block;
  }
  
  .container {
    padding: 15px;
  }
  
  .modern-table th,
  .modern-table td {
    font-size: 0.9rem;
    padding: 8px;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  /* Hide Back to Top Button on Mobile */
  .back-to-top {
    display: none;
  }
}


/* Container Typography Styles */
.container p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #27445D;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.container h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #27445D;
  border-bottom: 2px solid #497D74;
  padding-bottom: 10px;
  font-family: 'Segoe UI', sans-serif;
  text-transform: uppercase;
}

.container h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #27445D;
  border-bottom: 1px solid #497D74;
  padding-bottom: 8px;
  font-family: 'Segoe UI', sans-serif;
  text-transform: uppercase;
}

.container h3 {
  font-size: 1.75rem;
  margin-bottom: 15px;
  color: #27445D;
  font-family: 'Segoe UI', sans-serif;
}

.container h4 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #27445D;
  font-family: 'Segoe UI', sans-serif;
}

.container h5 {
  font-size: 1.25rem;
  margin-bottom: 15px;
  color: #27445D;
  font-family: 'Segoe UI', sans-serif;
}

.container h6 {
  font-size: 1rem;
  margin-bottom: 15px;
  color: #27445D;
  font-family: 'Segoe UI', sans-serif;
}
