/**
 * Tutorials archive and single – styles.
 * Enqueued only on tutorials pages.
 */

#tutorial-results {
    opacity: 0;
    transition: opacity 0.15s ease;
}

 /* Reset astra */
 #ast-scroll-top {
    display: none !important;
}

.ast-separate-container .ast-article-post, .ast-separate-container .ast-article-single, .ast-separate-container .comment-respond {
    padding: 0 !important;
}

.site-content .ast-container {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.ast-separate-container #content .ast-container {
    padding: 0 !important;
}

.elementor-location-footer > .elementor-section {
    margin: 0 !important;
}

 .ast-separate-container .ast-comment-list li.depth-1, .hentry {
    margin-bottom: 0 !important;
 }


 /* Tutorial card */
 #tutorial-results .elementor-heading-title a {
    display: block;
 }

#tutorial-results .elementor-heading-title a:hover {
    text-decoration: underline;
}


/* Search */
#live-search {
    padding: 0;
    margin: 0;
    border: none;
    height: 56px;
    width: 100%;
    border-radius: 8px;
    font-family: "Inter", Sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 56px;
    padding-right: 16px;
    padding-left: 48px;
    color: #131828;
}

@media (max-width: 767px) {
    #live-search {
        border-radius: 6px;
        height: 40px;
        line-height: 40px;
        padding-left: 32px;
    }
}

#live-search::placeholder {
    color: #13182880 !important;
}

.tutorial-live-search {
    position: relative;
}

.tutorial-live-search #live-search {
    padding-right: 52px;
}

@media (max-width: 767px) {
    .tutorial-live-search #live-search {
        padding-right: 36px;
    }
}

.tutorial-live-search::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background: #717182;
    mask: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9.16667 15.8333C12.8486 15.8333 15.8333 12.8486 15.8333 9.16667C15.8333 5.48477 12.8486 2.5 9.16667 2.5C5.48477 2.5 2.5 5.48477 2.5 9.16667C2.5 12.8486 5.48477 15.8333 9.16667 15.8333Z" stroke="currentColor" stroke-width="1.66667" stroke-linecap="round" stroke-linejoin="round"/><path d="M17.5 17.5001L13.9166 13.9167" stroke="currentColor" stroke-width="1.66667" stroke-linecap="round" stroke-linejoin="round"/></svg>') center/contain no-repeat;
    -webkit-mask: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9.16667 15.8333C12.8486 15.8333 15.8333 12.8486 15.8333 9.16667C15.8333 5.48477 12.8486 2.5 9.16667 2.5C5.48477 2.5 2.5 5.48477 2.5 9.16667C2.5 12.8486 5.48477 15.8333 9.16667 15.8333Z" stroke="currentColor" stroke-width="1.66667" stroke-linecap="round" stroke-linejoin="round"/><path d="M17.5 17.5001L13.9166 13.9167" stroke="currentColor" stroke-width="1.66667" stroke-linecap="round" stroke-linejoin="round"/></svg>') center/contain no-repeat;
    position: absolute;
    top: calc(50% - 10px);
    left: 16px;
}

@media (max-width: 767px) {
    .tutorial-live-search::before {
        left: 8px;
    }
}

.tutorial-live-search .tutorial-reset-btn.tutorial-reset-btn--hidden {
    visibility: hidden;
    pointer-events: none;
}

.tutorial-live-search .tutorial-reset-btn {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    font-size: 0;
    box-shadow: none;
    border: none;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: #131828 !important;
}


@media (max-width: 767px) {
    .tutorial-live-search .tutorial-reset-btn {
        right: 8px;
    }
}

.tutorial-live-search .tutorial-reset-btn::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    background: #fff;
    mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Free v7.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path d="M504.6 148.5C515.9 134.9 514.1 114.7 500.5 103.4C486.9 92.1 466.7 93.9 455.4 107.5L320 270L184.6 107.5C173.3 93.9 153.1 92.1 139.5 103.4C125.9 114.7 124.1 134.9 135.4 148.5L278.3 320L135.4 491.5C124.1 505.1 125.9 525.3 139.5 536.6C153.1 547.9 173.3 546.1 184.6 532.5L320 370L455.4 532.5C466.7 546.1 486.9 547.9 500.5 536.6C514.1 525.3 515.9 505.1 504.6 491.5L361.7 320L504.6 148.5z"/></svg>') center/contain no-repeat;
    -webkit-mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Free v7.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path d="M504.6 148.5C515.9 134.9 514.1 114.7 500.5 103.4C486.9 92.1 466.7 93.9 455.4 107.5L320 270L184.6 107.5C173.3 93.9 153.1 92.1 139.5 103.4C125.9 114.7 124.1 134.9 135.4 148.5L278.3 320L135.4 491.5C124.1 505.1 125.9 525.3 139.5 536.6C153.1 547.9 173.3 546.1 184.6 532.5L320 370L455.4 532.5C466.7 546.1 486.9 547.9 500.5 536.6C514.1 525.3 515.9 505.1 504.6 491.5L361.7 320L504.6 148.5z"/></svg>') center/contain no-repeat;
    mask-size: 12px 12px;
}

