/*
 * Viljandi Noorteinfo custom styles.
 * Lisa siia Codexi või käsitsi tehtud CSS muudatused.
 */

.vni-custom-active {
    --vni-custom-loaded: 1;
}

#top.single-post .template-single-blog .big-preview.single-big a,
#top.single-post .template-single-blog .big-preview.single-big img {
    display: block;
    width: 100% !important;
}

#top.single-post .template-single-blog .big-preview.single-big img {
    height: auto !important;
    max-width: 100%;
    object-fit: contain;
}

@media only screen and (min-width: 990px) {
    #top #header .logo,
    #top #header .logo a {
        max-width: 300px;
        width: 300px;
    }

    #top #header .logo img[src$="/images/layout/logo-white.png"] {
        aspect-ratio: 1858 / 730;
        height: auto;
        max-height: 100%;
        max-width: 100%;
        width: auto;
    }

    #top #wrap_all #av_section_1.av-minimum-height-100 > .av-section-color-overlay-wrap > .container {
        height: calc(100vh - 118px) !important;
        min-height: 560px;
    }

    .js_active #top #wrap_all #av_section_1.av-minimum-height > .av-section-color-overlay-wrap > .container {
        opacity: 1 !important;
        transition: none !important;
    }
}

@media only screen and (min-width: 1240px) {
    #top #header .main_menu .avia-menu {
        min-width: 824px;
    }
}

#top .vni-uudiskiri {
    width: 100%;
}

#top .vni-uudiskiri-form {
    align-items: center;
    background: #ffffff;
    border: 2px solid transparent;
    border-radius: 999px;
    box-sizing: border-box;
    display: flex;
    gap: 12px;
    min-height: 64px;
    padding: 8px 8px 8px 34px;
    width: 100%;
}

#top .vni-uudiskiri-form.is-error {
    border-color: #d90000;
}

#top .vni-uudiskiri-form .vni-uudiskiri-email[type="email"] {
    align-self: center;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0;
    box-shadow: none !important;
    color: #111111;
    flex: 1 1 auto;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    height: 48px !important;
    line-height: 48px;
    margin: 0 !important;
    min-width: 0;
    outline: 0 !important;
    padding: 0 !important;
}

#top .vni-uudiskiri-form .vni-uudiskiri-email[type="email"]::placeholder {
    color: #878787;
    opacity: 1;
}

#top .vni-uudiskiri-submit {
    align-items: center;
    align-self: stretch;
    background: #000000;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 auto;
    font: inherit;
    font-size: 15px;
    font-weight: 800;
    justify-content: center;
    letter-spacing: 0;
    min-width: 118px;
    padding: 0 30px;
    text-transform: uppercase;
    transition: background-color 180ms ease;
}

#top .vni-uudiskiri-submit:not(:disabled):hover,
#top .vni-uudiskiri-submit:not(:disabled):focus-visible {
    background: #222222;
}

#top .vni-uudiskiri-submit:disabled {
    cursor: wait;
    opacity: 0.7;
}

#top .vni-uudiskiri-success {
    color: #ffffff;
    margin: 0;
}

#top .vni-uudiskiri--sidebar .vni-uudiskiri-form {
    align-items: center;
    background: #ffffff;
    border: 2px solid transparent;
    border-radius: 999px;
    flex-direction: row;
    gap: 8px;
    min-height: 56px;
    padding: 6px 6px 6px 22px;
}

#top .vni-uudiskiri--sidebar .vni-uudiskiri-form.is-error {
    border-color: #d90000;
}

#top .vni-uudiskiri--sidebar .vni-uudiskiri-form .vni-uudiskiri-email[type="email"] {
    background: transparent !important;
    border: 0 !important;
    border-radius: 999px;
    box-sizing: border-box;
    flex: 1 1 auto;
    height: 44px !important;
    line-height: 44px;
    padding: 0 !important;
    width: auto;
}

#top .vni-uudiskiri--sidebar .vni-uudiskiri-submit {
    align-self: stretch;
    flex: 0 0 46px;
    font-size: 20px;
    min-height: 44px;
    min-width: 46px;
    padding: 0;
    width: 46px;
}

#top .vni-uudiskiri--sidebar .vni-uudiskiri-success {
    color: #111111;
}

