/*
Theme Name: Ijodiy Parvoz
Theme URI: https://iparvoz.uz
Author: Demxaax Dx
Author URI: https://ваш-сайт.uz
Description: Тема для журнала "Ijodiy Parvoz"
Version: 1.0.0
...
*/


.top-bar {
    width: 100%;
    background: #f6f7fa;
    color: #222;
    font-size: 15px;
    height: 32px;
    border-bottom: 1px solid #ececec;
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
}

.top-bar__container {
    width: 1200px;   /* или 100%, если шаблон резиновый */
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between; /* слева - телефон, справа - языки */
    align-items: center;
    height: 32px;
}

.top-bar__left {
    display: flex;
    align-items: center;
}

.top-bar__right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* чтобы языки были в одну строку */
.top-bar__right ul {
    display: flex !important;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.top-bar__right li {
    margin: 0;
    padding: 0;
}
.lang-item:before,
.pll-parent-menu-item:before,
.current-lang:before,
.selected:before,
ul.languages li:before {
    display: none !important;
    content: none !important;
}
/* Самый жёсткий сброс для точек перед языками Polylang */
.lang-item:before,
li.lang-item:before,
li.menu-item-lang:before,
ul.langs li:before,
ul.languages li:before,
.top-bar__right li:before,
.top-bar__right .lang-item:before,
.top-bar__right .current-lang:before,
.top-bar__right .selected:before {
    display: none !important;
    content: none !important;
}

/* Иногда Polylang рисует кружок через ::before для активного языка */
li.lang-item.current-lang > a::before,
li.lang-item.selected > a::before,
li.lang-item > a::before {
    display: none !important;
    content: none !important;
}

/* Убираем лишние отступы */
.lang-item,
li.menu-item-lang {
    padding-left: 0 !important;
    margin-left: 0 !important;
}

/* Убираем маркер у li для языкового переключателя */
.top-bar__right li,
.top-bar__right ul li,
.top-bar__right .lang-item,
.top-bar__right ul .lang-item {
    list-style: none !important;
}

/* Убираем ::marker даже если браузер игнорирует list-style:none */
.top-bar__right li::marker,
.top-bar__right .lang-item::marker {
    display: none !important;
    content: none !important;
    font-size: 0 !important;
    color: transparent !important;
}
li.lang-item::marker {
    content: "" !important;
    color: transparent !important;
    font-size: 0 !important;
    display: none !important;
}


/* Если Polylang добавляет отступ или фон активному языку — убрать */
.top-bar__right .lang-item.current-lang a,
.top-bar__right .lang-item.selected a {
    background: none !important;
    box-shadow: none !important;
    padding-left: 0 !important;
}
.top-bar__left span { margin-right: 15px; }
.top-bar__right a img { display: inline-block; vertical-align: middle; margin-left: 6px; margin-right: 0; }
.top-bar__right a { margin-left: 8px; }

.iparvoz-slider {
    width: 1200px;
    height: 320px;
    margin: 0 auto 30px auto;
    overflow: hidden;
    position: relative;
    border-radius: 20px;
    box-shadow: 0 3px 20px 0 rgba(0,0,0,0.07);
}
.iparvoz-slider__wrapper {
    height: 100%;
    display: flex;
    transition: transform 0.6s cubic-bezier(.8,.2,.2,1);
}
.iparvoz-slider__slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}
.iparvoz-slider__slide img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 20px;
}
.iparvoz-slider__caption {
    position: absolute;
    left: 0; bottom: 20px;
    right: 0;
    color: #fff;
    background: rgba(0,0,0,0.4);
    padding: 10px 30px;
    font-size: 1.3rem;
    border-radius: 0 0 20px 20px;
    text-align: left;
}
.iparvoz-slider__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background: rgba(0,0,0,0.4);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    font-size: 2rem;
    cursor: pointer;
    transition: background 0.2s;
    outline: none;
}
.iparvoz-slider__arrow--prev { left: 20px; }
.iparvoz-slider__arrow--next { right: 20px; }

.iparvoz-slider__dots {
    position: absolute;
    left: 0; right: 0;
    bottom: 14px;
    display: flex;
    justify-content: center;
    gap: 12px;
    z-index: 2;
}
.iparvoz-slider__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    opacity: 0.7;
    border: 2px solid #3690ea;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
}
.iparvoz-slider__dot.active {
    background: #3690ea;
    opacity: 1;
}
@media (max-width: 1260px) {
    .iparvoz-slider, .top-bar__container { width: 98vw; }
}
@media (max-width: 800px) {
    .iparvoz-slider {
        width: 100vw;
        height: 160px;
        border-radius: 0;
    }
    .iparvoz-slider__slide img {
        height: 160px;
        border-radius: 0;
    }
    .iparvoz-slider__caption {
        font-size: 1rem;
        padding: 6px 16px;
        border-radius: 0 0 8px 8px;
    }
    .iparvoz-slider__arrow {
        width: 32px; height: 32px; font-size: 1.4rem;
    }
}
@media (max-width: 500px) {
    .iparvoz-slider {
        height: 110px;
    }
    .iparvoz-slider__slide img {
        height: 110px;
    }
    .iparvoz-slider__caption {
        font-size: 0.9rem;
    }
}
.iparvoz-slider__wrapper {
    height: 100%;
    display: flex;
    transition: transform 0.8s cubic-bezier(.77,0,.18,1);
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.iparvoz-news-block {
    margin-top: 40px;
}

.iparvoz-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.iparvoz-news-item {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: box-shadow .3s;
}
.iparvoz-news-item:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.iparvoz-news-img-link {
    display: block;
}
.iparvoz-news-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}
.iparvoz-news-content {
    padding: 14px 18px 18px 18px;
}
.iparvoz-news-item-title {
    margin: 0 0 8px 0;
    font-size: 1.2rem;
    line-height: 1.3;
}
.iparvoz-news-excerpt {
    font-size: 1rem;
    color: #4b4b4b;
}

