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

body {
  background-color: #ffffff !important;
  min-height: 100vh;
  font-family: sans-serif;

  display: flex;
  flex-direction: column; /* Allows the body to stack elements vertically */
  justify-content: space-between; /* Ensures footer stays at the bottom */
  /*background-image: url(img/homepage/wif_day_pres_abg.png);**/
}

.main_container {
  position: absolute;
  z-index: 10;
  width: 100%;
  backdrop-filter: blur(1000px);
}

/*menu styles*/
/* navbar*/
/* Dropdown container */
.dropdown {
  position: relative;
}

/* Dropdown menu */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  min-width: 180px;
  list-style: none;
  padding: 0;
  margin: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  z-index: 1000;
}

/* Dropdown items */
.dropdown-menu li a {
  display: block; /* override nav a */
  width: 100%;
  padding: 10px 15px;
  box-sizing: border-box;
}

/* Hover effect */
.dropdown-menu li a:hover {
  background-color: #f2f2f2;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-menu {
  display: block;
}
/* sponsor section */
.partners {
  background: #ffffff;
  padding: 90px 20px;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 72px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  z-index: 999;
  display: flex;
  align-items: center;
}

.main-nav-bar {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0 80px; /* matches the screenshot spacing */
  list-style: none;

  display: flex;
  align-items: center;
  gap: 44px; /* spacing between the middle links */
}

/* Logo item (first li) */
.main-nav-bar li:first-child {
  height: 100%;
  display: flex;
  align-items: center;
  margin: 0;
}

/* Center the middle nav items (items 2–4) */
.main-nav-bar li:nth-child(2) {
  margin-left: auto;
}
.main-nav-bar li:nth-child(5) {
  margin-right: auto;
}

/* Link style */
nav a {
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0;
  text-decoration: none;
  color: #2d2d2d;
  font-weight: 500;
  font-size: 18px;
}

/* Hover */
nav a:hover {
  color: #111;
}

/* Active/current page (add class="active" on the current link) */
nav a.active {
  color: #f28c28; /* orange like the screenshot */
}

.first-button {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  border: 1px solid #d8dee9;
  color: white;
  text-decoration: none;
  font-weight: 600;
  background-color: #007b7b;
  min-width: 180px;
  max-width: fit-content;
  margin-bottom: 20px;
}

.secondary-button {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  border: 1px solid #d8dee9;
  color: #0b1322;
  text-decoration: none;
  font-weight: 600;
  background: #ffffff;
  min-width: 180px;
  max-width: fit-content;
  margin-bottom: 20px;
}

/* Right-side button */
.register-btn-nav {
  height: 44px;
  display: flex;
  align-items: center;
  padding: 0 22px;
  border-radius: 6px;
  background-color: rgb(2, 113, 113);
  color: #fff;
  font-weight: 400;
  cursor: pointer;
  margin-left: auto; /* keep it on the far right */
}

/* If you later change register-btn to be an <a>, this keeps it white */
.register-btn-nav a {
  color: #fff;
  text-decoration: none;
}

.register-btn-nav:hover {
  filter: brightness(1.05);
}

.sidebar {
  bottom: 0;
  position: fixed; /* Fixes the sidebar to the left side of the viewport */
  width: 250px; /* Sets the width of the sidebar */
  z-index: 999; /* Ensures the sidebar is above other elements */
  background-color: rgba(
    7,
    49,
    49,
    0.391
  ); /* Sets the background color of the sidebar */
  backdrop-filter: blur(
    10px
  ); /* Applies a blur effect to the background of the sidebar */
  display: none; /* Hides the sidebar by default */
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  max-height: fit-content;
  backdrop-filter: blur;
}
/*.sidebar li:first-child {
  margin-right: auto; 
}*/

.social-icons-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 10px; /* Space between social icons */
  margin-top: 10px; /* Adds some space above the social icons */
}

/*mobile menu bar below*/
.mobile-nav-bar {
  position: fixed;
  display: none;
  height: 60px;

  justify-content: space-evenly;
  flex-direction: row;
  bottom: 0;
  background-color: rgb(255, 255, 255);
  box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.1);
  z-index: 999; /* ensures it stays above other content */
  width: 100%;
  backdrop-filter: blur(
    10px
  ); /* Applies a blur effect to the background of the navigation bar */
  list-style: none;
}

.mobile-nav-bar ul {
  width: 100%; /* Sets the width of the navigation bar to 100% */
  display: flex; /* Uses flexbox to align items in the navigation bar */
  list-style: none; /* Removes the default list style */
  align-items: center;
  text-decoration: none;
  list-style: none;
}
.mobile-nav-bar li {
  height: 50px;
  text-decoration: none;
}

