/* =====================================================
   custom-base.css: Custom base styles for headlines, hero, and paragraphs
   ===================================================== */

:root {
    --font-roboto: 'Roboto', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Arial', sans-serif;
    --font-playfair: 'Playfair Display', serif;
    /* Nora color palette */
    --nora-gold: #AC8051;
    --nora-gray: #726B6F;
    --nora-dark: #374151;
    --nora-white: #e5e7eb;
    --green-600: #16a34a;
    --green-900: #14532d;
    --text-black: #000000;
}

/*
========================================
  CSS RESET & BASE STYLES
  - Grundläggande återställning av standardmarginaler, padding och boxmodell
  - Sätter grundläggande typografi och bakgrundsfärg
========================================
*/

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

img {
    width: 100%
}

.bg-green {
    background: #33690f;
}

.bg-black {
    background: #000;
    color: #fff
}

.lightblue {
    color: #b0cfea
}

a:focus {
    outline: none;
}

button:focus {
    outline: none;
}

body {
    line-height: 1.6;
    background-color: #f9fafb;
    color: #333;
    font-family: var(--font-roboto);
}

ul,
ul li p,
ul li blockquote {
    font-size: 1.125rem;
    color: var(--nora-dark);
}

/*helpers */

.no-justify,
p .no-justify {
    display: inline-block;
    text-align: left !important;
    hyphens: none !important;
    width: 100%;
}


/*
 ===============================================  FONT-FAMILIES   ===============================================================================================

  - Roboto for body text
	- Playfair Display for headings and quotes
	- Media queries for responsive typography

=================================================================================================================================================================
*/

.roboto {
    font-family: var(--font-roboto);
}

.playfair {
    font-family: var(--font-playfair);
}

h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-playfair);
    font-weight: 500;
    hyphens: auto;
}

h1 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2rem;
    margin: 24px 0 16px;
    line-height: 1.15em;
}

/* Make the link inherit the h2 styling */
a,
h2 a,
h3 a,
h4 a,
h5 a,
h6 a {
    color: inherit;
    text-decoration: none;
    display: block;
    font-weight: inherit;
    font-size: inherit;
    font-family: inherit;
    line-height: inherit;
    cursor: pointer;
}

/* Optional: Add hover effects */
a:hover,
h2 a:hover,
h3 a:hover,
h4 a:hover,
h5 a:hover,
h6 a:hover {
    color: var(--nora-gold);
    text-decoration: none;
}

a {
    display: inline-block;
}

h3 {
    font-size: 1.5rem;
    line-height: 1.15em;
    margin: 32px 0 16px;
}

p {
    font-size: 1.25rem;
    line-height: 1.5em;
    margin-bottom: 1rem;
    color: var(--nora-dark);
    text-align: justify;
    hyphens: auto;
    /* letter-spacing: -0.01em; */
}

@media (min-width: 420px) {
    h1 {
        font-size: 1.875rem;
        margin-bottom: 1rem;
    }

    h2 {
        font-size: 2.5em;
        margin: 32px 0 24px;
        line-height: 1.15em;
    }

    h3 {
        font-size: 2em;
        line-height: 1.15em;
        margin: 64px 0 24px;
    }
}

@media (min-width: 768px) {
    p {
        font-size: 1.35rem;
        line-height: 1.5em;
    }

    h2 {
        margin: 56px 0 36px;
        line-height: 1.15em;
        font-size: 3em;
    }
}

@media (min-width: 1500px) {

    h2 {
        margin: 64px 0 36px;
        line-height: 1.15em;
        font-size: 4em;
    }

    .pagebreaker-text {
        font-size: 3.5em;
    }
}

/*
========================================
NAVIGATION MENU
- Stilar för toppmeny och mobilmeny
- Inkluderar .navigation, .menu-button, #menu-button, #navigate-vertical
========================================
*/
.navigation {
    position: fixed;
    display: flex;
    display: none;
    top: 0px;
    right: 0px;
    left: 0px;
    background: #fff;
    color: #4195d1;
    font-family: Arial, sans-serif;
    font-size: 1.1em;
    letter-spacing: 0.08em;
    height: 60px;
    border-bottom: 1px #aaa solid;
    border-top: 1px #aaa solid;
    z-index: 100;

}

