/*
 * Theme Name:  Revision Child
 * Theme URI:   https://revision.codesupply.co/
 * Description: Revision Child Theme
 * Author:      Code Supply Co.
 * Author URI:  https://codesupply.co/
 * Template:    revision
 * Version:     1.0.1459
 */

/* Copy any classes from parent theme here. They will override the parent's version. */


.devil-style {
    color: #666;
}

.devil-style .custom-404-container {
    text-align: center;
}

.h2,
.h3,
.wp-block-heading {
    font-weight: 800 !important;
    line-height: 1.2;
}

.h4,
.h5,
.h6,
h1,
h2,
h3,
h4,
h5,
h6,
.wp-block-heading {
    font-weight: 600 !important;
    line-height: 1.2;
}

/* Стили для 404 */

/* Убираем лишние блоки от материнской темы на 404 */
body.error404 .cs-page-404__icon,
body.error404 .cs-page__header {
    display: none !important;
}

/* Основные стили для 404 */
body.error404 .cs-site-content {
    margin: 0 auto !important;
    /* Убираем верхний и нижний отступы, оставляем боковые */
}

body.error404 .cs-main-content {
    max-width: 1315px !important;
    /* Перебиваем ограничение темы */
    width: 100%;
    margin: 0 auto;
}

body.error404 .custom-404-container {
    text-align: center;
    max-width: 1315px;
    padding: 20px;
    margin: 0 auto;
}

body.error404 .custom-404-image-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    /* Обрезаем всё, что вылезает */
}

body.error404 .custom-404-image {
    width: 100%;
    max-width: 1315px;
    height: auto;
    margin-bottom: 0;
    /* Убираем нижний отступ */
    border-radius: 10px;
}

.custom-404-content {
    padding: 20px 0;
    /* Отступы для контента */
}

.custom-404-title {
    color: #666;
    font-size: 48px;
    font-weight: 900;
    margin: 10px 0;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
}

.custom-404-subtitle {
    color: #000;
    font-size: 64px;
    font-weight: 900;
    margin: 10px 0;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.1;
}

.custom-404-message {
    color: #cc0000;
    font-size: 36px;
    font-weight: 700;
    margin: 20px 0;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
}

.custom-404-button {
    background: #000;
    color: #fff;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-top: 20px;
    margin-bottom: 40px;
    font-family: 'Montserrat', sans-serif;
}

.custom-404-button:hover {
    background: #5855d1;
    color: #fff;
    /* Оставляем текст белым при наведении */
}