#top .vni-card-post-slider,
#top .vni-card-post-slider .avia-content-slider-inner,
#top .vni-card-post-slider .slide-entry-wrap {
    overflow: visible;
}

#top .vni-card-post-slider,
#top .vni-card-post-slider .avia-content-slider-inner,
#top .vni-card-post-slider .slide-entry-wrap,
#top .vni-volunteer-post-slider,
#top .vni-volunteer-post-slider .avia-content-slider-inner,
#top .vni-volunteer-post-slider .slide-entry-wrap {
    height: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
}

#top .vni-card-post-slider .slide-entry-wrap {
    align-items: stretch;
    clear: none !important;
    column-gap: 3%;
    display: flex;
    float: none !important;
    flex-wrap: wrap;
    row-gap: 28px;
    width: 100%;
}

#top .vni-card-post-slider .slide-entry {
    background: #e9e9e9;
    border: 1px solid #9ebca6;
    border-radius: 10px;
    box-shadow: 0 0 7px #9ebca6;
    box-sizing: border-box;
    clear: none !important;
    display: flex;
    float: none !important;
    flex: 0 0 22.75%;
    flex-direction: column;
    margin-left: 0;
    min-height: 100%;
    padding: 20px;
    transition: box-shadow 180ms ease, transform 180ms ease;
    width: 22.75%;
}

#top .vni-card-post-slider .slide-entry.vni-card-linkable {
    cursor: pointer;
}

#top .vni-card-post-slider .slide-entry.vni-card-linkable:hover,
#top .vni-card-post-slider .slide-entry.vni-card-linkable:focus-visible {
    box-shadow: 0 6px 14px #9ebca6;
    transform: translateY(-3px);
}

#top .vni-card-post-slider .slide-entry.vni-card-linkable:focus-visible {
    outline: 2px solid #9ebca6;
    outline-offset: 4px;
}

#top .vni-card-post-slider .slide-image {
    aspect-ratio: 16 / 9;
    background: transparent;
    border-radius: 10px;
    display: block;
    line-height: 0;
    margin: 0 0 16px;
    overflow: hidden;
}

#top .vni-card-post-slider .slide-image img {
    border-radius: 10px;
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

#top .vni-card-post-slider .image-overlay {
    display: none !important;
}

#top .vni-card-post-slider .slide-content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
}

#top .vni-card-post-slider .entry-content-header {
    margin: 0;
}

#top .vni-card-post-slider .slide-entry-title {
    margin: 0 0 15px;
    padding: 0;
}

#top .vni-card-post-slider .slide-entry-title a {
    color: #0b0b0b;
    display: inline-block;
    line-height: 1.45;
    min-height: 24px;
    text-decoration: none;
}

#top .vni-card-post-slider .av-vertical-delimiter,
#top .vni-card-post-slider .slide-meta,
#top .vni-card-post-slider .entry-footer,
#top .vni-card-post-slider .read-more-link {
    display: none !important;
}

#top .vni-card-post-slider .slide-entry-excerpt {
    color: #111111;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    font-size: 13px;
    line-height: 1.55;
    margin: 0;
}

#top .vni-card-post-slider .card-arrow {
    align-self: flex-end;
    color: #111111;
    font-size: 18px;
    line-height: 1;
    margin-top: auto;
    padding-top: 24px;
}

#top .vni-volunteer-post-slider,
#top .vni-volunteer-post-slider .avia-content-slider-inner,
#top .vni-volunteer-post-slider .slide-entry-wrap {
    overflow: visible;
}

#top .vni-volunteer-post-slider .slide-entry-wrap {
    align-items: stretch;
    clear: none !important;
    column-gap: 3%;
    display: flex;
    float: none !important;
    flex-wrap: wrap;
    row-gap: 28px;
    width: 100%;
}

#top .vni-volunteer-post-slider .slide-entry {
    background: #f7f7f7;
    border: 1px solid #e3b0bc;
    border-radius: 10px;
    box-shadow: 0 0 7px #e3b0bc;
    box-sizing: border-box;
    clear: none !important;
    display: flex;
    float: none !important;
    flex: 0 0 31.333333%;
    flex-direction: column;
    margin-left: 0;
    min-height: 100%;
    padding: 20px;
    transition: opacity 180ms ease;
    width: 31.333333%;
}

