/**
 * Norge.Live - Custom Styles
 * Moderne, unikt og mørkt tema
 */

:root {
    /* Fargepalett - Mørkt tema inspirert av nordlys */
    --primary: #4CAF50;
    --primary-dark: #388E3C;
    --secondary: #7E57C2;
    --dark: #121212;
    --darker: #0a0a0a;
    --light-dark: #1e1e1e;
    --text: #e0e0e0;
    --text-muted: #9e9e9e;
    --accent: #4CAF50;
    --danger: #f44336;
    --success: #4CAF50;
    --warning: #ffeb3b;
    --info: #2196f3;
    --card-bg: rgba(30, 30, 30, 0.8);
    --card-border: rgba(255, 255, 255, 0.05);
}

/* Base styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    /* padding-top: 70px; */ /* Removed as news-navbar is not fixed */
}

.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--primary);
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Buttons */
.btn {
    border-radius: 4px;
    padding: 0.7rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Navbar */
.navbar {
    background-color: var(--darker);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.5px;
}

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem; /* Juster denne for generell størrelse */
    font-weight: 700;  /* Bold - Gjelder både 'Norge' og 'Live' */
    color: #ffffff;
    display: inline-block;
    vertical-align: middle; /* Eller 'baseline' for nøyaktig tekstjustering */
    letter-spacing: 0.5px; /* Juster etter behov for 'Norge' */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1; /* For konsistent høyde */
}

.logo-dot {
    font-family: 'Outfit', sans-serif; /* Konsistent font */
    color: #3cb371; /* Grønnfarge */
    font-weight: 900; /* Tykkeste vekt for punktumet */
    font-size: 1em; /* Relativt til .logo-text. Kan justeres. */
    display: inline-block;
    vertical-align: middle; /* Matcher .logo-text */
    line-height: 1;
    margin: 0 -0.05em; /* Finjuster spacing rundt punktum */
}

.navbar-toggler {
    color: white;
    border: none;
    font-size: 1.5rem;
}

.nav-link {
    color: var(--text);
    font-weight: 500;
    padding: 0.5rem 1rem;
    margin: 0 0.2rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
    background-color: rgba(76, 175, 80, 0.1);
}

/* Hero Section */
.hero {
    padding: 6rem 0;
    background-color: var(--light-dark);
    background: linear-gradient(135deg, var(--dark) 0%, var(--light-dark) 100%);
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: white;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.cta-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.pilot-badge {
    display: inline-flex;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    background-color: rgba(76, 175, 80, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(76, 175, 80, 0.2);
}

/* Pulse animation */
.pulse {
    animation: pulse 2s infinite;
    color: var(--primary);
}

/* Sticky Navbar for News Page */
.news-navbar {
    background-color: #0a0a0a; /* Matcher norge.live var(--darker) */
    padding: 1rem 1rem; /* Matcher norge.live (1rem top/bottom, beholdt 1rem left/right for innhold) */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); /* Matcher norge.live */
    /* position: fixed; FJERNES for å rulle med siden */
    /* top: 0; FJERNES */
    /* left: 0; FJERNES */
    /* width: 100%; FJERNES (tar default bredde) eller sett til auto/container-avhengig */
    /* z-index: 1030; FJERNES */
    display: flex;
    justify-content: center; /* Midtstiller barna horisontalt */
    align-items: center;    /* Midtstiller barna vertikalt */
    gap: 20px; /* Legger til litt mellomrom mellom tittel og knapp */
    /* Vurder å legge til margin-bottom hvis navbaren nå er for tett på innholdet under */
    /* margin-bottom: 1rem; */ 
}

.news-navbar .navbar-brand-title {
    color: #ffffff;
    font-size: 1.5rem; /* Juster etter ønske */
    font-weight: bold;
    margin: 0; /* Fjerner standard margin fra h1 */
}

.news-navbar .btn-primary {
    display: inline-flex; /* For å justere spinner og tekst bedre */
    align-items: center; /* Sentrerer spinner og tekst vertikalt */
    /* Gjenbruker .btn-primary stiler, men kan justere størrelse/margin om nødvendig */
    padding: 0.5rem 1rem; /* Litt mindre knapp */
    font-size: 0.8rem; /* Litt mindre tekst */
    text-transform: none; /* Fjerner uppercase for en litt mykere stil på denne knappen */
}

.news-navbar .btn-primary .spinner-border {
    margin-right: 0.5rem; /* Legg til litt plass hvis spinner og tekst vises samtidig */
}

.news-navbar .nav-link {
    color: #e0e0e0; /* var(--text) */
    font-weight: 500;
    padding: 0.5rem 1rem; /* Fra norge.live */
    margin: 0 0.2rem; /* Fra norge.live */
    border-radius: 4px; /* Fra norge.live */
    transition: all 0.3s ease; /* Fra norge.live */
}

.news-navbar .nav-link:hover,
.news-navbar .nav-link.active {
    color: #4CAF50; /* var(--primary) */
    background-color: rgba(76, 175, 80, 0.1); /* Fra norge.live */
}

.news-navbar .navbar-toggler {
    color: white; /* Sikrer synlighet for hamburger-ikonet */
    border: none;
}

@keyframes pulse {
    0% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.5;
    }
}

