/* css/style.css */
:root {
    --primary-color: #003366; /* Mørk blå - kan justeres */
    --secondary-color: #E84A27; /* Oransje/Rød fra logo - kan justeres */
    --accent-color: #ADD8E6; /* Lys blå - kan justeres */
    --text-color: #333333;
    --light-text-color: #FFFFFF;
    --background-color: #FFFFFF;
    --light-gray-background: #f4f4f4;
    --border-color: #DDDDDD;
    --link-color: #0056b3;
    --link-hover-color: #003366;
}

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
    overflow: hidden;
    padding: 0 20px;
    text-align: center;
}

/* Header / Navbar */
header {
    background: var(--secondary-color); /* Endret for mer kontrast til lys logo */
    color: var(--light-text-color);
    padding: 1rem 0;
    border-bottom: 3px solid var(--primary-color); /* Kant med primærfargen */
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header a {
    color: var(--light-text-color);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 16px;
}

/* In Site/css/style.css */

/* Styles for the logo container and the event logo link */
header .logo-container {
    display: flex; /* This should already exist */
    align-items: center; /* This should already exist */
}

header .event-logo { /* This targets the <a> tag around your event logo image */
    display: flex;         /* Use flexbox to easily center the image inside */
    align-items: center;   /* Vertically centers the image */
    justify-content: center; /* Horizontally centers the image */
    background-color: #ffffff; /* White background for the circle */
    width: 85px;           /* Set the width of the circle */
    height: 85px;          /* Set the height of the circle (same as width) */
    border-radius: 50%;    /* This makes the element a perfect circle */
    text-decoration: none; /* Removes underline from the link */
    /* Optional: Add a subtle shadow for a bit of depth */
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    /* Optional: Add padding if you want a guaranteed space between the logo and the circle edge */
    /* padding: 5px; */ /* If you use padding, the logo image might need to be smaller, or the circle bigger */
}

header .event-logo img { /* Adjust styling for the image itself */
    height: 70px;        /* Set the desired height of your logo image */
    width: auto;         /* Maintain the aspect ratio of your logo */
    display: block;      /* Removes any default extra space below the image */
    /* Ensure the image doesn't exceed the bounds of the circle if padding is used on .event-logo */
    /* max-width: 100%; */
    /* max-height: 100%; */
}

/* This is your existing style for a general site logo, ensure it's still separate if needed */
header .site-logo img {
    height: 50px;
    margin-right: 10px;
}

header nav ul {
    padding: 0;
    list-style: none;
    margin: 0;
}

header nav ul li {
    display: inline;
    margin-left: 20px;
}

header nav ul li a:hover {
    color: var(--accent-color); /* Beholder accent-farge for hover, kan justeres */
}

/* Hero Section (Forside) */
.hero {
    background: url('../images/hero_background.jpg') no-repeat center center/cover; /* Endre til ditt bilde */
    color: var(--light-text-color);
    height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    position: relative;
}
.hero::before { /* Overlay for bedre tekstlesbarhet */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero h1, .hero p, .hero .btn {
    position: relative; /* For å legge over ::before pseudo-elementet */
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Knapper */
.btn {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--light-text-color);
    padding: 10px 20px;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background: #c6381c; /* Mørkere variant av secondary-color */
}

.btn-secondary {
    background: var(--accent-color);
    color: var(--primary-color);
}
.btn-secondary:hover {
    background: #97c9dc; /* Mørkere variant av accent-color */
}


/* Seksjoner */
.section {
    padding: 40px 0;
}

.section-light {
    background-color: var(--light-gray-background);
}

.section h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
    color: var(--primary-color);
}

/* Footer */
footer {
    background: #FFFFFF; /* Endret til hvit bakgrunn */
    color: var(--text-color); /* Mørk tekst for lesbarhet */
    text-align: center;
    padding: 2rem 0;
    margin-top: 30px;
    border-top: 1px solid var(--border-color); /* Topp-kant for kontrast */
}

footer .organizer-logos img {
    height: 50px;
    margin: 0 10px;
}

/* Skjema Stiler (for paamelding.html) */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    box-sizing: border-box; /* For å inkludere padding og border i elementets totale bredde/høyde */
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group button[type="submit"] {
    display: block;
    width: auto; /* eller 100% hvis du vil ha den full bredde */
    margin-top: 10px;
}

/* Nyhetsseksjon (enkel grid) */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.news-item {
    background: var(--background-color);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 5px;
}

.news-item h3 {
    margin-top: 0;
    color: var(--primary-color);
}

/* Enkel responsivitet for navigasjon */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }

    header nav ul {
        text-align: center;
        margin-top: 10px;
    }

    header nav ul li {
        display: block;
        margin: 10px 0;
    }

    .hero h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1.2rem;
    }
}