/*
Theme Name: Reiseguider.no
Theme URI: https://reiseguider.no
Author: Reiseguider.no Team
Author URI: https://reiseguider.no
Description: Et spesialtilpasset WordPress-tema for nettstedet Reiseguider.no. Designet for å vise reiseguider, destinasjoner og reiserelatert innhold.
Version: 1.0.0
Requires at least: 5.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: reiseguider
Tags: reiser, destinasjoner, bootstrap, responsive
*/

.bakgrunnsbilde {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: -1;
}

.sideheader .sideheader__bakgrunn {
  background: black;
  opacity: 0.2;
  width: 100%;
  height: 60px;
  position: absolute;
  z-index: 0;
  transition: opacity .25s ease-in-out;
  -moz-transition: opacity .25s ease-in-out;
  -webkit-transition: opacity .25s ease-in-out;
}

.sideheader:hover .sideheader__bakgrunn {
  opacity: 0.8;
}

h1 {
  font-weight: 300;
  font-size: 46px;
  font-family: "Ubuntu", sans-serif;
}

h2 {
  font-weight: 300;
  font-size: 32px;
  font-family: "Ubuntu", sans-serif;
}

h3 {
  font-weight: 400;
  font-size: 24px;
  font-family: "Ubuntu", sans-serif;
}

img {
  max-width: 100%;
  height: auto;
}

body {
  background: #f0f0f0;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.6;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

@media only screen and (max-width: 767px) {
  h1 {
    font-size: 28px;
  }
  
  h2 {
    font-size: 24px;
  }
  
  h3 {
    font-size: 20px;
  }
  
  body {
    font-size: 14px;
  }
}

.wp-block-image figcaption {
  text-align: center;
  font-size: 14px;
}

.navbar-nav {
  margin-left: 20px;
  margin-bottom: 4px;
}

.navbar-expand-lg .navbar-nav .nav-link {
  color: white;
}

.navbar-expand-lg .dropdown-menu .nav-link {
  color: black;
  padding: 4px 20px;
}
.navbar-expand-lg .dropdown-menu .nav-link:hover {
  color: white;
  padding: 4px 20px;
}

.navbar-brand:hover,
.navbar-brand {
  font-size: 20px;
  padding: 0;
  margin: 0;
  text-transform: uppercase;
  text-shadow: 0px 0px 3px #000;
  color: #FFF;
  text-decoration: none;
  font-weight: 900;
}

.navbar-brand img {
  height: 45px;
  padding: 5px;
  margin-right: 10px
}

.artikkelinnhold {
  background: #FFF;
  padding: 10px 40px 40px 40px;
  border-left: 1px solid #CCC;
  border-right: 1px solid #CCC;
}

.artikkelinnhold__hovedinnhold p:first-of-type,
.artikkelinnhold__ingress {
  font-weight: 400;
  font-size: 18px;
  line-height: 1.7em;
  padding-bottom: 20px;
}

@media only screen and (max-width: 767px) {
  .artikkelinnhold {
    padding: 20px;
  }

  .artikkelinnhold__hovedinnhold p:first-of-type,
  .artikkelinnhold__ingress {
    font-weight: 400;
    font-size: 16px;
    line-height: 1.7em;
    padding-bottom: 10px;
  }
}

.artikkellenker {
  border: 1px solid #CCC;
  border-top: none;
  background: white;
}

.artikkellenker li:not(:last-child) {
  border-right: 1px solid #CCC;
}

.artikkellenker .nav-link {
  font-weight: 400;
  font-size: 22px;
  color:black;
}
.artikkellenker .nav-link.active {
  color:white;
  background: #568d03;
}

.artikkellenker .nav-link:not(.active):hover {
  background: #CCC;
  color:black;
}

@media only screen and (max-width: 767px) {
  .artikkellenker {
    padding-top: 20px;
  }
  .artikkellenker li {
    border-top: 1px solid #CCC;
  }
}

.artikkeltopp {
  position: relative;
}

.artikkeltopp__bilde {
  margin-top: 20px;
}

.artikkeltopp__undertittel {
  text-align: center;
  width: 100%;
  font-size: 20px;
  font-weight: 400;
}

.artikkeltopp__tittel {
  text-align: center;
  width: 100%;
  text-transform: uppercase;
  font-size: 36px;
  margin: 0;
  font-weight: 900;
  line-height: 1.4em;
}

@media only screen and (max-width: 767px) {
  .artikkeltopp {
    display: block;
    background: white;
    border-left: 1px solid #CCC;
    border-right: 1px solid #CCC;
  }

  .artikkeltopp__undertittel {
    margin-top: 20px;
  }
}


@media only screen and (min-width: 768px) {
  .artikkeltopp__undertittel {
    position: absolute;
    bottom: 26%;
    text-align: center;
    width: 100%;
    text-shadow: 1px 1px 1px #000;
    color: white;
    font-size: 26px;
    font-weight: 400;
  }
  
  .artikkeltopp__tittel {
    position: absolute;
    bottom: 0%;
    text-align: center;
    width: 100%;
    text-transform: uppercase;
    font-size: 65px;
    text-shadow: 2px 2px 2px #000;
    color: white;
  }
  
  .artikkeltopp:before {
    display: block;
    content: "";
    position: absolute;
    bottom: 0%;
    text-align: center;
    width: 100%;
    height: 40%;
    background: #000;
    opacity: 0.5;
  }
}

@media only screen and (min-width: 1200px) {
  .artikkeltopp__tittel {
    font-size: 95px;
  }
}

#bykart { height: 600px; }

.footer {
  padding: 20px 0;
  border-top: 1px solid #CCC;
  font-size: 16px;
  background: white;
}

.forside-landoversikt {
  margin-bottom: 30px;
}

.forsideboks,
.forsideboks:hover {
  display: block;
  text-decoration: none;
  color: #111;
  font-size: 16px;
  margin-top: 30px;
  background: white;
  border: 1px solid #CCC;
  position: relative;
}

.forsideboks__tittel {
  font-size: 26px;
  padding: 10px 20px;
  position: absolute;
  top: 0px;
  color: white;
  width: 100%;
  text-align: center;
  text-shadow: 0px 0px 12px #000000;
  font-family: "Ubuntu", sans-serif;
}


.byads__lenke {
  display: block;
  padding: 7px 5px 17px 5px;
  background: #568d03;
  border-radius: 10px;
  margin-bottom: 20px;
  color: white;
  text-decoration: none;
  position: relative;
  text-align: center;
}

@media only screen and (min-width: 768px) {
  .byads__lenke {
    padding: 10px 10px 20px 10px;
    font-size: 16px;
  }
}

.byads__lenke:hover {
  background: #70b10c;
  color: white;
  text-decoration: none;
}

.byads__info {
  font-size: 9px;
  text-transform: uppercase;
  display: inline-block;
  position: absolute;
  bottom: 5px;
  right: 10px;
}

/*
 * Kart-stiling
 */

 #minmaxkart {
  position: absolute;
  z-index: 1000;
  z-index: 100001;
  right: 0;
  top: 0;
  background: white;
  padding: 2px 4px;
  margin: 4px;
  font-size: 14px;
  font-weight: bold;
  border: 2px solid #999;
  border-radius: 4px;
  cursor: pointer;
 }

 #minmaxkart:hover {
   background: #EEE;
 }

 #bykart.fullscreen {
  position: absolute !important;
  z-index: 999;
  z-index: 100000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
 }

 .forsidetopp {
  position: relative;
 }
