/* ===================================
   ПЕРЕМЕННЫЕ
   =================================== */
:root {
    --brand-orange-start: #af5a32;
    --brand-orange-end: #ef833e;
    --nav-bg: #0b263fbf;
    --bs-nav-link-font-size: 1.1rem;
    --bs-nav-link-padding-y: 0.75rem;
    --bs-navbar-nav-link-padding-x: 0.75rem;
}

/* ===================================
   БАЗОВЫЕ СТИЛИ
   =================================== */
body {
    font-family: "Open Sans", sans-serif;
    color: #000;
}

h1,
h2,
h3,
h4,
.brand-font {
    font-family: "PT Sans Narrow", sans-serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: #0056b3;
}

a:hover {
    text-decoration: underline;
}

/* ===================================
   ШАПКА (HEADER)
   =================================== */
.site-header {
    background: url("../images/header-background.jpg") center top repeat;
    background-color: #0099e5;
    padding: 0;
    color: white;
    font-family: "PT Sans Narrow", sans-serif;
}

.site-header > .container {
    padding-top: 30px;
    padding-bottom: 20px;
}

.journal-img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
}

.site-title {
    font-size: 4rem;
    line-height: 1;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.site-subtitle {
    font-size: 1.1rem;
    font-family: "PT Sans Narrow", sans-serif;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
}

.btn-orange-gradient {
    background: linear-gradient(to top, var(--brand-orange-start), var(--brand-orange-end));
    border: 1px solid #8e421f;
    color: white;
    font-family: "PT Sans Narrow", sans-serif;
    font-size: 1.25rem;
    padding: 8px 20px;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.contact-box {
    border-radius: 4px;
}

.contact-box a {
    color: white;
}

.contact-box .prin-art {
    color: #ffc4a8;
}

.lang-switch a {
    color: #ffc4a8;
}

.submission-info {
    font-size: 1em;
}

.submission-info a {
    color: #ffc4a8;
}

/* ===================================
   НАВИГАЦИЯ (МЕНЮ)
   =================================== */
.navbar-collapse {
    z-index: 1040;
}

.navbar-custom {
    background: var(--nav-bg);
    background-repeat: repeat-x;
    background-position: bottom;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    font-family: "PT Sans Narrow", sans-serif;
    position: relative;
    z-index: 1030;
}

.navbar-custom .dropdown-menu {
    background-color: var(--nav-bg);
}

.navbar-custom .dropdown-item {
    color: white;
    font-family: "PT Sans Narrow", sans-serif;
}

.navbar-toggler {
    padding-bottom: 10px;
    text-transform: uppercase;
}

.navbar-custom .dropdown-item:hover,
.navbar-custom .dropdown-item:focus {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-link {
    color: rgba(255, 255, 255, 0.7);
    font-family: "PT Sans Narrow", sans-serif;
    font-size: 1.1rem;
    text-transform: uppercase;
}

.nav-link:hover,
.nav-link.active {
    color: white;
}

.dropdown-item {
    font-size: 1.1rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

.navbar-expand-lg .navbar-nav .nav-link {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.form-search {
    width: 250px;
}

/* ===================================
   БЛОК ВАК
   =================================== */
.vak-notification {
    background: url("../images/across-background.jpg") repeat;
    position: relative;
    color: #333;
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: justify;
    padding-top: 20px;
    padding-bottom: 20px;
}

.vak-notification .vak-toggler {
    cursor: pointer;
    display: flex !important;
    align-items: center;
    text-decoration: none !important;
    color: #000;
}

.vak-notification .vak-toggler:hover {
    text-decoration: none !important;
}

.vak-notification .vak-icon-rotate {
    transition: transform 0.3s ease-in-out;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.vak-notification .vak-toggler[aria-expanded="true"] .vak-icon-rotate {
    transform: rotate(180deg);
}

#collapseVAK {
    border-top: 1px solid rgba(0, 0, 0, 0.2);
    padding-top: 15px;
    margin-top: 15px;
}

/* ===================================
   ФУТЕР
   =================================== */
footer {
    background: url("../images/header-background.jpg") center bottom repeat;
    background-color: #0b263f;
    color: white;
    padding: 30px 0;
    margin-top: 40px;
    position: relative;
    padding-top: 40px;
}

footer a {
    color: rgba(255, 255, 255, 0.8);
}

footer a:hover {
    color: white;
}

/* ===================================
   ОСНОВНОЙ КОНТЕНТ
   =================================== */
.content-area {
    padding: 40px 0;
}

.search-box {
    max-width: 300px;
    float: right;
    margin-bottom: 20px;
}

.breadcrumb-custom {
    font-size: 0.9rem;
    color: #999;
}

.global-links a {
    margin-left: 15px;
    font-size: 0.9rem;
    color: #0056b3;
    text-decoration: underline;
}

.rubric-title {
    color: #000;
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

/* ===================================
   АДМИН-ПАНЕЛЬ
   =================================== */
.admin-bar {
    background: #343a40;
    padding: 8px 0;
    font-size: 0.9rem;
}

.admin-bar a {
    color: #fff;
}

.admin-bar .btn {
    margin-left: 5px;
}

/* ===================================
   КАРТОЧКИ (АРХИВ)
   =================================== */
.hover-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
    background-color: #f8f9fa !important;
}

.card-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 10;
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

.hover-card:hover .card-actions {
    opacity: 1;
}

/* ===================================
   ТАБЛИЦЫ И СПИСКИ
   =================================== */
.table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

/* ===================================
   COOKIE CONSENT
   =================================== */
#cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #0099e5;
    color: #fff;
    padding: 15px;
    text-align: center;
    z-index: 1050;
    display: none;
    font-family: Arial, sans-serif;
}

#cookie-consent p {
    margin: 0;
    display: inline;
    font-size: 0.75rem;
}

#cookie-consent a {
    font-size: 0.75rem;
    color: rgb(204, 204, 204);
    border-bottom: 1px solid rgb(250, 134, 105);
    box-shadow: none;
    text-decoration: none;
}

#cookie-consent button {
    background-color: #3660d9;
    color: white;
    border: none;
    padding: 8px 16px;
    margin-left: 10px;
    cursor: pointer;
    border-radius: 4px;
}

#cookie-consent button:hover {
    background-color: rgb(6, 118, 178);
}

