/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/

/*gammelt start*/
/*.inside-right-sidebar {*/
/*    position: sticky;*/
/*    top: 20px;*/
/*}*/

html {
    scroll-behavior: smooth;
}

.read-estimate, .byline {
    white-space: nowrap;
    display: inline-block;
}

.breadcrumbs {
    font-size: 14px;
}

.single .breadcrumbs, .page .breadcrumbs {
    margin-left: 40px;
    margin-right: 40px;
}

@media (max-width: 768px) {
    .single .breadcrumbs, .page .breadcrumbs {
        margin-left: 30px;
        margin-right: 30px;
    }
}

.archive .breadcrumbs {
    margin-bottom: 20px;
    margin-left: calc(20px + 40px);
}

@media (max-width: 768px) {
    .archive .breadcrumbs {
        margin-left: 30px;
    }
}

.breadcrumbs a {
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

@media (min-width: 769px) {
    .widget-area {
        margin-top: 41px;
    }
}

/*Gammelt slut*/

b, strong {
    font-weight: 800;
}

.archive article .post-image, .blog article .post-image, .single-post article .post-image, .single-post article .featured-image {
    background: #ceeca3;
    padding: 30px;
}

.archive article .post-image a, .blog article .post-image a, .single-post article .post-image a {
    display: block;
}

.archive article .post-image img, .blog article .post-image img, .single-post article .post-image img, .single-post article .featured-image img {
    mix-blend-mode: multiply;
    width: 100%;
}

.single-post article .inside-article .featured-image {
    max-width: 300px;
}

article .read-more-container {
    line-height: 1;
}

.frontpage-description p:last-child {
    margin-bottom: 0
}

.long-description {
    margin-top: 20px;
}

.long-description-author {
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .long-description-author {
        margin-left: 20px;
    }
}

/* Category list output */
.pp-category-list {
    flex: 1 1 100%;
    clear: both;
    margin-left: 30px;
    margin-right: 30px;
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .pp-category-list {
        margin-left: 60px;
        margin-right: 60px;
    }
}

@media (min-width: 1348px) {
    .pp-category-list {
        margin-left: 20px;
        margin-right: 20px;
    }
}

/*@media (min-width: 1350px) {*/
/*    .pp-category-list {*/
/*        margin-left: 20px;*/
/*    }*/
/*}*/

.pp-category-list .category-children .item {
    display: inline-block;
    padding-right: 8px;
    padding-bottom: 2px;
}

.pp-category-list .category-children .item a {
    font-size: 12px;
    padding: 4px 12px;
    font-weight: 600;
    /*border: 1px solid black;*/
    float: left;
    color: #3e4635;
    background: white;
    text-decoration: none;
}

.pp-category-list .category-children .item a:hover {
    background: #3e4635;
    color: white;
}

.pp-category-list .category-children .item a.pp-trigger-search-popup {
    padding-left: 24px;
    background: #3e4635;
    color: white;
    position: relative;
}

.pp-category-list .category-children .item a.pp-trigger-search-popup:hover {
    background: #5e6a50;
    color: white;
}

.pp-category-list .category-children .item a.pp-trigger-search-popup svg {
    width: 9px;
    position: absolute;
    left: 13px;
    top: 3px;
}

.pp-category-list .category-children .item a.pp-trigger-search-popup svg path {
    fill: white;
    stroke: white;
    stroke-width: 2px;
}

.pp-category-list .category-children .item a.pp-trigger-search-popup:hover svg path {
    fill: white;
    stroke: white;
    stroke-width: 2px;
}

/* Category list output END*/

/* WPML */
.wpml-ls-legacy-list-horizontal.wpml-ls-statics-footer {
    margin-bottom: 3px;
    margin-top: 3px;
}

/* WPML END */

/* Pagination */
.paging-navigation .nav-links {
    text-align: center;
}

/* Pagination END */

.breadcrumbs {
    display: block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Alle child elements skal opføre sig som inline for korrekt ellipsis */
.breadcrumbs span,
.breadcrumbs a,
.breadcrumbs strong {
    white-space: nowrap;
}

/*Blog grid*/
.blog article .entry-title, .archive article .entry-title, .single-post .pp-related .entry-title {
    font-size: 25px;
    font-weight: 800;
}

.single-post .pp-related article .inside-article .post-image {
    margin-bottom: 2em;
}

@media (max-width: 767px) {
    .generate-columns-container.pp-related-columns {
        margin-left: 0;
    }
}

.pp-related .page-header-related {
    margin-left: 30px;
}

@media (max-width: 767px) {
    .pp-related .page-header-related .page-title {
        font-size: 30px;
    }
}

@media (min-width: 768px) {
    .pp-related .page-header-related {
        margin-left: 40px;
    }
}

/*Blog grid end*/

.single-post .site-main article .entry-header .entry-meta .cat-links {
    display: block;
}

.single-post .site-main article .entry-header .gp-icon {
    display: inline-block;
}

.pp-single-video-wrapper {
    margin: 2.1em 0 0 0;
}

.pp-single-video-embed {
    width: 100%;
    aspect-ratio: 16 / 9;
    position: relative;
}

.pp-single-video-embed iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.pp-video-created-by.meta-item {
    font-size: 12px;
    font-style: italic;
    margin-top: 7px;
    font-weight: 600;
}

.entry-content .pp-toc-container {
    border-top: 1px solid rgba(0, 0, 0, .1);
    border-bottom: 1px solid rgba(0, 0, 0, .1);
    padding-top: 1.45em;
    padding-bottom: 0.7em;
    margin-bottom: 2em;
}
.pp-toc-container .pp-toc .pp-toc-item a {
    display: block;
    white-space: nowrap;        /* Ingen linjeskift */
    overflow: hidden;           /* Skjuler overskydende tekst */
    text-overflow: ellipsis;    /* Viser "…" hvis den bliver for lang */
}
@media (max-width: 768px) {
    .pp-toc-container .pp-toc {
        margin-left: 1em;
    }
}

.single-post .widget-area .inside-right-sidebar {
    height: 100%;
}
.single-post .widget-area .pp-toc-stalker {
    position: sticky;
    top: 20px;
    margin-bottom: 40px;
}

.single-post .widget-area .pp-toc-stalker .pp-toc-title {
    font-weight: 800;
}

.single-post .pp-toc-stalker {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

@media (max-width: 1200px) {
    .single-post .pp-toc-stalker {
        display: none;
    }
}

.single-post .pp-toc-stalker.show {
    opacity: 1;
    pointer-events: auto;
}

.single-post .pp-toc-stalker .pp-toc a.is-active {
    font-weight: 700;
    text-decoration: underline;
}

.pp-author-section {
    margin-top: 2.1em;
    padding-top: 1.4em;
    border-top: 1px solid rgba(0, 0, 0, .1);
}

.pp-author-heading {
    margin: 0 0 24px;
}

.pp-author-box {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 20px 0 20px 0;
    border-top: 1px solid rgba(0, 0, 0, .1); /* juster til din lilla */
    border-bottom: 1px solid rgba(0, 0, 0, .1); /* juster til din lilla */
}

@media (max-width: 435px) {
    .pp-author-box {
        flex-direction: column;
    }
}

@media (min-width: 436px) {
    .pp-author-box {
        gap: 24px;
        padding: 30px 0 30px 0;

    }
}

@media (min-width: 768px) {
    .pp-author-box {
        gap: 24px;
        padding: 40px 0 40px 0;
    }
}

.pp-author-avatar-wrap img.pp-author-avatar {
    display: block;
}

.pp-author-text {
    flex: 1;
}

.pp-author-name {
    font-size: 1.125rem;
    font-weight: 800;
    margin: 0 0 8px;
}

.pp-author-name a {
    color: inherit;
    text-decoration: none;
}

.pp-author-bio {
    margin: 0 0 12px;
    color: #666;
}

.pp-author-readmore {
    font-size: 0.800rem;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: underline;
}

.pp-faq-section {
    margin-top: 1.5em;
}

.pp-faq-section .pp-faq-heading {
    margin-bottom: 0.7em;
}

.pp-faq-section .faq-list {
    border-top: 1px solid #eeeeee;
    border-bottom: none;
}

.pp-faq-section .faq-question {
    cursor: pointer;
    margin: 0 0 8px;
    font-size: 16px;
    position: relative;
    font-weight: 800;
    transition: color 0.3s;
    line-height: 1.4;
}

.pp-faq-section .faq-question:hover {
    color: #8AA73F;
}

.pp-faq-section .faq-item {
    padding: 18px 54px 12px 0;
    border-bottom: 1px solid #eee;
}

.pp-faq-section .faq-answer {
    margin: 0 0 8px;
    display: none;
}
.no-js .pp-faq-section .faq-answer {
    display: block!important;
}

/* Valgfrit: lille indikator */
.pp-faq-section .faq-question::after {
    font-size: 30px;
    content: '+';
    float: right;
    transition: transform 0.3s, color 0.3s;
    position: absolute;
    right: -34px;
    top: 0;
    color: #8AA73F;
    line-height: 22px;
}

.pp-faq-section .faq-question:hover::after {
    color: #728a34;
}

.pp-faq-section .faq-question.is-open::after {
    content: '−';
}

@media (max-width: 1200px) {
    .single-post .site-content {
        flex-direction: column;
    }

    .single-post .container .site-content .content-area {
        width: auto;
    }

    .single-post .is-left-sidebar.sidebar, .is-right-sidebar.sidebar {
        width: auto;
        order: initial;
    }

    .single-post #main {
        margin-left: 0;
        margin-right: 0;
    }

    body:not(.no-sidebar).single-post #main {
        margin-bottom: 0;
    }

    .single-post .widget-area {
        margin-top: 0;
    }

}

@media (min-width: 1201px) {
    .single-post .site-content .content-area {
        width: 65%;
    }

    .single-post .widget-area {
        width: 35%;
    }
}

.widget_categories {
    display: flex;
}

.widget_categories ul.wp-block-categories-list {
    padding-left: 0;
    list-style: none;
    margin-bottom: -5px;
    display: block;
    margin-top: 3px;
    float: left;
}

.widget_categories ul.wp-block-categories-list li {
    padding-right: 8px;
    padding-bottom: 8px;
    float: left;
    margin-bottom: 0;
}

.widget_categories ul.wp-block-categories-list li a {
    font-size: 12px;
    padding: 4px 12px;
    font-weight: 600;
    border: 1px solid #3e4635;
    float: left;
    color: #3e4635;
    background: white;
    text-decoration: none;
}

.widget_categories ul.wp-block-categories-list li a:hover {
    background: #3e4635;
    color: white;
}

/*Blog single */

/*Blog single END*/

/* Header images */
.home .page-header.header-image {
    position: relative;
    color: white;
    min-height: 400px;
    display: flex;
    justify-content: flex-end;
    flex-direction: column;
    align-items: flex-start;
    overflow: hidden;
}

.home .page-header.header-image, .home .page-header.header-image .page-title, .home .page-header.header-image .frontpage-description {
    position: relative;
}

.home .page-header.header-image .page-title, .home .page-header.header-image .frontpage-description {
    max-width: 900px;
}

.home .page-header.header-image .image-container, .home .page-header.header-image .image-overlay {
    position: absolute;
    left:0;
    top:0;
    width: 100%;
    height: 100%;
}
.home .page-header.header-image .image-overlay {
    background: linear-gradient(rgba(0, 0, 0, 0) 0%, rgb(34 64 31 / 70%) 100%);
}

.home .page-header.header-image .image-container img {
    width: 100%;
    height: 100%;          /* slå .size-full height:auto */
    max-width: none;        /* så GP ikke begrænser den */
    object-fit: cover;
    object-position: center bottom;
}
/* Header images END*/

/* Search TODO not done */
.gp-modal #rlv-popup-results .relevanssi-live-search-results {
    position: static;
    max-height: 450px;
    min-height: 100px;
    margin-top: 11px;
    width: 100%!important;
    border-radius: 0;
}
.gp-modal .search-modal-fields {
    background: white;
}
.gp-modal .search-modal-form {
    background: transparent;
}