.forsidetopp__bilde {
  margin-top: 20px;
}

.forsidetopp__tittel {
  text-align: center;
  width: 100%;
  font-size: 36px;
  margin: 0;
  font-weight: 900;
  line-height: 1.4em;
}


@media only screen and (max-width: 767px) {
  .forsidetopp {
    display: block;
    background: white;
    border-left: 1px solid #CCC;
    border-right: 1px solid #CCC;
  }
}


@media only screen and (min-width: 768px) {  
  .forsidetopp__tittel {
    margin: 80px 0px 160px 0px;
    text-align: center;
    width: 100%;
    font-size: 51px;
    text-shadow: 0px 0px 4px #000;
    color: white;
  }
}

.forsidetopp__tekst {
  background: white;
  padding: 20px;
  padding-bottom: 10px;
  font-size: 18px;
}

.forside-undertittel {
  margin-top: 30px;
  margin-bottom: 0;
  font-size: 40px;
}

.forsideartikkel {
  margin-top: 20px;
  background: white;
  padding: 20px;
  margin-bottom: 20px;
}

.forsideartikkel a {
  color: #000000;
  text-decoration: none;
}

.forsideartikkel a:hover {
  text-decoration: underline;
}

.forsideartikkel__tittel {
  margin-top: 10px;
}

.forsideartikkel__meta {
  font-size: 12px;
}

.artikkelinnhold__meta {
  font-size: 14px;
}



.forside-landliste {
  background: white;
  padding: 20px 60px;
  margin-top: 20px;
  column-count: 3;
}

@media only screen and (max-width: 767px) {
  .forside-landliste {
    column-count: 1;
  }
}

.forside-landliste li {
  list-style-type: square;
}

.forside-landliste li a {
  color: #000;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 15px;
  font-weight: 400;
}

.forside-byliste li a:hover {
  text-decoration: underline;
}