.tutorial-live-search .tutorial-reset-btn:hover {
    opacity: .8;
}

#tutorial-results .no-results {
    padding: 48px 0;
    text-align: center;
    font-family: "Inter", Sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #131828;
}

@media (max-width: 767px) {
    #tutorial-results .no-results {
        padding: 24px 0;
    }
}


 /* Tags */
 .limited-tags {
    padding: 0;
    list-style: none;
    margin: 0;
    display: flex;
    gap: 4px 8px;
    flex-wrap: wrap;
}

.limited-tags li {
    background-color: #F3F3F5;
    border-radius: 4px;
    padding: 0 10px;
    font-family: "Inter", Sans-serif;
    font-weight: 400;
    font-size: 11px;
    line-height: 24px;
    color: #2B2B2B;
}


/* Levels */
.level-btn {
    border: 1px solid #d4d4d4;
    background: #f1f1f1;
    border-radius: 50px;
}

.level-btn--Advanced,
.level-btn--Avansert {
    background: #F3E8FF;
    border: 1px solid #E9D4FF;
}

.level-btn--Intermediate,
.level-btn--Middels {
    background: #DBEAFE;
    border: 1px solid #BEDBFF;
}

.level-btn--Beginner,
.level-btn--Nybegynner {
    background: #DCFCE7;
    border: 1px solid #B9F8CF;
}


/* Views */
.post-info .elementor-icon-list-icon svg path {
    stroke: #717182;
}


/* Filters */
#tutorial-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    min-height: 42px;
    margin-bottom: 48px !important;
}

@media (max-width: 767px) {
    #tutorial-filters {
        gap: 4px 8px;
        margin-bottom: 32px !important;        
    }
}

#tutorial-filters .tutorial-filter-btn {
    margin: 0;
    padding: 0;
    height: auto;
    font-family: "Inter", Sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 42px;
    padding: 0 20px;
    box-shadow: 2px 1px 5px 0px #000E3926;
    border-radius: 6px;
    color: #1F1F1F;
    background: #FFFFFF;
    border: none;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

@media (max-width: 767px) {
    #tutorial-filters .tutorial-filter-btn {
        line-height: 32px;
        height: 32px;
        padding: 0 12px;
    }
}

#tutorial-filters .tutorial-filter-btn.active {
    background: #075BAA;
    color:#FFFFFF;
}

#tutorial-filters .tutorial-filter-btn:not(.active):hover {
    background: var( --e-global-color-4ea05d3 );
    color: #fff;
    box-shadow: none;
}

#tutorial-filters .tutorial-filter-btn--disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}


/* Pagination */
#tutorial-results .elementor-pagination {
    padding-top: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

@media (max-width: 767px) {
    #tutorial-results .elementor-pagination {
        padding-top: 24px;
        gap: 8px;
    }
}

#tutorial-results .page-numbers {
    margin: 0;
    padding: 0;
    height: auto;
    font-family: "Inter", Sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 40px;
    padding: 0;
    color: #656565;
    background: #FFFFFF;
    border: 2px solid #E5E5E5;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

#tutorial-results .page-numbers.current {
    box-shadow: 0px 4px 6px -1px #0000001A;
    background-color: #075BAA;
    color: #FFFFFF;
    line-height: 44px;
    width: 44px;
    height: 44px;
    border: none;
}

@media (max-width: 767px) {
    #tutorial-results .page-numbers.current {
        line-height: 38px;
        width: 34px;
        height: 38px;
    }
}

span:not(.current).page-numbers {
    opacity: .5;
}

#tutorial-results .page-numbers.prev,
#tutorial-results .page-numbers.next {
    font-size: 0;
}