.homelogo,
.homelogo-small-devices {
    display: inline-block;
    margin-right: 20px;
    font-size: 1.2em;
    line-height: 60px;
    margin-left: 20px;
    color: #000;
    font-weight: bold;
}

.homelogo-small-devices {
    position: absolute;
    color: #fff;
}

.homelogo-small-devices:hover,
.homelogo-small-devices:focus,
.homelogo-small-devices:active {
    color: #f5eee6
}

.navigation ul {
    list-style-type: none;
    font-size: 1.15rem;
    line-height: 60px;
    padding: 0;
}

.navigation ul li {
    float: left;
    margin: 0 10px;
    color: #333;
    padding: 0;
    text-align: center;
    color: #333;
    font-family: var(--font-playfair);
}

.navigation ul li a {
    display: block;
    color: inherit;
    text-decoration: inherit;
    height: 100%;
}

.navigation ul li a:hover,
.navigation ul li a:focus,
.navigation ul li a:active {
    color: var(--nora-gold);
    /* Use text-shadow to simulate bold without layout shift */
    /* text-shadow: 0.5px 0 0 currentColor; */
}

.menu-button {
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    color: black;
    /* Change the color of the lines here */
}

#menu-button {
    position: absolute;
    display: block;
    right: 20px;
    top: 20px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    color: white;
    /* Change the color of the lines here */
}

.menu-button-dark {
    color: var(--nora-dark);
}

.menu-button-dark:hover {
    color: var(--nora-gold);
}

.menu-button:focus {
    outline: none;
    /* Remove the default focus outline */
}

#navigate-vertical {
    position: absolute;
    display: none;
    top: 60px;
    right: 20px;
    color: white;
    z-index: 100;
}

#navigate-vertical ul {
    list-style: none;
    background: #fff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-radius: 0.375rem;
    border: 2px solid var(--nora-gray);
}

#navigate-vertical ul li {
    font-family: var(--font-playfair);
    border-bottom: 1px solid #b5b5b5;
    padding: 12px 24px;
}

#navigate-vertical ul li:last-child {
    border-bottom: none;
}

#navigate-vertical a {
    font-family: var(--font-playfair);
    color: #333;
    display: block;
}

#navigate-vertical a:hover,
#navigate-vertical a:focus,
#navigate-vertical a:active {
    color: var(--nora-gold);
    text-decoration: none;
}


@media (min-width: 1500px) {

    .navigation {
        display: flex;
    }

    #navigate-vertical {
        display: none;
    }

    #menu-button,
    .menu-button-dark {
        display: none;
    }

    .homelogo-small-devices {
        display: none;
    }
}



/*
 =============================================== HERO SECTION STYLES  ===============================================================================================

- Stilar för startsidans hero-banners
- Inkluderar bakgrundsbilder, positionering och typografi
- Media queries för responsiva justeringar
- Klasser: .hero, .hero-110, .hero-111, .herotemp

=====================================================================================================================================================================
*/

.hero {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
    background-size: cover;
    background-position-x: center;
    background-position-y: center;
    background-repeat: no-repeat;
    min-height: 70vh;
    /* background-color fallback while image loads */
    background-color: var(--nora-gray);
}

.hero .logo {
    text-align: center;
    margin-bottom: 3.5vh;
    color: white;
}

.hero .logo h1 {
    font-family: var(--font-roboto);
    font-size: 3rem;
    font-weight: bold;
    line-height: 1em;
    margin-bottom: .25rem;
    color: white;
}

.hero .logo p {
    font-size: 1.25rem;
    font-weight: 500;
    color: white;
    text-align: center;
    max-width: 60%;
    margin: 0 auto;
    line-height: 1.5rem;
    max-width: 100%;
    padding: 0 1rem;
}

.herotemp {
    margin-top: 0;
}

.hero-artikelsida {
    min-height: initial !important;
    /*height: 10em; */
    height: 60px;
    background-color: unset;
    /* Hide hero-artikelsida by default - ta bort från template istället ? */
}

.hero-artikelsida .homelogo-small-devices {
    color: var(--text-black);
}

.herotemp,
.hero-110 {
    background-image: url('/img/nora-kyrka-sm.jpg');
}

.hero-107 {
    background-image: url('/img/kulturturism_sm.jpg');
    background-position-x: center;
}

.hero-107 #menu-button {
    color: var(--nora-gold);
}

