:root {
    --spring-green: #a8e6cf;
    --spring-yellow: #fdf5e6;
    --leaf-green: #2d523f;
    --soft-red: #B23B30;
    --white: #ffffff;
    --dark: #333333;
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--white);
    color: var(--dark);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 25px;
}

.navbar {
    position: fixed;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-decoration: none;
    font-weight: 800;
    color: var(--soft-red);
    font-size: 1.4rem;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--leaf-green);
    font-weight: 600;
}

.nav-links a.active {
    color: var(--soft-red);
    border-bottom: 2px solid var(--soft-red);
}

.btn-nav-accent {
    background: var(--leaf-green);
    color: white !important;
    padding: 10px 24px;
    border-radius: 50px;
}
/* HAMBURGER */
.menu-toggle {
    display: none;
    font-size: 1.6rem;
    color: var(--leaf-green);
    cursor: pointer;
}
/* HERO SEKSJON */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--spring-green) 0%, var(--spring-yellow) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 60px;
}

.hero-figure {
    width: 100%;
    max-width: 900px;
    margin-bottom: 30px;
}

#main-illustration {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 30px 50px rgba(0,0,0,0.15));
    transform: scale(1.1);
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
    color: var(--leaf-green);
    margin: 20px 0;
    font-weight: 800;
}

.hero p {
    color: var(--leaf-green);
    max-width: 600px;
    font-size: 1.25rem;
    margin: 0 auto 40px;
}

.btn-vår-red {
    background: var(--soft-red);
    color: white;
    padding: 18px 45px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    margin-right: 15px;
    display: inline-block;
    transition: var(--transition);
}

.btn-vår-outline {
    border: 2px solid var(--leaf-green);
    color: var(--leaf-green);
    padding: 16px 43px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    transition: var(--transition);
}

/* OM OSS */
.section {
    padding: 100px 0;
}

.about-full-width {
    max-width: 850px;
    margin: 0 auto;
    text-align: left;
}

.about-full-width h2 {
    color: var(--leaf-green);
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-align: center;
}

.about-text-content p {
    margin-bottom: 20px;
    font-size: 1.15rem;
    color: #444;
}

.about-meta {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 2px solid var(--spring-green);
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--leaf-green);
    font-size: 1.1rem;
}

.meta-item i {
    font-size: 1.4rem;
    color: var(--soft-red);
}

/* FAQ MODUL - OPPDATERT */
.text-center { text-align: center; margin-bottom: 50px; color: var(--leaf-green); }

.subpage .section {
    min-height: 80vh;
}

.search-box input { 
    width: 100%; 
    padding: 18px; 
    border-radius: 15px; 
    border: 1px solid #ddd; 
    margin-bottom: 40px; 
    font-size: 1rem; 
}

.faq-container {
    max-width: 850px;
    margin: 0 auto;
}

