/* 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;
}


/* Content area */
.content-area .elementor-widget-theme-post-content h1, 
.content-area .elementor-widget-theme-post-content h2, 
.content-area .elementor-widget-theme-post-content h3, 
.content-area .elementor-widget-theme-post-content h4, 
.content-area .elementor-widget-theme-post-content h5, 
.content-area .elementor-widget-theme-post-content h6 {
    margin: 0;
    margin-top: 36px;
    margin-bottom: 12px;
    color: #000;
    font-family: "Optima", Sans-serif;
}

:is(.content-area .elementor-widget-theme-post-content h1, .content-area .elementor-widget-theme-post-content h2, .content-area .elementor-widget-theme-post-content h3, .content-area .elementor-widget-theme-post-content h4, .content-area .elementor-widget-theme-post-content h5, .content-area .elementor-widget-theme-post-content h6):not(:is(.content-area .elementor-widget-theme-post-content h1, .content-area .elementor-widget-theme-post-content h2, .content-area .elementor-widget-theme-post-content h3, .content-area .elementor-widget-theme-post-content h4, .content-area .elementor-widget-theme-post-content h5, .content-area .elementor-widget-theme-post-content h6) ~ :is(.content-area .elementor-widget-theme-post-content h1, .content-area .elementor-widget-theme-post-content h2, .content-area .elementor-widget-theme-post-content h3, .content-area .elementor-widget-theme-post-content h4, .content-area .elementor-widget-theme-post-content h5, .content-area .elementor-widget-theme-post-content h6)) {
    margin-top: 0px;
}

.content-area .elementor-widget-theme-post-content,
.content-area .elementor-widget-theme-post-content p {
    margin: 0; 
    margin-bottom: 26px;
    color: #000;
    font-family: "Archivo", Sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 24px;
}

.content-area .elementor-widget-theme-post-content ul,
.content-area .elementor-widget-theme-post-content ol {    
    list-style-position: outside;
    padding-left: 20px;
    margin: 0 0 1.5em 3em;
}

@media (max-width: 1024px) { 
    .content-area .elementor-widget-theme-post-content ul,
    .content-area .elementor-widget-theme-post-content ol {    
        padding-left: 0px;
    }
}

.content-area .elementor-widget-theme-post-content ul > li > ul {
    margin-bottom: 8px;
}

.content-area .elementor-widget-theme-post-content ul > li:last-child > ul {
    margin-bottom: 0;
}

.content-area .elementor-widget-theme-post-content hr {
    display: block;
    height: 32px;
}

.elementor-lightbox .elementor-lightbox-image {
    background: #fff;
    cursor: zoom-out;
    pointer-events: none;
}

.content-area .elementor-widget-theme-post-content img {
    max-height: 500px;
    border: 1px solid #E5E5E5;
    cursor: zoom-in;
}

.content-area .elementor-widget-theme-post-content pre {
    padding: 20px;
    border-radius: 4px;
    background: #1E1E1E;
    color: #F3F4F6;
}

.content-area .elementor-widget-theme-post-content blockquote {
    margin: 0;
    margin-bottom: 32px;
    background-color: #E9F3FF;
    border-color: #075BAA;
}

.content-area .elementor-widget-theme-post-content blockquote p {
    margin: 0;
    font-style: normal;
}

.content-area .elementor-widget-theme-post-content p em {
    display: inline;
}

.content-area .elementor-widget-theme-post-content table {
    width: 100%;
    border-collapse: collapse;
    display: block;
    overflow-x: auto;
    /* white-space: nowrap; */
    border-top: none;
}

.content-area .elementor-widget-theme-post-content table thead { 
    background-color: var(--e-global-color-23b7dde);
    color: #000;
}

.content-area .elementor-widget-theme-post-content table thead,
.content-area .elementor-widget-theme-post-content table tbody {  
    min-width: 100%;
}

:not(pre) > code {
    background: #e8e8e8;
    padding: 0 4px;
    font-size: 13px;
    line-height: 24px;
    border-radius: 4px;
}


/* Level */
.level-btn {
    background-color: #FFFFFF33;
    border-radius: 4px;
    margin-bottom: 16px !important;
}


/* Back to Tutorials */
.back-to-tutorials {
    --back-label: attr(data-back-label);
}

.back-to-tutorials .elementor-icon {
    display: flex;
    align-items: center;
    gap: 8px;
}

