
/* =========================================================
   BLOGZINE — RESPONSIVE DESIGN
   Desktop / Tablet / Mobile
   Image ratio: 4:3

   Original Webestica overlay is preserved in style.css
   ========================================================= */


/* =========================================================
   1. CARD IMAGE — 4:3
   ========================================================= */

img.card-img-4x3 {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center;
    background: var(--bs-tertiary-bg, #f7f8f9);
}


/* =========================================================
   2. RECENT NEWS IMAGES
   ========================================================= */

.blogzine-recent-image {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--bs-tertiary-bg, #f7f8f9);
}

.blogzine-recent-image > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}


/* =========================================================
   3. CARD GRID
   ========================================================= */

.card-grid .card-grid-lg,
.card-grid .card-grid-sm {
    min-width: 0;
    overflow: hidden;
}

.card-grid .card {
    width: 100%;
    min-width: 0;
}


/* =========================================================
   4. CARD BODY
   ========================================================= */

.card-body {
    min-width: 0;
    overflow-wrap: break-word;
}


/* =========================================================
   5. FEATURED CARD
   Custom gradient overlay
   ========================================================= */

.blogzine-featured-card {
    position: relative;
    width: 100%;
    min-height: 420px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    overflow: hidden;
    border: 0;
}

.blogzine-featured-card::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80%;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.blogzine-featured-card .card-img-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
}


/* =========================================================
   6. SMALL GRID CARDS
   Without additional overlay
   ========================================================= */

.blogzine-small-card {
    position: relative;
    width: 100%;
    min-height: 250px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    overflow: hidden;
    border: 0;
}

.blogzine-small-card::before {
    content: none;
}

.blogzine-small-card .card-img-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}


/* =========================================================
   7. EDITOR SECONDARY CARDS
   Original Blogzine overlay from style.css
   ========================================================= */

.bz-editor-secondary {
    position: relative;
    width: 100%;
    min-width: 0;
    min-height: 250px;
    overflow: hidden;
    background-size: cover;
    background-position: center left;
    background-repeat: no-repeat;
    border: 0;
}

/* Original card-overlay-bottom gradient is in style.css */
/* Do not add another ::before gradient here */

.bz-editor-secondary .card-img-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.bz-editor-secondary h4 {
    overflow-wrap: break-word;
}

.bz-editor-secondary .nav {
    position: relative;
    z-index: 3;
}


/* =========================================================
   8. NEWS CARD
   ========================================================= */

.blogzine-news-card {
    width: 100%;
    min-width: 0;
}

.blogzine-news-card .position-relative {
    overflow: hidden;
}

.blogzine-news-card .position-relative > a {
    position: relative;
    z-index: 0;
}

.blogzine-news-card .card-img-overlay {
    z-index: 1;
}

.blogzine-news-card .card-body {
    min-width: 0;
}


/* =========================================================
   9. RECENT POST
   ========================================================= */

.blogzine-recent-post {
    min-width: 0;
}

.blogzine-recent-post .row {
    min-width: 0;
}

.blogzine-recent-post .col-4,
.blogzine-recent-post .col-8 {
    min-width: 0;
}

.blogzine-recent-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center;
}

.blogzine-recent-post h6 {
    min-width: 0;
    overflow-wrap: break-word;
}


/* =========================================================
   10. TABLET
   Up to 991.98px
   ========================================================= */

@media (max-width: 991.98px) {

    .blogzine-featured-card {
        min-height: 380px;
    }

    .blogzine-small-card,
    .bz-editor-secondary {
        min-height: 240px;
    }

}


/* =========================================================
   11. MOBILE
   Up to 575.98px
   ========================================================= */

@media (max-width: 575.98px) {

    .card,
    .card-grid .card-grid-lg,
    .card-grid .card-grid-sm {
        width: 100%;
        min-width: 0;
    }

    .card-body,
    .blogzine-news-card .card-body {
        padding-left: 0;
        padding-right: 0;
    }

    .blogzine-featured-card {
        min-height: 360px;
    }

    .blogzine-featured-card h2 {
        font-size: 1.5rem;
    }

    .blogzine-featured-card p {
        font-size: 0.9rem;
    }

    .blogzine-small-card,
    .bz-editor-secondary {
        min-height: 230px;
    }

    .blogzine-small-card h4,
    .bz-editor-secondary h4 {
        font-size: 1.1rem;
    }

}


