/*
Theme Name: Gorod 67
Theme URI: 
Description: Тема сайта Gorod 67
Author: PotseluevAY
Version: 1.0.0
*/
/* Для прибитого футера */
body {
    display: flex;
    flex-direction: column;
    height: 100vh;
    /* или min-height: 100vh; */
}

main {
    flex: 1 0 auto;
    /* Основной контент занимает всё доступное пространство */
    background-color: #f5fffd;
}

footer {
    flex-shrink: 0;
    /* Футер не сжимается */
}

/* Стили для шапки */
.navbar-custom {
    background-color: #f5fffd;
}

/* Стили для подвала */
.footer-custom {
    background-color: #00ABA0;
    width: 100%;
}

/* Контейнер для контента подвала (такой же ширины, как основной контент) */
.footer-container {
    max-width: 1320px;
    /* Стандартная ширина Bootstrap container */
    margin: 0 auto;
    padding: 3rem 0.75rem;
    color: white;
}

/* Адаптивность контейнера подвала */
@media (min-width: 576px) {
    .footer-container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .footer-container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .footer-container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .footer-container {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {
    .footer-container {
        max-width: 1320px;
    }
}

/* Стили для сайдбаров */
.sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
}

@media (max-width: 991.98px) {
    .sidebar {
        position: static;
        margin-bottom: 20px;
    }
}

/* Тестовый блок для демонстрации малого контента */
.content-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.navbar-nav .nav-link {
    position: relative;
    padding-bottom: 10px;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: #00ABA0;
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 85%;
}

@media (max-width: 991.98px) {

    .navbar-nav .nav-link:hover::after,
    .navbar-nav .nav-link.active::after {
        width: 100%;
    }
}

/* Меняем цвет самого гамбургера */
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%2300ABA0' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-toggler {
    border-color: #00ABA0;
}

/* Меняем цвет рамки при фокусе */
.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 171, 160, 0.25);
    border-color: #00ABA0;
}

/* Для всех полей ввода */
.form-control:focus,
.form-select:focus,
.form-check-input:focus,
.btn:focus {
    border-color: #00ABA0 !important;
    box-shadow: 0 0 0 0.25rem rgba(0, 171, 160, 0.25) !important;
    outline: 0;
}

#navbarMain {
    font-weight: 600;
    font-size: large;
}

@media (max-width: 991.98px) {
    #navbarMain {
        background-color: #00aba027;
        padding: 1rem;
    }
}

@font-face {
    font-family: 'Golos Text';
    src: url('/wp-content/themes/gorod67/assets/fonts/golos.woff2') format('woff2');

}

body {
    font-family: 'Golos Text';
}

@media (min-width: 992px) {

    /* lg */
    .col-lg-2dot5 {
        flex: 0 0 auto;
        width: 20.833333%;
        /* 2.5 колонки из 12 = 20.83% */
    }

}

a.link-all {
    color: black;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;

}

a.link-unerline {
    border-bottom: 2px solid black;
    padding-bottom: 2px;
}

.news-announce {
    border-top: #00ABA0 2px solid;
}

.widget-sidebar-img img {
    border-radius: 12px;
    border: 1px solid #00ABA0;
}

.widget-sidebar-img {
    position: relative;
    display: inline-block;
}

/* Текст над картинкой виджета */
.widget-sidebar-img figcaption {
    position: absolute;
    top: 0;
    color: black;
    padding: 10px 20px;
    font-size: x-large;
    font-weight: 500;
    line-height: 1.0;
    /* Магия, чтобы работала ссылка */
    pointer-events: none;
}

/* Добавляем SVG иконку */
.widget-sidebar-img::before {
    content: "";
    position: absolute;
    bottom: 40px;
    left: 20px;
    width: 3em;
    height: 3em;
    z-index: 10;

    background-image: url('images/banner-link.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    /* Магия, чтобы работала ссылка */
    pointer-events: none;
}

.sidebar svg {
        height: auto;
        max-width: 100%;
}

/* Убираем стандартные кнопки вправо/влево для карусели Bootstrap */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    display: none;
}
/* Кастомизируем карусель */
.carousel-container {
    position: relative;
    display: inline-block;
    /* Или width: 100%, зависит от вашей верстки */
    width: 100%;
}

/* Позиционируем кнопки */
.custom-carousel-controls {
    position: absolute;
    right: 50px;
    /* Отступ от правого края картинки */
    bottom: 50px;
    /* Отступ от нижнего края картинки */
    z-index: 5;
    /* Поверх изображения */
}

/* Убираем выделение текста при клике на кнопки */
.custom-carousel-controls svg {
    user-select: none;
}

.carousel-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}