.pulse-circle-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pulse-circle {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(76, 175, 80, 0.2);
    animation: pulse-ring 3s infinite;
}

.pulse-circle:nth-child(2) {
    animation-delay: 1s;
}

.pulse-circle:nth-child(3) {
    animation-delay: 2s;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.5);
        opacity: 0.8;
    }
    80%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Map Section */
.map-section {
    position: relative;
    background-color: var(--dark);
    padding: 0;
    margin: 2rem 0;
}

.map-container {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 500px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

#norge-map {
    height: 100%;
    width: 100%;
}

.map-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1000;
    background-color: rgba(18, 18, 18, 0.8);
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    max-width: 300px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.map-overlay h2 {
    margin-bottom: 5px;
    font-size: 1.8rem;
}

.map-overlay p {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.map-legend {
    margin-top: -50px;
    position: relative;
    z-index: 1000;
}

.legend-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.location-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.location-badges .badge {
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 50px;
}

.location-id {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 50px;
    margin-left: 5px;
    font-size: 0.7rem;
}

.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Live Info Section */
.live-info {
    padding: 6rem 0;
    background-color: var(--light-dark);
}

.info-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 2rem;
    height: 100%;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.info-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.info-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.info-card p {
    color: var(--text-muted);
}

/* Footer */
.footer {
    background-color: var(--darker);
    padding: 4rem 0 2rem;
    position: relative;
}

.footer-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
    margin-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 2rem;
}

.credits {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.credits a {
    color: var(--text-muted);
    text-decoration: underline;
}

.credits a:hover {
    color: var(--primary);
}

/* Om prosjektet-side stiler */
.about-hero {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--darker) 0%, var(--dark) 100%);
}

.about-section {
    padding: 5rem 0;
    background-color: var(--dark);
}

.about-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.about-card h2 {
    position: relative;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    display: inline-block;
}

.about-card h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: var(--primary);
}

.about-card p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* Feature Cards */
.feature-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.feature-icon:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary);
}

.feature-card h3 {
    margin-bottom: 1.2rem;
    font-size: 1.5rem;
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.7;
}

/* Timeline Section */
.timeline-section {
    padding: 2rem;
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: var(--primary);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    left: 0;
    margin-bottom: 60px;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item:after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    top: 15px;
    border-radius: 50%;
    background-color: var(--primary);
    z-index: 1;
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.3);
}

.timeline-item:nth-child(even):after {
    left: -10px;
}

.timeline-content {
    padding: 20px 25px;
    background-color: rgba(30, 30, 30, 0.7);
    position: relative;
    border-radius: 8px;
    border: 1px solid var(--card-border);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.timeline-content h4 {
    margin-top: 0;
    color: var(--primary);
    font-size: 1.3rem;
}

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    top: 15px;
    border-radius: 50%;
    z-index: 1;
    background-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.3);
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

/* CTA Card */
.cta-card {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1) 0%, rgba(76, 175, 80, 0.2) 100%);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.cta-card h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.cta-card p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 1rem;
}

/* Team Section */
.team-section {
    margin-top: 3rem;
}

.team-member {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.team-member-photo {
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-member-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.placeholder-photo {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--text-muted);
}

.team-member h4 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.team-member-role {
    color: var(--primary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.team-member-description {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.team-member-social {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* Footer Link */
.footer-link {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Responsive Adjustments for About Page */
@media (max-width: 992px) {
    .about-card,
    .feature-card,
    .timeline-section,
    .cta-card,
    .team-member {
        padding: 1.5rem;
    }
    
    .about-card p {
        font-size: 1rem;
    }
    
    .cta-card h3 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
        left: 0;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
    }
    
    .timeline-item:nth-child(even):after,
    .timeline-item:after {
        left: 21px;
    }
    
    .timeline-item:nth-child(even) .timeline-dot,
    .timeline-dot {
        left: 21px;
    }
}

/* Kontaktside stiler */
.contact-hero {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--darker) 0%, var(--dark) 100%);
}

.contact-section {
    padding: 5rem 0;
    background-color: var(--dark);
}

.contact-info-card,
.contact-form-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 2.5rem;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.contact-info-card h2,
.contact-form-card h2 {
    position: relative;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    display: inline-block;
}

.contact-info-card h2:after,
.contact-form-card h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary);
}

.contact-methods {
    margin-top: 2rem;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(76, 175, 80, 0.1);
    border-radius: 50%;
    margin-right: 1rem;
    font-size: 1.5rem;
    color: var(--primary);
}

.contact-details h4 {
    margin-bottom: 0.3rem;
    font-size: 1.2rem;
}

.contact-details p {
    margin-bottom: 0;
    color: var(--text-muted);
}

.contact-details a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-details a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.social-links-sm {
    display: flex;
    gap: 10px;
}

.social-link-sm {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.social-link-sm:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-3px);
}