.faq-item { 
    background: #fcfcfc; 
    margin-bottom: 12px; 
    border-radius: 15px; 
    padding: 0; /* Padding flyttet til header og body */
    cursor: pointer; 
    border: 1px solid #eee; 
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-header {
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.faq-header h3 {
    font-size: 1.15rem;
    color: var(--leaf-green);
    margin: 0;
}

.faq-header i {
    transition: transform 0.3s ease;
    color: var(--soft-red);
}

.faq-body { 
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0, 1, 0, 1);
    background: #fff;
}

.faq-body p {
    padding: 0 25px 25px 25px;
    color: #555;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Aktiv tilstand */
.faq-item.active {
    border-color: var(--spring-green);
    background: #fff;
}

.faq-item.active .faq-body {
    max-height: 1000px;
    transition: all 0.3s cubic-bezier(1, 0, 1, 0);
}

.faq-item.active .faq-header i {
    transform: rotate(180deg);
}

.footer { background: #f8f9fa; padding: 60px 0; text-align: center; border-top: 1px solid #eee; }

@media (max-width: 768px) {

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 70px;
        right: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 25px 0;
        display: none;
        box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    }

    .nav-links.active {
        display: flex;
    }

    .hero h1 { font-size: 2.2rem; }
    .about-meta { flex-direction: column; gap: 15px; align-items: flex-start; }
    .btn-vår-red, .btn-vår-outline { width: 100%; margin-right: 0; margin-bottom: 15px; text-align: center; }
}

/* Arrangementer Seksjon */
.events-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.events-header h1 {
    color: var(--leaf-green);
    font-size: 2rem;
    font-weight: 700;
}

.date-display {
    color: #888;
    font-weight: 600;
    text-transform: lowercase;
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.event-card {
    display: grid;
    grid-template-columns: 80px 1fr 300px;
    gap: 30px;
    padding-bottom: 40px;
    border-bottom: 1px solid #f0f0f0;
}

.event-date {
    text-align: center;
    color: var(--dark);
}

.day-name {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #666;
}

.day-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
}

.event-time {
    color: #888;
    font-size: 0.9rem;
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
}

.event-content h2 {
    color: var(--leaf-green);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.event-content p {
    color: #555;
    margin-bottom: 20px;
    max-width: 600px;
}

.event-footer {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--dark);
}

.event-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

/* Responsivitet for mobil */
@media (max-width: 768px) {
    .event-card {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .event-date {
        text-align: left;
        display: flex;
        gap: 10px;
        align-items: baseline;
    }
    .event-image {
        order: -1; /* Bildet øverst på mobil */
    }
}

/* Regler og Vedtekter Seksjon */

.rules-container h3 {
    color: var(--leaf-green);
    margin-bottom: 25px;
    font-size: 1.8rem;
}

.download-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.download-card {
    background: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 15px 25px;
    border-radius: 50px; /* Runde hjørner som i eksempelet */
    border: 1px solid #e0e0e0;
    transition: var(--transition);
}

.download-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-color: var(--spring-green);
}

.pdf-icon {
    background: var(--soft-red);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
}

.pdf-icon i {
    font-size: 0.9rem;
}

.pdf-icon span {
    font-size: 0.6rem;
    font-weight: 800;
}

.file-name {
    flex-grow: 1;
    color: var(--leaf-green);
    font-weight: 600;
    font-size: 1.1rem;
}

.download-arrow {
    color: var(--leaf-green);
    font-size: 1.2rem;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .rules-container {
        padding: 25px 15px;
    }
}

.facebook-promo-box {
    background: #f0f2f5;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 600px;
    margin: 30px auto 0;
}

.facebook-big-icon {
    font-size: 3rem;
    color: #1877F2;
    margin-bottom: 20px;
}

.btn-facebook {
    display: inline-block;
    background: #1877F2;
    color: white;
    padding: 15px 30px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    margin-top: 20px;
    transition: var(--transition);
}

.btn-facebook:hover {
    background: #166fe5;
    transform: translateY(-2px);
}

/* KONTAKT SIDE SPESIFIKK CSS */
.board-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.leader-section {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
}

.member-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 24px;
    border: 1px solid #eee;
    transition: var(--transition);
    text-align: center;
}

.member-card.highlight {
    border: 2px solid var(--spring-green);
    background: var(--spring-yellow);
    max-width: 350px;
}

.member-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.avatar-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
}

/* Fargekoder for ulike roller */
.leader-bg { background: var(--soft-red); }
.secretary-bg { background: #4a90e2; }
.member-bg { background: var(--leaf-green); }

.member-card h3 {
    font-size: 1.25rem;
    color: var(--leaf-green);
    margin-bottom: 5px;
}

.role {
    display: block;
    font-weight: 600;
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.btn-contact-small {
    display: inline-block;
    padding: 8px 20px;
    background: var(--leaf-green);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
}

@media (max-width: 600px) {
    .board-grid { grid-template-columns: 1fr; }
}
.board-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); /* Litt smalere kort for å få plass til flere i bredden */
    gap: 25px;
    margin-top: 50px;
    justify-content: center; /* Sentrerer kortene */
}