.gp-modal #popup-search-form input[type=search] {
    -webkit-appearance: none;
    border: none;
}
.gp-modal #popup-search-form input[type=search]:focus, #popup-search-form input[type=search]:focus-visible {
    /*appearance: none;*/
    outline-style: none;
}

.gp-modal .rlv-has-spinner {
    background: url('../../../wp-content/uploads/2025/10/practicapadelball-black.svg');
    background-size: 100%;
    border: none;
    border-radius: 0;
    will-change: transform;
    margin-top: 1.35em;
}
.gp-modal .rlv-has-spinner::after {
    content: none;
}

.gp-modal .relevanssi-live-search-no-results, .relevanssi-live-search-didyoumean {
    padding: .5rem 1rem;
}

.gp-modal .search-meta {
    margin-top: 1px;
    display: block;
}
.gp-modal span.search-meta-cat {
    border: 1px solid #959595;
    padding: 1px 4px;
    display: inline-block;
    font-size: 9px;
    font-weight: 700;
    margin-right: 4px;
    color: #959595;
    margin-top: 4px;
}

.gp-modal .relevanssi-live-search-result a {
    line-height: 1.1;
    color: black;
    white-space: normal;
}

.gp-modal .relevanssi-live-search-result a:hover {
    text-decoration: underline;
}

/* Search end */

/* Yoast FAQ */
.schema-faq {
    margin-top: 1.5em;
}

/* Each FAQ item */
.schema-faq-section {
    padding: 18px 54px 12px 0;
    border-bottom: 1px solid #eee;
}

/* Question styles */
.schema-faq-question {
    cursor: pointer;
    display: block;
    margin: 0 0 8px;
    font-size: 16px;
    position: relative;
    font-weight: 800;
    line-height: 1.4;
    transition: color 0.3s;
}

/* Hover color */
.schema-faq-question:hover {
    color: #8AA73F;
}

/* Answer hidden by default */
.schema-faq-answer {
    margin: 0 0 8px;
    display: none;
}
.no-js .schema-faq-answer {
    display: block!important;
}

/* Icon to the right */
.schema-faq-question::after {
    font-size: 26px;
    content: '+';
    position: absolute;
    right: -34px;
    top: 0;
    color: #8AA73F;
    transition: transform 0.3s, color 0.3s;
}

/* Hover icon color */
.schema-faq-question:hover::after {
    color: #728a34;
}

/* Open state */
.schema-faq-question.is-open::after {
    content: '−';
    color: #8AA73F;
}
/* Yoast FAQ END */