/* =========================================================
   12. SMALL MOBILE
   Up to 375px
   ========================================================= */

@media (max-width: 375px) {

    .card-title {
        overflow-wrap: anywhere;
    }

    .blogzine-featured-card {
        min-height: 320px;
    }

    .blogzine-small-card,
    .bz-editor-secondary {
        min-height: 210px;
    }

}


/* =========================================================
   13. FEEDBACK FORM
   ========================================================= */

.feedback-page fieldset.feedback-field {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}


/* =========================================================
   14. ACCESSIBILITY — REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    img.card-img-4x3,
    .blogzine-recent-image,
    .blogzine-recent-image > img,
    .blogzine-recent-thumb {
        transition: none !important;
        animation: none !important;
    }

}

/* Цветные иконки статистики */
.news-color-views {
    color: #0d6efd !important;
}

.news-color-comments {
    color: #20c997 !important;
}

.news-color-likes {
    color: #16a34a !important;
}

.news-color-dislikes {
    color: #dc2626 !important;
}

.news-rating__button {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .5em 1.1em;
    font-size: .9rem;
    font-weight: 600;
    border-radius: var(--bs-border-radius-pill);
    cursor: pointer;
    user-select: none;
    border: 0;
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
    transition: transform var(--news-transition), background var(--news-transition), color var(--news-transition), box-shadow var(--news-transition);
}

.news-rating__button--like {
    background: rgba(34, 197, 94, .12);
    color: #16a34a;
}

.news-rating__button--dislike {
    background: rgba(239, 68, 68, .12);
    color: #dc2626;
}





/* Сердце */
.news-rating__icon {
    color: #dc2626 !important;
}

/* Кнопка Нравится */
.news-rating__button--like,
.news-rating__button--like i {
    color: #16a34a !important;
}

/* Кнопка Не нравится */
.news-rating__button--dislike,
.news-rating__button--dislike i {
    color: #dc2626 !important;
}






/* =========================================================
   BLOGZINE HEADER — THEME LOGOS + THEME SWITCHER
   Uses the same data-bs-theme attribute as colormode.js
   ========================================================= */

/* Logo visibility */
html:not([data-bs-theme="dark"]) .light-mode-item {
    display: block !important;
}

html:not([data-bs-theme="dark"]) .dark-mode-item {
    display: none !important;
}

html[data-bs-theme="dark"] .light-mode-item {
    display: none !important;
}

html[data-bs-theme="dark"] .dark-mode-item {
    display: block !important;
}

/* Theme icon injected by colormode.js */
.modeswitch .theme-icon-active {
    display: block;
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    overflow: visible;
}

/* The active SVG replaces the legacy Font Awesome pseudo-icon */
.modeswitch::before {
    content: none !important;
}