.hero-107 .logo h1 {
    color: var(--nora-gold);
    font-size: 2.5rem;
}

.hero-107 .logo p {
    color: var(--nora-gray);
}

/* hero-111 (Djur och naturliv) */
.hero-111 {
    background-image: url('/img/hero_natur.jpg');
}

/* Background overlay for hero-111 logo text for better readability */
.hero-111 .logo {
    position: relative;
    background: none;
    border-radius: 0.5em;
    padding: 1.2em 2em 1.2em 2em;
    display: inline-block;
    box-shadow: 0 4px 24px 0 rgba(0, 0, 0, 0.10);
    z-index: 1;
}

.hero-111 .logo::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 0.5em;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(ellipse 120% 100% at 50% 50%, rgba(34, 34, 34, 0.55) 70%, rgba(34, 34, 34, 0.28) 85%, rgba(34, 34, 34, 0.01) 100%);
    filter: blur(18px);
    opacity: 1;
    transition: opacity 0.2s;
}


@media (min-width: 420px) {

    .herotemp,
    .hero-110 {
        background-image: url('/img/nora-kyrka-md.jpg');
        background-position-y: 20%;
        background-position-x: 30%;
    }

    .hero-107 {
        background-image: url('/img/kulturturism_hero_md.jpg');
        background-position-x: center;
    }

}

@media (min-width: 768px) {
    .hero .logo h1 {
        font-size: 3rem;
    }

    .hero .logo p {
        font-size: 1.5rem;
        max-width: 100%;
    }

    .herotemp,
    .hero-110 {
        background-image: url('/img/nora-kyrka-hero.jpg');
        background-position-y: center;
        background-position-x: 20%;
    }

    .hero-107 {
        background-position-x: center;
    }
}

@media (min-width: 1024px) {
    .hero .logo {
        align-self: flex-start;
        text-align: left;
        margin-left: 6vw;
        margin-bottom: 8vh;
    }

    .hero .logo p {
        padding: 0;
        text-align: left;
    }

    .hero-artikelsida .logo {
        margin-bottom: 3em !important;
    }

    .hero-artikelsida .logo h1 {
        font-size: 2rem !important;
    }

    /* right alignment for logo in hero-107 (kultur och turism) */
    .hero-107 .logo {
        align-self: flex-end;
        text-align: right;
        margin-right: 7vw;
        width: auto;
    }

    .hero-107 .logo h1 {
        text-align: right;
    }

    .hero-107 .logo p {
        text-align: right;
    }

    .hero-107 {
        background-position-x: 35%;
        background-image: url('/img/kulturturism_hero.jpg');
    }
}

@media (min-width: 1280px) {
    .hero {
        min-height: 80vh;
    }
}

@media (min-width: 1500px) {
    .hero {
        margin-top: 60px;
    }

    .hero .logo h1 {
        font-size: 5rem;
        margin-bottom: 0.5rem;
    }

    .hero .logo p {
        font-size: 1.75rem;
    }

    .hero .logo {
        left: 10%;
        bottom: 7%;
    }

    .herotemp .logo,
    .hero-110 .logo {
        align-self: flex-start;
        text-align: left;
        margin-left: 7%;
        margin-bottom: 5em;
    }

    .herotemp .logo p,
    .hero-110 .logo p {
        text-align: left;
    }

    .hero-107 {
        background-position-x: 55%;
    }
}

@media (min-width: 2200px) {
    .hero {
        background-position-y: 80%;
    }

    .herotemp,
    .hero-110 {
        background-position-y: 35%;
    }

    .hero-107 {
        background-position-x: 40%;
    }

    .hero-107 .logo {
        margin-right: 10vw;
    }
}

@media (max-width: 1200px) {

    .hero {
        margin-top: 0;
    }
}


/*
========================================
ARTIKLAR & BREDA KOLUMNSTILAR
- Stilar för artiklar, breda artiklar och specialartiklar
- Klasser: .articles, .articles article, .articles .articles article-wide-black, .articles article-wide-subpage
========================================
*/

/* Artiklar - bredare kolumn */

/*enkel artikelsida wrapper */

.main-article-wrapper {
    margin-top: 3rem;
}

.articles {
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    max-width: 1300px;
}

/* Articles */
.articles article {
    width: 47%;
    background-color: white;
    padding: 0px;
    padding-bottom: 32px;
    margin: 0 10px 30px;
    border-radius: 3px;
    border: 1px #ddd solid;
}

