/* ============================================================
   SHARED STYLES — Bærum Lungeklinikk
   Alle sider laster denne filen. Sidespesifikk CSS er i egne filer.
   ============================================================ */

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  background-color: #f7f7f7;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6, strong {
  font-weight: bold;
}

img {
  max-width: 100%;
  height: auto;
}

/* ---- TOPNAV ---- */

.topnav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #ffffff;
  height: 140px;
  padding-right: 50px;
  box-sizing: border-box;
}

.topnav a {
  color: #3c3c3c;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 20px;
  font-weight: 300;
  margin: 20px;
  transition: all 0.3s ease;
  border-radius: 5px;
}

.nav-links {
  margin-left: auto;
}

.topnav a:hover {
  background-color: #ddd;
  color: black;
}

.topnav a.active {
  background-color: rgb(76, 113, 112);
  color: white;
  border-radius: 10px;
}

/* ---- LOGO ---- */

.logo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 10px 0 10px 50px;
  object-fit: cover;
}

/* ---- DROPDOWN (mobilmeny) ---- */

.dropdown {
  position: relative;
}

.dropdown button {
  width: 100px;
  text-align: center;
  padding: 14px 16px;
  font-size: 20px;
  font-weight: 200;
  margin: 20px;
  background-color: #ffffff;
  color: #000000;
  border-radius: 5px;
  border: 1px solid rgb(208, 208, 208);
  cursor: pointer;
  letter-spacing: 0.5px;
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  background-color: #f9f9f9;
  min-width: 210px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 100;
  border-radius: 5px;
}

.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

.dropdown-content a:hover {
  background-color: #ddd;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* ---- FOOTER ---- */

footer {
  background-color: rgb(76, 113, 112);
  padding: 40px 50px;
  margin-top: auto;
  color: white;
}

footer h3 {
  font-weight: bold;
  margin-top: 0;
}

.email-link {
  color: white;
  text-decoration: none;
}

.email-link:hover {
  text-decoration: underline;
}

/* ---- RESPONSIVE ---- */

@media screen and (max-width: 740px) {
  .nav-links {
    display: none;
  }

  .topnav {
    padding-right: 0;
  }

  .logo {
    margin-left: 15px;
  }
}

/* Gyldig syntaks — erstatter den ødelagte "not"-varianten i gamle CSS-filer */
@media screen and (min-width: 741px) {
  .dropdown {
    display: none;
  }
}

@media screen and (min-width: 740px) and (max-width: 1024px) {
  .topnav a {
    padding: 10px 12px;
    font-size: 18px;
  }

  .topnav {
    padding-right: 20px;
  }
}