/* ==========================================================================
   STYLING TIL KANDIDATSIDE & MÆRKESAGER (ÆLDRE SAGENS UNDERSIDE)
   ========================================================================== */

/* Hovedcontainer */
.kandidat-side {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px 15px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333333;
    line-height: 1.6;
}

/* Fælles kort-stil (hvis du ikke allerede har defineret .section-card) */
.section-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    border: 1px solid #eef0f3;
}

/* Badge (fx 'Kandidat til Landsbestyrelsen') */
.badge {
    display: inline-block;
    background-color: #e8f0fe;
    color: #1a56db;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

/* Overskrifter og undertitler */
.kandidat-header h1 {
    font-size: 2rem;
    color: #1f2937;
    margin: 0 0 8px 0;
}

.undertitel {
    font-size: 1.15rem;
    color: #4b5563;
    margin-bottom: 20px;
    font-weight: 500;
}

/* Citat / Devise-boks */
.devise {
    margin: 20px 0;
    padding: 15px 20px;
    background-color: #f8fafc;
    border-left: 4px solid #1a56db;
    border-radius: 0 8px 8px 0;
}

.devise p {
    margin: 0;
    color: #1e293b;
}

.devise p strong {
    font-size: 1.05rem;
    letter-spacing: 0.5px;
}

.devise p em {
    font-size: 0.95rem;
    color: #64748b;
}

/* Fremhævet indledende tekst */
.lead {
    font-size: 1.15rem;
    font-weight: 500;
    color: #1f2937;
    line-height: 1.7;
}

/* Grid-layout til mærkesagerne */
.maerkesager-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.maerkesag-kort {
    background: #fbfcfd;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 22px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.maerkesag-kort:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

.maerkesag-kort .ikon {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.maerkesag-kort h3 {
    font-size: 1.15rem;
    color: #111827;
    margin: 0 0 10px 0;
}

.maerkesag-kort p {
    font-size: 0.95rem;
    color: #4b5563;
    margin: 0;
    line-height: 1.55;
}

/* Tidslinje / Baggrund */
.tidslinje {
    list-style: none;
    padding-left: 0;
    position: relative;
    margin-top: 15px;
}

.tidslinje li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 18px;
    font-size: 1rem;
    color: #374151;
}

.tidslinje li::before {
    content: "•";
    position: absolute;
    left: 8px;
    top: -2px;
    color: #1a56db;
    font-size: 1.6rem;
}

/* Kontakt-sektion & tilbage-knap */
.kontakt-bokse {
    background-color: #f3f4f6;
    padding: 15px 20px;
    border-radius: 8px;
    display: inline-block;
    margin: 15px 0 20px 0;
}

.kontakt-bokse p {
    margin: 6px 0;
    font-size: 1rem;
}

.tilbage-link a {
    color: #1a56db;
    text-decoration: none;
    font-weight: 600;
}

.tilbage-link a:hover {
    text-decoration: underline;
}

/* Responsiv tilpasning til mobiler */
@media (max-width: 600px) {
    .section-card {
        padding: 20px 15px;
    }
    
    .kandidat-header h1 {
        font-size: 1.6rem;
    }
    
    .maerkesager-grid {
        grid-template-columns: 1fr;
    }
}

/* Header & Centreret Top */
    .top-header {
      position: relative;
      text-align: center;
      margin-bottom: 25px;
      padding-top: 10px;
    }
    .hero-title {
      font-size: 2.2rem;
      font-weight: 800;
      letter-spacing: 2px;
      text-transform: uppercase;
      margin: 0 0 6px 0;
      color: #ffd700;
    }
    .sub-title {
      display: inline-block;
      font-size: 1.15rem;
      letter-spacing: 1px;
      color: #ffd700;
      border-bottom: 2px solid #ffd700;
      padding-bottom: 6px;
      margin: 0 auto;
    }
    .admin-btn {
      position: absolute;
      top: 5px;
      right: 10px;
      background: #111;
      color: #ffd700;
      border: 1px solid #ffd700;
      padding: 6px 14px;
      border-radius: 4px;
      text-decoration: none;
      font-size: 0.85rem;
      font-weight: bold;
      transition: all 0.2s ease-in-out;
    }
    .admin-btn:hover {
      background: #ffd700;
      color: #000;
    }

    @media (max-width: 600px) {
      .admin-btn {
        position: static;
        display: inline-block;
        margin-top: 12px;
      }
    }

/* Styling til hovedmenu */
.hovedmenu {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 2rem;
    margin-bottom: 2rem;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-container .logo {
    font-size: 1.25rem;
    font-weight: bold;
    color: #1a202c;
    text-decoration: none;
}

.menu-links {
    list-style: none; /* Fjerner prikkerne */
    margin: 0;
    padding: 0;
    display: flex; /* Viser punkterne vandret på linje */
    gap: 1.5rem;
}

.menu-links a {
    text-decoration: none;
    color: #4a5568;
    font-weight: 500;
}

.menu-links a:hover {
    color: #0066cc;
}

/* Blå bjælke til footer */
footer, .side-footer {
    background-color: #1e3a8a; /* Klassisk mørkeblå (eller brug #0056b3 / #2563eb for en lysere blå) */
    color: #ffffff;
    padding: 2.5rem 1.5rem;
    margin-top: 3rem;
    text-align: center;
}

/* Tekst og links inde i footeren */
footer p, .side-footer p {
    margin: 0.5rem 0;
    color: #e2e8f0;
    font-size: 0.95rem;
}

footer a, .side-footer a {
    color: #93c5fd; /* Lys blå kontrast til links */
    text-decoration: none;
    transition: color 0.2s ease;
}

footer a:hover, .side-footer a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Bevarer centreret bredde, hvis footeren har en container */
footer .footer-container, .side-footer .footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Footer - Fuld bredde og blå baggrund */
.site-footer {
    width: 100%;
    background-color: #1e3a8a; /* Flot mørkeblå nuance */
    color: #ffffff;
    padding: 2.5rem 1.5rem;
    margin-top: 4rem;
    box-sizing: border-box;
}

.site-footer .footer-indhold {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.site-footer p {
    margin: 0.4rem 0;
    color: #e2e8f0;
    font-size: 0.95rem;
}

.site-footer a {
    color: #93c5fd; /* Lys blå kontrastfarve til links */
    text-decoration: none;
    font-weight: 500;
}

.site-footer a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Header i fuld bredde - hvid med diskret kant */
.hovedmenu {
    width: 100%;
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 1.25rem 1.5rem;
    box-sizing: border-box;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-container .logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    text-decoration: none;
}

.menu-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.menu-links a {
    text-decoration: none;
    color: #475569;
    font-weight: 500;
    transition: color 0.2s ease;
}

.menu-links a:hover {
    color: #1e3a8a;
}

/* Nulstil body-margin så bjælken går helt ud til kanten */
body {
    margin: 0;
    padding: 0;
    background-color: #f1f5f9; /* Den lysegrå baggrund */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Blå topbjælke (Hero) */
.site-header-hero {
    background-color: #1e40af; /* Den stærke blå nuance fra forsiden */
    color: #ffffff;
    text-align: center;
    padding: 3rem 1rem 2.5rem 1rem;
    width: 100%;
    box-sizing: border-box;
}

.site-header-hero h1 {
    margin: 0;
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.site-header-hero .tagline {
    margin: 0.5rem 0 0 0;
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 400;
}

/* Hvid menulinje under den blå bjælke */
.hoved-navigation {
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    width: 100%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.nav-links {
    list-style: none;
    margin: 0 auto;
    padding: 0.85rem 1rem;
    display: flex;
    justify-content: center; /* Centrerer menupunkterne som på forsiden */
    align-items: center;
    gap: 2.2rem;
    max-width: 1200px;
}

.nav-links a {
    text-decoration: none;
    color: #1e3a8a; /* Blå tekst på menulinks */
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* Hovedindhold - luft og centrering */
.hoved-indhold {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}