.articles article-wide-subpage {
    width: 96%;
    background-color: white;
    color: black;
    padding: 40px 60px;
    margin: 0 10px 30px;
    border-radius: 3px;
    border: 1px #ddd solid;
}


.articles article h1,
.articles article-wide h2,
.articles article-wide h3,
.articles article h2,
.articles article h3,
.articles article h4 {
    font-family: "Playfair Display", serif;
    line-height: 1.25em;
}


.articles article p {
    font-size: 1.125em;
}

.articles article-wide-subpage h2 {
    font-size: 2em;
    margin-top: 30px;
}

.articles article-wide-subpage p {
    font-size: 1.2em;
    margin: 20px 0;
}

.articles article-wide-subpage p.ingress {
    font-weight: bold;
}


.articles article img {
    object-fit: fill;
    overflow: hidden;
}

.articles article div:first-of-type {
    padding: 12px 24px;

}

.articles article h3 {
    margin-top: 16px;
}

.articles article span:first-of-type {
    display: block;
    font-size: 1.125em;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--nora-gold)
}

@media (max-width: 768px) {

    .articles article,
    .articles article-wide,
    .articles article-wide-black {
        width: 100%;
        margin: 0 0 30px;
        border-left: 0;
        border-right: 0
    }

}

.category-tag {
    display: block;
    font-family: "Roboto", sans-serif;
    margin: 0;
    margin-top: 24px;
    margin-left: 12px;
    color: #155409;
    font-size: 1rem;
    font-weight: bold;
}

/*
========================================
CONTAINER, SIDOKOLUMN M.M 
- Stilar för sidokolumnen 
========================================
*/

/* Layout för huvud och sidokolumn */
.container {
    display: flex;
    max-width: 1300px;
    /* margin: 20px auto; */
    margin: 0 auto;
    width: 100%;
    padding: 0;
    gap: 0px;
}

.sidebar {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    min-height: 450px;
    background-color: transparent;
    margin: 0 10px;
    border-radius: 3px;
    /*height: fit-content;*/
}

.sidebar h3 {
    font-family: "Roboto", sans-serif;
    margin-bottom: 15px;
    padding: 0;
    line-height: 1.2em
}

.sidebar h4 {
    font-family: "Roboto", sans-serif;
    margin-bottom: 15px;
    padding: 0;
    line-height: 1.2em
}

.sidebar p {
    margin-bottom: 15px;
    padding: 0 20px;
}


.container-home {
    display: flex;
    width: 100%;
    padding: 0;
    gap: 36px;
}

/* CONTENT wrappers */

.main-content-wrapper {
    width: 100%;
    flex-direction: column;
    color: var(--text-black);
    max-width: 1300px;
    margin: 0 auto;
    margin-bottom: 64px;
    padding: 2rem 24px 3rem 24px;
}

@media (min-width: 768px) {
    .main-content-wrapper {
        padding-left: 36px;
        padding-right: 36px;
    }
}

@media (min-width: 1500px) {
    .main-content-wrapper {
        padding-top: 5rem;
        padding-bottom: 6rem;
    }
}

/* Hemsidans första section */
.home-content-section {
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    max-width: 1300px;
    justify-content: end;
    padding: 0 24px;
    padding-bottom: 36px;
}

.home-content-section .main-content-wrapper {
    margin: 0;
}

.main-content-wrapper h2:first-of-type,
.home-content-section h2:first-of-type {
    margin-top: 0;
}

.home-content-section-part-2 {
    margin: 0 auto;
    max-width: 1300px;
    padding: 0 24px;
    padding-bottom: 64px;
}

.info-text {
    max-width: 900px;
    padding: 0;
}

.info-text p {
    padding-top: 1.5rem;
    color: var(--green-900);
    font-size: .875rem;
    line-height: 1.25rem;
    font-style: italic;
    font-family: 'Playfair Display';
    line-height: 1.25rem;
    letter-spacing: -.01em;
    text-align: left;
}

/* Nyhetssektion */
.news-sidebar {
    display: none;
    justify-self: flex-end;
    border-left: 1px solid var(--nora-gold);
    height: 80vh;
    padding-left: 24px;
    padding-right: 36px;
}

.news-container {
    width: 256px;
}

