/*
Theme Name: Godnathistorie.dk
Theme URI: https://www.godnathistorie.dk/
Template: generatepress
Author: Storgaard Media
Author URI: https://www.storgaardmedia.dk/
Description: Tema til godnathistorie.dk
Version: 1.0.0.1738702919
Updated: 2025-02-04 22:01:42

*/

/* Category */
.beskrivelse-bund {background-color: #ffffff;padding: 30px;}

/* Posts */
.single .inside-article img {width: 100%;}

.read-time {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
    display: block;
    font-style: italic;
}


#reading-progress-container {
    position: fixed;
    bottom: 0; /* Holder den i bunden */
    left: 0;
    width: 100%;
    height: 10px; /* Gør den tydeligere */
    background: rgba(44, 20, 76, 0.2); /* Lilla baggrund med gennemsigtighed */
    z-index: 9999;
    box-shadow: 0px -4px 8px rgba(44, 20, 76, 0.5); /* Markant skygge */
}

#reading-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #2c144c, #6a359c); /* Lilla gradient */
    transition: width 0.2s ease-out;
    box-shadow: 0px 0px 10px rgba(106, 53, 156, 0.8); /* Glød-effekt */
}

/* Ratings */
.rmp-widgets-container {
    background-color: #f9f9f9;
    padding: 20px;
    margin-top: 100px!important;
    margin-bottom: 100px!important;
}

/* Breadcrumbs */
nav.rank-math-breadcrumb {background-color: #ffffff;padding: 30px;}
nav.rank-math-breadcrumb p {margin: 0;}

/* Stil til related posts */
.related-posts {
    margin-top: 40px;
    background: #f9f9f9;
    padding: 20px 0;
}

.related-posts h2 {
    margin-bottom: 15px;
    text-align: center;
}

.related-posts ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 0;
    justify-content: center;
    margin: 0;
}

/* Standard styling til desktop */
.related-post-item {
    width: 23%; /* 4 kolonner på desktop */
    text-align: center;
}

.related-post-item a {
    text-decoration: none;
    color: #333;
    display: block;
}

/* Billede styling */
.related-post-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease-in-out;
}

.related-post-image:hover {
    transform: scale(1.05);
}

/* Titel styling */
.related-post-title {
    display: block;
    margin-top: 10px;
    font-size: 16px;
}

/* 📱 Responsiv styling til mobil */
@media (max-width: 1024px) {
    .related-post-item {
        width: 48%; /* 2 kolonner på tablets */
    }
}

@media (max-width: 768px) {
    #main {margin-top: 0;}
    .related-post-item {
        width: 100%; /* 1 kolonne på mobil */
    }
    .related-posts ul {
        flex-direction: column;
        align-items: center;
    }
}






/* Slder */

.popular-posts-slider {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
    position: relative;
}

/* Styling af slides */
.swiper-slide {
    text-align: center;
    transition: transform 0.3s ease-in-out;
}
.swiper-slide:hover {
    transform: scale(1.05);
}

/* Indhold i slides */
.slide-content {
    display: block;
    text-decoration: none;
    color: inherit;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0
}

/* Styling af navigationspile */
.swiper-button-prev, .swiper-button-next {
    background: rgb(255 239 199);
    color: #2c144c;
    width: 50px; /* Større knap */
    height: 50px;
    border-radius: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    transition: background 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

/* Hover-effekt */
.swiper-button-prev:hover, .swiper-button-next:hover {
    background: rgb(44 20 76);
    transform: translateY(-50%) scale(1.1);
    color: #fff0c7;
}

/* Luft mellem pilene og sliderelementet */
.swiper-button-prev {
    left: 15px; /* Lidt ekstra luft */
}

.swiper-button-next {
    right: 15px;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 25px;
}

/* Mobilvenlig tilpasning */
@media (max-width: 768px) {
    .swiper-button-prev, .swiper-button-next {
        width: 50px; /* Mindre knap på mobil */
        height: 50px;
        font-size: 16px; /* Endnu mindre pil */
    }
    .swiper-button-prev {
        left: 5px;
    }
    .swiper-button-next {
        right: 5px;
    }
}




