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


:root {
    --bg: #f0ece2;
    --card-white: #ffffff;
    --dark-blue: #3a3828;
    --primary-cyan: #c4612a;
    --primary-hover: #a8521f;
    --text-dark: #2a2818;
    --text-muted: #5a5848;
    --border-light: #dbd6ca;
    --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: var(--bg);
  color: var(--text-dark);
  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: var(--dark-blue);
}

/* Navbar Background */
.bg-steel {
  background-color: var(--dark-blue);
}

/* 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: rgba(255, 255, 255, 0.75);
  border-bottom: 2px solid var(--primary-cyan);
}

.site-header .navbar-nav .nav-link.active {
  font-weight: bold;
  color: #ffffff;
  border-bottom: 2px solid var(--primary-cyan);
}

/* 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: var(--primary-cyan);
  border: 1px solid var(--primary-cyan);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(196, 97, 42, 0.25);
}

.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: var(--dark-blue);
  border: none;
  border-radius: 5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  width: auto;
  min-width: unset;
}

/* 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: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

/* 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: var(--primary-cyan) !important;
}

/* 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 */
}

/* ── Footer ──────────────────────────────────────────────── */

.site-footer {
    background: var(--bg);
    border-top: 1px solid var(--border-light);
    padding: 48px 0 24px;
}

.site-footer .container {
    max-width: 1100px;
}

.site-footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border-light);
}

.site-footer-brand {
    display: block;
    font-size: 1.3rem;
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 10px;
}

.site-footer-col > p {
    font-size: 0.88rem;
    line-height: 1.65;
    margin: 0;
    color: var(--text-muted);
}

.site-footer-col h3 {
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin: 0 0 12px;
}

.site-footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.site-footer-col ul li a,
.site-footer-col p a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s;
}

.site-footer-col ul li a:hover,
.site-footer-col p a:hover {
    color: var(--primary-cyan);
}

.site-footer-bottom {
    padding-top: 18px;
    text-align: center;
}

.site-footer-bottom p {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 0;
}

/* Mobile Adjustments */
@media (max-width: 767px) {
  body {
    margin-top: 5.5rem; /* Reduced from 8rem due to more compact navbar */
  }
  
  .site-footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .site-footer-inner > :first-child {
    grid-column: 1 / -1;
  }

  /* 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 */
  }
}
