/* WUDESCHOOL — SINGLE ARTICLE */

.wude-article,
.wude-article * {
    box-sizing: border-box;
}

.wude-article {
    background: #fff;
    color: #202020;
    font-family: 'Montserrat', sans-serif;
}

.wude-article-layout {
    
    
    width: min(100% - 60px, 1440px);
    margin: 0 auto;
    padding: 0 0 110px;
    display: grid;
    
    gap: 65px;
    align-items: start;

    
    

    grid-template-columns:
        minmax(0, calc(20% - 13px))
        minmax(0, calc(70% - 45.5px));
    padding-right: 0;

    container-type: inline-size;
}

.wude-article-sidebar-inner {
    position: sticky;
    top: 40px;
}

.wude-article-eyebrow {
    color: #a52329;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
}

.wude-article-sidebar h2 {
    font-size: 24px;
    line-height: 1.25;
    font-weight: 600;
    margin: 12px 0 28px;
    color: #171717;
}

.wude-article-navigation {
    border-top: 1px solid #dedede;
}

.wude-article-nav-link {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 22px 0;
    border-bottom: 1px solid #dedede;
    text-decoration: none;
    color: #222;
}

.wude-article-nav-link > span {
    font-size: 12px;
    
    font-weight: 500;

    color: #111;
}

.wude-article-nav-link strong {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
}

.wude-article a:hover {
    color: #a52329;
}

.wude-article-related {
    margin-top: 25px;
}

.wude-article-related:not(.wude-article-popular) h2 {
    margin-bottom: 0;
}

.wude-article-related-item {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 15px;
    align-items: center;
    text-decoration: none;
    color: #222;
    padding: 14px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    line-height: 1.5;
}

.wude-article-related-image {
    height: 70px;
    overflow: hidden;
}

.wude-article-related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wude-article-main {
    min-width: 0;

    border-left: 1px solid #e5e5e5;
    border-right: 1px solid #e5e5e5;

    

    padding: 0 30px;
}





.wude-article-category,
.wude-article-category a {
    color: #a52329;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-decoration: none;
    text-transform: uppercase;
}

.wude-article-header h1 {
    position: static;
    color: #181818;
    margin: 14px 0 25px;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(32px, 3vw, 48px);
    line-height: 1.15;
    font-weight: 600;
    text-shadow: none;
    transform: none;
}

.wude-article-lead {
    font-size: 19px;
    line-height: 1.65;
    font-weight: 500;
    margin: 0 0 30px;
}

.wude-article-content {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 1.75;
    font-weight: 400;
    overflow-wrap: break-word;
}

.wude-article-content > p:first-of-type {
    font-weight: 500;
    font-size: 18px;
    line-height: 1.7;
}

.wude-article-content p {
    margin: 0 0 22px;
}

.wude-article-content img,
.wude-article-content video,
.wude-article-content iframe {
    max-width: 100%;
}

.wude-article-content img {
    height: auto;
}

.wude-article-content figure {
    max-width: 100%;
}

.wude-article-content .unite-gallery {
    width: 100%;
    max-width: 100%;
    margin: 35px 0;
}

.wude-article-content blockquote {
    margin: 45px 0;
    padding: 15px 0 15px 28px;
    border-left: 3px solid #a52329;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.55;
}

.wude-article-content blockquote p {
    margin: 0;
}

@media (max-width: 991px) {
    .wude-article-layout {
        gap: 35px;
        grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    }
}

@media (max-width: 767px) {
    .wude-article-layout {
        width: calc(100% - 30px);
        padding-right: 0;
        display: flex;
        flex-direction: column;
        gap: 55px;
        padding: 25px 0 65px;
    }

    .wude-article-main {
        order: 1;
        width: 100%;
    }

    .wude-article-sidebar {
        order: 2;
        width: 100%;
    }

    .wude-article-sidebar-inner {
        position: static;
    }

    

    .wude-article-header h1 {
        font-size: 34px;
    }

    .wude-article-content > p:first-of-type {
        font-size: 17px;
    }
}

/* WUDE SINGLE — COVER ABOVE COLUMNS */




@media (max-width: 767px) {
    
}


/* WUDE SINGLE — PHOTO AND LAYOUT FINAL */

body.single .wude-article {
    padding: 0 !important;
    margin: 0 !important;
    min-height: 0 !important;
    background: #fafafa !important;
}

body.single .wude-article > .wude-breadcrumbs {
    margin: 0 !important;

    padding: 15px 5%;
}