#cookie-consent .sogl-header {
    font-size: 1rem;
}

#cookie-consent .i-accept {
    background-color: #08436e;
}

#cookie-consent .i-not-accept {
    background-color: brown;
}

.my-color-bg {
    background-color: var( --nav-bg);
}
.my-color-border {
    --bs-border-opacity: 1;
    border-color: var( --nav-bg);
}
/* При наведении на карточку с фоном primary, текст должен стать синим */
.hover-card.bg-primary:hover {
    background-color: white !important; /* Убеждаемся, что фон станет белым */
    color: #0d6efd !important; /* Цвет текста становится синим (Bootstrap Primary) */
}

/* Также нужно убедиться, что иконка и жирный текст внутри сменят цвет */
.hover-card.bg-primary:hover .fw-bold,
.hover-card.bg-primary:hover i {
    color: #0d6efd !important;
}
/* ===================================
   АДАПТИВНОСТЬ
   =================================== */
@media (max-width: 991.98px) {
    .site-title {
        font-size: 2.5rem;
    }

    .form-search {
        width: 100%;
        margin-top: 10px;
    }

    .navbar-collapse {
        background: var(--nav-bg);
        padding: 15px;
        border-radius: 0 0 8px 8px;
    }
}

@media (max-width: 767.98px) {
    .site-title {
        font-size: 2rem;
    }

    .site-header > .container {
        padding-top: 20px;
        padding-bottom: 15px;
    }

    .contact-box {
        padding: 10px;
    }
}

/* ========================================
   QUILL.JS - Стили для отображения контента
   ======================================== */

/* Выравнивание текста */
.ql-align-center {
    text-align: center !important;
}

.ql-align-right {
    text-align: right !important;
}

.ql-align-justify {
    text-align: justify !important;
}

.ql-align-left {
    text-align: left !important;
}

/* Отступы */
.ql-indent-1 { padding-left: 3em !important; }
.ql-indent-2 { padding-left: 6em !important; }
.ql-indent-3 { padding-left: 9em !important; }
.ql-indent-4 { padding-left: 12em !important; }
.ql-indent-5 { padding-left: 15em !important; }
.ql-indent-6 { padding-left: 18em !important; }
.ql-indent-7 { padding-left: 21em !important; }
.ql-indent-8 { padding-left: 24em !important; }

/* Размеры шрифта */
.ql-size-small {
    font-size: 0.75em;
}

.ql-size-large {
    font-size: 1.5em;
}

.ql-size-huge {
    font-size: 2.5em;
}