/* =========================================================
   SKAK.GL - COMPLETE FROM SCRATCH
   Working perfectly - all fixes included
========================================================= */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    background: #f7f3ed;
    color: #0b1a22;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
}

img {
    max-width: 100%;
    display: block;
}

:root {
    --red: #c62828;
    --red-light: #d32f2f;
    --red-dark: #8b0000;
    --white: #ffffff;
    --black: #0b1a22;
    --beige: #f7f3ed;
    --gray-light: #f0f0f0;
    --gray: #999;
    --shadow: rgba(0,0,0,0.1);
    --shadow-lg: rgba(0,0,0,0.15);
    --border-radius: 16px;
    --border-radius-lg: 20px;
}

/* =========================================================
   HEADER & NAVIGATION
========================================================= */

.site-header {
    background: #c62828;
    color: white;
    box-shadow: none;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 16px 0 24px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    overflow: visible;
}

.site-brand a {
    font-weight: 700;
    line-height: 1.4;
    color: white;
    font-size: 17px;
    transition: opacity 0.2s;
}

.site-brand a:hover {
    opacity: 0.9;
}

.site-brand .brand-line {
    font-size: 17px;
    font-weight: 700;
    display: inline-block;
}

.main-nav {
    margin-left: 16px;
    margin-right: 8px;
    flex-shrink: 1;
    min-width: 0;
}

.main-nav ul {
    display: flex;
    gap: 14px;
    list-style: none;
    align-items: center;
    flex-wrap: nowrap;
}

.nav-item {
    position: relative;
}

.nav-item > a {
    font-weight: 600;
    padding: 8px 4px;
    color: white;
    cursor: pointer;
    position: relative;
}

.nav-item > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s ease;
}

.nav-item > a:hover::after {
    width: 100%;
}

.dropdown {
    position: absolute;
    top: calc(100% + 16px);
    left: 50%;
    transform: translateX(-50%);
    background: white;
    color: #0b1a22;
    min-width: 650px;
    padding: 20px 24px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    display: none;
    flex-direction: row;
    gap: 0;
    white-space: nowrap;
    z-index: 100;
}