.mobile-nav-bar a {
  height: 100%; /* Sets the height of the links to 100% of the navigation bar */
  text-decoration: none; /* Removes the underline from the links */
  display: flex; /* Uses flexbox to align the links */
  align-items: center; /* Centers the text vertically */
  color: black; /* Sets the text color of the links */
  text-decoration: none;
}

.mobile-nav-bar a:hover {
  color: rgb(
    69,
    69,
    69
  ); /* Changes the background color of the links on hover */
}

/*sideinnhoold styles*/

.custom-link {
  text-decoration: none; /* Fjerner understrek */
  color: inherit; /* Arver fargen fra forelderen (f.eks. svart) */
  font-weight: normal; /* Valgfritt: gjør det ikke-bold hvis ønsket */
  cursor: pointer; /* Sørger for at det fortsatt er klikkbart */
}

.custom-link:hover {
  text-decoration: underline; /* Valgfritt: legg til litt feedback ved hover */
}

.img-text-section {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: space-between;
  margin-top: 10px;
  margin-bottom: 5px;
  background-color: #ffffff;
  /*overflow: hidden;*/
}

.content {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  flex-wrap: wrap;
  margin-top: 0;

  /*padding: 50px;*/
}

/* Text side */
.text-content {
  flex: 1;
  gap: 10px;
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  justify-content: center;

  padding-left: 50px;
  padding-right: 50px;
}

.text-content h2 {
  font-size: 2.5rem;
  color: black;
  margin-bottom: 15px;
}

.text-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #333;

  padding: 10px 0;
}

/*dark section*/
/*dark section*/
.img-text-section-dark {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: space-between;
  width: 100%;
  overflow: hidden;
}

.content-dark {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  margin-top: 0;
  background-color: #004b4b; /* Optional: match site theme */
  width: 100%;
}

/* Text side */
.text-content-dark {
  flex: 1;
  padding: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: #004b4b; /* Optional: match site theme */
  min-width: 200px;
}

.text-content-dark h3 {
  margin: 0 0 12px;
  font-size: 30px;
  line-height: 1.1;
  font-weight: 700;
  color: #ffffff;
}
.feature h3 {
  margin: 0 0 12px;
  font-size: 44px;
  line-height: 1.1;
  font-weight: 700;
  color: #ffffff;
}

.text-content-dark p {
  margin: 0;
  font-size: 20px;
  line-height: 1.7;
  color: rgb(246, 246, 246);
}

.feature p {
  margin: 0;
  font-size: 20px;
  line-height: 1.7;
  color: rgb(246, 246, 246);
}
/* Small divider line under each block */
.feature::after {
  content: "";
  display: block;
  width: 110px;
  height: 4px;
  background: rgba(127, 224, 197, 0.28);
  margin-top: 22px;
}

.om-oss-button {
  display: inline-block;
  padding: 10px;
  font-size: 1.2rem;
  color: white;
  background-color: #007b7b;
  border: none;
  border-radius: 80px;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.3s ease;
}
.om-oss-button:hover {
  background-color: #005f5f;
  text-decoration: none;
  color: white;
}

/* Image side */
.image-content {
  flex: 1;
  position: relative;
  overflow: hidden;
  min-width: 250px;
  max-width: 600px;
  padding: 50px;
}

.image-content img {
  height: 100%;
  object-fit: cover;
  width: 100%;
  display: block;
  max-height: 650px;
}
.section {
  margin-top: 20px;
  position: relative;
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 50vh;
  background-color: white;

  /*margin-bottom: 30px;*/
}
.section h2 {
  text-align: center;
  color: black;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

#text-section {
  display: flex;
  padding: 50px;
  padding-top: 100px;
  background-color: #ffffffa7;
  color: #004b4b;
}

.section h3 {
  text-align: center;
}

.cards {
  position: relative;
  border-radius: 25px;
  display: flex;
  gap: 1rem;
  justify-content: space-around;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 250px;
}

.card {
  border-radius: 25px;
  background-color: #ffffff76;
  height: 100px;

  padding: 1.5rem;
  max-width: 300px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 20vh;
  min-width: 300px;
  color: #004b4b;
}

.card h3 {
  margin-bottom: 1rem;
}
.card p {
  font-size: 0.9rem;
  color: #333;
}

.card:hover {
  transform: scale(1.05);
}

.social-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bilde-container {
  position: relative; /* Needed for pseudo-element positioning */
  display: flex;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
  background-color: rgba(44, 43, 43, 0.417);
  background-blend-mode: darken;
  min-height: 10vh;
  max-height: fit-content;
  overflow: hidden;
  justify-content: center;
  align-items: center;
}
.bilde-container img {
  /*filter: blur(3px);*/
  filter: blur(1px);
  width: 100%;
  background-position: center;
  max-height: 500px;
  object-fit: cover;
}

/* Styling for knappen */
.register-btn {
  padding: 10px 20px;
  font-size: 1em;
  background-color: rgb(2, 113, 113);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
  margin-top: 10px;
  position: relative;
  display: inline-block;
  text-decoration: none;
}

