/* Oppdateringer (updates) — node pages. Index cards + the per-month hero
   pieces that lived inline in the PHP heads. The heavy month-page layout
   (news-section, level-switcher, stats-grid, …) stays in /januar2026.css
   and /mars2026.css, which the month views link directly. */

/* ---------- index (/updates) ---------- */

.updates-hero {
    text-align: center;
    padding: 80px 20px 30px;
}

.updates-hero .top-img2 {
    max-width: 140px;
    margin: 0 auto 15px;
}

.updates-hero .top-img2 img {
    width: 100%;
    height: auto;
}

.updates-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-default, #4a4540);
    margin: 0 0 15px;
}

.updates-hero .updates-intro {
    font-size: 1.05rem;
    color: var(--color-text-muted, #5f5238);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.7;
}

.updates-container {
    max-width: 750px;
    margin: 0 auto;
    padding: 10px 20px 60px;
}

.update-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: white;
    border-radius: 16px;
    padding: 28px 30px;
    margin-bottom: 20px;
    border: 1px solid #f0ebe3;
    text-decoration: none;
    transition: all 0.3s ease;
}

.update-card:hover {
    border-color: #fbc24b;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(251, 194, 75, 0.15);
}

.update-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #fbc24b 0%, #eea94d 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.update-info {
    flex: 1;
}

.update-date {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-default, #4a4540);
    margin: 0 0 6px;
}

.update-summary {
    font-size: 0.95rem;
    color: var(--color-text-muted, #5f5238);
    margin: 0;
    line-height: 1.6;
}

.update-arrow {
    color: #ccc;
    font-size: 1.1rem;
    flex-shrink: 0;
    align-self: center;
    transition: color 0.2s;
}

.update-card:hover .update-arrow {
    color: #fbc24b;
}

.back-to-spraki {
    text-align: center;
    padding: 30px 20px 50px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fbc24b;
    color: white;
    padding: 14px 28px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.back-btn:hover {
    background: #eea94d;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(251, 194, 75, 0.3);
    color: white;
}

@media (max-width: 768px) {
    .updates-hero {
        padding: 50px 15px 20px;
    }
    .updates-hero h1 {
        font-size: 2rem;
    }
    .updates-hero .top-img2 {
        max-width: 110px;
    }
    .updates-container {
        padding: 10px 15px 50px;
    }
    .update-card {
        padding: 20px;
        gap: 15px;
    }
    .update-icon {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }
    .update-date {
        font-size: 1.1rem;
    }
}

/* ---------- month pages (shared hero + inline-style extras) ---------- */

.mobile-only { display: none; }
.desktop-only { display: block; }

@media (max-width: 768px) {
    .mobile-only { display: block; }
    .desktop-only { display: none; }
    .top-img2 { max-width: 120px !important; }
    .page-title { font-size: 2.5rem !important; margin-top: 0.5rem; }
}

.news-hero {
    text-align: center;
    padding: 80px 20px 0;
}

.news-hero .news-intro {
    margin-bottom: 5px;
}

.level-switcher-container {
    padding-top: 5px !important;
}

.level-hint {
    margin-bottom: 25px !important;
}

@media (max-width: 768px) {
    .news-hero {
        padding: 50px 15px 0;
    }
    .level-switcher-container {
        padding: 8px 0 5px !important;
    }
    .level-hint {
        display: none;
    }
}

.news-hero .top-img2 {
    max-width: 160px;
    margin: 0 auto 15px;
}

.news-hero .top-img2 img {
    width: 100%;
    height: auto;
}

.news-hero .page-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-default, #4a4540);
    margin: 0 0 10px 0;
}

.news-intro {
    font-size: 1.15rem;
    color: var(--color-text-muted, #5f5238);
    margin: 0 auto;
    max-width: 600px;
}

.translate-wrapper {
    text-align: center;
    margin-bottom: 20px;
}

/* welcome block (januar 2026) */

.welcome-message {
    max-width: 850px;
    margin: 0 auto 30px;
    padding: 25px 30px;
    background: linear-gradient(135deg, #fff9e6 0%, #fff5d6 100%);
    border-radius: 16px;
    border: 1px solid #f5e6b8;
}

.welcome-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.welcome-text-side {
    width: 350px;
    text-align: center;
}

.welcome-video-side {
    width: 350px;
    text-align: center;
}

.welcome-video-wrapper {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    background: #000;
}

.welcome-video-wrapper iframe {
    width: 100%;
    height: 100%;
}

.welcome-video-label {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.85rem;
    color: #cc0000;
    font-weight: 500;
}

.welcome-video-label i {
    margin-right: 5px;
}

.welcome-title {
    font-size: 1.8rem;
    color: var(--text-default, #4a4540);
    margin: 0 0 15px 0;
    font-weight: 700;
}

.welcome-text {
    font-size: 1.05rem;
    color: #5c5347;
    line-height: 1.6;
    margin: 0 0 10px 0;
}

.welcome-text:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .welcome-message {
        margin: 50px 15px 25px;
        padding: 20px;
    }
    .welcome-content {
        flex-direction: column;
        gap: 20px;
    }
    .welcome-video-wrapper {
        width: 100%;
        max-width: 320px;
    }
    .welcome-title {
        font-size: 1.5rem;
    }
}
