/* Base styles and variables */
:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --bg: #ffffff;
    --bg-alt: #eff6ff;
    --border: #e5e7eb;
    --footer-bg: #111827;
    --footer-border: #374151;
    --footer-text: #9ca3af;
    --transition: all 0.3s ease;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --radius: 1rem;
    --container: 64rem;
    --section-padding: 1rem 1rem;
}

/* Reset and base styles */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 4rem;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    color: var(--text-primary);
    overflow-x: hidden;
}

/* Shared layout classes */
.container {
    width: min(var(--container), 100% - 2rem);
    margin-inline: auto;
}

.section {
    padding: var(--section-padding);
    position: relative;
    overflow: hidden;
}

.section-title {
    text-align: center;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    margin-bottom: 1rem;
    margin-top: -0.5rem;
}

.section-text {
    color: var(--text-secondary);
    max-width: 48rem;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
    line-height: 1.7;
  
}
.section-text p {
    margin-bottom: 0.7rem; /* Øk avstanden mellom avsnittene */
    
}

.hero-text p {
    font-size: 1.25rem; /* Juster denne verdien etter behov */
    line-height: 1.6; /* Juster linjeavstanden for lesbarhet */
}


/* Buttons and interactive elements */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-white {
    background: var(--bg);
    color: var(--primary);
}

.btn-white:hover {
    background: var(--bg-alt);
}

/* Navigasjonsbar */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
    height: 6rem;
}

/* Bakgrunnsbilde */
.nav-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6rem;
    object-fit: cover;
    opacity: 0.1;
    z-index: -1;
    pointer-events: none;
}

/* Container for nav-innhold */
.nav-container {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding-inline: 1.5rem;
    max-width: var(--container);
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
}

.logo-letter {
    color: var(--primary);
    font-size: 1.5rem;
}

.logo-text {
    margin-left: 0.5rem;
}

.logo-img {
    max-height: 70px; /* Juster høyden etter behov */
    width: auto; /* Bevar bildeproportjoner */
    display: block; /* Sørg for riktig plassering */
}

.icon {
    width: 24px;
    height: 24px;
    color: #333; /* Endre farge */
}

/* Navigation links */
.nav-links {
    display: none;
    gap: 2rem;
}

.link-hover {
    position: relative;
}

.link-hover::after {
    content: '';
    position: absolute;
    inset: auto 0 0 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
    transform: translateX(-50%);
}

.link-hover:hover::after {
    width: 100%;
}

.nav-links a:not(.btn) {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: var(--transition);
}

/* Grid layout */
.grid {
    display: grid;
    gap: 1.5rem;
    max-width: var(--container);
    margin: 0 auto;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
}

/* Cards */
.card {
    background: var(--bg);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Icons */
.icon-container {
    width: 3.5rem;
    height: 3.5rem;
    background: var(--bg-alt);
    border-radius: calc(var(--radius) * 0.75);
    display: grid;
    place-items: center;
    color: var(--primary);
    transition: var(--transition);
    margin-bottom: 1rem;
}

.card:hover .icon-container {
    transform: scale(1.1);
    background: var(--primary);
    color: var(--bg);
}

.icon {
    width: 1.75rem;
    height: 1.75rem;
}

/* Hero section */
.hero {
    padding-top: 8rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.75rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero h1 span {
    color: var(--primary);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    margin-top: 1.0rem
}

.hero-disclaimer {
    max-width: 64rem;
    margin: 2rem auto 0;
    padding: 2rem;
    background: rgb(255, 166, 57);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    text-align: center;
    color: rgb(0, 0, 0); /* Sett ønsket tekstfarge her */
    font-size: 1.30rem;
    font-weight: bold;
    line-height: 1.6;
    margin-bottom: 3rem;
}


.hero-disclaimer p {
    margin-bottom: 1rem;
}

.hero-disclaimer p:last-child {
    margin-bottom: 0;
}


/* CTA section */
.cta-section {
    background: var(--primary);
    color: var(--bg);
    text-align: center;
    margin-top: 40px; /* Flytt hele seksjonen ned */
    .cta-section {
    margin-top: 20px; /* Flytt hele seksjonen ned */
}


    
    
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1));
    pointer-events: none;
}

.cta-section .section-text {
    color: var(--bg);
    opacity: 0.9;
    margin-top: 20px; /* Legg til avstand her */
}


/* Footer */
.footer {
    background: var(--footer-bg);
    color: var(--bg);
    padding: 2rem 1rem; /* Reduser høyden ved å minske padding */
    margin-top: 20px;
    width: 100%; /* Sørg for at footeren fyller hele bredden */
    box-sizing: border-box; /* Inkluder padding i bredden */
}