.news-title {
    color: #4e3532;
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 36px;
}

.news-title-icon {
    display: none;
}

.news-item {
    display: block;
    margin-bottom: 24px;
}

.news-item:hover .news-title-item {
    color: var(--nora-gold);
}

.news-date {
    margin-bottom: 2px;
    font-weight: 700;
    font-size: 0.9em;
    color: var(--green-600);
}

.news-title-item {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--nora-dark);
    line-height: 1.5rem;
}

.news-footer-link {
    font-weight: 700;

}

@media (min-width: 1020px) {
    .info-text {
        padding: 16px 24px;
    }

    .news-sidebar {
        display: block;
        height: 100vh;
        padding-left: 0 36px;

    }

    .news-title {
        color: #4e3532;
        font-size: 2rem;
    }

}

@media (min-width: 1500px) {
    #contentTexts00167 {
        max-width: 81%;
        padding-left: 26px;
    }

    .news-sidebar {
        padding-right: 5vw;
    }

    .news-container {
        width: 356px;
    }

    .news-title-icon {
        display: inline-block;
    }

    .info-text {
        max-width: 81%;
        padding: 0 24px;
        font-size: 1rem;
        padding-left: 28px;
    }

    .info-text p {
        font-size: 1rem;
    }

}

/* DEBATT PAGE-BREAKER */

.debatt-page-breaker {
    background-color: #fff;
    padding: 24px 36px;
    padding-bottom: 56px;
    margin-bottom: 46px;
    box-shadow: 0 -2px 8px rgba(114, 107, 111, 0.12), 0 2px 8px rgba(114, 107, 111, 0.12);
    position: relative;
    z-index: 10;
}

.debatt-page-breaker-content {
    margin: 0 auto;
    max-width: 1300px;
}

/* .latestnews-header {
    font-family: "Roboto", sans-serif;
    background: #ddd;
    padding: 20px;
    font-weight: bold;
    font-size: 1.1em;
    border-bottom: 1px grey solid;
}

.latestnews {
    background: white;
    max-height: 500px;
    border: 1px #ddd solid;
    overflow: scroll;
} */

.sidebar-inside {
    background: white;
    padding: 3px;
    border: 1px #ddd solid;
    margin: 0 0 20px;
}


.sidebar-inside h2 {
    font-family: "Roboto", sans-serif;
    font-weight: 800;
    margin: 10px 20px 7px;
    line-height: 1.15em;
}

.sidebar ul {
    list-style: none;
    padding: 10px
}

.sidebar ul li {
    line-height: 1.1em;
    margin: 10px 10px;
}

.sidebar ul li hr {
    border-top: 1px solid #ddd;
    width: 90%;
    margin: 10px auto
}

.sidebar ul li .date {
    font-size: 0.9em;
    padding: 10px 0
}

.wideimg {
    position: relative;
    z-index: 0;
    margin: 0 auto;
}

.pagebreaker {
    font-family: "Roboto", sans-serif;
    font-weight: 700;
    position: relative;
    width: 100%;

}

.pagebreaker-text {
    font-family: "Roboto", sans-serif;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #fff;
    justify-content: center;
    align-items: center;
    position: absolute;
    overflow: hidden;
    top: 61%;
    left: 10%;
    font-size: 3em;
    z-index: 2;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}


/* Responsivity */

@media (min-width: 1500px) {

    .pagebreaker-text {
        font-size: 3.5em
    }
}


@media (max-width: 1200px) {

    .pagebreaker-text {
        font-size: 2em
    }
}

@media (max-width: 768px) {

    .container,
    .container-home {
        flex-direction: column;
    }

    .pagebreaker-text {
        font-size: 1.1em;
        left: 4%;
    }

    .sidebar {
        margin-top: 30px;
    }
}



/*
========================================
DEBATT
========================================
*/

.debatt-citat {
    display: block;
    font-family: "Playfair Display", serif;
    font-style: italic;
    color: var(--green-900);
    border-left: 4px solid var(--nora-gold);
    padding: 4px 0 4px 24px;
    margin: 24px 0;
    font-size: 1.5rem;
    line-height: 1.5;
    font-weight: 500;
    text-align: left;
}


@media (min-width: 420px) {
    .debatt-citat {
        font-size: 1.75rem;
        margin: 46px 0 46px;
    }
}


/*  Skona Nora styles */