body {
    background-color: #F8FAFC;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #0F172A;
    line-height: 1.5;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.main-container {
    margin-top: 24px;
    margin-bottom: 40px;
}

.navbar-brand-custom {
    background-color: #2C3E50 !important;
}

.site-logo-img {
    max-height: 38px;
    width: auto;
    object-fit: contain;
}

.bg-primary {
    background-color: #0EBED5 !important;
}

.text-primary {
    color: #0EBED5 !important;
}

.btn-primary {
    background-color: #0EBED5 !important;
    border-color: #0EBED5 !important;
    color: #FFFFFF !important;
    font-weight: 600;
    border-radius: 6px;
    box-shadow: none !important;
}

.btn-primary:hover {
    background-color: #0CA8BD !important;
    border-color: #0CA8BD !important;
}

.btn-outline-primary {
    color: #0EBED5 !important;
    border-color: #0EBED5 !important;
    background: transparent !important;
    border-radius: 6px;
    box-shadow: none !important;
}

.btn-outline-primary:hover {
    background-color: #0EBED5 !important;
    color: #FFFFFF !important;
}

.news-card {
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    background: #FFFFFF;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: none !important;
    transition: border-color 0.2s ease;
}

.news-card:hover {
    border-color: #CBD5E1;
}

.news-card-sticky {
    border: 2px solid #0EBED5 !important;
}

.news-card-horizontal {
    flex-direction: row;
    overflow: hidden;
}

.news-card-horizontal .news-card-img-wrapper {
    height: 100%;
    min-height: 180px;
    border-top-right-radius: 0;
    border-bottom-left-radius: 7px;
    border-bottom: none;
}

.news-card-img-wrapper {
    position: relative;
    width: 100%;
    height: 170px;
    overflow: hidden;
    background-color: #FFFFFF !important;
    border-top-left-radius: 7px;
    border-top-right-radius: 7px;
    display: block;
    border-bottom: 1px solid #F1F5F9;
}

.news-card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.single-news-full-img {
    width: 100%;
    max-height: 450px;
    object-fit: contain;
    background-color: #FFFFFF;
    border-radius: 8px;
    border: 1px solid #F1F5F9;
    cursor: pointer;
}

.add-photos-carousel {
    position: relative;
    padding: 0 10px;
    margin-top: 12px;
}

.add-photos-carousel .item {
    height: 85px;
    overflow: hidden;
    border-radius: 6px;
    background-color: #FFFFFF;
    border: 1px solid #E2E8F0;
}

.add-photos-carousel .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    cursor: pointer;
}

.add-photos-carousel .owl-nav button {
    position: absolute;
    top: 38%;
    transform: translateY(-50%);
    background: #34495E !important;
    color: #FFFFFF !important;
    width: 28px;
    height: 26px;
    border-radius: 4px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px !important;
    z-index: 10;
}

.add-photos-carousel .owl-nav button:hover {
    background: #0EBED5 !important;
}

.add-photos-carousel .owl-nav button.owl-prev { left: -10px; }
.add-photos-carousel .owl-nav button.owl-next { right: -10px; }

.add-photos-carousel .owl-dots {
    text-align: center;
    margin-top: 8px;
}

.add-photos-carousel .owl-dot span {
    width: 8px;
    height: 8px;
    margin: 3px;
    background: #CBD5E1 !important;
    display: inline-block;
    border-radius: 50%;
}

.add-photos-carousel .owl-dot.active span {
    background: #0EBED5 !important;
}