body.single .wude-article > .wude-article-cover {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: 600px !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

body.single .wude-article > .wude-article-cover img {
    position: absolute !important;
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
    object-fit: cover !important;
    object-position: center top !important;
}

body.single .wude-article > .wude-article-layout {
    position: relative !important;
    margin-top: 0 !important;
    padding-top: 45px !important;
    clear: both;
}

@media (max-width: 767px) {
    body.single .wude-article > .wude-article-cover {
        height: 300px !important;
    }

    body.single .wude-article > .wude-article-layout {
        padding-top: 25px !important;
    }
}



/* WUDE GALLERY EXPANSION START */
@media (min-width: 992px) {
    .wude-article-content .unite-gallery {
        width: calc(100% + 10cqw) !important;
        max-width: none !important;
        position: relative;
        z-index: 2;
    }
}
/* WUDE GALLERY EXPANSION END */

/* WUDE GALLERY SPACING */
@media (min-width: 992px) {
    .wude-article-content .unite-gallery {
        margin-top: 30px !important;
        margin-bottom: 30px !important;
        border-top: 30px solid #fafafa !important;
        border-bottom: 30px solid #fafafa !important;
        box-sizing: border-box;
    }
}

/* WUDE LIST MARKERS */
.wude-article-content ul {
    padding-left: 28px;
    list-style-type: disc;

    margin-left: 25px;
}

.wude-article-content ul li::marker {
    color: #b71f23;
    font-size: 1.5em;
}

/* WUDE ALL MATERIALS */
.wude-all-materials {
    display: inline-flex;
    align-items: center;
    gap: 14px;

font-size: 14px;
    font-weight: 600;
    text-decoration: none;

    color: #202020 !important;

    display: block;
    margin-top: 20px;
    margin-bottom: 20px;
}

.wude-all-materials span {
    
    font-size: 23px;
    line-height: 1;
    transition: transform .2s ease;

    color: #b71f23 !important;

    position: relative;
    top: 5px;
}

.wude-all-materials:hover span {
    transform: translateX(5px);
}

.wude-article a.wude-all-materials:hover {
    color: #202020 !important;
}


/* WUDE POST VIEWS */
.wude-post-views {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 30px;
    color: #777;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 400;
}

.wude-post-views span {
    color: #b71f23;
    font-size: 15px;
}

/* WUDE — декоративная линия под заголовком статьи */
.wude-article-header h1 {
    position: relative;
    padding-bottom: 28px;
    margin-bottom: 22px;
}

.wude-article-header h1::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 120px;
    height: 2px;
    background: #b71f23;
}

.wude-article-header h1::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 5px;
    background: #b71f23;
    z-index: 1;
}

/* WUDE — одна линия под заголовком */
.wude-article-header h1::before {
    content: none !important;
}

.wude-article-header h1::after {
    height: 3px;
}

/* WUDE — линия ближе к заголовку */
.wude-article-header h1::after {
    bottom: 12px;
}


/* WUDE POPULAR POSTS */
.wude-article-popular {
    border-top: 1px solid #d8d8d8;
    padding-top: 28px;
    margin-top: 15px;
}

.wude-article-popular h2 {
    margin-bottom: 22px;
}

.wude-popular-item:hover /* WUDE — изображения с подписями внутри статьи */
.wude-article-content .wp-caption {
    width: auto !important;
    max-width: 100% !important;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
}

.wude-article-content .wp-caption img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
}

/* WUDE — отступ подписи от фотографии */
/* WUDE — отступ подписи от фотографии */

/* WUDE — подпись фотографии */
.wude-article-content .wp-caption-text {
    display: table;
    width: auto;
    max-width: 100%;
    
    padding-bottom: 7px;
    border-bottom: 1px solid #b71f23;
    font-style: italic !important;
    font-weight: 400 !important;
    line-height: 1.5;

    margin-top: 15px;
    margin-bottom: 35px;
}

/* WUDE — ссылки в абзацах статьи */
.wude-article-content p a,
.wude-article-content .wp-block-paragraph a {
    font-size: 16px !important;
}

/* WUDE — ссылки в абзацах статьи */
.wude-article-content p a,
.wude-article-content .wp-block-paragraph a {
    font-size: 16px !important;
}

/* WUDE POPULAR CARDS */
.wude-article-popular .wude-popular-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 18px 0;
    border-bottom: 1px solid #e5e5e5;
    text-decoration: none;
}

.wude-article-popular .wude-popular-image {
    flex: 0 0 90px;
    width: 90px;
    height: 75px;
    overflow: hidden;
}

.wude-article-popular .wude-popular-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wude-article-popular .wude-popular-text {
    display: block;
    flex: 1;
    min-width: 0;
}

.wude-article-popular .wude-popular-title {
    display: block;
    color: #b71f23 !important;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
}

.wude-article-popular .wude-popular-views {
    display: block;
    margin-top: 8px;
    color: #888 !important;
    font-size: 12px;
    font-weight: 400;
}

.wude-article-popular .wude-popular-item:hover .wude-popular-title {
    color: #8f151a !important;
}

/* WUDE — адаптивное YouTube-видео в статье */
.wude-article-content .wp-block-embed,
.wude-article-content .wp-block-embed__wrapper {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.wude-article-content .wp-block-embed__wrapper {
    position: relative;
    aspect-ratio: 16 / 9;
}

.wude-article-content .wp-block-embed iframe,
.wude-article-content iframe[src*="youtube.com"],
.wude-article-content iframe[src*="youtube-nocookie.com"] {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    aspect-ratio: 16 / 9;
    border: 0;
}
.wude-slider-container, .wp-block-group.wude-slider-container {
    padding: 0 !important;
}
/* WUDE POPULAR — remove duplicate separator */


/* WUDE POPULAR — remove duplicate separator */


/* WUDE POPULAR — remove duplicate separator */

