@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Pacifico&display=swap');


:root {
    --bg-soft-gray: #f0f2f5;
    --card-white: #ffffff;
    --dark-blue: #1b4965;
    --primary-cyan: #54b3d6;
    --text-dark: #333;
    --text-muted: #6c757d;
    --border-light: #e9ecef;
    --shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-card: 0 6px 12px rgba(0, 0, 0, 0.08);
}

/* Body and Overall Theme */
body {
  background: #f0f9ff; /* Light cyan-blue for freshness */
  color: #333333;
  margin-top: 5rem;
  font-family: 'Lato', sans-serif; /* Friendly, modern font */
}

.hidden{
  display: none;
}

/* Common icon settings - apply to icons that need primary cyan color */
.common-icon-settings {
  color: var(--primary-cyan) !important;
}

.navbar i,
.site-header i {
  color: inherit !important;
}

h1, h2, h3, h4, h5, h6 {
  color: #005f73; /* Deep teal for a professional yet lively feel */
}

/* Navbar Background */
.bg-steel {
  background-color: #5cb9e5; /* Brightened cyan */
}

/* Navbar Links */
.site-header .navbar-nav .nav-link {
  color: #ffffff; /* White for contrast */
  background: transparent; /* Sleek look */
  padding: 5px 10px;
  border-radius: 0;
  transition: color 0.3s, border-bottom 0.3s;
  border-bottom: 2px solid transparent;
}

.site-header .navbar-nav .nav-link:hover {
  color: #add8e6; /* Light blue for hover */
  border-bottom: 2px solid #e4cd4a;
}

.site-header .navbar-nav .nav-link.active {
  font-weight: bold;
  color:  #e4cd4a; /* Brighter cyan-blue for active */
  border-bottom: 2px solid #e4cd4a;
}

/* Buttons and Interactions */
button, .btn {
  font-size: 1rem;
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-primary {
  background-color: #54b3d6;
  border: 1px solid #54b3d6;
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #3a8ca1;
  border-color: #3a8ca1;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(84, 179, 214, 0.2);
}

.btn-success {
  background-color: #28a745;
  border: 1px solid #28a745;
  color: white;
}

.btn-success:hover {
  background-color: #218838;
  border-color: #1e7e34;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(40, 167, 69, 0.2);
}

.btn-danger {
  background-color: #dc3545;
  border: 1px solid #dc3545;
  color: white;
}

.btn-danger:hover {
  background-color: #c82333;
  border-color: #bd2130;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(220, 53, 69, 0.2);
}

button:hover, .btn:hover {
  transform: translateY(-1px);
}

/* Content Section */
.content-section {
  background: #ffffff;
  padding: 15px 25px;
  border: 1px solid #d3edf8; /* Subtle light-blue border */
  border-radius: 5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow */
  margin-bottom: 25px;
}

/* Article Titles */
.article-title {
  color: #007ea7; /* Medium blue */
  font-weight: bold;
}

a.article-title:hover {
  color: #005f73; /* Deep teal */
  text-decoration: underline;
}

/* Account Images */
.account-img {
  height: 130px;
  width: 130px;
  margin-right: 20px;
  margin-bottom: 16px;
  border-radius: 50%; /* Circle images */
  border: 3px solid #54b3d6; /* Bright cyan border */
}

/* Metadata */
.article-metadata a:hover {
  color: #007ea7; /* Medium blue */
  text-decoration: none;
}

/* Navbar Brand */
.navbar-brand {
  font-size: 1.5rem;
  color: #ffffff; /* Brighter cyan-blue */
  transition: transform 0.3s;
}

.navbar-brand:hover {
  transform: scale(1.1);
}

/* SVG Icon Colors */
.article-svg {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  fill: #007ea7; /* Medium blue */
}

/* General Styling */
a, .nav-link {
  font-family: 'Lato', sans-serif; /* Friendly, legible font */
}

/* Dropdown menu styling */
.navbar .dropdown-menu {
  background-color: #54b3d6; /* Matcher navbarens baggrund */
  border: none;
  border-radius: 5px; /* Afrundede hjørner */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Let skygge */
  width: auto; /* Matcher bredden af "Indstillinger"-knappen */
  min-width: unset; /* Fjerner fast bredde */
}

/* End-aligned dropdowns (Bootstrap 5) */
.navbar .dropdown-menu-end {
  right: 0;
  left: auto;
}

/* Dropdown items styling */
.navbar .dropdown-menu .dropdown-item {
  color: white; /* Hvid tekst for bedre kontrast */
  padding: 10px 15px;
  transition: background-color 0.3s, color 0.3s;
  display: flex; /* Gør, at ikon og tekst aligner pænt */
  align-items: center; /* Centrerer ikonet og teksten */
  gap: 10px; /* Laver en passende afstand mellem ikon og tekst */
}

/* Hover-effekt */
.navbar .dropdown-menu .dropdown-item:hover {
  background-color: #3a8ca1; /* Let mørkere cyan */
  color: #e4cd4a; /* Samme hover-farve som links */
}

/* Justering af dropdown-toggle for bedre klikområde */
.navbar .dropdown-toggle {
  padding: 5px 15px; /* Matcher "Indstillinger"-knappens padding */
  border-radius: 5px;
  display: flex;
  align-items: center;
  gap: 10px; /* Samme spacing som i dropdown-menuen */
}

.navbar .dropdown-toggle:hover {
  background-color: rgba(255, 255, 255, 0.2); /* Let gennemsigtig hover-effekt */
}

/* Language selector dropdown */
#languageDropdown + .dropdown-menu .dropdown-item {
  padding: 0; /* Remove padding from the form wrapper */
}