#top .vni-volunteer-post-slider .slide-entry.vni-card-linkable {
    cursor: pointer;
}

#top .vni-volunteer-post-slider .slide-entry.vni-card-linkable:hover {
    opacity: 0.8;
}

#top .vni-volunteer-post-slider .slide-entry.vni-card-linkable:focus-visible {
    outline: 2px solid #7136d8;
    outline-offset: 4px;
}

#top .vni-volunteer-post-slider .slide-image {
    aspect-ratio: 495 / 400;
    background: transparent;
    border-radius: 10px;
    display: block;
    line-height: 0;
    margin: 0 0 16px;
    overflow: hidden;
}

#top .vni-volunteer-post-slider .slide-image img {
    border-radius: 10px;
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

#top .vni-volunteer-post-slider .image-overlay {
    display: none !important;
}

#top .vni-volunteer-post-slider .slide-content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
}

#top .vni-volunteer-post-slider .entry-content-header {
    margin: 0;
}

#top .vni-volunteer-post-slider .slide-entry-title {
    margin: 0 0 15px;
    padding: 0;
}

#top .vni-volunteer-post-slider .slide-entry-title a {
    color: #111111;
    display: inline-block;
    line-height: 1.1;
    min-height: 24px;
    text-decoration: none;
}

#top .vni-volunteer-post-slider .av-vertical-delimiter,
#top .vni-volunteer-post-slider .slide-meta,
#top .vni-volunteer-post-slider .entry-footer,
#top .vni-volunteer-post-slider .read-more-link {
    display: none !important;
}

#top .vni-volunteer-post-slider .slide-entry-excerpt {
    color: #111111;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    font-size: 13px;
    line-height: 1.55;
    margin: 0;
}

#top .vni-volunteer-post-slider .vni-volunteer-card-meta {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-top: auto;
    min-width: 0;
    padding-top: 24px;
    width: 100%;
}

#top .vni-volunteer-post-slider .vni-volunteer-card-date {
    color: #111111;
    flex: 1 1 auto;
    font-size: 13px;
    line-height: 1.5;
    min-width: 0;
    white-space: nowrap;
}

#top .vni-volunteer-post-slider .card-arrow {
    box-sizing: border-box;
    color: #111111;
    flex: 0 0 auto;
    font-size: 18px;
    line-height: 1;
    margin-left: auto;
    padding-right: 20px;
}

#top .vni-volunteer-international-post-slider .slide-entry {
    border-color: #9abaa0;
    box-shadow: 0 0 7px #9abaa0;
}

#top .vni-volunteer-international-post-slider .slide-entry.vni-card-linkable:focus-visible {
    outline-color: #9abaa0;
}

#top .vni-volunteer-blog-post-slider .slide-entry {
    border-color: #9abaa0;
    box-shadow: 0 0 7px #9abaa0;
}

#top .vni-volunteer-blog-post-slider .slide-entry.vni-card-linkable:focus-visible {
    outline-color: #9abaa0;
}

#top .vni-filter-uudised {
    margin-top: 6px;
}

#top .vni-filter-uudised-controls {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 28px;
}

#top .vni-filter-uudised-button {
    background: #e9e9e9;
    border: 0;
    border-radius: 50px;
    color: #0c1531;
    cursor: pointer;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    padding: 20px 40px 20px 40px;
    text-transform: uppercase;
    transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

#top .vni-filter-uudised-button:hover,
#top .vni-filter-uudised-button:focus-visible {
    background: #dddddd;
    transform: translateY(-1px);
}

#top .vni-filter-uudised-button.is-active {
    background: #7136d8;
    color: #ffffff;
}

#top .vni-filter-uudised-button.is-active:hover,
#top .vni-filter-uudised-button.is-active:focus-visible {
    background: #8a5dd8;
}

#top .vni-filter-uudised-button:focus-visible {
    outline: 2px solid #7136d8;
    outline-offset: 3px;
}

#top .vni-filter-uudised-grid {
    display: grid;
    gap: 28px 3%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

#top .vni-filter-uudised-card {
    background: #e9e9e9;
    border: 1px solid #e3e3e3;
    border-radius: 10px;
    box-shadow: 0 0 7px #e9e9e9;
    box-sizing: border-box;
    color: #111111;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 20px;
    text-decoration: none;
    transition: none;
}