.news-card-body {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-card-title {
    color: #0F172A !important;
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.4;
    text-decoration: none !important;
    margin-bottom: 8px;
    display: block;
}

.news-card-title:hover {
    color: #0EBED5 !important;
}

.news-card-excerpt {
    color: #64748B;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-meta {
    font-size: 0.8rem;
    color: #94A3B8;
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-card-footer {
    border-top: 1px solid #F1F5F9;
    padding: 10px 18px;
    background-color: #FAFAFC;
    border-bottom-left-radius: 7px;
    border-bottom-right-radius: 7px;
}

.share-buttons {
    display: flex;
    gap: 10px !important;
    align-items: center;
    flex-wrap: wrap;
}

.share-buttons .btn {
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 0.8rem;
    box-shadow: none !important;
}

.promo-content-box {
    margin: 20px 0;
}

.partner-origin-box {
    margin-top: 15px;
    padding-top: 12px;
}

.search-box {
    position: relative;
    margin-bottom: 20px;
}

.search-box input {
    padding-left: 42px;
    border-radius: 6px;
    border: 1px solid #E2E8F0;
    box-shadow: none !important;
}

.search-box .fa-search {
    position: absolute;
    left: 16px;
    top: 13px;
    color: #94A3B8;
}

.hp-field {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    left: -9999px !important;
}

.single-news-content {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #334155;
}

.single-news-content p {
    margin-bottom: 1.2rem;
}

.single-news-content a {
    color: #0EBED5 !important;
    font-weight: 500;
    text-decoration: none !important;
    border-bottom: 1px solid #0EBED5;
    padding-bottom: 1px;
}

.single-news-content a:hover {
    color: #0EBED5 !important;
}

#btn-back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    display: none;
    z-index: 99;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #34495E;
    color: white;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

#btn-back-to-top:hover {
    background-color: #0EBED5;
}

.footer-light {
    background-color: #FFFFFF !important;
    border-top: 1px solid #E2E8F0;
    color: #64748B;
}

.footer-nav-links a {
    color: #475569;
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer-nav-links a:hover {
    color: #0EBED5;
}

body.dark-mode {
    background-color: #0F172A !important;
    color: #F8FAFC !important;
}

body.dark-mode .news-card,
body.dark-mode .card,
body.dark-mode .footer-light {
    background-color: #1E293B !important;
    border-color: #334155 !important;
    color: #F8FAFC !important;
}

body.dark-mode .news-card-title,
body.dark-mode h1, body.dark-mode h2, body.dark-mode h3, body.dark-mode h4, body.dark-mode h5,
body.dark-mode .footer-light h6,
body.dark-mode .footer-light .text-dark {
    color: #F8FAFC !important;
}

body.dark-mode .news-card-excerpt,
body.dark-mode .text-muted,
body.dark-mode .single-news-content,
body.dark-mode .footer-nav-links a,
body.dark-mode .footer-light a {
    color: #CBD5E1 !important;
}

body.dark-mode .footer-nav-links a:hover,
body.dark-mode .footer-light a:hover {
    color: #0EBED5 !important;
}

body.dark-mode .news-card-footer {
    background-color: #0F172A !important;
    border-top-color: #334155 !important;
}

body.dark-mode .search-box input,
body.dark-mode .form-control,
body.dark-mode .form-select {
    background-color: #1E293B !important;
    color: #F8FAFC !important;
    border-color: #334155 !important;
}

body.dark-mode .news-card-img-wrapper {
    background-color: #1E293B !important;
    border-bottom-color: #334155 !important;
}

.login-container {
    max-width: 400px;
    margin: 80px auto;
    padding: 30px;
    background: #FFFFFF;
    border-radius: 8px;
    border: 1px solid #E2E8F0;
}

.admin-container {
    max-width: 1200px;
}

.nav-tabs .nav-link {
    color: #64748B;
    font-weight: 600;
}

.nav-tabs .nav-link.active {
    color: #0EBED5;
    border-bottom: 3px solid #0EBED5;
}

.news-card-no-img {
  border-top: 1px solid #E2E8F0 !important;
}

.news-card-no-img .news-card-body {
    height: 100%;
}

//* =========================================================
   СТИЛЬ ЗАГЛУШКИ ДЛЯ НОВОСТЕЙ БЕЗ ФОТО (БЕЛЫЙ ФОН И БЕЗ ПОЛОСКИ)
   ========================================================= */

/* Убираем бирюзовую полоску сверху карточек без фото */
.news-card-no-img {
    border-top: 1px solid #E2E8F0 !important;
}

/* 1. НА МОБИЛЬНЫХ УСТРОЙСТВАХ (< 768px) ЗАГЛУШКА СКРЫТА ПОЛНОСТЬЮ */
@media (max-width: 767.98px) {
    .is-fallback-wrapper,
    a.is-fallback-wrapper,
    .news-card-img-wrapper.is-fallback-wrapper,
    .news-card-no-img .is-fallback-wrapper {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
        max-width: 0 !important;
        max-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
}

/* 2. НА ПК (>= 768px) ПЛАШКА 70x70px С ЧИСТО БЕЛЫМ ФОНОМ */
@media (min-width: 768px) {
    .news-card-no-img {
        display: flex !important;
        flex-direction: row !important;
        align-items: flex-start !important;
    }

    .news-card-no-img .is-fallback-wrapper,
    a.news-card-img-wrapper.is-fallback-wrapper,
    .is-fallback-wrapper {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 70px !important;
        height: 70px !important;
        min-width: 70px !important;
        min-height: 70px !important;
        max-width: 70px !important;
        max-height: 70px !important;
        margin: 16px 0 0 16px !important;
        padding: 0 !important;
        border-radius: 8px !important;
        background-color: #FFFFFF !important; /* БЕЛЫЙ ФОН */
        border: 1px solid #E2E8F0 !important;
        flex-shrink: 0 !important;
        overflow: hidden !important;
    }

    .news-card-no-img .is-fallback-wrapper img,
    a.news-card-img-wrapper.is-fallback-wrapper img,
    .is-fallback-wrapper img.is-fallback {
        width: 60px !important;
        height: 60px !important;
        max-width: 60px !important;
        max-height: 60px !important;
        object-fit: contain !important;
        opacity: 0.4 !important;
        padding: 0 !important;
        margin: 0 auto !important;
        display: block !important;
    }

    .news-card-no-img .news-card-body {
        padding-left: 12px !important;
        flex-grow: 1 !important;
    }
}