#languageDropdown + .dropdown-menu .btn-link,
#languageDropdown + .dropdown-menu .btn-link:hover,
#languageDropdown + .dropdown-menu .btn-link:focus {
  color: white !important; /* Force white text */
  text-decoration: none !important; /* Remove underline */
  box-shadow: none;
}

#languageDropdown + .dropdown-menu .btn-link:hover {
  background-color: #3a8ca1;
}

#languageDropdown + .dropdown-menu .font-weight-bold,
#languageDropdown + .dropdown-menu .fw-bold {
  font-weight: bold !important;
  color: #e4cd4a !important; /* Highlight active language */
}

/* Restore clearer hr visibility similar to Bootstrap 4 */
hr {
  margin: 1rem 0;
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  opacity: 1; /* override BS5 default opacity */
}

/* Brand Text Integration */
.brand-text {
  font-size: 2.2rem;
  line-height: 1;
  color: #ffffff;
  letter-spacing: -0.5px;
  position: relative;
  top: 0px; /* Moved down to align with the bottom of the K logo */
}

/* Mobile Adjustments */
@media (max-width: 767px) {
  body {
    margin-top: 5.5rem; /* Reduced from 8rem due to more compact navbar */
  }
  
  /* Compact navbar on mobile */
  .navbar {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }
  
  /* Smaller logo on mobile */
  .navbar-brand img {
    height: 2.2rem !important;
  }
  
  /* Smaller brand text on mobile */
  .brand-text {
    font-size: 1.6rem !important;
  }
  
  /* Icon-only navigation on mobile - hide text labels */
  .navbar-nav.d-flex.flex-row .nav-link {
    padding: 0.4rem 0.5rem !important;
    font-size: 1.1rem;
  }
  
  /* Hide text in always-visible nav links on mobile, keep icons */
  .navbar-nav.d-flex.flex-row .nav-link i {
    margin-right: 0 !important;
  }
  
  /* Hide the text content after icons in mobile navbar */
  .navbar-nav.d-flex.flex-row .nav-link {
    font-size: 0; /* Hide text */
  }
  
  .navbar-nav.d-flex.flex-row .nav-link i {
    font-size: 1.2rem; /* Show icon at normal size */
  }
}