#top .vni-filter-uudised-card:hover {
    opacity: 0.8;
}

#top .vni-filter-uudised-card:focus-visible {
    outline: 2px solid #7136d8;
    outline-offset: 4px;
}

#top .vni-filter-uudised-media {
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    display: block;
    line-height: 0;
    margin: 0 0 16px;
    overflow: hidden;
}

#top .vni-filter-uudised-media img,
#top .vni-filter-uudised-placeholder {
    border-radius: 10px;
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

#top .vni-filter-uudised-placeholder {
    background: #d8d8d8;
}

#top .vni-filter-uudised-content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
}

#top .vni-filter-uudised-content h3 {
    color: #111111;
    font-size: 18px;
    line-height: 1.1;
    margin: 0 0 15px;
    padding: 0;
}

#top .vni-filter-uudised-excerpt {
    color: #111111;
    font-size: 13px;
    line-height: 1.55;
    margin: 0 0 14px;
}

#top .vni-filter-uudised-meta {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-top: auto;
    min-width: 0;
    padding-top: 24px;
    width: 100%;
}

#top .vni-filter-uudised-date {
    color: #111111;
    flex: 1 1 auto;
    font-size: 13px;
    line-height: 1.5;
    min-width: 0;
    white-space: nowrap;
}

#top .vni-filter-uudised .card-arrow {
    box-sizing: border-box;
    color: #111111;
    flex: 0 0 auto;
    font-size: 18px;
    line-height: 1;
    margin-left: auto;
    padding-right: 20px;
}

#top .vni-filter-uudised-empty {
    margin: 0;
}

html.vni-force-burger-menu.responsive.html_mobile_menu_phone #top #wrap_all #header .main_menu {
    display: block;
    height: 100%;
    left: auto;
    position: absolute;
    right: 0;
    top: 0;
}

html.vni-force-burger-menu.responsive.html_mobile_menu_phone #top #header .av-main-nav > li.menu-item {
    display: none;
}

html.vni-force-burger-menu.responsive.html_mobile_menu_phone #top #header .av-main-nav > li.av-burger-menu-main {
    display: block;
}

html.vni-force-burger-menu.responsive.html_mobile_menu_phone #top #header_main > .container .main_menu .av-main-nav > li.av-burger-menu-main > a {
    background: transparent;
    border: 0;
    color: inherit;
    margin: 0;
    min-width: 0;
    padding: 0 0 0 20px;
}

#top #wrap_all .flex_column.av-rkge-fcae58a3474e9718287ea7f03ae42ec7 {
    background-color: #a91f5d !important;
}

#top #wrap_all .flex_column.av-rkge-fcae58a3474e9718287ea7f03ae42ec7,
#top #wrap_all .flex_column.av-rkge-fcae58a3474e9718287ea7f03ae42ec7 h2,
#top #wrap_all .flex_column.av-rkge-fcae58a3474e9718287ea7f03ae42ec7 p,
#top #wrap_all .flex_column.av-rkge-fcae58a3474e9718287ea7f03ae42ec7 a,
#top #wrap_all .flex_column.av-rkge-fcae58a3474e9718287ea7f03ae42ec7 strong {
    color: #ffffff !important;
}

#top #wrap_all .avia_textblock a[href*="kriis.ee"],
#top #wrap_all .avia_textblock a[href*="olevalmis.ee"] {
    color: #4b1f7f !important;
}

#top #wrap_all .av_one_fifth .avia_textblock > h2 {
    font-size: 18px;
    line-height: 1.1;
    margin-bottom: 15px;
}

#top #wrap_all .flex_column.av-1tca-f89781aaf45ccbb735d2af8f1005135b .avia_textblock > h3 {
    font-size: 18px;
    line-height: 1.1;
    margin-bottom: 4px;
}

#top #footer .avia_textblock a {
    display: inline-block;
    line-height: 1.6;
    min-height: 24px;
}

@media only screen and (max-width: 1239px) {
    .responsive.html_mobile_menu_phone #top #wrap_all #header .main_menu {
        display: block;
        height: 100%;
        left: auto;
        position: absolute;
        right: 0;
        top: 0;
    }

    .responsive.html_mobile_menu_phone #top #header .av-main-nav > li.menu-item {
        display: none;
    }

    .responsive.html_mobile_menu_phone #top #header .av-main-nav > li.av-burger-menu-main {
        display: block;
    }

    .responsive.html_mobile_menu_phone #top #header_main > .container .main_menu .av-main-nav > li.av-burger-menu-main > a {
        background: transparent;
        border: 0;
        color: inherit;
        margin: 0;
        min-width: 0;
        padding: 0 0 0 20px;
    }
}