.reisemaaltopp,
.landsidetopp {
  position: relative;
 }
 .reisemaaltopp__bilde,
.landsidetopp__bilde {
  margin-top: 20px;
}


.reisemaaltopp__tittel,
.landsidetopp__tittel {
  text-align: center;
  width: 100%;
  font-size: 36px;
  margin: 0;
  font-weight: 900;
  line-height: 1.4em;
}


@media only screen and (max-width: 767px) {
  .reisemaaltopp,
  .landsidetopp {
    display: block;
    background: white;
    border-left: 1px solid #CCC;
    border-right: 1px solid #CCC;
  }
}


@media only screen and (min-width: 768px) {  
  .reisemaaltopp__tittel,
  .landsidetopp__tittel {
    text-align: center;
    width: 100%;
    font-size: 50px;    text-shadow: 0px 0px 10px #000;
    color: white;
  }
  .reisemaaltopp__tittel,
  .landsidetopp__tittel {
    margin: 220px 0px 50px 0px;
  }
}

/* Reisemål & Landside styling */
.reisemaal-tilhoerer-land,
.landside-tilhoerer-land {
  background: #f8f9fa;
  padding: 10px 15px;
  border-left: 4px solid #568d03;
  margin-bottom: 20px;
}

.reisemaal-tilhoerer-land a,
.landside-tilhoerer-land a {
  color: #568d03;
  font-weight: bold;
}

.landside-temaer,
.landside-typer {
  display: inline-block;
  margin-right: 15px;
  margin-bottom: 15px;
  background: #f8f9fa;
  padding: 5px 10px;
  border-radius: 4px;
}

.landside-temaer a,
.landside-typer a {
  color: #568d03;
}

.landside-temaer a:hover,
.landside-typer a:hover {
  text-decoration: underline;
}

/* Temaside styling */
.temaside-tilhoerer-tema {
  background: #f0f8ff;
  padding: 10px 15px;
  border-left: 4px solid #007bff;
  margin-bottom: 20px;
}

.temaside-tilhoerer-tema a {
  color: #007bff;
  font-weight: bold;
}

.relaterte-landsider {
  margin-top: 30px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 5px;
}

.relaterte-landsider h3 {
  font-size: 20px;
  margin-bottom: 15px;
}

.relaterte-landsider ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.relaterte-landsider li {
  margin-bottom: 10px;
}

.relaterte-landsider li a {
  color: #333;
  text-decoration: none;
  padding: 5px;
  display: block;
}

.relaterte-landsider li a:hover {
  color: #007bff;
  background: #e9ecef;
}

.temaside-forside .forsideartikkel__meta {
  font-weight: bold;
}

.tilknyttede-reisemaal,
.tilknyttede-landsider {
  margin: 20px 0;
  padding: 0;
  list-style: none;
}

.tilknyttede-reisemaal li,
.tilknyttede-landsider li {
  margin-bottom: 8px;
}

