/*
Theme Name: Golos Custom
Theme URI: https://golos.zp.ua
Author: golos.zp.ua team
Description: Lightweight native theme matching the current Golos design without page builders.
Version: 1.3.5
Text Domain: golos-custom
Requires PHP: 7.4
*/

:root {
    --blue: #1e73be;
    --ink: #111;
    --muted: #888;
    --line: #e8e8e8;
    --soft: #f7f7f7;
    --page: 1240px;
    --inner: 1192px;
}

*, *::before, *::after { box-sizing: border-box; }
html { min-height: 100%; -webkit-text-size-adjust: 100%; }
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    color: #000;
    background: #fff;
    font-family: Verdana, BlinkMacSystemFont, -apple-system, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    font-size: 14px;
    line-height: 21px;
}
.site-header, .site-footer { flex: 0 0 auto; }
.site-content-wrap { flex: 1 0 auto; width: 100%; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: #155c9a; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin-top: 0; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; clip: rect(1px, 1px, 1px, 1px); overflow: hidden; }

/* Header */
.site-header { position: relative; z-index: 500; height: 112px; background: #fff; }
.header-top-strip { display: block; height: 3px; background: #d8d8d8; }
.header-bar { height: 59px; border-bottom: 1px solid #dedede; background: #f5f5f5; }
.header-bar__inner {
    display: flex;
    align-items: flex-start;
    width: 100%;
    max-width: 1212px;
    height: 59px;
    margin: 0 auto;
    padding: 0 10px;
}
.site-logo {
    position: relative;
    top: 7px;
    z-index: 3;
    flex: 0 0 209px;
    width: 209px;
    height: 89px;
    margin-right: 195px;
    padding: 5px 15px 10px;
    background: var(--blue);
    overflow: hidden;
}
.site-logo a { display: block; color: #fff; line-height: 1; }
.site-logo a:hover { color: #fff; }
.site-logo__title {
    display: block;
    color: #fff;
    font-family: Roboto, sans-serif;
    font-size: 55px;
    font-weight: 900;
    line-height: 55px;
}
.site-logo__tagline {
    display: block;
    margin-top: -6px;
    color: #fff;
    font-family: Roboto, sans-serif;
    font-size: 25px;
    font-weight: 900;
    line-height: 25px;
}
.main-nav { display: flex; align-items: flex-start; flex: 0 1 auto; margin-top: 15px; }
.main-nav ul { display: flex; align-items: center; gap: 4px; }
.main-nav li { position: relative; }
.main-nav a {
    display: block;
    height: 27px;
    padding: 0 8px;
    color: #000;
    font-family: Roboto, sans-serif;
    font-size: 13px;
    font-weight: 900;
    line-height: 27px;
    text-transform: uppercase;
}
.main-nav a:hover { color: var(--blue); }
.main-nav .current-menu-item > a,
.main-nav .current-category-ancestor > a,
.main-nav .current-post-ancestor > a { color: #fff; background: var(--blue); }
.main-nav .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 10;
    min-width: 210px;
    padding: 7px 0;
    background: #fff;
    box-shadow: 0 4px 14px rgba(0,0,0,.14);
}
.main-nav li:hover > .sub-menu { display: block; }
.main-nav .sub-menu a { height: auto; padding: 8px 14px; line-height: 18px; text-transform: none; }
.header-socials { display: none; }
.header-search-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    margin-left: auto;
    padding: 0;
    border: 0;
    color: var(--blue);
    background: transparent;
    cursor: pointer;
}
.header-search-toggle svg { width: 18px; height: 18px; }
.header-search-toggle.is-active { color: #111; background: #f5f5f5; }
.header-search-panel {
    position: absolute;
    top: 62px;
    right: 0;
    left: 0;
    z-index: 30;
    padding: 12px 24px;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #ddd;
    background: #fff;
    box-shadow: 0 6px 14px rgba(0,0,0,.08);
}
.header-search-panel[hidden] { display: none; }
.header-search-form { display: flex; width: 100%; max-width: var(--inner); margin: 0 auto; }
.header-search-form input {
    flex: 1 1 auto;
    min-width: 0;
    height: 42px;
    padding: 0 14px;
    border: 1px solid #ddd;
    border-right: 0;
    border-radius: 0;
    color: #111;
    background: #fff;
    font: 400 16px/42px Roboto, sans-serif;
    outline: 0;
}
.header-search-form input:focus { border-color: var(--blue); }
.header-search-form button {
    flex: 0 0 86px;
    height: 42px;
    border: 1px solid var(--blue);
    border-radius: 0;
    color: #fff;
    background: var(--blue);
    font: 700 13px/40px Roboto, sans-serif;
    cursor: pointer;
}
.menu-toggle { display: none; }
.news-ticker {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    max-width: 1212px;
    height: 50px;
    margin: 0 auto;
    padding: 12px 0 0 414px;
    font-size: 12px;
    overflow: hidden;
}
.news-ticker__label { flex: 0 0 auto; color: #111; font-weight: 700; text-transform: uppercase; }
.news-ticker__viewport { flex: 1 1 auto; min-width: 0; }
.news-ticker__item a { display: block; color: #888; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.news-ticker__prev, .news-ticker__next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 27px;
    width: 27px;
    height: 27px;
    border: 1px solid #e5e5e5;
    color: #bbb;
    background: #fff;
    cursor: pointer;
}

/* Home */
.home-page { padding-top: 20px; }
.hero-grid {
    display: grid;
    grid-template-columns: 485px minmax(0, 1fr);
    gap: 20px;
    width: calc(100% - 48px);
    max-width: var(--inner);
    height: 315px;
    margin: 0 auto 47px;
}
.hero-feature, .category-hero__item { position: relative; display: block; overflow: hidden; background: #eee; }
.hero-feature__img, .category-hero__item > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-feature__overlay, .category-hero__overlay {
    position: absolute;
    inset: auto 0 0;
    display: flex;
    flex-direction: column;
    padding: 76px 20px 18px;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,.9));
}
.hero-feature__category, .category-hero__category { color: #fff; font-size: 11px; line-height: 15px; }
.hero-feature__title, .category-hero__title {
    color: #fff;
    font-family: Roboto, sans-serif;
    font-size: 20px;
    font-weight: 500;
    line-height: 24px;
}
.hero-feature__date, .category-hero__date { margin-top: 6px; color: #ddd; font-size: 11px; line-height: 14px; }
.hero-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.hero-side .post-card { padding: 0; }
.hero-side .post-card__thumb { height: 217px; aspect-ratio: auto; }
.hero-side .post-card__category { margin-top: 10px; }
.hero-side .post-card__title { font-size: 15px; line-height: 18px; }

.site-content {
    display: flex;
    gap: 20px;
    width: 100%;
    max-width: var(--page);
    margin: 0 auto;
    padding: 15px 24px 40px;
}
.site-content--home { padding-top: 0; }
.content-main { flex: 0 1 882px; min-width: 0; }
.content-sidebar { flex: 0 0 290px; width: 290px; }
.post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px 0;
    margin: 0 -10px;
}
.post-card { min-width: 0; padding: 0 10px 18px; }
.post-card__thumb {
    display: block;
    width: 100%;
    aspect-ratio: 281 / 160;
    overflow: hidden;
    background: #eee;
}
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card__category {
    display: inline-block;
    margin-top: 9px;
    color: var(--blue);
    font-family: Roboto, sans-serif;
    font-size: 11px;
    line-height: 14px;
}
.post-card__title {
    margin: 6px 0 4px;
    color: var(--ink);
    font-family: Roboto, sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 18px;
}
.post-card__title a { color: var(--ink); }
.post-card__title a:hover { color: var(--blue); }
.post-card__date { color: #999; font-size: 11px; line-height: 15px; }

/* Sidebar and widgets */
.widget { margin-bottom: 28px; }
.widget-title {
    margin: 0 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--blue);
    color: #111;
    font-family: Roboto, sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 18px;
    text-transform: uppercase;
}
.weather-widget-wrap { width: 290px; overflow: hidden; }
.weather-widget-wrap #SinoptikInformer { max-width: 100% !important; }
.popular-post { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 12px; margin-bottom: 15px; }
.popular-post__thumb { display: block; width: 90px; height: 60px; overflow: hidden; }
.popular-post__thumb img { width: 100%; height: 100%; object-fit: cover; }
.popular-post__title { margin: 0 0 4px; font-family: Roboto, sans-serif; font-size: 13px; font-weight: 500; line-height: 16px; }
.popular-post__title a { color: var(--ink); }
.popular-post__date { color: #999; font-size: 10px; line-height: 12px; }
.ad-slot { display: none; }

/* Category */
.category-page {
    width: calc(100% - 48px);
    max-width: var(--inner);
    margin: 0 auto;
    padding: 28px 0 48px;
}
.archive-header { margin: 0 auto 28px; text-align: center; }
.archive-header__title {
    margin: 0;
    color: var(--ink);
    font-family: Roboto, sans-serif;
    font-size: 40px;
    font-weight: 700;
    line-height: 48px;
}
.archive-header__description { max-width: 820px; margin: 14px auto 0; color: #444; }
.archive-header__description p { margin: 0; }
.category-hero { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; height: 340px; margin-bottom: 20px; }
.category-hero__overlay { padding: 90px 20px 17px; }
.category-hero__title { font-size: 21px; line-height: 25px; }
.category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 -10px; }
.category-grid .post-card__thumb { aspect-ratio: 384 / 219; }

/* Single article */
.single-page { width: calc(100% - 48px); max-width: var(--inner); margin: 0 auto; padding: 28px 0 48px; }
.single-page__layout { display: flex; align-items: flex-start; gap: 20px; }
.single-page__main { flex: 0 1 882px; min-width: 0; }
.single-page__layout > .content-sidebar { flex: 0 0 290px; width: 290px; }
.single-article__header { margin-bottom: 15px; }
.single-article__title {
    max-width: 1057px;
    margin: 0 0 4px;
    color: var(--ink);
    font-family: Roboto, sans-serif;
    font-size: 40px;
    font-weight: 700;
    line-height: 48px;
}
.single-article__meta { display: flex; align-items: center; gap: 14px; min-height: 24px; color: #999; font-size: 11px; }
.single-article__category { padding: 4px 8px 5px; color: #fff; background: #111; font-size: 10px; line-height: 10px; text-transform: uppercase; }
.single-article__column { width: 748px; margin-left: 62px; }
.single-article__thumb { width: 100%; margin: 0 0 26px; }
.single-article__thumb img { width: 100%; height: auto; }
.single-article__body {
    color: #000;
    font-family: Roboto, sans-serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 25.5px;
}
.single-article__body p { margin: 0 0 21px; }
.single-article__body h2 { margin: 26px 0 14px; font-size: 27px; line-height: 34px; }
.single-article__body h3 { margin: 24px 0 12px; font-size: 22px; line-height: 28px; }
.single-article__body img { margin: 21px 0; }
.single-article__thumb img,
.single-article__body img:not(.wp-smiley) { cursor: zoom-in; }
.single-article__body figure { max-width: 100%; margin: 21px 0; }
.single-article__share { display: flex; align-items: center; gap: 6px; min-height: 47px; margin: 0 -3px; }
.single-article__share-label { margin-right: 8px; color: #777; font-family: "Open Sans", sans-serif; font-size: 12px; text-transform: uppercase; }
.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 16px;
    color: #fff;
    font-family: "Open Sans", sans-serif;
    font-size: 11px;
}
.share-btn:hover { color: #fff; opacity: .9; }
.share-btn--facebook { background: #516eab; }
.share-btn--twitter { background: #29c5f6; }
.share-btn--more { width: 40px; padding: 0; border: 1px solid #ddd; color: #555; background: #fff; font-size: 25px; }
.share-btn--more:hover { color: #111; }
.related-news { margin-top: 30px; padding-top: 30px; border-top: 1px solid var(--line); }
.section-title { margin: 0 0 20px; font-family: Roboto, sans-serif; font-size: 16px; font-weight: 700; line-height: 20px; text-transform: uppercase; }
.related-news__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 -10px; }

/* Lightweight article image viewer. */
body.has-lightbox { overflow: hidden; }
.article-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2147483646;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 54px 64px;
    color: #fff;
    background: rgba(0,0,0,.94);
}
.article-lightbox[hidden] { display: none; }
.article-lightbox__figure { display: flex; flex-direction: column; align-items: center; max-width: 100%; max-height: 100%; margin: 0; }
.article-lightbox__image { display: block; max-width: 100%; max-height: calc(100vh - 108px); width: auto; height: auto; object-fit: contain; }
.article-lightbox__caption { max-width: 900px; margin-top: 10px; color: #ddd; font: 400 13px/18px Roboto, sans-serif; text-align: center; }
.article-lightbox__close,
.article-lightbox__prev,
.article-lightbox__next {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    color: #fff;
    background: rgba(0,0,0,.28);
    cursor: pointer;
    touch-action: manipulation;
}
.article-lightbox__close { top: 10px; right: 14px; width: 44px; height: 44px; font: 300 38px/1 Arial, sans-serif; }
.article-lightbox__prev,
.article-lightbox__next { top: 50%; width: 48px; height: 64px; margin-top: -32px; font: 300 38px/1 Arial, sans-serif; }
.article-lightbox__prev { left: 8px; }
.article-lightbox__next { right: 8px; }
.article-lightbox__close:hover,
.article-lightbox__prev:hover,
.article-lightbox__next:hover { background: rgba(255,255,255,.14); }

/* Pagination */
.pagination { margin-top: 30px; font-family: Roboto, sans-serif; }
.pagination__list { display: flex; flex-wrap: wrap; gap: 6px; }
.pagination__list a, .pagination__list span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid #e5e5e5;
    color: #666;
    font-size: 11px;
}
.pagination__list .current { border-color: var(--blue); color: #fff; background: var(--blue); }
.pagination__caption { margin-top: 8px; color: #999; font-size: 11px; }

/* Footer */
.site-footer { background: #f7f7f7; }
.site-footer__top {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    width: calc(100% - 48px);
    max-width: var(--inner);
    margin: 0 auto;
    padding: 42px 0;
}
.site-footer__col { color: #666; font-size: 13px; line-height: 21px; }
.site-footer__col p { margin: 0 0 14px; }
.site-footer__bar { background: linear-gradient(90deg, #215ad3, #1e73be); }
.site-footer__bar-inner { display: flex; align-items: center; justify-content: space-between; width: calc(100% - 48px); max-width: var(--inner); margin: 0 auto; padding: 18px 0; }
.footer-logo { color: #fff; font-family: Roboto, sans-serif; line-height: 1; }
.footer-logo:hover { color: #fff; }
.footer-logo__title { display: block; font-size: 27px; font-weight: 900; }
.footer-logo__tagline { display: block; margin-top: 2px; font-size: 13px; font-weight: 700; }
.social-list { display: flex; gap: 8px; }
.social-list a { display: inline-flex; align-items: center; justify-content: center; width: 31px; height: 31px; color: #fff; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; font-weight: 700; }

@media (max-width: 1023px) {
    .site-logo { margin-right: 40px; }
    .site-content { padding-right: 20px; padding-left: 20px; }
    .content-main { flex: 1 1 auto; }
    .content-sidebar { flex-basis: 270px; width: 270px; }
    .weather-widget-wrap { width: 270px; }
    .hero-grid { grid-template-columns: 40.7% 1fr; }
    .single-page__layout > .content-sidebar { flex-basis: 270px; width: 270px; }
    .single-article__column { width: 100%; margin-left: 0; }
}

@media (max-width: 767px) {
    body { font-size: 14px; line-height: 21px; }
    .site-header { height: 69px; border-bottom: 1px solid #e5e5e5; }
    .header-top-strip { display: none; }
    .header-bar, .header-bar__inner { height: 68px; }
    .header-bar { border-bottom: 0; background: #fff; }
    .header-bar__inner { position: relative; align-items: center; justify-content: space-between; padding: 0 10px; }
    .menu-toggle {
        display: block;
        order: 1;
        flex: 0 0 28px;
        width: 28px;
        height: 36px;
        margin: 14px 8px 0 0;
        padding: 5px 0;
        border: 0;
        background: transparent;
    }
    .menu-toggle__bar { display: block; width: 23px; height: 2px; margin: 5px auto; background: #111; }
    .site-logo {
        position: absolute;
        top: 9px;
        left: 50%;
        width: 104px;
        height: 50px;
        margin: 0;
        padding: 3px 7px 4px;
        transform: translateX(-50%);
    }
    .site-logo__title { font-size: 28px; line-height: 29px; text-align: center; }
    .site-logo__tagline { margin-top: 0; font-size: 12px; line-height: 12px; text-align: center; white-space: nowrap; }
    .header-socials { display: none; }
    .header-search-toggle { order: 4; flex-basis: 38px; width: 38px; height: 50px; margin: 9px 0 0 auto; color: #111; }
    .header-search-toggle, .menu-toggle { touch-action: manipulation; }
    .header-search-panel { top: 68px; padding: 10px; }
    .header-search-form input { font-size: 16px; }
    .main-nav {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        z-index: 20;
        width: 100%;
        margin: 0;
        padding: 8px 20px 14px;
        background: #fff;
        box-shadow: 0 7px 15px rgba(0,0,0,.12);
    }
    .main-nav.is-open { display: block; }
    .main-nav ul { display: block; }
    .main-nav li { border-bottom: 1px solid #eee; }
    .main-nav a { height: 40px; line-height: 40px; }
    .main-nav .sub-menu { position: static; box-shadow: none; }
    .news-ticker { display: none; }

    .home-page { padding-top: 16px; }
    .hero-grid { grid-template-columns: 1fr; width: calc(100% - 32px); height: auto; margin: 0 auto 26px; row-gap: 18px; column-gap: 0; }
    .hero-feature { height: 274px; }
    .hero-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero-side .post-card { padding: 0 20px 20px; }
    .hero-side .post-card__thumb { height: 118px; aspect-ratio: auto; }
    .site-content { display: block; padding: 0 20px 36px; }
    .content-sidebar { width: 100%; margin-top: 30px; }
    .weather-widget-wrap { width: 100%; }
    .site-content--home { padding-right: 16px; padding-left: 16px; }
    .site-content--home .post-grid { display: block; margin: 0; }
    .site-content--home .post-card,
    .category-grid .post-card { display: grid; grid-template-columns: 127px minmax(0, 1fr); column-gap: 10px; padding: 0 0 25px; }
    .site-content--home .post-card__thumb,
    .category-grid .post-card__thumb { grid-row: 1 / span 4; width: 127px; height: 82px; aspect-ratio: auto; }
    .site-content--home .post-card__category,
    .category-grid .post-card__category { margin-top: 0; }
    .site-content--home .post-card__title,
    .category-grid .post-card__title { margin-top: 4px; }
    .site-content--home > .content-main { width: 100%; }
    .site-content--home > .content-sidebar { padding: 0; }

    .category-page { width: calc(100% - 32px); padding-top: 15px; }
    .archive-header { margin-bottom: 8px; padding: 0; }
    .archive-header__title { font-size: 26px; line-height: 38px; }
    .archive-header__description { display: none; }
    .category-hero { grid-template-columns: 1fr; height: auto; gap: 10px; }
    .category-hero__item { height: 223px; }
    .category-grid { display: block; margin: 23px 0 0; }

    .single-page { width: auto; margin: 0; padding: 22px 20px 36px; }
    .single-page__layout { display: block; }
    .single-page__layout > .content-sidebar { width: 100%; margin-top: 32px; }
    .single-article__title { font-size: 24px; line-height: 28.8px; }
    .single-article__column { width: 100%; margin-left: 0; }
    .single-article__share { margin: 3px 0 7px; gap: 5px; }
    .single-article__share-label { display: none; }
    .share-btn { height: 40px; padding: 0 14px; }
    .share-btn--facebook { width: 113px; }
    .share-btn--twitter { width: 110px; }
    .share-btn--more { width: 40px; }
    .single-article__body { font-size: 15px; line-height: 22.5px; }
    .single-article__body p { margin-bottom: 21px; }
    .article-lightbox { padding: 52px 12px 70px; }
    .article-lightbox__image { max-height: calc(100vh - 122px); }
    .article-lightbox__prev,
    .article-lightbox__next { top: auto; bottom: 8px; width: 54px; height: 48px; margin: 0; }
    .article-lightbox__prev { left: calc(50% - 62px); }
    .article-lightbox__next { right: calc(50% - 62px); }
    .related-news__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .site-footer__top { grid-template-columns: 1fr; gap: 10px; width: calc(100% - 40px); padding: 30px 0; }
    .site-footer__bar-inner { width: calc(100% - 40px); }
}

@media (max-width: 480px) {
    .post-grid { grid-template-columns: 1fr; margin-right: 0; margin-left: 0; }
    .post-card { padding-right: 0; padding-left: 0; }
    .related-news__grid { grid-template-columns: 1fr; margin: 0; }
    .share-btn { padding: 0 12px; }
}
