html,
body {
    font-family: 'Merriweather', sans-serif !important;
    background-color: #ffffff;
    height: 100%;
}
.wrap {
    min-height: 100%;
}

.main {
    overflow: auto;
    padding-bottom: 72px;
}

.flash-message {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 1000;
    padding: 10px 20px;
    border-radius: 5px;
    color: white;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* login page */

.login-background {
    background-image: url("/static/images/login-background.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-page .breadcrumb {
    display: none;
}

/* Center the login boxes */
.login-container {
  display: flex;
  justify-content: center;
  gap: 30px; /* Space between boxes */
  padding: 40px;
}

/* Style for each login box */
.login-box {
  background: #f5f5f5; /* Light gray background */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
  width: 400px;
}

/* Styling for headings and text */
.login-box h2 {
  margin-bottom: 10px;
}

.login-box p {
  font-size: 14px;
  color: #555;
  margin-bottom: 20px;
}

/* Input fields */
.login-box input {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

/* Buttons */
.google-button, .login-button {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
}

/* Google button styling */
.google-button {
  background-color: #00395a;
  color: white;
}

/* Login button styling */
.login-button {
  background-color: #ccc;
  color: #666;
}

/* Link styling */
.login-box a {
  display: block;
  margin-top: 10px;
  text-align: center;
  color: #00395a;
  text-decoration: none;
}


/* must be same height as the footer */

#footer {
  position: relative;
  margin-top: -72px;
  /* negative value of footer height */
  height: 72px;
  clear: both;
}

/* Navbar settings */
.bg-primary {
  background-color: #ffff !important;
  border-bottom: 2px solid #e9e9e8; /* Adds a border at the bottom */
  padding: 11px 0; /* Adjusts top and bottom padding for navbar height */
  font-family: 'Open Sans', sans-serif !important;
  font-size: 14px;
}

/* Spacing inside each nav link */
.navbar .nav-link {
  color: #000000 !important; /* Text color for the nav links */
}

/* Adjust spacing between nav items */
.navbar-nav .nav-item {
  margin-right: 14px; /* Adjusts spacing between each nav item */
  padding-top: 1px;
  display: inline-block; /* Makes nav items horizontal */
}

/* Hover effect for links */
.navbar .nav-link:hover {
  color: #333333 !important; /* Slightly darker color on hover for contrast */
}

/* Active link styling */
.navbar-nav .nav-item.active .nav-link {
  color: #333333 !important; /* Slightly darker color for active link */
}

.navbar .navbar-brand h4 {
  color: #000000 !important; /* Text color for the heading "NU" */
}

#nav-logo {
  max-height: 45.5px; /* Adjust the height of the logo if necessary */
  width: auto; /* Keep the width proportional */
  margin-top: 5px; /* Adjust the top margin to move the logo down */
  margin-left: 15px;
  margin-right: 6px;
}


#logged_out {
  padding: 0 0.5em 0.6em;
}


#nav-heading {
  padding-left: 0.5em;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.wrapper {
  padding-top: 2rem;
  padding-left: 10%;
  padding-right: 10%;
}

footer {
  background-color: #002537;
  color: white;
  padding: 30px 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

footer .footer-column {
  flex: 1;
  min-width: 200px;
}

footer ul {
  list-style: none;
  padding: 0;
}

footer ul li a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer ul li a:hover {
  color: #ff9900;
}

.footer-bottom {
  background-color: #002537;
  padding: 10px 0;
  text-align: center;
  color: #ffffff;
  font-size: 14px;
}

#scrollToTopBtn {
  opacity: 0;
  visibility: hidden;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99;
  border: none;
  background-color: #0b2a3d;
  cursor: pointer;
  width: 60px;
  height: 60px;
  border-radius: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#scrollToTopBtn::before {
  content: '';
  width: 0;
  height: 0;
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-bottom: 18px solid white; 
  display: inline-block;
}

#scrollToTopBtn::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-bottom: 18px solid #0b2a3d; 
  position: absolute;
  top: 28px;
}

#scrollToTopBtn:hover {
  background-color: #193b59;
}

#scrollToTopBtn:hover::after {
  border-bottom-color: #193b59; 
}

#scrollToTopBtn.show {
  opacity: 1;
  visibility: visible;
}

.navbar-nav .nav-link:hover {
  color: rgb(0, 64, 96) !important;
  /* Change hover color to blue */
}

.nav-link {
  position: relative;
  /* Ensures the pseudo-element is positioned relative to the link */
  display: inline-block;
  text-decoration: none;
  color: black;
  /* Adjust the initial color as needed */
  padding-bottom: 5px;
  /* Some space between text and the line */
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  /* Height of the line */
  bottom: 0;
  left: 0;
  background-color: rgb(0, 64, 96);
  /* Color of the line */
  transition: width 0.3s ease-in-out;
  /* Smooth transition */
}

.nav-link:hover::after {
  width: 100%;
  /* Expand the line on hover */
}

.breadcrumb {
  font-family: "Open sans", sans-serif;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: 15%;
  margin-top: 20px;
  font-weight: normal;
  color: #002537
}