.nav-item.open > .dropdown {
    display: flex;
    animation: dropdownFade 0.2s ease;
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.dropdown li {
    list-style: none;
}

.dropdown a {
    display: block;
    padding: 12px 18px;
    font-weight: 600;
    color: #0b1a22;
    white-space: nowrap;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.dropdown a:hover {
    background: #c62828;
    color: white;
    transform: translateY(-2px);
}

.header-cta a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    background: #c62828;
    color: white;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.header-cta a:hover {
    background: #e53935;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

/* =========================================================
   MAIN CONTENT
========================================================= */

main {
    flex: 1;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 32px 60px 32px;
}

.page-hero {
    background: #c62828;
    color: white;
    padding: 60px 32px;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    border: none;
}

.page-hero h1 {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
    color: white;
}

.page-hero p {
    font-size: 20px;
    opacity: 0.95;
    max-width: 700px;
    color: white;
}

/* =========================================================
   CARDS
========================================================= */

.card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.card h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 16px;
    color: #0b1a22;
}

.card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #0b1a22;
}

.card p {
    line-height: 1.8;
    color: #444;
    margin-bottom: 16px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-bottom: 48px;
}

/* =========================================================
   TABLES
========================================================= */

.members-table-wrapper {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.members-table {
    width: 100%;
    border-collapse: collapse;
}

.members-table thead {
    background: #c62828;
    color: white;
}

.members-table th {
    padding: 18px 16px;
    text-align: left;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.members-table th a {
    color: white;
    text-decoration: none;
}

.members-table th a:hover {
    text-decoration: underline;
}

.members-table td {
    padding: 18px 16px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 15px;
}

.members-table tbody tr {
    transition: background 0.2s ease;
}

.members-table tbody tr:hover {
    background: #fef8f4;
}

.members-table tr:last-child td {
    border-bottom: none;
}

.members-table a {
    color: #c62828;
    font-weight: 600;
}

.members-table a:hover {
    text-decoration: underline;
}

/* =========================================================
   SEARCH
========================================================= */

.search-section {
    background: white;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.search-bar {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.search-bar input[type="text"],
.search-bar select {
    flex: 1;
    min-width: 250px;
    padding: 14px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s ease;
    background: white;
}

.search-bar input:focus,
.search-bar select:focus {
    outline: none;
    border-color: #c62828;
    box-shadow: 0 0 0 4px rgba(198, 40, 40, 0.1);
}

.search-bar button {
    padding: 14px 32px;
    background: #c62828;
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}

.search-bar button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(198, 40, 40, 0.3);
}

/* =========================================================
   BUTTONS
========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background: #c62828;
    color: white;
    box-shadow: 0 4px 12px rgba(198, 40, 40, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(198, 40, 40, 0.35);
}

.btn-secondary {
    background: white;
    color: #0b1a22;
    border: 2px solid #0b1a22;
}

.btn-secondary:hover {
    background: #0b1a22;
    color: white;
}

.btn-outline {
    background: transparent;
    color: #c62828;
    border: 2px solid #c62828;
}

.btn-outline:hover {
    background: #c62828;
    color: white;
}

/* =========================================================
   FORMS
========================================================= */

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #0b1a22;
    font-size: 15px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #c62828;
    box-shadow: 0 0 0 4px rgba(198, 40, 40, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    background: #0b1a22;
    color: white;
    padding: 60px 32px;
    margin-top: auto;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-section h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-section p {
    margin-bottom: 12px;
    opacity: 0.9;
}

.footer-section a {
    color: white;
    text-decoration: underline;
}

.footer-section a:hover {
    opacity: 0.8;
}

.footer-bottom {
    max-width: 1400px;
    margin: 40px auto 0;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    opacity: 0.7;
}

/* =========================================================
   TABS
========================================================= */

.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    border-bottom: 3px solid #0b1a22;
}

.tab {
    padding: 14px 28px;
    background: white;
    border: 2px solid #0b1a22;
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    text-decoration: none;
    color: #0b1a22;
    font-weight: 700;
    transition: all 0.2s ease;
}

.tab:hover {
    background: #f7f3ed;
}

.tab.active {
    background: #c62828;
    color: white;
    border-color: #c62828;
}

/* =========================================================
   ALERTS
========================================================= */

.alert {
    padding: 20px 24px;
    border-radius: 16px;
    margin-bottom: 24px;
    border-left: 4px solid;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    border-color: #4caf50;
}

.alert-error {
    background: #ffebee;
    color: #c62828;
    border-color: #f44336;
}

.alert-info {
    background: #e3f2fd;
    color: #1976d2;
    border-color: #2196f3;
}

/* =========================================================
   UTILITIES
========================================================= */

.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.hidden { display: none; }

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
}

/* =========================================================
   EVENT INFO TABLE
========================================================= */

.event-info {
    width: 100%;
    margin: 24px 0;
    border-collapse: collapse;
}

.event-info th {
    text-align: left;
    vertical-align: top;
    padding: 16px 20px 16px 0;
    font-weight: 700;
    color: #0b1a22;
    width: 150px;
    min-width: 150px;
    line-height: 1.6;
}

.event-info td {
    padding: 16px 0;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    vertical-align: top;
    line-height: 1.6;
}

.event-info tr {
    border-bottom: 1px solid #e2e8f0;
}

.event-info tr:last-child {
    border-bottom: none;
}

.event-info ul {
    margin: 0;
    padding-left: 20px;
}

.event-info li {
    margin-bottom: 8px;
}

.event-info td p {
    margin: 0;
    padding: 0;
}

.event-info a {
    color: #1976d2;
    font-weight: 600;
    text-decoration: underline;
}

.event-info a:hover {
    color: #0d47a1;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 768px) {
    .header-inner {
        flex-direction: row;
        flex-wrap: wrap;
        height: auto;
        padding: 8px 12px;
        gap: 6px;
        align-items: center;
    }

    /* Logo kompakt */
    .site-brand { order: 0; flex-shrink: 0; }
    .brand-logo, .brand-logo svg { height: 36px !important; }

    /* Language switcher: lille, efter logo */
    .language-switcher {
        order: 1;
        font-size: 11px;
        margin-left: 8px;
        margin-right: 0;
    }

    /* Header actions: ikoner kun, skubbet til højre */
    .header-actions {
        order: 2;
        margin-left: auto;
        gap: 4px !important;
    }

    /* "Min Side" tekst skjules — vis kun ikon (kun /medlem/dashboard) */
    .header-actions > a[href="/medlem/dashboard.php"] {
        font-size: 0 !important;
        padding: 6px 8px !important;
    }
    .header-actions > a[href="/medlem/dashboard.php"]::before {
        content: "\1F464";
        font-size: 16px;
    }

    /* Hamburger */
    .hamburger {
        order: 3;
        display: flex !important;
        margin-left: 4px;
    }

    /* Nav: fuld bredde under header-rækken */
    .main-nav {
        order: 10;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        display: none;
    }
    .main-nav.open {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }
    
    .dropdown {
        position: static;
        transform: none;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        border-radius: 12px;
        margin-top: 8px;
        min-width: auto;
        width: 100%;
    }
    
    main {
        padding: 0 20px 40px 20px;
    }
    
    .page-hero {
        padding: 40px 20px;
    }
    
    .page-hero h1 {
        font-size: 36px;
    }
    
    .card {
        padding: 24px;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .search-bar {
        flex-direction: column;
    }
    
    .search-bar input[type="text"],
    .search-bar select {
        width: 100%;
    }
    
    .members-table {
        font-size: 14px;
    }
    
    .members-table th,
    .members-table td {
        padding: 12px 8px;
    }
    
    .footer-inner {
        grid-template-columns: 1fr;
    }
    
    .event-info th {
        width: 100px;
        min-width: 100px;
        font-size: 14px;
        padding-right: 12px;
    }
    
    .event-info td {
        font-size: 14px;
    }
}

@media print {
    .site-header,
    .site-footer,
    .btn,
    .search-bar {
        display: none;
    }
    
    main {
        padding: 0;
    }
}
/* =========================================================
   TILFØJ DISSE FIXES TIL BUNDEN AF main.css
========================================================= */

/* FIX 1: Logo større font */
.site-brand a {
    font-size: 19px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
}

.site-brand .brand-line {
    font-size: 19px !important;
    font-weight: 700 !important;
}

/* FIX 2: Dropdown skal være skjult som standard */
.dropdown {
    display: none !important;
}

.nav-item.open > .dropdown {
    display: flex !important;
}

/* FIX 3: Hero skal være fuld bredde (som header) */
.page-hero {
    background: #c62828 !important;
    color: white !important;
    padding: 60px 0 !important;
    margin: 0 !important;
    width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.page-hero h1,
.page-hero p {
    max-width: 1400px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 32px !important;
    padding-right: 32px !important;
    color: white !important;
}

.page-hero h1 {
    font-size: 48px !important;
    font-weight: 900 !important;
    margin-bottom: 16px !important;
}

.page-hero p {
    font-size: 20px !important;
    opacity: 0.95 !important;
}

/* FIX 4: Luft mellem hero og content */
main > *:first-child {
    margin-top: 60px !important;
}

/* Hvis første element ER hero, så luft efter den */
.page-hero + * {
    margin-top: 60px !important;
}

@media (max-width: 768px) {
    .site-brand a,
    .site-brand .brand-line {
        font-size: 16px !important;
    }
    
    .page-hero {
        padding: 40px 0 !important;
    }
    
    .page-hero h1,
    .page-hero p {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    
    .page-hero h1 {
        font-size: 36px !important;
    }
    
    main > *:first-child {
        margin-top: 40px !important;
    }
    
    .page-hero + * {
        margin-top: 40px !important;
    }
}
/**
 * BESTYRELSE PAGE - SPACING FIX
 * Tilføj luft mellem hver person
 */

/* Luft mellem hver rolle-section */
main h2 {
    margin-top: 48px !important;
    margin-bottom: 16px !important;
}

/* Første h2 skal ikke have top margin */
main h2:first-of-type {
    margin-top: 0 !important;
}

/* Luft mellem email og næste navn */
main p {
    margin-bottom: 32px !important;
}

/* Specifikt for bestyrelses-sektioner */
main h2 + p {
    margin-bottom: 8px !important;
}

/* Hvis der er en paragraf der indeholder "E-mail:" */
main p:has(strong:contains("E-mail")),
main p strong:contains("E-mail") {
    margin-bottom: 40px !important;
}

/* Alternativ: Luft efter alle paragrafer der starter med "E-mail:" */
main > p:last-of-type {
    margin-bottom: 0 !important;
}

/* Bedre løsning: Targeting baseret på struktur */
main > *:not(:last-child) {
    margin-bottom: 0;
}

main > h2 {
    margin-top: 48px;
    margin-bottom: 16px;
    padding-top: 24px;
    border-top: 2px solid #e0e0e0;
}

main > h2:first-child {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

main > h3 {
    margin-top: 32px;
    margin-bottom: 12px;
    font-size: 22px;
    font-weight: 700;
}

main > p {
    margin-bottom: 8px;
    line-height: 1.8;
}

/* Ekstra luft efter sidste paragraf i hver sektion */
main > p + h3,
main > p + h2 {
    margin-top: 48px !important;
}

@media (max-width: 768px) {
    main h2 {
        margin-top: 32px !important;
    }
    
    main > p + h3,
    main > p + h2 {
        margin-top: 32px !important;
    }
}
/**
 * ARRANGEMENTER PAGE - RØD I STEDET FOR BLÅ
 * Samme stil som nyheder-siden
 */

/* Fjern blå hero-baggrund, brug rød */
.page-hero,
.event-hero,
.blue-hero {
    background: #c62828 !important;
    background-color: #c62828 !important;
}

/* Hvis der er en specifik klasse for arrangementer */
.arrangementer-hero {
    background: #c62828 !important;
}

/* Sikr alle hero-sektioner er røde */
main > div:first-child {
    background: #c62828 !important;
}

/* Override alle blå farver til rød */
.bg-blue,
.blue-bg,
[style*="background: blue"],
[style*="background-color: blue"] {
    background: #c62828 !important;
    background-color: #c62828 !important;
}
/* TILFØJ TIL BUNDEN AF main.css */
.page-hero { margin-bottom: 60px !important; }
main > .page-hero + a, main > .page-hero + .archive-link, main > .page-hero ~ a:first-of-type { display: inline-block; margin-top: 0 !important; }
main > center > a { margin-top: 0 !important; }
@media (max-width: 768px) { .page-hero { margin-bottom: 40px !important; } }

/**
 * ABSOLUTE FINAL FIXES
 * 3 problemer løst
 */

/* FIX 1: Luft mellem hero og arkiv-knap - GARANTERET */
.page-hero {
    margin-bottom: 60px !important;
}

/* Reset alle margin på elementer efter hero */
.page-hero ~ * {
    margin-top: 0 !important;
}

/* Specifik fix for center-wrapped links */
main > center {
    margin-top: 0 !important;
    display: block !important;
}

main > center > a {
    margin-top: 0 !important;
}

/* FIX 2: Dropdown skal have skarpe hjørner (rektangulær) */
.dropdown {
    border-radius: 0 !important;  /* Ingen afrunding */
}

/* FIX 3: Sikr dropdown virker på alle sider */
.nav-item > a[href="#"] {
    cursor: pointer !important;
}

@media (max-width: 768px) {
    .page-hero {
        margin-bottom: 40px !important;
    }
}
/**
 * ULTIMATE CSS FIX
 * Løser ALLE problemer på én gang
 */

/* =====================================================
   FIX 1: LUFT EFTER HERO - GARANTERET
===================================================== */

.page-hero {
    margin-bottom: 60px !important;
}

/* Reset margin på alle elementer efter hero */
.page-hero ~ * {
    margin-top: 0 !important;
}

/* Specifik fix for center tags */
main > center,
main center {
    margin-top: 0 !important;
    display: block !important;
}

@media (max-width: 768px) {
    .page-hero {
        margin-bottom: 40px !important;
    }
}

/* =====================================================
   FIX 2: ALLE HJØRNER REKTANGULÆRE (INGEN AFRUNDING)
===================================================== */

/* Dropdown */
.dropdown {
    border-radius: 0 !important;
}

/* Alle cards og bokse */
.card,
.featured-card,
.feature-card,
.sidebar-card,
.news-teaser,
.members-table-wrapper,
.search-section {
    border-radius: 0 !important;
}

/* Alle knapper */
.btn,
.btn-primary,
.btn-secondary,
.btn-outline,
.header-cta a {
    border-radius: 0 !important;
}

/* Form elementer */
.form-group input,
.form-group select,
.form-group textarea,
.search-bar input,
.search-bar select,
.search-bar button {
    border-radius: 0 !important;
}

/* Stats items */
.stat-item {
    border-radius: 0 !important;
}

/* Puzzle wrapper */
.puzzle-wrapper {
    border-radius: 0 !important;
}

/* Archive link buttons */
main > center > a,
.archive-link {
    border-radius: 0 !important;
}

/* =====================================================
   FIX 3: DROPDOWN VIRKER PÅ ALLE SIDER
===================================================== */

/* Sikr dropdown ikke skjules af andre elementer */
.dropdown {
    z-index: 9999 !important;
}

.nav-item {
    position: relative !important;
}

/* =====================================================
   EKSTRA: FINE-TUNING
===================================================== */

/* Sikr ingen konflikter med eksisterende styles */
* {
    box-sizing: border-box !important;
}
/**
 * FINAL RECTANGLE FIX
 * ALLE hjørner rektangulære + Arkiv knap styling
 */

/* =====================================================
   ALLE HJØRNER REKTANGULÆRE - UNIVERSAL
===================================================== */

/* Global override - fanger ALT */
*,
*::before,
*::after {
    border-radius: 0 !important;
}

/* Specifik targeting for sikkerhed */
.card,
.featured-card,
.feature-card,
.sidebar-card,
.news-teaser,
.members-table-wrapper,
.search-section,
.dropdown,
.btn,
.btn-primary,
.btn-secondary,
.btn-outline,
.header-cta a,
.form-group input,
.form-group select,
.form-group textarea,
.search-bar input,
.search-bar select,
.search-bar button,
.stat-item,
.puzzle-wrapper,
.alert,
.modal,
.modal-content,
input,
select,
textarea,
button,
a,
div,
section,
article {
    border-radius: 0 !important;
}

/* =====================================================
   ARKIV KNAPPER - RØD KANT
===================================================== */

/* Styling for arkiv-knapper på arrangementer.php OG nyheder.php */
main > center > a,
.archive-link,
a[href*="arkiv"] {
    display: inline-block !important;
    padding: 16px 32px !important;
    border: 3px solid #c62828 !important;
    color: #c62828 !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    background: white !important;
    border-radius: 0 !important;
}

main > center > a:hover,
.archive-link:hover,
a[href*="arkiv"]:hover {
    background: #c62828 !important;
    color: white !important;
}

/* Sikr center tag ikke laver ekstra margin */
main > center {
    margin: 0 !important;
    display: block !important;
    text-align: center !important;
}

/* =====================================================
   LUFT EFTER HERO - GARANTERET
===================================================== */

.page-hero {
    margin-bottom: 60px !important;
}

.page-hero ~ * {
    margin-top: 0 !important;
}

@media (max-width: 768px) {
    .page-hero {
        margin-bottom: 40px !important;
    }
}
/**
 * 4 FIXES
 * 1. Søg knap rød (event-arkiv.php)
 * 2. Dato format fix kommer i PHP
 * 3. Posts.php kommer separat
 * 4. Sprog på forside kommer i PHP
 */

/* FIX 1: Søg knap skal være RØD ikke blå */
button[type="submit"],
.search-button,
input[type="submit"] {
    background: #c62828 !important;
    color: white !important;
}

button[type="submit"]:hover,
.search-button:hover,
input[type="submit"]:hover {
    background: #8b0000 !important;
}

/* Specifikt for søg knap i arkiv */
form button,
form input[type="submit"] {
    background: #c62828 !important;
    color: white !important;
    border: none !important;
}

form button:hover,
form input[type="submit"]:hover {
    background: #8b0000 !important;
}
/**
 * HERO FULL WIDTH FIX
 * Fjerner hvide sider på hero sektioner
 */

/* Arrangementer hero - full width */
.events-hero {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: none !important;
}

/* Nyheder hero - full width */
.page-hero {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: none !important;
}

/* Alle hero sektioner - full width */
[class*="hero"] {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: none !important;
}

/* Men indhold INDE I hero skal være centreret */
.events-hero > *,
.page-hero > * {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* Site-container skal være centreret */
.site-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Main tag skal IKKE have margin/padding der begrænser bredden */
main {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}
/**
 * FORSIDE CSS FIX
 * Fjerner konflikter fra main.css der ødelægger forsiden
 */
/* =========================================================
   NAVIGATION ALIGNMENT FIX (KNSK ▾ på samme linje)
========================================================= */

/* Ens baseline og højde på ALLE nav-links */
.main-nav ul {
    align-items: center;
}

.main-nav a {
    display: flex;
    align-items: center;
    height: 100%;
    line-height: 1;
}

/* Specifikt for dropdown-trigger (KNSK) */
.nav-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    padding-top: 0;
    padding-bottom: 0;
}

/* BONUS: flyt pilen lidt optisk op */
.nav-toggle::after {
    content: "▾";
    font-size: 0.8em;
    position: relative;
    top: 1px;
}

/* Fjern ▾ fra HTML (hvis den stadig er der) */
.nav-toggle {
    font-weight: 600;
}
/* Reset .page-hero styling der blev tilføjet til main.css */
.page-hero {
    background: #c62828 !important;
    color: white !important;
    padding: 60px 0 !important;
    margin: 0 !important;
    width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Hero content skal være centreret og have korrekt layout */
.hero-content {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 0 32px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 60px !important;
}

/* Hero text styling */
.hero-text {
    flex: 1 !important;
}

.hero-text h1 {
    font-size: 48px !important;
    font-weight: 900 !important;
    margin-bottom: 16px !important;
    color: white !important;
}

.hero-text p {
    font-size: 20px !important;
    opacity: 0.95 !important;
    color: white !important;
    max-width: none !important;
}

/* Hero logo styling */
.hero-logo {
    flex-shrink: 0 !important;
    width: 250px !important;
    height: 250px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 3px solid rgba(255, 255, 255, 0.3) !important;
    padding: 20px !important;
}

.chess-logo {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    filter: brightness(1.2) contrast(1.1) !important;
    mix-blend-mode: screen !important;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-content {
        flex-direction: column !important;
        text-align: center !important;
    }
    
    .hero-logo {
        margin: 0 auto !important;
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 40px 0 !important;
    }
    
    .hero-text h1 {
        font-size: 36px !important;
    }
    
    .hero-content {
        padding: 0 20px !important;
    }
}
/* ===== KNSK SVG LOGO ===== */
.knsk-logo-svg {
height: 96px;
width: auto;
display: block;
}
.knsk-logo-text {
font-size: 96px;
font-weight: 900;
letter-spacing: 2px;
fill: currentColor;
}
/* Match hero visuelt */
.site-header .knsk-logo-text {
letter-spacing: 1.5px;
}
/* Responsive */
@media (max-width: 768px) {
.knsk-logo-svg {
height: 64px;
}
}
/* ============================================
   TILBAGE TIL DASHBOARD KNAP
   Tilføj dette til slutningen af main.css
   ============================================ */

.back-to-dashboard {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #0b1a22 0%, #1a2f3d 100%);
    color: white !important;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 14px;
    border-radius: 8px;
    transition: all 0.2s ease;
    margin-bottom: 32px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.back-to-dashboard:hover {
    background: linear-gradient(135deg, #c62828 0%, #8b0000 100%);
    transform: translateX(-4px);
    box-shadow: 0 4px 12px rgba(198, 40, 40, 0.3);
}

/* Alternativ placering (hvis knappen skal være til højre) */
.back-to-dashboard-right {
    float: right;
    margin-bottom: 0;
}
/* =====================================================
   HEADER OVERFLOW FIX - admin knapper
===================================================== */
.header-inner {
    justify-content: flex-start !important;
    padding-left: 24px !important;
    padding-right: 12px !important;
}

.site-brand {
    flex-shrink: 0;
}

.main-nav {
    margin-left: 16px !important;
    margin-right: 4px !important;
    flex-shrink: 1;
    min-width: 0;
    overflow: visible;
}

.main-nav ul {
    gap: 12px !important;
}

.main-nav a {
    font-size: 14px !important;
    padding: 6px 2px !important;
    white-space: nowrap;
}

.header-actions {
    flex-shrink: 0;
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 4px !important;
}

/* Language switcher compact */
.language-switcher {
    flex-shrink: 0;
    font-size: 13px;
    margin-left: 12px;
    margin-right: 0;
    white-space: nowrap;
}