#tutorial-results .page-numbers.prev::before,
#tutorial-results .page-numbers.next::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background: #0A0A0A;
    mask: url('data:image/svg+xml,<svg width="6" height="10" viewBox="0 0 6 10" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.666565 8.66564L4.66613 4.66607L0.666565 0.666504" stroke="currentColor" stroke-width="1.33319" stroke-linecap="round" stroke-linejoin="round"/></svg>') center/contain no-repeat;
    -webkit-mask: url('data:image/svg+xml,<svg width="6" height="10" viewBox="0 0 6 10" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.666565 8.66564L4.66613 4.66607L0.666565 0.666504" stroke="currentColor" stroke-width="1.33319" stroke-linecap="round" stroke-linejoin="round"/></svg>') center/contain no-repeat;
    position: relative;
    mask-size: 7px;
    left: 1px;
    transition: background 0.3s ease;
}

#tutorial-results .page-numbers.prev::before {
    transform: rotate(180deg);
    left: -1px;
}

#tutorial-results a.page-numbers.prev:hover::before,
#tutorial-results a.page-numbers.next:hover::after { 
    background: #fff;
}

#tutorial-results a.page-numbers:not(.current):hover {
    color: #fff;
    background: var( --e-global-color-4ea05d3 );
    border-color: var( --e-global-color-4ea05d3 );
}


/* Skeleton loader */
@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.tutorial-loader__card {
    background: #fff;
    width: 100%;
    padding: 24px;
    padding-bottom: 27px;
    border-bottom: 1px solid #e5e5e5;
}

.tutorial-loader__card-author,
.tutorial-loader__card-title,
.tutorial-loader__card-excerpt,
.tutorial-loader__tag {
    border-radius: 6px;
    background: linear-gradient(90deg, #e5e5e5 0%, #f0f0f0 50%, #e5e5e5 100%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
}

.tutorial-loader__card-title {
    height: 28px;
    width: 300px;
    max-width: 100%;
    margin-bottom: 8px;
}

.tutorial-loader__card-excerpt {
    height: 22px;
    width: 70%;
    margin-bottom: 16px;
}

.tutorial-loader__tags {
    display: flex;
    gap: 8px;
    margin-bottom: 34px;
}

.tutorial-loader__tag {
    height: 24px;
    width: 60px;
}

.tutorial-loader__card-author {
    width: 44px;
    height: 44px;
    border-radius: 50px;
    margin-bottom: 16px;
}

/* Category nav */
#tutorial-filters {
    margin-bottom: 16px;
}

.tutorial-filter-btn {
    display: inline-block;
    margin-right: 8px;
    margin-bottom: 8px;
    padding: 6px 14px;
    border: 1px solid #ccc;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    font-size: inherit;
    line-height: inherit;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.tutorial-filter-btn:hover,
.tutorial-filter-btn.active {
    background: #333;
    color: #fff;
    border-color: #333;
    text-decoration: none;
}


/* Tutorials single select */
.stw-tut-layout__categories {
    padding-right: 138px;
}

.stw-tut-layout__filters {
    position: absolute;
    top: 32px;
    right: 57px;
}

@media (max-width: 1024px) {
    .stw-tut-layout__filters {
        top: 24px;
        right: 16px;
    }
}

.stw-tut-layout__filters select {
    box-shadow: 2px 1px 5px 0px #000E3926;
    border-radius: 6px;
    box-sizing: border-box;
    height: 42px;
    padding: 0 8px;
    padding-right: 32px;
    font-family: Inter;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: -0.15px;
    text-align: center;
    color: #364153;
    line-height: 42px;
    border: none;
    appearance: none;
    cursor: pointer;
}

@media (max-width: 767px) {
    .stw-tut-layout__filters select {
        height: 32px;
        line-height: 32px;
    }
}

.stw-tut-layout__filters:hover .elementor-widget-container::after {
    top: calc(50% + 2px);
}

.stw-tut-layout__filters select:focus-visible {
    outline: none;
}

.stw-tut-layout__filters .elementor-widget-container::after {
    content: "";
    width: 16px;
    height: 16px;
    mask-image: url('data:image/svg+xml,<svg width="10" height="6" viewBox="0 0 10 6" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.666504 0.666016L4.66553 4.66504L8.66455 0.666016" stroke="currentColor" stroke-width="1.33301" stroke-linecap="round" stroke-linejoin="round"/></svg>');
    mask-repeat: no-repeat;
    mask-position: center;
    background: #364153;
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    transition: top 0.2s ease;
}