.footer .container {
    max-width: 1200px; /* Begrens innholdet til en maks bredde */
    margin: 0 auto; /* Sentraliser innholdet */
    display: flex; /* Bruk flexbox for bedre layout */
    flex-wrap: wrap; /* Sørg for at innholdet tilpasser seg små skjermer */
    justify-content: space-between; /* Fordel elementene jevnt */
}

.footer h3 {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem; /* Reduser margin for mindre høyde */
}

.footer h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -0.5rem;
    width: 2rem;
    height: 2px;
    background: var(--primary);
}

.footer a {
    color: var(--footer-text);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem; /* Reduser margin for mindre høyde */
    transition: var(--transition);
}

.footer a:hover {
    color: var(--bg);
    transform: translateX(4px);
}

.footer p {
    color: var(--footer-text);
    margin-bottom: 0.5rem; /* Reduser margin for mindre høyde */
    line-height: 1.5; /* Sørg for god lesbarhet */
}

.footer .footer-links {
    display: flex; /* Plasser kontakt- og følg oss-seksjoner ved siden av hverandre */
    flex-wrap: wrap; /* Bryt linjen på små skjermer */
    gap: 2rem; /* Avstand mellom seksjonene */
}

.footer-bottom {
    border-top: 1px solid var(--footer-border);
    margin-top: 2rem;
    padding-top: 1rem;
    text-align: center; /* Sentrer teksten horisontalt */
    color: var(--footer-text);
    font-size: 0.875rem;
    line-height: 1.5;
    display: block; /* Sørg for at elementet oppfører seg som en blokk */
}

.footer-logo {
    max-width: 200px; /* Sett maksimal bredde */
    height: auto; /* Behold proporsjonene */
    display: block; /* Sørg for riktig plassering */
    margin-bottom: 1rem; /* Gi litt avstand til teksten under */
}


/* Responsiv design */
@media (max-width: 768px) {
    .footer .container {
        flex-direction: column; /* Stabler innhold på små skjermer */
        align-items: center;
    }
    .footer .footer-links {
        flex-direction: column; /* Gjør lenkene vertikale på små skjermer */
        text-align: center;
    }
}

/* Mobile menu */
.mobile-menu-button {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text-primary);
    transition: var(--transition);
}

.mobile-menu-button:hover {
    color: var(--primary);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 4rem;
    inset-inline: 0;
    background: var(--bg);
    padding: 1rem;
    z-index: 99;
    border-bottom: 1px solid var(--border);
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
}

.mobile-menu.active {
    display: block;
    transform: translateY(0);
}

.mobile-menu a:not(.btn) {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.mobile-menu a:not(.btn):hover {
    background: var(--bg-alt);
    color: var(--primary);
    border-radius: 0.5rem;
}

/* Media Queries */
@media (min-width: 768px) {
    .mobile-menu-button {
        display: none;
    }

    .nav-links {
        display: flex;
        align-items: center;
    }

    .footer .grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 767px) {
    .hero {
        padding-top: 6rem;
    }

    .card {
        padding: 1.5rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* Print styles */
@media print {
    .nav, .mobile-menu-button, .mobile-menu, 
    .btn, .cta-section {
        display: none !important;
    }

    .section {
        padding: 1rem 0;
    }

    .card {
        break-inside: avoid;
    }
}
/* Power section */
.power-section {
    background: var(--bg-alt);
    padding: 4rem 0;
}

.power-blocks {
    display: grid;
    gap: 2rem;
    margin: 3rem 0;
    grid-template-columns: 1fr;
}

.power-block {
    background: var(--bg);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.power-block h3 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.power-block p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.power-block p:last-child {
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .power-blocks {
        grid-template-columns: 1fr 1fr;
    }
}

/* Election table styles */
.table-container {
    overflow-x: auto;
    margin: 2rem 0;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1rem;
}

.election-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.election-table th,
.election-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.election-table th {
    font-weight: 600;
    background-color: var(--bg-alt);
}

.election-table td:nth-child(2),
.election-table td:nth-child(3),
.election-table td:nth-child(4),
.election-table th:nth-child(2),
.election-table th:nth-child(3),
.election-table th:nth-child(4) {
    text-align: right;
}

.table-caption {
    text-align: center;
    color: var(--text-secondary);
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* Power section */
.power-section {
    background: var(--bg-alt);
    padding: 4rem 0;
    
}

.power-blocks {
    display: grid;
    gap: 2rem;
    margin: 3rem 0;
    grid-template-columns: 1fr;
}

.power-block {
    background: var(--bg);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.power-block h3 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.power-block p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.power-block p:last-child {
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .power-blocks {
        grid-template-columns: 1fr 1fr;
    }
}

/* CTA section */