.tilknyttede-reisemaal li a,
.tilknyttede-landsider li a {
  color: #333;
  text-decoration: none;
  display: block;
  padding: 8px 12px;
  background: #f8f9fa;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.tilknyttede-reisemaal li a:hover,
.tilknyttede-landsider li a:hover {
  background: #568d03;
  color: white;
}

/* Table of Contents Styling */
.page-table-of-contents {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.page-table-of-contents:before {
  content: "Innholdsfortegnelse";
  display: block;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #333;
  border-bottom: 2px solid #568d03;
  padding-bottom: 8px;
}

.bsf-table-of-contents {
  width: 100%;
}

.bsf-table-of-contents .toc-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.bsf-table-of-contents .toc-list li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 20px;
}

.bsf-table-of-contents .toc-list li:before {
  content: "→";
  position: absolute;
  left: 0;
  color: #568d03;
  font-weight: bold;
}

.bsf-table-of-contents .toc-list li a {
  color: #333;
  text-decoration: none;
  display: block;
  padding: 4px 0 4px 4px;
  transition: all 0.2s ease;
  font-size: 16px;
}

.bsf-table-of-contents .toc-list li a:hover {
  color: #568d03;
  transform: translateX(3px);
}

@media only screen and (max-width: 767px) {
  .page-table-of-contents {
    margin-top: 30px;
  }
}

/* Land Explorer Navigation */
.land-explorer-nav {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 0;
  margin-bottom: 30px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.land-explorer-header {
  background: #f8f9fa;
  border-bottom: 1px solid #e0e0e0;
  padding: 15px 20px;
  border-radius: 8px 8px 0 0;
  margin-bottom: 0;
}

.land-explorer-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

/* Reisemål Navigation Box */
.reisemaal-nav {
  margin-top: 20px;
}

.land-explorer-menu {
  padding: 0;
}

.land-section,
.land-main-section {
  border-bottom: 1px solid #f0f0f0;
}

.land-section:last-child,
.land-main-section:last-child {
  border-bottom: none;
}

.section-link,
.main-section-link {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  color: #333;
  text-decoration: none;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.section-link:hover,
.main-section-link:hover {
  background-color: #f8f9fa;
  color: #007bff;
  text-decoration: none;
  border-left-color: #007bff;
}

.land-section.active .section-link,
.land-main-section.active .main-section-link {
  background-color: #e3f2fd;
  color: #0056b3;
  border-left-color: #007bff;
  font-weight: 500;
}

.bullet {
  color: #007bff;
  font-size: 16px;
  margin-right: 10px;
  font-weight: bold;
}

.section-subsections {
  background: #f8f9fa;
  padding: 8px 15px 8px 35px;
  border-top: 1px solid #e9ecef;
}

.section-subsections .bsf-table-of-contents {
  margin: 0;
}

.section-subsections .bsf-table-of-contents .toc-list {
  margin: 0;
  padding: 0;
}

.section-subsections .bsf-table-of-contents .toc-list li {
  margin: 0 0 4px 0;
  padding: 0;
  padding-left: 12px;
}

.section-subsections .bsf-table-of-contents .toc-list li:before {
  content: "◦";
  position: absolute;
  left: 0;
  color: #999;
  font-weight: normal;
}

.section-subsections .bsf-table-of-contents .toc-list li a {
  color: #666;
  font-size: 13px;
  padding: 2px 0;
  position: relative;
  display: block;
  transition: all 0.2s ease;
}

.section-subsections .bsf-table-of-contents .toc-list li a:hover {
  color: #007bff;
  transform: none;
}

/* Sticky Back to Menu Link */
.sticky-back-to-menu {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  transform: translateY(10px);
}

.sticky-back-to-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sticky-menu-link {
  display: flex;
  align-items: center;
  background: #007bff;
  color: white;
  padding: 10px 15px;
  border-radius: 25px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.sticky-menu-link:hover {
  background: #0056b3;
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 123, 255, 0.4);
}

.sticky-menu-icon {
  margin-right: 8px;
  font-size: 16px;
  font-weight: bold;
}

@media only screen and (max-width: 767px) {
  .land-explorer-nav {
    margin-bottom: 20px;
  }
  
  .reisemaal-nav {
    margin-top: 15px;
  }
  
  .land-explorer-header {
    padding: 12px 15px;
  }
  
  .section-link,
  .main-section-link {
    padding: 10px 15px;
  }
  
  .section-subsections {
    padding: 12px 15px 12px 40px;
  }
  
  /* Sticky back to menu adjustments for mobile */
  .sticky-back-to-menu {
    top: 15px;
    right: 15px;
  }
  
  .sticky-menu-link {
    padding: 8px 12px;
    font-size: 13px;
    border-radius: 20px;
  }
  
  .sticky-menu-icon {
    margin-right: 6px;
    font-size: 14px;
  }
}

/* Additional responsive adjustments for very small screens */
@media only screen and (max-width: 480px) {
  .sticky-back-to-menu {
    top: 10px;
    right: 10px;
  }
  
  .sticky-menu-link {
    padding: 6px 10px;
    font-size: 12px;
  }
}

/* ==========================================
   Breadcrumb Navigation Styles
   ========================================== */

.breadcrumbs {
  font-size: 12px;
  margin-bottom: 10px;
  padding: 4px 0;
  color: #666;
}

.breadcrumbs a {
  color: #007bff;
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs .separator {
  margin: 0 8px;
  color: #999;
}

/* Typography enhancements */
.navbar-nav,
.navbar-brand,
.nav-link,
.dropdown-item,
.menu-item,
.sticky-menu-link,
.breadcrumbs {
  font-family: "Ubuntu", sans-serif;
}

/* Improve paragraph readability */
p, 
.card-text,
.artikkelinnhold p,
article p,
div p {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.7;
  font-weight: 300;
}


/* Ensure specific text elements use Inter for better readability */
.forsideartikkel__meta,
.artikkelinnhold__meta,
time,
small,
.description {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Author and date information styling */
.post-meta-info {
  background: #f8f9fa;
  padding: 5px 20px;
  border-left: 4px solid #CCC;
  border-right: 1px solid #CCC;
}

.post-author-date {
  margin: 0;
  font-size: 10px;
  color: #666;
  font-family: "Inter", sans-serif;
  font-weight: 400;
}

.post-author-date strong {
  color: #333;
  font-weight: 600;
}

@media only screen and (max-width: 767px) {
  .post-meta-info {
    padding: 10px 15px;
    margin: 15px 0;
  }
  
  .post-author-date {
    font-size: 13px;
  }
}