/* Медиа-запросы для мобильных */
@media (max-width: 1315px) {

    body.error404 .cs-main-content,
    body.error404 .custom-404-container {
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 768px) {
    body.error404 .custom-404-container {
        padding: 0;
        /* Убираем отступы для контейнера */
    }

    body.error404 .custom-404-image-wrapper {
        width: 100vw;
        /* Полная ширина вьюпорта */
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        /* Смещаем влево на половину ширины вьюпорта */
        margin-right: -50vw;
        /* Смещаем вправо на половину ширины вьюпорта */
        overflow: hidden;
    }

    body.error404 .custom-404-image {
        width: 200%;
        /* Увеличиваем в 2 раза */
        max-width: none;
        /* Убираем ограничение ширины */
        height: auto;
        margin-left: -50%;
        /* Смещаем влево для центрирования */
        object-fit: cover;
        /* Обрезаем края */
        object-position: center;
        /* Фокус на центре */
        border-radius: 0;
        /* Убираем скругление углов */
        position: static;
        /* Убираем абсолютное позиционирование */
    }

    body.error404 .custom-404-content {
        /* padding: 15px; */
        /* Отступы для текста */
    }

    .custom-404-title {
        font-size: 32px;
    }

    .custom-404-subtitle {
        font-size: 40px;
    }

    .custom-404-message {
        font-size: 24px;
    }

    .custom-404-button {
        font-size: 18px;
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {
    .custom-404-title {
        font-size: 24px;
    }

    .custom-404-subtitle {
        font-size: 32px;
    }

    .custom-404-message {
        font-size: 18px;
    }

    .custom-404-button {
        font-size: 16px;
    }
}

/* Закончились стили для 404 */

/* стили для дива с шорткодом  */
.my_dark_div {
    background-color: #212529 !important;
    border-radius: 15px;
    padding: 20px;
    color: white;
    /* Основной цвет текста */
}

/* Принудительно меняем цвет заголовков */
.my_dark_div h1,
.my_dark_div h2,
.my_dark_div h3,
.my_dark_div h4,
.my_dark_div h5,
.my_dark_div h6,
.my_dark_div ul,
.my_dark_div ol,
.my_dark_div li,
.my_dark_div b,
.my_dark_div strong {
    color: white !important;
}

/* Делаем маркеры (• и 1.) белыми */
.my_dark_div ul,
.my_dark_div ol {
    list-style-position: inside;
    /* Чтобы маркеры унаследовали цвет */
}

.my_dark_div li::marker {
    color: white !important;
}

/* Для старых браузеров (если `::marker` не сработает) */
.my_dark_div li::before {
    color: white !important;
}

.form-control {
    background-color: #333333 !important;
    color: #dee2e6 !important;

}

/* стили для страици бот локайзер но пригодятся */
.mybck {
    font-style: italic;
    color: #1585b7;
    font-weight: 300;
    border-left: 6px solid #34aadf;
    /* Цветная линия слева */
    padding-left: 20px;
    margin: 20px 0;
    quotes: "«" "»";
    /* Стиль кавычек */
    position: relative;
}

.mybck b,
.mybck i,
.mybck strong {
    color: #1585b7;
}

.mybck:hover {
    color: #1d7eaa;
    /* Изменение цвета текста при наведении */
    border-left-color: #0985bc;
    /* Изменение цвета линии при наведении */
    transition: all 0.3s ease-in-out;
}

.important2 {
    font-style: italic;
    color: #ec5479;
    font-weight: 300;
    border-left: 6px solid #df3471;
    /* Цветная линия слева */
    padding-left: 20px;
    margin: 20px 0;
    quotes: "«" "»";
    /* Стиль кавычек */
    position: relative;
}

/* Стили для <strong> внутри .important2 */
.important2 strong {
    color: #ec5479 !important;
    /* Цвет текста */
    font-weight: bold !important;
    /* Жирный шрифт */
}

.important2:hover {
    color: #c60534;
    /* Изменение цвета текста при наведении */
    border-left-color: #df3471;
    /* Изменение цвета линии при наведении */
    transition: all 0.3s ease-in-out;
}

/* Стили для <strong> при наведении */
.important2:hover strong {
    color: #c60534 !important;
    /* Цвет текста при наведении */
}

/* стили для нашего HERO на главной */
.cs-hero-type-4 .myhero_1 {
    width: 100%;
    height: 400px;

    border-radius: 20px;
    /* Скругление углов */
    overflow: hidden;
    /* Убираем лишние части */
    display: flex;
    /* Для центрирования */
    justify-content: center;
    /* Центрируем по горизонтали */
    align-items: center;
    /* Центрируем по вертикали */
}

/* Адаптивность для iframe внутри myhero_1 */
.cs-hero-type-4 .myhero_1 iframe {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Сохраняем пропорции, показываем всё содержимое */
}

/* Убираем прозрачность */
.cs-hero-type-4 .cs-overlay-background.cs-overlay-no-overlay::after {
    display: none;
    /* Убираем псевдоэлемент */
}

.cs-hero-type-4 .cs-overlay-background.cs-overlay-no-overlay {
    background: none;
    /* Убираем возможный фон */

}

/* Новый класс для соотношения 16:5 */
.cs-hero-type-4 .cs-overlay-ratio.cs-ratio-landscape-16-5 {
    height: 400px;
}

/* Убираем overflow: hidden на мобильных */
@media (max-width: 575.98px) {
    .cs-hero-type-4 .cs-overlay-ratio:not(.cs-ratio-original) .cs-overlay-background {
        overflow: visible;
        /* Позволяем содержимому выходить за границы */

    }

    .cs-hero-type-4 .cs-overlay-ratio.cs-ratio-landscape-16-5 {
        height: 200px;
    }

    .cs-hero-type-4 .myhero_1 {
        min-height: 200px;
        /* Минимальная высота для баннера на мобильных */
    }

    .cs-hero-type-4 .myhero_1 iframe {
        height: 200px;
        /* Позволяем iframe адаптироваться к содержимому */
        min-height: 200px;
        /* Минимальная высота iframe */
    }
}

/* Убедимся, что .cs-entry__inner.cs-entry__thumbnail растягивается */
.cs-hero-type-4 .cs-entry__inner.cs-entry__thumbnail {
    width: 100%;
    height: 100%;
}

.cs-hero-type-4__wrapper {
    padding-top: 4rem;
    padding-bottom: 4rem;
    margin-bottom: 4rem;
    border-bottom: 1px solid var(--cs-color-border);
}

@media (max-width: 767.98px) {
    .cs-hero-type-4__wrapper {
        padding-top: 2rem;
        padding-bottom: 2.5rem;
        margin-bottom: 2.5rem;
    }
}

.cs-hero-type-4 .cs-hero__content {
    position: relative;
    width: 100%;
    max-width: unset;
    text-align: center;
}

.cs-hero-type-4 .cs-hero__content .cs-hero__heading {
    width: 100%;
    max-width: var(--cs-entry-title-max-width);
    margin-left: auto;
    margin-right: auto;
    margin-bottom: unset;
    font-family: var(--cs-font-post-title-family), sans-serif;
    font-size: var(--cs-font-post-title-size);
    line-height: var(--cs-font-post-title-line-height);
    font-weight: var(--cs-font-post-title-weight);
    font-style: var(--cs-font-post-title-style);
    letter-spacing: var(--cs-font-post-title-letter-spacing);
    text-transform: var(--cs-font-post-title-text-transform);
    color: var(--cs-color-primary);
}

@media (max-width: 991.98px) {
    .cs-hero-type-4 .cs-hero__content .cs-hero__heading {
        font-size: var(--cs-heading-2-font-size);
    }

    @media (min-width: 768px) {
        .cs-hero-type-4 .cs-hero__content .cs-hero__heading {
            font-size: calc(var(--cs-heading-1-font-size) - 0.5rem);
        }
    }
}

:root .cs-hero-type-4 .cs-hero__content .cs-hero__heading span,
body[data-scheme=light] .cs-hero-type-4 .cs-hero__content .cs-hero__heading span {
    background: linear-gradient(180deg, #9895FF 0%, #514DCC 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (prefers-color-scheme: dark) {
    :root body[data-scheme=auto] .cs-hero-type-4 .cs-hero__content .cs-hero__heading span {
        background: var(--cs-color-primary);
        -webkit-background-clip: text;
    }
}

body[data-scheme=dark] .cs-hero-type-4 .cs-hero__content .cs-hero__heading span {
    background: var(--cs-color-primary);
    -webkit-background-clip: text;
}

.cs-hero-type-4 .cs-hero__content .cs-hero__subheading {
    font-family: var(--cs-font-post-subtitle-family), sans-serif;
    font-size: var(--cs-font-post-subtitle-size);
    line-height: var(--cs-font-post-subtitle-line-height);
    font-weight: var(--cs-font-post-subtitle-weight);
    letter-spacing: var(--cs-font-post-subtitle-letter-spacing);
    width: 100%;
    max-width: var(--cs-entry-content-small-width);
    margin-left: auto;
    margin-right: auto;
    margin-top: 0.625rem;
    margin-bottom: 1.625rem;
    color: var(--cs-color-secondary);
}

font-family: var(--cs-font-post-title-family),
sans-serif;
font-size: var(--cs-font-post-title-size);
line-height: var(--cs-font-post-title-line-height);
font-weight: var(--cs-font-post-title-weight);
font-style: var(--cs-font-post-title-style);
letter-spacing: var(--cs-font-post-title-letter-spacing);
text-transform: var(--cs-font-post-title-text-transform);
color: var(--cs-color-primary);
}

@media (max-width: 767.98px) {
    .cs-hero-type-4 .cs-hero__content .cs-hero__heading {
        font-size: var(--cs-heading-2-font-size);
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .cs-hero-type-4 .cs-hero__content .cs-hero__heading {
        font-size: calc(var(--cs-heading-1-font-size) - 0.5rem);
    }
}

:root .cs-hero-type-4 .cs-hero__content .cs-hero__heading span,
body[data-scheme=light] .cs-hero-type-4 .cs-hero__content .cs-hero__heading span {
    background: linear-gradient(180deg, #9895FF 0%, #514DCC 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (prefers-color-scheme: dark) {
    :root body[data-scheme=auto] .cs-hero-type-4 .cs-hero__content .cs-hero__heading span {
        background: var(--cs-color-primary);
        -webkit-background-clip: text;
    }
}

body[data-scheme=dark] .cs-hero-type-4 .cs-hero__content .cs-hero__heading span {
    background: var(--cs-color-primary);
    -webkit-background-clip: text;
}

.cs-hero-type-4 .cs-hero__content .cs-hero__subheading {
    font-family: var(--cs-font-post-subtitle-family), sans-serif;
    font-size: var(--cs-font-post-subtitle-size);
    line-height: var(--cs-font-post-subtitle-line-height);
    font-weight: var(--cs-font-post-subtitle-weight);
    letter-spacing: var(--cs-font-post-subtitle-letter-spacing);
    width: 100%;
    max-width: var(--cs-entry-content-small-width);
    margin-left: auto;
    margin-right: auto;
    margin-top: 0.625rem;
    margin-bottom: 1.625rem;
    color: var(--cs-color-secondary);
}

/* end */
.cs-categories-list__items {
    display: flex;
    flex-direction: row;
    /* Элементы идут в линию */
    flex-wrap: wrap;
    /* Перенос на новую строку, если не помещаются */
    gap: 20px;
    /* Расстояние между элементами */
}

/* Опционально: настройка отдельных элементов */
.cs-category-item {
    display: flex;
    align-items: center;
    /* Выравнивание иконки и текста по центру */
}

.cs-breadcrumbs {
    /*margin: 20px 0 0 20px;*/
    font-size: 14px;
}

.cs-breadcrumbs__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
}

.cs-breadcrumbs__item {
    margin-right: 10px;
}

.cs-breadcrumbs__item:after {
    content: ">";
    margin-left: 10px;
    color: #666;
}

.cs-breadcrumbs__item:last-child:after {
    content: "";
}

.cs-breadcrumbs__item a {
    color: #0073aa;
    text-decoration: none;
}

.cs-breadcrumbs__item a:hover {
    text-decoration: underline;
}

.cs-breadcrumbs__current {
    color: #333;
}

.cs-categories-list__title {
    text-align: left;
    font-size: 1.2em;
    margin-top: 20px;
    margin-bottom: 1px !important;
    font-weight: 600;
    color: #333;
}

.cs-categories-list__back-link .cs-category-item {
    margin-top: 20px;

}


a {
    cursor: pointer !important;
}

.form-control {
    background-color: #f9f9f9;
}

/* Стили для виджета технологий */
.used-technologies-list {
    padding: 10px 0;
}

.tech-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.tech-icon {
    margin-right: 10px;
    flex-shrink: 0;
}

.tech-icon img {
    max-width: 32px;
    height: auto;
    display: block;
}

.tech-info {
    flex-grow: 1;
    display: inline;
}

.tech-title {
    font-weight: bold;
    margin-right: 4px;
}

.tech-description {
    color: #666;
    word-wrap: break-word;
}

/* блок кода*/
.cs-entry__wrap .wp-block-code {
    /* color: #e8e8e8; */
    border-radius: 6px;
    background-color: #e8e8e8;
}

/* паттерн в конце поста "Если что пиши/донать"*/
.mydonateendpost {
    background-color: rgb(0 0 0 / 7%);
    padding: 20px;
    border-radius: 8px;
}

/* с градиентом 
.mydonateendpost {
  background: linear-gradient(
    to top,
    rgb(0 0 0 / 4%) 0%,
    rgb(0 0 0 / 7%) 100%
  );
  padding: 20px;
  border-radius: 8px;
}  */

/* Блок категории с подкатегориями */
.cs-category-block {
    padding: 25px;
    border: 1px solid #ddd;
    border-radius: 36px;
    background-color: #f9f9f9;
}

.cs-category-item__icon-box {
    margin-right: 10px;
}

.cs-category-item__icon img {
    max-width: 30px;
    height: auto;
}

.cs-category-item__title a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    font-weight: bold;
}

.cs-category-item__title a:hover {
    text-decoration: underline;
}

.cs-category-count {
    color: #666;
    font-size: 14px;
    margin-left: 5px;
}

/* Стили для подкатегорий */
.cs-subcategories-list__items {
    margin: 20px 0px 20px 0px;
}

.cs-subcategory-item {
    display: flex;
    align-items: center;
    margin: 10px 0px 10px 10px;
}

.cs-subcategory-item__icon-box {
    margin-right: 8px;
}

.cs-subcategory-item__icon img {
    max-width: 25px;
    height: auto;
}

.cs-subcategory-item__title a {
    text-decoration: none;
    color: #555;
    font-size: 14px;
}

.cs-subcategory-item__title a:hover {
    text-decoration: underline;
}

.cs-subcategory-count {
    color: #888;
    font-size: 12px;
    margin-left: 5px;
}

/* гифки при наведении на слово*/
.gif-tooltip {
    position: relative;
    text-decoration: underline dotted;
    cursor: pointer;
    z-index: 20;
}

.gif-tooltip .gif-tooltip-image {
    position: absolute;
    bottom: 1.5em;
    left: 0;
    transform: translateX(calc(var(--mouse-x, 0px) - 50%));
    max-width: 300px;
    /* Максимальная ширина */
    height: auto;
    /* Высота подстраивается автоматически */
    border-radius: 10px;
    /* Скругление углов */
    z-index: 30;
    box-sizing: border-box;
}

.cs-icon-telegram:before {
    content: "\f3fe";
    font-family: "Font Awesome 5 Brands";
}

/* Кнопка скачивания приложения */
.app_bttn {
    /* --cs-color-accent: initial; /* проблемная глобальная CSS переменная задающая цвет, раскоментировать что бы отключить и задать свой цвет кекста */
    display: inline-block;
    background-color: transparent;
    /* убираем заливку */
    color: #fff;
    /* белый текст */
    font-weight: bold;
    padding: 14px 28px;
    border: 2px solid var(--cs-color-accent);
    /* использует дефолтную переменную */
    border-radius: 16px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.app_bttn:hover {
    background-color: rgb(255 255 255 / 91%);
    /* чёрная заливка с 20% прозрачностью при наведении */
}