/* Contact Form Styles */
.form-control {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    color: var(--text);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.form-control:focus {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(76, 175, 80, 0.25);
    color: var(--text);
}

.form-label {
    color: var(--text);
    font-weight: 500;
}

.form-check-input {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.form-check-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* FAQ Section */
.faq-section {
    padding: 5rem 0;
    background-color: var(--light-dark);
}

.accordion {
    --bs-accordion-bg: var(--card-bg);
    --bs-accordion-border-color: var(--card-border);
    --bs-accordion-active-bg: rgba(76, 175, 80, 0.1);
    --bs-accordion-active-color: var(--primary);
    --bs-accordion-btn-color: var(--text);
    --bs-accordion-btn-bg: var(--card-bg);
    --bs-accordion-color: var(--text-muted);
}

.accordion-item {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
}

.accordion-button {
    padding: 1.2rem 1.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: none;
    background-color: var(--card-bg);
    color: var(--text);
}

.accordion-button:not(.collapsed) {
    background-color: rgba(76, 175, 80, 0.1);
    color: var(--primary);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--primary);
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23e0e0e0'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%234CAF50'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-body {
    padding: 1.5rem;
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 1rem;
    border-top: 1px solid var(--card-border);
}

/* Alert Styles */
.alert {
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.alert-success {
    background-color: rgba(76, 175, 80, 0.2);
    border-color: rgba(76, 175, 80, 0.3);
    color: #c8e6c9;
}

.alert-danger {
    background-color: rgba(244, 67, 54, 0.2);
    border-color: rgba(244, 67, 54, 0.3);
    color: #ffcdd2;
}

/* Responsive for Contact Page */
@media (max-width: 992px) {
    .contact-info-card,
    .contact-form-card {
        padding: 1.5rem;
    }
    
    .contact-form-card {
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .contact-details h4 {
        font-size: 1.1rem;
    }
    
    .accordion-button {
        padding: 1rem 1.2rem;
        font-size: 1rem;
    }
    
    .accordion-body {
        padding: 1.2rem;
    }
}

/* Custom Leaflet Map Styling */
.leaflet-container {
    background-color: #1e272e; /* Dark water color */
}

.leaflet-control-attribution {
    background-color: rgba(30, 30, 30, 0.8) !important;
    color: var(--text-muted) !important;
    backdrop-filter: blur(10px);
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 10px;
}

.leaflet-control-attribution a {
    color: var(--text-muted) !important;
}

.leaflet-control-zoom {
    border: none !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
}

.leaflet-control-zoom a {
    background-color: var(--card-bg) !important;
    color: var(--text) !important;
    border: 1px solid var(--card-border) !important;
}

.leaflet-control-zoom a:hover {
    background-color: var(--light-dark) !important;
    color: var(--primary) !important;
}

.map-marker-pulse {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(76, 175, 80, 0.5);
    position: relative;
    box-shadow: 0 0 0 rgba(76, 175, 80, 0.4);
    animation: map-pulse 1.5s infinite;
    border: 3px solid var(--primary);
}

@keyframes map-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.6);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(76, 175, 80, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .hero {
        padding: 4rem 0;
    }
    
    .map-container {
        height: 60vh;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .map-container {
        height: 50vh;
    }
    
    .map-overlay {
        max-width: 250px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .pulse-circle-container {
        min-height: 200px;
    }
    
    .map-legend {
        margin-top: -30px;
    }
    
    .location-badges {
        flex-direction: column;
        gap: 5px;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 3rem 0;
    }
    
    .map-container {
        height: 40vh;
    }
    
    .map-overlay {
        max-width: 200px;
        padding: 10px 15px;
    }
    
    .map-overlay h2 {
        font-size: 1.5rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .info-card {
        padding: 1.5rem;
    }
}

#artikkelContainer .card {
    text-align: center;
}

/* Artikkel Fade Transitions */
.article-fade-out {
    opacity: 1;
    transition: opacity 0.3s ease-out;
}

.article-fade-out.fading-out {
    opacity: 0;
}

.article-fade-in {
    opacity: 0;
    transition: opacity 0.4s ease-in; /* Litt lengre for innfading */
}

.article-fade-in.fading-in {
    opacity: 1;
}

/* Custom Marker Tooltip Styling */
.custom-tooltip {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 6px;
    padding: 10px 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    font-size: 14px;
    max-width: 250px;
}

.custom-tooltip h4 {
    color: var(--text); /* Lighter text color for better contrast */
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 16px;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 8px;
}

.custom-tooltip-info {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.custom-tooltip-link {
    display: inline-block;
    margin-top: 10px;
    padding: 5px 10px;
    background-color: var(--primary);
    color: white;
    border-radius: 4px;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 600;
    transition: all 0.3s ease;
}

.custom-tooltip-link:hover {
    background-color: var(--primary-dark);
    color: white;
}

/* Map Legend Card Title */
.legend-card .card-title {
    color: #FFFFFF; /* Make title text and icon pure white for better contrast */
}

/* Map Legend Card Text */
.legend-card .card-text {
    color: #FFFFFF; /* Make card text and icon pure white for better contrast */
}

/* Hero Section Button Text */
.hero .btn-primary {
    color: #212529; /* Darker text for better contrast or specific style preference */
}
