/*
Theme Name: Detektor
    Text Domain: Detektor
    Version: 1.0.0
    Description: Detektor er et tema laget for en metallsøkerklubb, med Norrøn/viking stil, enkel nettbutikk, søkekalender og funngalleri.
    Tags: Metalldetektor, Metallsøking, Nettbutikk, Søkekalender, Funngalleri.
    Author: Christian Jansen
    Author URI: https://c.jansen.com
    License: GNU General Public License version 2.0
    License URI: http://www.gnu.org/licenses/gpl-2.0.html
    Requires PHP: 8.0
    Tested up to: 8.2
*/

/* ==========================================================
   1. GLOBALT
   ========================================================== */

/* Nullstill margin/padding og aktiver border-box */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Global norrøn bakgrunn */
body {
    background: url('/wp-content/themes/Detektor/assets/bkg_06.png')
            center/cover no-repeat fixed !important;
    width: 100vw;
    min-height: 100vh;
    display: block;
}
body {
    color: #e6e6e6;
}

.entry-content, 
.entry-content p,
.entry-content li,
.entry-content span,
.entry-content a,
.woocommerce,
.woocommerce p,
.woocommerce li {
    color: #e6e6e6 !important;
}


/* Norrøn font */
@font-face {
    font-family: 'Norse';
    src: url('/wp-content/themes/Detektor/assets/fonts/Norse.otf') format('opentype');
}
@font-face {
    font-family: 'Norse';
    src: url('/wp-content/themes/Detektor/assets/fonts/NorseBold.otf') format('opentype');
    font-weight: bold;
}

/* Mørk overlay for bedre kontrast */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: -1;
}

/* Desktop: full størrelse på Logo_01.jpg */
@media (min-width: 900px) {
    .logo img {
        max-width: none;
        width: auto;
        height: auto;
    }

    .logo {
        flex-shrink: 0;
    }
}

/* ==========================================================
   2. HEADER & NAVIGASJON
   ========================================================== */

.site-header {
    width: 100%;
}

/* Navigasjonslinje */
.navbar {
    background: #000; /* ren sort stripe */
    height: 100px;
    padding: 0 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    position: relative;
}

/* Meny */
.nav-menu {
    list-style: none;
    display: flex;
    gap: 25px;
}
.nav-menu li {
    position: relative;
}
.nav-menu li a {
    color: #f5d37a;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: color 0.3s;
}
.nav-menu li a:hover {
    color: #ffe9a8;
}

/* Submenyer */
.nav-menu .sub-menu {
    list-style: none !important;
    display: none;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(10,10,12,0.95);
    padding: 10px 0;
    min-width: 200px;
    transition: opacity 0.2s ease;
    z-index: 999;
}
.nav-menu .sub-menu li {
    padding: 8px 15px;
}
.nav-menu li:hover > .sub-menu {
    display: block;
    opacity: 1;
    visibility: visible;
}

/* CTA-knapp */
.cta-button {
    background: #f5d37a;
    color: #000 !important;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
}

/* Logoer */
.logo {
    position: absolute;
    right: 20px;
    top: 10px;
}
.logo img {
    height: 80px;
}
.NMF {
    position: absolute;
    left: 20px;
    top: 10px;
}
.NMF img {
    height: 80px;
}

/* ==========================================================
   3. FORSIDE – TITTEL + DIVIDER
   ========================================================== */

.frontpage-title-wrapper {
    background: url('/wp-content/themes/Detektor/assets/Logo_01.jpg')
                center/cover no-repeat;
    padding: 60px 20px;
    border-radius: 12px;
    margin: 40px auto 20px;
    max-width: 900px;
    box-shadow: 0 0 25px rgba(0,0,0,0.6);
}

.frontpage-title {
    text-align: center;
    font-family: 'Norse', serif;
    font-size: 56px;
    color: #8B0000;
    letter-spacing: 3px;
    margin-bottom: 10px;
    text-shadow: 0 0 6px rgba(255,255,255,0.6);
}

.frontpage-slogan-wrapper {
    background: url('/wp-content/themes/Detektor/assets/slagord.png')
                center / auto no-repeat;
    background-position: center 40%;
    padding: 60px 20px;
    border-radius: 12px;
    margin: 40px auto 20px;
    max-width: 900px;
    box-shadow: 0 0 0px rgba(0,0,0,0.6);
}