/* Keep the switch icon centered in both themes */
.modeswitch {
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* =========================================================
   BLOGZINE — FOOTER FINISH / DARK GRAPHITE + CHAMPAGNE
   Keeps the existing footer structure, links and counters.
   ========================================================= */

.bz-footer {
    position: relative;
    isolation: isolate;
    margin-top: 64px;
    background: #080D15 !important;
    color: #C5C8CF;
    border-top: 1px solid rgba(198, 161, 91, .24);
}

.bz-footer::before {
    content: "";
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #A98448 18%, #E2C58F 50%, #A98448 82%, transparent 100%);
    opacity: .78;
    pointer-events: none;
}

.bz-footer-main {
    padding-top: 66px;
    padding-bottom: 58px;
}

.bz-footer-main > .row {
    --bs-gutter-x: 2.6rem;
    --bs-gutter-y: 2.6rem;
}

.bz-footer-logo img {
    max-width: 205px;
}

.bz-footer-description {
    max-width: 455px;
    margin-bottom: 25px;
    color: #B9BEC8;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.85;
    letter-spacing: .005em;
}

.bz-footer-title {
    margin-bottom: 24px;
    padding-bottom: 15px;
    color: #F4F0E8;
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: .005em;
}

.bz-footer-title::before {
    background: rgba(255, 255, 255, .10);
}

.bz-footer-title::after,
[data-bs-theme="dark"] .bz-footer-title::after,
[data-theme="dark"] .bz-footer-title::after,
.dark-mode .bz-footer-title::after,
.dark .bz-footer-title::after {
    width: 42px;
    background: #C6A16B;
}

.bz-footer-column:hover .bz-footer-title::after {
    width: 58px;
}

.bz-footer-links {
    gap: 0;
}

.bz-footer-links li {
    margin-bottom: 11px;
}

.bz-footer-links a {
    color: #B9BEC8;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    line-height: 1.65;
    transition: color .22s ease, transform .22s ease;
}

.bz-footer-links a i {
    color: #B99A68;
    font-size: 14px;
}

.bz-footer-links a:hover {
    color: #E5C995;
    transform: translateX(3px);
}

.bz-footer-links a:hover i {
    color: #E5C995;
}

.bz-socials {
    gap: 10px;
    margin-top: 22px;
}

.bz-socials a {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 12px;
    background: rgba(255, 255, 255, .045);
    color: #C8CDD6 !important;
    box-shadow: none;
}

.bz-socials a:hover,
.bz-socials .bz-social-mail:hover,
.bz-socials .bz-social-comments:hover,
.bz-socials .bz-social-search:hover,
.bz-socials .bz-social-rss:hover {
    color: #11151B !important;
    background: #D2B27A !important;
    border-color: #D2B27A !important;
    box-shadow: 0 7px 18px rgba(0, 0, 0, .22);
    transform: translateY(-3px);
}

.bz-footer-posts {
    gap: 14px;
    color: #C5C8CF;
}

.bz-post-item {
    align-items: center;
    gap: 13px;
    padding: 0 0 13px;
    border-bottom: 1px solid rgba(255, 255, 255, .075);
}

.bz-post-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.bz-post-image {
    flex: 0 0 82px;
    width: 82px;
    height: 62px;
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 9px;
    background: #111A27;
}

.bz-post-content h6 {
    margin-bottom: 5px;
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.45;
}

.bz-post-title {
    color: #D8DCE3;
    transition: color .2s ease;
}

.bz-post-title:hover {
    color: #E5C995;
}

.bz-post-date {
    color: #8993A2;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
}

.bz-post-date i {
    color: #B99A68;
}

.bz-footer-counters {
    padding: 20px 0;
    background: rgba(255, 255, 255, .018);
    border-top: 1px solid rgba(198, 161, 91, .18);
    border-bottom: 1px solid rgba(198, 161, 91, .18);
}

.bz-footer-counters .d-flex {
    gap: 20px !important;
}

.bz-footer-counters img {
    opacity: .88;
    transition: opacity .2s ease, transform .2s ease;
}

.bz-footer-counters a:hover img {
    opacity: 1;
    transform: translateY(-1px);
}

.bz-footer-bottom {
    padding: 21px 0;
    background: #070B12;
    border-top: 0;
}

.bz-copyright,
.bz-footer-made {
    color: #929BA9;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    line-height: 1.7;
}

.bz-copyright-symbol,
.bz-copyright a,
.bz-footer-made strong {
    color: #D2B27A;
}

.bz-copyright a:hover {
    color: #F0D9AD;
}

.bz-back-top {
    background: #5685F5;
}

.bz-back-top:hover {
    background: #D2B27A;
    border-color: #D2B27A;
    color: #11151B;
}

@media (min-width: 992px) {
    .bz-footer-main > .row {
        align-items: flex-start;
    }

    .bz-footer-main .bz-footer-brand {
        padding-right: 12px;
    }

    .bz-footer-main .bz-footer-column {
        height: 100%;
    }
}

/* End footer finish */