@media only screen and (max-width: 989px) {
    #top #wrap_all .vni-card-post-slider,
    #top #wrap_all .vni-card-post-slider .avia-content-slider-inner,
    #top #wrap_all .vni-card-post-slider .slide-entry-wrap {
        max-width: none !important;
        width: 100% !important;
    }

    #top #wrap_all .vni-card-post-slider .slide-entry-wrap {
        column-gap: 0;
        display: grid !important;
        flex-direction: column;
        grid-template-columns: minmax(0, 1fr);
        row-gap: 28px;
    }

    #top #wrap_all .vni-card-post-slider .slide-entry {
        box-sizing: border-box;
        clear: none !important;
        flex: 0 0 100% !important;
        float: none !important;
        margin: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        max-width: none !important;
        min-width: 0 !important;
        width: 100% !important;
    }

    #top #wrap_all .vni-volunteer-post-slider,
    #top #wrap_all .vni-volunteer-post-slider .avia-content-slider-inner,
    #top #wrap_all .vni-volunteer-post-slider .slide-entry-wrap {
        max-width: none !important;
        width: 100% !important;
    }

    #top #wrap_all .vni-volunteer-post-slider .slide-entry-wrap {
        column-gap: 0;
        display: grid !important;
        flex-direction: column;
        grid-template-columns: minmax(0, 1fr);
        row-gap: 28px;
    }

    #top #wrap_all .vni-volunteer-post-slider .slide-entry {
        box-sizing: border-box;
        clear: none !important;
        flex: 0 0 100% !important;
        float: none !important;
        margin: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        max-width: none !important;
        min-width: 0 !important;
        width: 100% !important;
    }
}

@media only screen and (max-width: 1239px) {
    #top .vni-filter-uudised-controls {
        box-sizing: border-box;
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start;
        margin-left: -16px;
        margin-right: -16px;
        max-width: none;
        min-width: 0;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        padding: 0 16px 6px;
        scroll-behavior: smooth;
        scrollbar-width: none;
        touch-action: pan-x;
        white-space: nowrap;
        width: calc(100% + 32px);
        -webkit-overflow-scrolling: touch;
    }

    #top .vni-filter-uudised-controls::-webkit-scrollbar {
        display: none;
    }

    #top .vni-filter-uudised-controls.is-dragging {
        cursor: grabbing;
        scroll-behavior: auto;
        user-select: none;
    }

    #top .vni-filter-uudised-button {
        flex: 0 0 auto !important;
    }
}

@media only screen and (max-width: 767px) {
    #top #wrap_all .avia-section.av-mq746z0r-addcd8b57ead882beb3421b454b54408 {
        background-attachment: scroll !important;
        background-image: url("../images/performance/hero-mobile.jpg") !important;
        background-position: center center !important;
        background-size: cover !important;
    }

    #top .vni-filter-uudised-grid {
        grid-template-columns: 1fr;
    }

    #top .vni-uudiskiri-form {
        align-items: stretch;
        border-radius: 24px;
        flex-direction: column;
        padding: 18px;
    }

    #top .vni-uudiskiri-form .vni-uudiskiri-email[type="email"] {
        min-height: 40px;
        text-align: center;
    }

    #top .vni-uudiskiri-submit {
        min-height: 48px;
        width: 100%;
    }

    #top .vni-uudiskiri--sidebar .vni-uudiskiri-form {
        align-items: center;
        border-radius: 999px;
        flex-direction: row;
        padding: 6px 6px 6px 18px;
    }

    #top .vni-uudiskiri--sidebar .vni-uudiskiri-form .vni-uudiskiri-email[type="email"] {
        height: 44px !important;
        min-height: 0;
        text-align: left;
    }

    #top .vni-uudiskiri--sidebar .vni-uudiskiri-submit {
        min-height: 44px;
        width: 46px;
    }
}

@media only screen and (min-width: 768px) and (max-width: 989px) {
    #top .vni-filter-uudised-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