.frontpage-divider {
    width: 180px;
    height: 3px;
    background: linear-gradient(to right, transparent, #f5d37a, transparent);
    margin: 10px auto 30px;
    opacity: 0.8;
}

/* ==========================================================
   4. SEKSJONER
   ========================================================== */

.section {
    max-width: 900px;
    margin: 100px auto;
    text-align: center;
    padding: 40px 20px;
}
.section:first-of-type {
    margin-top: 20px !important;
}
.section h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #f5d37a;
}
.section p {
    margin-bottom: 30px !important;
}

/* Divider mellom seksjoner */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 60px 0 40px;
    font-family: 'Cinzel', serif;
    font-size: 26px;
    color: #f5d37a;
}
.section-divider:before,
.section-divider:after {
    content: "";
    flex: 1;
    border-bottom: 2px solid #f5d37a;
    margin: 0 20px;
    opacity: 0.7;
}

/* ==========================================================
   5. FUNN-GRID
   ========================================================== */

.funn-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto;
}

.funn-card {
    background: rgba(20, 20, 22, 0.85);
    border: 3px solid #5a4a32;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    background-image: url('/wp-content/themes/Detektor/assets/Bkg_06.png');
    background-size: cover;
    background-blend-mode: multiply;
    box-shadow: 0 0 10px rgba(0,0,0,0.8), inset 0 0 15px rgba(0,0,0,0.6);
    transition: 0.3s ease;
}
.funn-card:hover {
    border-color: #f5d37a;
    box-shadow: 0 0 15px rgba(245,211,122,0.6), inset 0 0 20px rgba(0,0,0,0.7);
}
.funn-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 10px;
}

/* ==========================================================
   5b. BILDEGALLERI – MINDRE GRID
   ========================================================== */

.funn-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
    max-width: 900px;
    margin: 20px auto;
}

.funn-gallery-item {
    display: block;
    border: 2px solid #bfa77a;
    border-radius: 6px;
    overflow: hidden;
    background: #111;
    box-shadow: 0 0 6px rgba(0,0,0,0.5);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.funn-gallery-item img {
    width: 100%;
    height: 95px;
    object-fit: cover;
    display: block;
}

.funn-gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 0 12px rgba(245,211,122,0.6);
}

/* ==========================================================
   6. LOGIN-SIDE
   ========================================================== */

.login-wrapper {
    max-width: 400px;
    margin: 60px auto;
    padding: 20px;
}

.login-box {
    background: #111;
    border: 4px solid #bfa77a;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 0 18px rgba(0,0,0,0.7);
    background-image: url('/wp-content/themes/Detektor/assets/Bkg_01.png');
    background-size: cover;
    background-blend-mode: multiply;
}

/* Inputs */
.login-box input[type="text"],
.login-box input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 14px;
    border: 2px solid #bfa77a;
    border-radius: 6px;
    background: #222;
    color: #fff;
}

/* Login-knapp */
.login-box input[type="submit"] {
    width: 100%;
    background: #bfa77a;
    color: #111;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
}
.login-box input[type="submit"]:hover {
    background: #e6d3a0;
}