.register-btn:hover {
  background-color: rgb(0, 82, 82);
  text-decoration: none;
}

.gallery {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  padding: 2rem 0;
}

.gallery img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.gallery p {
  text-align: center;
}

.img-gallery p {
  color: #333;
}
.img-gallery h3 {
  color: rgb(0, 82, 82);
}

/* Footer styles */
.footer {
  display: flex;
  flex-wrap: wrap;
  background: rgb(0, 82, 82);
  padding: 70px 0;
  font-family: system-ui;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 80px;
  align-items: start; /* make all columns align to the top */
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.footer-container > div:nth-child(2),
.footer-container > div:nth-child(3) {
  margin-top: 55px; /* adjust to move them lower */
}

.logo {
  width: 36px;
  height: 36px;
  border: 3px solid #0f3d36;
  transform: rotate(45deg);
}

.footer h3 {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  color: white;
}

.footer h4 {
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 20px;
  color: white;
}

.footer-text {
  color: rgb(232, 234, 234);
  line-height: 1.7;
  max-width: 420px;
}

.footer ul,
a {
  list-style: none;
  padding: 0;
  margin: 0;
  color: white;
  text-decoration: none;
}

.footer ul li {
  margin-bottom: 14px;
  color: rgb(232, 234, 234);
}

.socials {
  display: flex;
  gap: 14px;
  margin-top: 24px;
}

.social {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #e5e7eb;
}

/* Mobiltilpasning */
/* Tablet */
@media (max-width: 800px) {
  .footer {
    flex-direction: column;
    padding: 40px 16px;
  }
  .footer-container {
    display: grid;
    grid-template-columns: 1fr; /* stack columns */
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
  }
}

/* Phone */
@media (max-width: 900px) {
  .footer {
    width: 100%;
    flex-direction: column;
  }

  .footer-container {
    flex-direction: column;
  }

  .footer-text {
    max-width: 100%;
  }

  .footer h3 {
    font-size: 22px;
  }

  .socials {
    justify-content: flex-start;
  }
}

@media (max-width: 1200px) {
  .main-nav-bar {
    padding: 0 5px;
  }

  .logo-icon {
    height: 28px;
  }
  .logo-text {
    height: 24px;
  }
}
.little-button {
  display: inline-block;
  padding: 10px;
  font-size: 1rem;
  color: white;
  background-color: #007b7b;
  border: none;
  border-radius: 80px;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.3s ease;
  width: 150px;
  margin-bottom: 10px;
  margin-top: 10px;
}
.little-button:hover {
  background-color: #005f5f;
  text-decoration: none;
  color: white;
}

.tittel {
  font-size: 2.5rem;
  font-weight: 700;
  color: black;
  margin-left: 100px;
  max-width: 900px;
  line-height: 1.2;
  margin-bottom: 20px;
  margin-top: 30px;
}

.under-tittel {
  font-size: 2.25rem;
  font-weight: 500;
  color: rgb(30, 30, 30);
  margin-left: 100px;
  max-width: 900px;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  margin-top: 10px;
}

.bread {
  max-width: 900px;
  margin-left: 100px;
  font-size: 1.3rem;
  line-height: 1.7;
  color: #333;
}

@media (max-width: 1200px) {
  .hideOnMobile {
    display: none; /* Hides elements with the class hideOnMobile on mobile devices */
  }
  .menu-button {
    display: block; /* Displays the menu button on mobile devices */
  }
  .mobile-nav-bar {
    display: flex; /* Displays the mobile navigation bar on mobile devices */
  }
  .tittel {
    text-align: center;
    margin-left: 0;
    font-size: 2.5rem;
    margin-bottom: 20px;
    margin-top: 30px;
  }
  .under-tittel,
  .bread {
    text-align: center;
    margin-left: 0;
    margin-bottom: 20px;
    margin-top: 30px;
    padding: 20px;
  }
}

@media (max-width: 600px) {
  .sidebar {
    width: 100%; /* Sets the width of the sidebar to 100% on mobile devices */
  }

  @media (max-width: 600px) {
    .img-text-section,
    .img-text-section-dark,
    .content,
    .content-dark {
      flex-direction: column;
      width: 100%;
      max-width: 100%;
      height: auto;
    }
    .image-content,
    .text-content {
      width: 100%;
      min-width: 0;
      padding: 20px 0;
      height: auto;
    }
    .text-content-dark,
    .text-content-dark {
      padding: 40px;
    }

    .image-content {
      padding: 10px;
      margin-bottom: 40px;
    }
    .image-content img {
      width: 100%;
      max-height: 300px;
      object-fit: contain;
      display: block;
    }
    .over-img-text {
      font-size: 16px;
      padding: 20px;
    }
  }
}