.back-to-tutorials .elementor-icon::after {
    content: var(--back-label);
    font-family: Archivo;
    font-weight: 400;
    font-size: 14px;
    line-height: 21px;
    letter-spacing: 0px;
    color: #FFFFFFCC;
    position: relative;
    top: 1px;
}

.back-to-tutorials .elementor-icon:hover svg path {
    stroke: #fff;
    stroke-opacity: 1;
}

.back-to-tutorials .elementor-icon:hover::after {
    color: #fff;
}


/* Sidebar box */
.sidebar-box {
    background: linear-gradient(135deg, #F9FAFB 0%, #FFFFFF 100%);
}

.sidebar-box .elementor-toc__list-wrapper {
    margin: 0;
    display: grid;
    gap: 16px;
    overflow: hidden;
}

.sidebar-box .elementor-toc__list-item {
    margin-bottom: 0;
}

.sidebar-box .elementor-toc__list-item-text {
    max-width: 184px;
}

@media (min-width: 1024px) { 
    .sidebar-box .elementor-toc__list-item-text {
        max-width: 254px;
    }
}

.sidebar-box .elementor-toc__list-item-text-wrapper svg {
    display: none;
}

.sidebar-box  .elementor-post-info__terms-list {
    font-size: 0;
    display: flex !important;
    gap: 8px 4px;
    flex-wrap: wrap;
}

.sidebar-box  .elementor-post-info__terms-list-item {
    background-color: #F3F3F5;
    border-radius: 4px;
    padding: 0 10px;
    font-family: "Inter", Sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 30px;
    color: #656565;
}

.sidebar-box  .elementor-post-info__terms-list-item::before {
    content: '#';
}

.sidebar-box .elementor-heading-title a:hover {
    text-decoration: underline;
}

.sidebar-box__tags:not(:has(.elementor-post-info__terms-list-item)) {
    display: none;
}


/* Sidebar sticky */
.stw-sidebar {
    position: sticky;
    top: 16px;
}

.stw-sidebar.stw-sidebar-scroll-up {
    top: calc(16px + 60px);
}

.admin-bar .stw-sidebar {
    top: calc(32px + 16px);
}

.admin-bar .stw-sidebar.stw-sidebar-scroll-up {
    top: calc(32px + 16px + 60px);
}

/* Sidebar collapse state when sticky area is too small */
.stw-sidebar.stw-sidebar-no-space .sidebar-box > .elementor-widget-heading:first-child .elementor-heading-title {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.stw-sidebar.stw-sidebar-no-space .sidebar-box > .elementor-widget-heading:first-child .elementor-heading-title::after {
    content: "";
    flex: 0 0 auto;
    width: 21px;
    height: 12px;
    display: inline-block;
    background: #1f2124;
    mask-repeat: no-repeat;
    mask-position: center center;
    mask-size: 21px 12px;
    mask-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="21" height="12" viewBox="0 0 21 12" fill="none"><path d="M0.810059 0.749023H4.64756" stroke="currentColor" stroke-width="1.5002"></path><path d="M1.56006 -0.000976562V12.0006" stroke="currentColor" stroke-width="1.5002"></path><path d="M0.810059 11.2505H4.64756" stroke="currentColor" stroke-width="1.5002"></path><path d="M6.81104 6H14.011" stroke="currentColor" stroke-width="1.5002"></path><path d="M10.4053 2.39941V9.59941" stroke="currentColor" stroke-width="1.5002"></path><path d="M16.1621 0.749023H19.9996" stroke="currentColor" stroke-width="1.5002"></path><path d="M19.2627 -0.000976562V12.0006" stroke="currentColor" stroke-width="1.5002"></path><path d="M16.1621 11.2505H19.9996" stroke="currentColor" stroke-width="1.5002"></path></svg>');
    transition: mask-image 0.2s ease, -webkit-mask-image 0.2s ease;
}

.stw-sidebar.stw-sidebar-no-space .sidebar-box:not(.sidebar-box__toc).stw-sidebar-box-expanded > .elementor-widget-heading:first-child .elementor-heading-title::after,
.stw-sidebar.stw-sidebar-no-space:not(.stw-sidebar-focus-card):not(.stw-sidebar-toc-collapsed) .sidebar-box.sidebar-box__toc > .elementor-widget-heading:first-child .elementor-heading-title::after {
    mask-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="21" height="13" viewBox="0 0 21 13" fill="none"><path d="M0.810059 1.71094H4.64756" stroke="currentColor" stroke-width="1.5002"></path><path d="M1.56006 0.960938V12.9625" stroke="currentColor" stroke-width="1.5002"></path><path d="M0.810059 12.2129H4.64756" stroke="currentColor" stroke-width="1.5002"></path><path d="M6.81104 6.96191H14.011" stroke="currentColor" stroke-width="1.5002"></path><path d="M16.1621 1.71094H19.9996" stroke="currentColor" stroke-width="1.5002"></path><path d="M19.2627 0.960938V12.9625" stroke="currentColor" stroke-width="1.5002"></path><path d="M16.1621 12.2129H19.9996" stroke="currentColor" stroke-width="1.5002"></path></svg>');
}

.stw-sidebar.stw-sidebar-no-space .sidebar-box:not(.sidebar-box__toc) > :not(:first-child) {
    display: none;
}

.stw-sidebar.stw-sidebar-no-space .sidebar-box:not(.sidebar-box__toc).stw-sidebar-box-expanded > :not(:first-child) {
    display: block;
}

.stw-sidebar.stw-sidebar-no-space.stw-sidebar-focus-card .sidebar-box.sidebar-box__toc > :not(:first-child) {
    display: none;
}

.stw-sidebar.stw-sidebar-no-space.stw-sidebar-toc-collapsed .sidebar-box.sidebar-box__toc > :not(:first-child) {
    display: none;
}

.stw-sidebar.stw-sidebar-no-space.stw-sidebar-measuring .sidebar-box:not(.sidebar-box__toc) > :not(:first-child) {
    display: block;
}

.stw-sidebar.stw-sidebar-no-space.stw-sidebar-measuring .sidebar-box.sidebar-box__toc > :not(:first-child) {
    display: block;
}

@media (min-width: 1920px) { 
    .stw-sidebar.stw-sidebar-scroll-up {
        top: calc(16px + 100px);
    }

    .admin-bar .stw-sidebar.stw-sidebar-scroll-up {
        top: calc(32px + 16px + 100px);
    }
}

@media (max-width: 1200px) {
    .stw-sidebar.stw-sidebar-scroll-up {
        top: calc(16px + 76px);
    }

    .admin-bar .stw-sidebar.stw-sidebar-scroll-up {
        top: calc(32px + 16px + 76px);
    }
}

.stw-sidebar-no-space .sidebar-box:not(.stw-sidebar-box-expanded) .elementor-widget-container {
    margin-bottom: -6px !important;
} 

.stw-sidebar-no-space .sidebar-box .elementor-widget-table-of-contents {
    padding-top: 20px;
}


/* Modal feedback */
.modal-feedback .elementor-field-subgroup input[type="radio"] {
    display: none !important;
}

.modal-feedback .elementor-field-subgroup .elementor-field-option label {
    display: inline-block;
    padding: 10px 18px;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    cursor: pointer;
    background: #fff;
    transition: all 0.2s ease;        
    line-height: 24px;
    text-align: center;
    color: #4A5565 !important;
}

@media (max-width: 460px) {
    .modal-feedback .elementor-field-subgroup .elementor-field-option label {
        padding: 10px 8px;
    }
}

.modal-feedback .elementor-field-subgroup .elementor-field-option label:hover {
    background: #075BAA1A;
    border-color: #075BAA;
    color: #075BAA !important;
}

.modal-feedback .elementor-field-subgroup input[type="radio"]:checked + label {
    background: #fff;
    color: #131828 !important;
    border-color: #131828;    
    font-weight: 500 !important;
}

.modal-feedback .elementor-field-subgroup.elementor-subgroup-inline {
    gap: 12px;
}

@media (max-width: 380px) {
    .modal-feedback .elementor-field-subgroup.elementor-subgroup-inline {
        flex-direction: column;
    }
}

.modal-feedback .elementor-field-subgroup.elementor-subgroup-inline .elementor-field-option {
    padding-inline-end: 0px;
}

.modal-feedback .elementor-field-subgroup.elementor-subgroup-inline .elementor-field-option:last-child {
    flex: 1;
}
/* 
html[lang="no"] .modal-feedback .elementor-field-subgroup.elementor-subgroup-inline .elementor-field-option:last-child,
html[lang="nb"] .modal-feedback .elementor-field-subgroup.elementor-subgroup-inline .elementor-field-option:last-child,
html[lang="nb-NO"] .modal-feedback .elementor-field-subgroup.elementor-subgroup-inline .elementor-field-option:last-child {
    flex: 2;
} */

.modal-feedback .elementor-field-subgroup.elementor-subgroup-inline .elementor-field-option label {
    margin: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-feedback .elementor-field-subgroup label::before {
    content: '';
    width: 18px;
    position: relative;
    mask-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="size-6"><path stroke-linecap="round" stroke-linejoin="round" d="M12 18v-5.25m0 0a6.01 6.01 0 0 0 1.5-.189m-1.5.189a6.01 6.01 0 0 1-1.5-.189m3.75 7.478a12.06 12.06 0 0 1-4.5 0m3.75 2.383a14.406 14.406 0 0 1-3 0M14.25 18v-.192c0-.983.658-1.823 1.508-2.316a7.5 7.5 0 1 0-7.517 0c.85.493 1.509 1.333 1.509 2.316V18" /></svg>');
    height: 18px;
    line-height: 18px;
    mask-size: 18px 18px;
    mask-repeat: no-repeat;
    background-color: #4A5565;
    margin-right: 8px;
}

.modal-feedback .elementor-field-subgroup .elementor-field-option label:hover::before {
    background-color: #075BAA;
}

.modal-feedback .elementor-field-subgroup input[type="radio"]:checked + label::before {
    background-color: #131828;
}

.modal-feedback .elementor-field-subgroup.elementor-subgroup-inline .elementor-field-option:last-child label::before {
    mask-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="size-6"><path stroke-linecap="round" stroke-linejoin="round" d="M12 9v3.75m9-.75a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 3.75h.008v.008H12v-.008Z" /></svg>');
}


/* Post info */
.post-info svg path {
    stroke: #FFFFFFE6;
}

.stw-tutorial-like-btn {
    height: 40px;
    border: 1px solid #E5E5E5;
    display: flex;
    align-items: center;
    gap: 8px;
    box-sizing: content-box;
    padding: 0 20px !important;
    border-radius: 4px !important;
    background: #fff !important;
    cursor: pointer;
}

@media (max-width: 767px) {
    .stw-tutorial-like-btn {
        height: 36px;
        padding: 0 16px !important;
    }
}

.stw-tutorial-like-label {
    font-family: Inter;
    font-weight: 400;
    font-size: 14px;
    line-height: 21px;
    text-align: center;
    color: #656565;
}

.stw-tutorial-like-btn svg {
    width: 16px;
    height: 16px;
    stroke: #656565;
}

.stw-tutorial-like-btn:hover:not(:disabled) {
    background-color: #075BAA !important;
    border-color: #fff;
}
.stw-tutorial-like-btn:hover:not(:disabled) .stw-tutorial-like-label {
    color: #fff;
}
.stw-tutorial-like-btn:hover:not(:disabled) svg {
    stroke: #fff;
}

.stw-tutorial-like-btn.is-liked,
.stw-tutorial-like-btn:disabled {
    background: #075BAA1A !important;
    border-color: #075BAA;
}

.stw-tutorial-like-btn.is-liked .stw-tutorial-like-label,
.stw-tutorial-like-btn:disabled .stw-tutorial-like-label {
    color: #075BAA;
    font-weight: 500;
}
.stw-tutorial-like-btn.is-liked svg,
.stw-tutorial-like-btn:disabled svg {
    stroke: #075BAA;
}


/* Header hide on scroll down, show on scroll up (single post only) */
.single-tutorials #stw-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    transition: transform 0.25s ease;
    transform-origin: top;
}

.single-tutorials #stw-header.stw-header-hidden {
    transform: translateY(-100%);
}

.single-tutorials #stw-header .astra-logo-svg {
    transition: width .3s;
}  

.single-tutorials #stw-header.stw-header-compact.stw-header-hidden {
    transform: translateY(-100%);
}

@media (min-width: 1200px) {
    .single-tutorials #stw-header.stw-header-compact .astra-logo-svg {
        width: 200px;
    }
    
    .single-tutorials #stw-header.stw-header-compact .elementor-nav-menu .elementor-item {
        line-height: 60px;
    }
    
    .single-tutorials #stw-header.stw-header-compact > .elementor-container {
        min-height: 60px;
    }

    .single-tutorials #stw-header.stw-header-compact .elementor-nav-menu .menu-link::before {
        bottom: 17px;
    }
}