/* Fjern gammel styling på login-siden */
.page-id-31 .login,
.page-id-31 .login form,
.page-id-31 .login-wrapper,
.page-id-31 .login-box {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* ==========================================================
   7. VENTER PÅ GODKJENNING (page-id-222)
   ========================================================== */

.page-id-222 .venter-title {
    font-family: 'Norse', serif;
    font-size: 48px;
    text-align: center;
    color: #f5d37a;
    margin-top: 60px;
    text-shadow: 0 0 10px rgba(0,0,0,0.7);
    letter-spacing: 3px;
}

.page-id-222 .venter-text {
    max-width: 700px;
    margin: 20px auto;
    text-align: center;
    font-size: 20px;
    color: #e5e5e5;
}

.page-id-222 .venter-divider {
    width: 200px;
    height: 3px;
    margin: 40px auto;
    background: linear-gradient(to right, transparent, #f5d37a, transparent);
}

/* ============================
   OM METALLSØKING – STYLING
   ============================ */

.venter-title {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: #f5d37a;
    background-image: url('assets/ostfold-sunset.jpg');
    background-size: cover;
    background-position: center;
    padding: 40px 20px;
    border-radius: 8px;
}

.venter-text {
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 20px;
    color: #e5e5e5;
    padding: 10px 0;
}

.venter-divider {
    width: 100%;
    height: 40px;
    background-image: url('assets/rune-divider.png');
    background-repeat: no-repeat;
    background-position: center;
    margin: 30px 0;
}

/* ==========================================================
   9. MOBILOPTIMALISERING
   ========================================================== */

@media (max-width: 900px) {
    .funn-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }
    .logo {
        position: static;
        margin-top: 10px;
    }
    .funn-grid {
        grid-template-columns: 1fr;
    }
    .frontpage-title {
        font-size: 38px;
    }
}

/* MOBIL: Fiks header-layout */
@media (max-width: 700px) {

    .logo,
    .NMF {
        position: relative;
        order: 3;
        margin: 10px auto 0 auto;
        text-align: center;
    }

    .logo img,
    .NMF img {
        max-width: 120px;
        height: auto;
    }

    .burger {
        display: flex;
        position: absolute;
        left: 20px;
        top: 20px;
        z-index: 2000;
    }

    .frontpage-cta {
        order: 4;
        margin: 10px auto;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        gap: 15px;
        background: rgba(10,10,12,0.97);
        padding: 20px;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        border-top: 1px solid #f5d37a;
        z-index: 1500;
    }

    .nav-menu.active {
        display: flex;
    }

    .navbar {
        display: flex;
        flex-direction: column;
        align-items: center;
        position: relative;
        padding-top: 60px;
    }
}

/* ==========================================================
   SØKEKALENDER – EPISK LISTE
   ========================================================== */

.sokekalender-wrapper {
    max-width: 600px;
    margin: 40px auto;
    padding: 20px;
}

.sokekalender-item {
    background: rgba(20,20,22,0.85);
    border: 3px solid #bfa77a;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 15px;
    text-align: center;
    box-shadow: 0 0 12px rgba(0,0,0,0.6);
    background-image: url('/wp-content/themes/Detektor/assets/Bkg_01.png');
    background-size: cover;
    background-blend-mode: multiply;
}

.sokekalender-dato {
    font-family: 'Norse', serif;
    font-size: 32px;
    color: #f5d37a;
    margin-bottom: 5px;
    text-shadow: 0 0 8px rgba(0,0,0,0.7);
}

.sokekalender-ukedag {
    font-size: 18px;
    color: #e5e5e5;
    opacity: 0.9;
}

.sokekalender-item {
    display: flex;
    align-items: center;
    gap: 20px;
    text-align: left !important;
}

.sokekalender-icon-wrap {
    flex-shrink: 0;
}

.coil-icon {
    width: 60px;
    height: 60px;
    filter: drop-shadow(0 0 6px #bfa77a);
}

/* ============================
   Norrøn stil – felles layout
   ============================ */

.venter-title {
    font-family: "Norse", serif;
    font-size: 4.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 25px;
    color: #8B0000;
    letter-spacing: 1px;
}

.venter-text {
    font-family: "Arial", serif;
    font-size: 1.15rem;
    line-height: 1.7;
    color: #f5d37a;
    margin-bottom: 20px;
}

.venter-divider {
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, #000, transparent);
    margin: 30px 0;
}

/* ============================
   NETTBUTIKK – NORRØN STIL
   ============================ */

.shop-title {
    font-family: 'Norse', serif;
    font-size: 3rem;
    text-align: center;
    margin-bottom: 20px;
    color: #111;
    letter-spacing: 2px;
}

.shop-intro {
    font-family: Arial, sans-serif;
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 30px;
    color: #222;
}

.shop-divider {
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, #000, transparent);
    margin: 30px 0;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.shop-item {
    border: 1px solid #ccc;
    padding: 20px;
    border-radius: 6px;
    background: #fafafa;
}

.shop-img {
    width: 100%;
    border-radius: 4px;
    margin-bottom: 10px;
}

.shop-item-title {
    font-family: 'Norse', serif;
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #111;
}

.shop-item-desc {
    font-family: Arial, sans-serif;
    font-size: 1rem;
    margin-bottom: 10px;
    color: #333;
}

.shop-item-price {
    font-family: Arial, sans-serif;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #8B0000;
}

.shop-button {
    display: inline-block;
    padding: 10px 20px;
    background: #8B0000;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-family: Arial, sans-serif;
    transition: 0.2s;
}

.shop-button:hover {
    background: #5A0000;
}

.cart-box {
    margin-top: 40px;
    padding: 20px;
    border: 1px solid #aaa;
    background: #f0f0f0;
}

.checkout-form {
    margin-top: 30px;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 6px;
}

.checkout-form h3 {
    font-family: 'Norse', serif;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.checkout-form label {
    display: block;
    margin-top: 10px;
    font-family: Arial, sans-serif;
}

.checkout-form input {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Sort tekst på handlekurv og leveringsinformasjon */
.cart-title,
.checkout-form h3 {
    color: #000 !important;
}

/* Sort tekst i hele checkout-delen */
.checkout-form label,
.checkout-form input,
.checkout-form input::placeholder,
.checkout-form {
    color: #000 !important;
}

/* Sort tekst i handlekurven */
.cart-title,
#cart-items,
#cart-items div,
#cart-total {
    color: #000 !important;
}

/* Sort tekst på feltene Navn, Adresse, Postnummer, Sted */
.checkout-form input {
    color: #000 !important;
    border: 1px solid #000;
}

/* Gjør også teksten i handlekurv-knappen sort hvis ønsket */
.cart-box {
    color: #000 !important;
}

/* Skjul første H1 på sider */
.page h1:first-of-type {
    display: none !important;
}

/* ==========================================================
   FUNN-DETALJER
   ========================================================== */

.funn-hovedbilde {
    margin-bottom: 25px;
    position: relative;
    z-index: 10;
}

.funn-bilde {
    width: 100%;
    max-width: 1000px;
    display: block;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 0 35px rgba(0,0,0,0.6);
}

.funn-info {
    background: #111;
    color: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.funn-beskrivelse {
    color: #fff;
    margin-bottom: 30px;
}

.funn-galleri {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.funn-galleri-bilde {
    width: 100%;
    max-width: 200px;
    border-radius: 6px;
    cursor: pointer;
}

/* Skjul alle bilder som ligger i innholdet på funnsider */
.single-funn .entry-content img {
    display: none !important;
}

/* Fremhevet bilde i normal størrelse */
.funn-hovedbilde img,
.funn-card img.funn-bilde {
    width: auto !important;
    max-width: 600px !important;
    display: block;
    margin: 0 auto 25px auto;
    border-radius: 10px;
    box-shadow: 0 0 25px rgba(0,0,0,0.6);
}

/* To-kolonne layout for bilde + beskrivelse */
.funn-top-wrapper {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

@media (min-width: 800px) {
    .funn-top-wrapper {
        flex-direction: row;
        align-items: flex-start;
    }

    .funn-hovedbilde {
        flex: 1;
    }

    .funn-beskrivelse {
        flex: 1;
        margin-top: 0 !important;
    }
}

@media (max-width: 799px) {
    .funn-top-wrapper {
        flex-direction: column;
    }
}

.funn-bilde {
    width: auto !important;
    max-width: 600px !important;
    display: block;
    margin: 0 auto 25px auto;
    border-radius: 10px;
    box-shadow: 0 0 25px rgba(0,0,0,0.6);
}

.funn-beskrivelse p,
.funn-beskrivelse ul,
.funn-beskrivelse li,
.funn-beskrivelse img {
    text-align: left !important;
}

.funn-info p {
    margin: 3px 0 !important;
    line-height: 1.3;
}

/* Lightbox-fix */
.lb-nav a.lb-prev,
.lb-nav a.lb-next,
.lb-data .lb-close {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    z-index: 999999 !important;
}

.lb-nav a.lb-prev {
    left: 20px !important;
}

.lb-nav a.lb-next {
    right: 20px !important;
}

.lb-data .lb-close {
    top: -10px !important;
    right: -10px !important;
}

.lb-nav a.lb-prev:before,
.lb-nav a.lb-next:before,
.lb-data .lb-close:before {
    content: '' !important;
}

.lightboxOverlay,
.lightbox {
    z-index: 999999 !important;
}

/* ==========================================================
   BURGER-MENY
   ========================================================== */

.burger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.burger span {
    width: 28px;
    height: 3px;
    background: #f5d37a;
    border-radius: 2px;
}

@media (max-width: 1100px) {

    .burger {
        display: flex;
        position: absolute;
        left: 20px;
        top: 22px;
        z-index: 1000;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        gap: 15px;
        background: rgba(10,10,12,0.97);
        padding: 20px;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        border-top: 1px solid #f5d37a;
    }

    .nav-menu.active {
        display: flex;
    }

    .logo, .NMF {
        position: static;
        margin: 0 auto;
    }
}

@media (max-width: 1100px) {
    .frontpage-cta {
        margin-top: 70px;
        margin-left: auto;
        margin-right: 20px;
        width: fit-content;
        z-index: 1500;
    }
}

@media (max-width: 1100px) {
    .logo {
        display: none;
    }
}

/* Mobil: NMF-logo og CTA i header */
@media (max-width: 1100px) {

    .logo {
        display: none;
    }

    .nmf-mobile {
        display: flex;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        top: 30px;
        z-index: 2000;
    }

    .nmf-mobile img {
        height: 80px;
        width: auto;
    }

    .cta-mobile {
        position: absolute;
        right: 10px;
        top: 18px;
        padding: 4px 10px;
        font-size: 13px;
        background: #f5d37a;
        color: #000;
        border-radius: 4px;
        text-decoration: none;
        z-index: 2000;
    }

    .navbar {
        height: 120px;
        padding: 0 10px;
        position: relative;
    }
}

@media (min-width: 1101px) {
    .nmf-mobile,
    .cta-mobile {
        display: none;
    }
}

@media (max-width: 1100px) {
    .frontpage-cta {
        display: none !important;
    }
}

@media (max-width: 1100px) {
    .NMF {
        display: none !important;
    }
}

/* ==========================================================
   ADMINPANEL / GALLERI
   ========================================================== */

.omk-delete-btn {
    background: #2b2b2b;
    border: 2px solid #c9a34e;
    color: #c9a34e;
    padding: 6px 12px;
    margin-top: 6px;
    font-family: 'Cinzel', serif;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s;
    border-radius: 4px;
}

.omk-delete-btn:hover {
    background: #c9a34e;
    color: #1a1a1a;
    box-shadow: 0 0 10px #c9a34e;
}

.omk-dropzone {
    border: 3px dashed #c9a34e;
    padding: 30px;
    text-align: center;
    color: #c9a34e;
    font-family: 'Cinzel', serif;
    margin-bottom: 15px;
    transition: 0.3s;
}

.omk-dropzone.dragover {
    background: rgba(201,163,78,0.1);
    box-shadow: 0 0 15px #c9a34e;
}

.omk-panel {
    background: #1a1a1a;
    border: 2px solid #c9a34e;
    padding: 15px;
    margin-bottom: 20px;
    color: #c9a34e;
    font-family: 'Cinzel', serif;
}
.omk-panel h3 {
    margin-top: 0;
    text-align: center;
}

.omk-neste-sokedag,
.omk-sokedager-list {
    background: #1a1a1a;
    border: 2px solid #c9a34e;
    padding: 15px;
    margin: 20px 0;
    color: #c9a34e;
    font-family: 'Cinzel', serif;
    font-size: 18px;
    text-align: center;
    border-radius: 6px;
}

.omk-sokedager-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.omk-sokedager-list li {
    padding: 8px 0;
    border-bottom: 1px solid #c9a34e;
}

.omk-sokedager-list li:last-child {
    border-bottom: none;
}

.omk-calendar {
    background: #1a1a1a;
    border: 3px solid #c9a34e;
    padding: 20px;
    margin: 30px 0;
    border-radius: 8px;
    color: #c9a34e;
    font-family: 'Cinzel', serif;
}

.omk-cal-title {
    text-align: center;
    margin-bottom: 20px;
    font-size: 26px;
}

.omk-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.omk-cal-cell {
    background: #2a2a2a;
    border: 1px solid #c9a34e;
    padding: 10px;
    min-height: 80px;
    position: relative;
    text-align: center;
    border-radius: 4px;
}

.omk-cal-cell.empty {
    background: transparent;
    border: none;
}

.omk-cal-num {
    font-size: 18px;
    margin-bottom: 5px;
}

.omk-cal-hit {
    background: #3a2a00;
    box-shadow: 0 0 10px #c9a34e;
}

.omk-cal-icon {
    width: 28px;
    height: 28px;
    margin: 5px auto;
    display: block;
}

.omk-cal-label {
    font-size: 12px;
    margin-top: 4px;
}

.back-to-funn {
    display: inline-block;
    margin-bottom: 20px;
    color: #bfa75e;
    text-decoration: none;
    font-size: 1rem;
}
.back-to-funn:hover {
    text-decoration: underline;
}

/* ==========================================================
   SOSIALE LENKER / MEDLEMSKORT
   ========================================================== */

.omk-facebook-link {
    text-align: center;
    margin: 30px 0;
}

.omk-facebook-link a {
    display: inline-block;
    padding: 12px 22px;
    background: #0e0e0e;
    border: 2px solid #d4af37;
    color: #d4af37;
    font-family: 'Norse', serif;
    font-size: 20px;
    text-decoration: none;
    border-radius: 6px;
    transition: 0.3s ease;
}

.omk-facebook-link a:hover {
    background: #1a1a1a;
    border-color: #f5d46b;
    color: #f5d46b;
    transform: scale(1.05);
}

.fb-icon {
    margin-right: 8px;
    font-size: 22px;
}

.omk-medlemskort {
    background: #0e0e0e;
    border: 2px solid #d4af37;
    padding: 25px;
    max-width: 380px;
    margin: 40px auto;
    color: #d4af37;
    font-family: 'Norse', serif;
    border-radius: 12px;
    text-align: center;
}

.omk-medlemskort h2 {
    font-size: 30px;
    margin-bottom: 15px;
}

.omk-logo {
    width: 120px;
    margin-bottom: 15px;
}

.omk-qr {
    width: 160px;
    margin: 20px 0;
}

/* Nedlastingsknapp – oppgradert til hvit tekst */
.omk-download {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 18px;
    background: #d4af37;
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 6px;
    transition: 0.3s;
}

.omk-download:hover {
    background: #f5d46b;
}

.omk-seal {
    margin-top: 20px;
    display: inline-block;
    padding: 10px 20px;
    border: 4px solid #d4af37;
    border-radius: 50%;
    font-size: 18px;
    font-weight: bold;
    color: #d4af37;
}

/* ==========================================================
   FORUM – ASGAROS
   ========================================================== */

.asgarosforum-wrapper {
    background: #0b0b0b !important;
    padding: 20px;
}

.asgarosforum-category {
    background: #111 !important;
    border: 2px solid #c9a34e !important;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 25px;
}

.asgarosforum-forum {
    background: #1a1a1a !important;
    border-left: 4px solid #c9a34e !important;
    padding: 12px;
    margin-bottom: 10px;
}

.asgarosforum-forum:hover {
    background: #262626 !important;
    border-left-color: #e6c46d !important;
    transition: 0.2s;
}

.asgarosforum-title,
.asgarosforum-category-title {
    font-family: 'Norse', serif !important;
    color: #c9a34e !important;
    letter-spacing: 2px;
}

.asgarosforum-forum-title:before {
    content: "ᚠ";
    color: #c9a34e;
    margin-right: 8px;
    font-size: 20px;
}

.asgarosforum-content img {
    border: 3px solid #c9a34e !important;
    border-radius: 4px;
    padding: 2px;
    background: #0d0d0d;
}

.asgarosforum a {
    color: #e6c46d !important;
}
.asgarosforum a:hover {
    color: #f7d98a !important;
}

/* ==========================================================
   INNHOLDSSIDENE – STANDARD HVIT TEKST
   ========================================================== */

.entry-content,
.page-content,
.post-content {
    color: #ffffff !important;
}

/* Retningslinjer – sørg for hvit tekst */
.page-id-50 .entry-content,
.page-id-50 .entry-content p,
.page-id-50 .entry-content li {
    color: #ffffff !important;
}

/* Mørk bakgrunn bak innholdssider som Kulturminner og Retningslinjer */
.page .entry-content {
    background: rgba(0,0,0,0.65);
    padding: 25px;
    border-radius: 10px;
}

.cj-calendar-image {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    display: block;
}