.breadcrumb a {
  color: #4a4a4a;
  /* Dempet mørk grå farge for lenker */
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  color: rgb(0, 64, 96);
  /* Dempet blåfarge ved hover */
}

.breadcrumb span {
  color: #b0b0b0;
  /* Lysere grå farge for separatoren */
  margin: 0 5px;

}

.choice-link { 
  text-decoration: none; 
  color: inherit; 
  display: block; 
}
.choice-card { 
  transition: transform .15s ease, 
  box-shadow .15s ease; 
  border-radius: 1rem; 
}
.choice-card:hover, .choice-link:focus-visible .choice-card { 
  transform: translateY(-2px); 
  box-shadow: 0 .5rem 1rem rgba(0,0,0,.15); 
}
.emoji-icon { 
  font-size: 3rem;
  line-height: 1; 
}
.btn-stretch { 
  align-self: center; 
  min-width: 60%; 
}
.brand-gradient { 
  background: linear-gradient(135deg, #eef2ff, #f8f9ff); 
  border-radius: 1.25rem; 
}

.user-dropdown:hover .dropdown-menu {
  display: block;
  margin-top: 0; /* Fix Bootstrap animation delay */
}

/* Optional: keep dropdown open if hovering it directly */
.user-dropdown .dropdown-menu {
  pointer-events: auto;
}

.loader {
    border: 10px solid #f3f3f3;
    border-top: 10px solid #3498db;
    border-radius: 50%;
    width: 200px;
    height: 200px;
    animation: spin 2s linear infinite;
    display: none;
    position: relative;
    left: 50%;
    top: 50%;
  }
  
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

#loadingSpinner {
    position: fixed;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 8000;
}

.page-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    z-index: 9999;
    display: none;
}

.event-page {
  color: #162f56;
}

.event-banner img {
  object-fit: cover;
  max-height: 400px;
}

.event-title {
  font-weight: 700;
  font-size: 2rem;
  color: #162f56;
}

.event-meta {
  font-size: 0.95rem;
}

.event-about p {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
}

.event-details ul li {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.event-sidebar .card {
  border-radius: 0.75rem;
}

.event-sidebar h5 {
  color: #162f56;
  font-weight: 600;
}

.btn-primary {
  background-color: #162f56;
  border-color: #162f56;
}

.btn-primary:hover {
  background-color: #0f2038;
  border-color: #0f2038;
}

@media (max-width: 992px) {
  .event-title {
    font-size: 1.5rem;
  }
  .event-banner img {
    max-height: 250px;
  }
}
.event-banner {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
}

.event-banner img {
  object-fit: cover;
  max-height: 400px;
  width: 100%;
  display: block;
  border-radius: 0.5rem;
}

.btn-about-company {
  background-color: rgba(255, 255, 255, 0.9);
  color: #162f56;
  font-weight: 600;
  border: none;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.btn-about-company:hover {
  background-color: #162f56;
  color: #fff;
}

@media (max-width: 768px) {
  .btn-about-company {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
    margin: 0.75rem;
  }
}

:root {
  --nu-blue: #162f56;
  --nu-light: #f4f6fa;
}

/* General layout */
.events-overview {
  background-color: #fff;
  color: #162f56;
}

/* --- Carousel --- */
.upcoming-carousel h2 {
  font-weight: 600;
  color: var(--nu-blue);
}

.carousel-inner {
  text-align: center;
}

.carousel-item {
  transition: transform 0.6s ease-in-out;
}

/* --- All Events Section --- */
.all-events {
  background-color: var(--nu-blue);
  color: white;
}

.all-events .btn-outline-light {
  border-color: #fff;
  color: #fff;
}

.all-events .btn-outline-light:hover {
  background-color: #fff;
  color: var(--nu-blue);
}

/* Event Card */
.event-card {
  border-radius: 0.75rem;
  overflow: hidden;
  border: none;
}

.event-card img {
  object-fit: cover;
  height: 180px;
  width: 100%;
}

.event-card .card-body {
  background-color: #fff;
  color: #162f56;
}

.event-card .btn-primary,
.event-card .btn-outline-primary {
  font-weight: 500;
  border-radius: 0.5rem;
}

.event-card .btn-primary {
  background-color: var(--nu-blue);
  border-color: var(--nu-blue);
}

.event-card .btn-primary:hover,
.event-card .btn-outline-primary:hover {
  background-color: #0f2038;
  color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
  .carousel-item .event-card {
    max-width: 220px;
  }
}

.btn-blue {
    background-color: #162f56;
    color: white;
    border-radius: 0.5rem;
    transition: background-color 0.3s ease;
}

.btn-blue:hover {
    background-color: #0f2038;
    color: white;
}

#companies-grid {
  background-color: #e1eaf0 ;
  padding: 1rem;
  border-radius: 0.5rem;
  margin-top: 0.2rem;
}

.background-semi-light {
    background-color: #a9c8d0;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    
}

.card-img-center {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 150px;
  overflow: hidden;
  border-radius: 0.5rem;
  padding-top: 0.2rem;
}

.text-color-black {
    color: #000000 !important;
}