/*
Theme Name:   Hestia РИМ-Монтана
Theme URI:    https://montanahm.eu/
Description:  Child тема на Hestia за Регионален исторически музей — Монтана.
              Палитра „Лапидариум" (камък и бронз), нисък банер, музейна структура.
Author:       ITService
Template:     hestia
Version:      1.0.0
Text Domain:  hestia-montanahm
*/

/* ============================================================
   1. ПАЛИТРА „Лапидариум"
   ============================================================ */
:root {
    --mhm-stone:      #3A3C3B;   /* каменно тъмно — меню, футър */
    --mhm-stone-deep: #2B2D2C;   /* по-дълбоко */
    --mhm-bronze:     #8C7A5B;   /* бронз — акцент */
    --mhm-bronze-lt:  #A18C68;   /* светъл бронз — hover */
    --mhm-patina:     #A8B0A6;   /* патина — втори акцент */
    --mhm-bg:         #F4F3F0;   /* светъл камък — фон */
    --mhm-surface:    #FFFFFF;   /* карти */
    --mhm-text:       #2E302F;   /* основен текст */
    --mhm-soft:       #636764;   /* приглушен текст */
    --mhm-line:       #DEDCD6;   /* линии */

    color-scheme: light;         /* Chrome auto-dark да не обръща сайта */
}

body { background-color: var(--mhm-bg); color: var(--mhm-text); }

/* ============================================================
   2. ХЕДЪР И МЕНЮ
   ============================================================ */
.navbar.navbar-default,
.header .navbar,
.navbar {
    background-color: var(--mhm-stone) !important;
    box-shadow: 0 1px 0 rgba(0,0,0,.18);
}
.navbar .navbar-nav > li > a,
.navbar .navbar-brand {
    color: #F1EFE9 !important;
    font-weight: 500;
    letter-spacing: .02em;
}
.navbar .navbar-nav > li > a:hover,
.navbar .navbar-nav > li > a:focus,
.navbar .navbar-nav > li.active > a,
.navbar .navbar-nav > li.current-menu-item > a,
.navbar .navbar-nav > li.current-menu-ancestor > a {
    color: #FFFFFF !important;
    background-color: transparent !important;
}
/* бронзова черта под активния вход */
.navbar .navbar-nav > li > a::after {
    content: "";
    display: block;
    height: 2px;
    margin-top: 4px;
    background: transparent;
    transition: background .18s ease;
}
.navbar .navbar-nav > li > a:hover::after,
.navbar .navbar-nav > li.active > a::after,
.navbar .navbar-nav > li.current-menu-item > a::after,
.navbar .navbar-nav > li.current-menu-ancestor > a::after {
    background: var(--mhm-bronze-lt);
}
/* подменюта */
.navbar .dropdown-menu {
    background-color: var(--mhm-stone-deep);
    border: none;
    border-top: 2px solid var(--mhm-bronze);
    padding: 6px 0;
}
.navbar .dropdown-menu > li > a {
    color: #E7E4DC !important;
    padding: 9px 20px;
    white-space: normal;
    max-width: 340px;
}
.navbar .dropdown-menu > li > a:hover {
    background-color: rgba(140,122,91,.28) !important;
    color: #FFFFFF !important;
}
/* ⚠️ .title-logo-wrapper има min-width:250px и притиска менюто */
.navbar .title-logo-wrapper { min-width: 0 !important; }
.navbar .navbar-brand img,
.navbar .navbar-header img { max-height: 46px; width: auto; }

/* ============================================================
   3. НИСЪК БАНЕР (вместо целоекранния)
   ============================================================ */
.page-header.header-small,
.page-header.hestia-title-blog,
.header-filter,
.page-header {
    min-height: 340px !important;
    height: 340px !important;
    max-height: 340px !important;
    display: flex;
    align-items: center;
}
.page-header .container { width: 100%; }
/* по-плътен воал, за да се чете текстът върху всяка снимка */
.page-header.header-filter::before,
.header-filter::before {
    background: linear-gradient(180deg, rgba(43,45,44,.62) 0%, rgba(43,45,44,.78) 100%) !important;
}
.page-header .hestia-title,
.page-header h1.title,
.page-header .title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin: 0 0 .4rem;
    text-shadow: 0 2px 10px rgba(0,0,0,.45);
}
.page-header .subtitle,
.page-header h4.description {
    font-size: 1.05rem;
    color: #EDE9E0 !important;
    margin: 0;
}

/* лентата с работно време и адрес под банера */
.mhm-strip {
    background: var(--mhm-stone-deep);
    color: #E9E6DE;
    padding: .85rem 0;
    font-size: .95rem;
    border-bottom: 3px solid var(--mhm-bronze);
}
.mhm-strip .mhm-strip-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    flex-wrap: wrap;
    gap: .6rem 2.2rem;
    align-items: center;
    justify-content: center;
}
.mhm-strip b { color: #FFFFFF; font-weight: 600; }
.mhm-strip a { color: var(--mhm-patina); text-decoration: none; }
.mhm-strip a:hover { color: #FFFFFF; text-decoration: underline; }

/* ============================================================
   4. ПЛОЧКИ ЗА ОБЕКТИТЕ
   ============================================================ */
.mhm-objects {
    display: grid;
    gap: 1.6rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    margin: 2.5rem 0 3rem;
}
.mhm-obj {
    display: flex;
    flex-direction: column;
    background: var(--mhm-surface);
    border: 1px solid var(--mhm-line);
    border-radius: 3px;
    overflow: hidden;
    text-decoration: none !important;
    color: inherit !important;
    transition: box-shadow .2s ease, transform .2s ease;
}
.mhm-obj:hover {
    box-shadow: 0 10px 26px rgba(58,60,59,.16);
    transform: translateY(-3px);
}
.mhm-obj-img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
    background: var(--mhm-patina);
}
.mhm-obj-body { padding: 1rem 1.1rem 1.3rem; }
.mhm-obj-title {
    font-size: 1.12rem;
    font-weight: 600;
    color: var(--mhm-stone);
    margin: 0 0 .4rem;
    line-height: 1.3;
}
.mhm-obj-desc { font-size: .9rem; color: var(--mhm-soft); line-height: 1.5; margin: 0; }
.mhm-obj-more {
    display: inline-block;
    margin-top: .7rem;
    font-size: .85rem;
    font-weight: 600;
    color: var(--mhm-bronze);
    letter-spacing: .03em;
}
.mhm-obj:hover .mhm-obj-more { color: var(--mhm-bronze-lt); }

/* заглавие на секция */
.mhm-section-title {
    font-size: 1.7rem;
    color: var(--mhm-stone);
    margin: 2.6rem 0 .3rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid var(--mhm-line);
    position: relative;
}
.mhm-section-title::after {
    content: "";
    position: absolute;
    left: 0; bottom: -2px;
    width: 74px; height: 2px;
    background: var(--mhm-bronze);
}
.mhm-section-lead { color: var(--mhm-soft); margin: .8rem 0 0; font-size: 1rem; }

/* ============================================================
   5. СЪДЪРЖАНИЕ И ТИПОГРАФИЯ
   ⚠️ Hestia ползва .page-content-wrap за СТРАНИЦИ и .entry-content
      за ПУБЛИКАЦИИ — правилата трябват и двата селектора
   ============================================================ */
.page-content-wrap,
.entry-content,
.blog-post .section-text {
    font-size: 1.02rem;
    line-height: 1.72;
    color: var(--mhm-text);
}
.page-content-wrap p,
.entry-content p { margin-bottom: 1.15rem; }
.page-content-wrap h2, .entry-content h2,
.page-content-wrap h3, .entry-content h3,
.page-content-wrap h4, .entry-content h4 {
    color: var(--mhm-stone);
    margin-top: 2rem;
    margin-bottom: .8rem;
}
.page-content-wrap a, .entry-content a { color: var(--mhm-bronze); }
.page-content-wrap a:hover, .entry-content a:hover { color: var(--mhm-bronze-lt); }
.page-content-wrap blockquote, .entry-content blockquote {
    border-left: 4px solid var(--mhm-bronze);
    background: rgba(140,122,91,.07);
    padding: .9rem 1.2rem;
    margin: 1.4rem 0;
    font-style: normal;
}
.page-content-wrap img, .entry-content img { border-radius: 3px; }

/* картата, в която Hestia слага съдържанието */
.main.main-raised,
.main-raised {
    background: var(--mhm-surface);
    box-shadow: 0 8px 30px rgba(58,60,59,.10);
    border-radius: 3px;
}

/* бутони */
.btn.btn-primary,
.btn-primary,
input[type="submit"],
button[type="submit"] {
    background-color: var(--mhm-bronze) !important;
    border-color: var(--mhm-bronze) !important;
    color: #FFFFFF !important;
    box-shadow: none !important;
    text-transform: none;
    letter-spacing: .01em;
}
.btn.btn-primary:hover,
.btn-primary:hover,
input[type="submit"]:hover,
button[type="submit"]:hover {
    background-color: var(--mhm-bronze-lt) !important;
    border-color: var(--mhm-bronze-lt) !important;
}

/* ============================================================
   6. НОВИНИ И АРХИВ
   ============================================================ */
.blog-post .card,
.card.card-blog {
    background: var(--mhm-surface);
    border: 1px solid var(--mhm-line);
    border-radius: 3px;
    box-shadow: none;
}
.card.card-blog:hover { box-shadow: 0 8px 22px rgba(58,60,59,.13); }
.card-blog .card-title a { color: var(--mhm-stone); }
.card-blog .card-title a:hover { color: var(--mhm-bronze); }
.card-blog .card-description { color: var(--mhm-soft); }
.hestia-blog-post-meta,
.card-blog .author,
.card-blog .stats {
    color: var(--mhm-soft) !important;
    font-size: .86rem;
}
/* пагинация */
.pagination > li > a,
.pagination > li > span { color: var(--mhm-stone); }
.pagination > .active > a,
.pagination > .active > span {
    background-color: var(--mhm-bronze) !important;
    border-color: var(--mhm-bronze) !important;
    color: #FFF !important;
}

/* ============================================================
   7. ФУТЪР
   ============================================================ */
footer.footer,
.footer.footer-black,
.footer {
    background-color: var(--mhm-stone) !important;
    color: #D8D5CD;
    border-top: 3px solid var(--mhm-bronze);
}
footer.footer a, .footer a { color: var(--mhm-patina) !important; }
footer.footer a:hover, .footer a:hover { color: #FFFFFF !important; }
footer.footer h4, .footer h4 { color: #FFFFFF; }
.footer .copyright { color: #A9A6A0; font-size: .86rem; }

/* ============================================================
   8. ВИТРИНА „Издания и сувенири" (вж. Additional CSS — .mhm-shop)
      Тук само съгласуване с новата палитра
   ============================================================ */
.mhm-shop .mhm-contact { border-left-color: var(--mhm-bronze); background: rgba(140,122,91,.09); }
.mhm-shop h2.mhm-cat { border-bottom-color: var(--mhm-line); color: var(--mhm-stone); }
.mhm-item .mhm-price { color: var(--mhm-bronze); }
.mhm-item img { border-color: var(--mhm-line); background: #FAFAF8; }

/* ============================================================
   9. МОБИЛНО
   ============================================================ */
@media (max-width: 991px) {
    .page-header,
    .page-header.header-small,
    .header-filter {
        min-height: 260px !important;
        height: 260px !important;
        max-height: 260px !important;
    }
    .page-header .hestia-title,
    .page-header h1.title { font-size: 1.7rem; }
    .mhm-strip .mhm-strip-inner { gap: .45rem 1.2rem; font-size: .88rem; }
    .navbar .dropdown-menu > li > a { max-width: none; }
}
@media (max-width: 600px) {
    .mhm-objects { grid-template-columns: 1fr; gap: 1.1rem; }
    .mhm-obj-img { height: 170px; }
    .mhm-section-title { font-size: 1.4rem; }
    .page-header .hestia-title,
    .page-header h1.title { font-size: 1.45rem; }
}

/* ============================================================
   10. НАЧАЛНА СТРАНИЦА
   ============================================================ */
.mhm-home .mhm-lead {
    font-size: 1.12rem;
    line-height: 1.7;
    color: var(--mhm-text);
    margin: 0 0 .5rem;
}
.mhm-home .mhm-lead strong { color: var(--mhm-bronze); }

/* плочките са <a>, вътре има <span> — затова display се задава изрично */
.mhm-obj .mhm-obj-body,
.mhm-obj .mhm-obj-title,
.mhm-obj .mhm-obj-desc,
.mhm-obj .mhm-obj-more { display: block; }

/* „Посетете ни" */
.mhm-visit {
    display: grid;
    gap: 1.2rem;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    margin: 1.6rem 0 1rem;
}
.mhm-visit-box {
    background: var(--mhm-surface);
    border: 1px solid var(--mhm-line);
    border-top: 3px solid var(--mhm-bronze);
    border-radius: 3px;
    padding: 1.1rem 1.2rem 1.3rem;
    display: flex;
    flex-direction: column;
    gap: .45rem;
}
.mhm-visit-label {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: var(--mhm-bronze);
    font-weight: 700;
}
.mhm-visit-value { font-size: 1.05rem; line-height: 1.5; color: var(--mhm-text); }
.mhm-visit-value a { color: var(--mhm-stone); font-weight: 600; }
.mhm-visit-value a:hover { color: var(--mhm-bronze); }
.mhm-visit-note { font-size: .84rem; color: var(--mhm-soft); line-height: 1.45; }

/* последните новини под съдържанието на началната */
.mhm-news { margin: 1.4rem 0 .5rem; display: grid; gap: 1.4rem;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.mhm-news-item {
    background: var(--mhm-surface);
    border: 1px solid var(--mhm-line);
    border-radius: 3px;
    overflow: hidden;
    display: flex; flex-direction: column;
    text-decoration: none !important; color: inherit !important;
    transition: box-shadow .2s ease;
}
.mhm-news-item:hover { box-shadow: 0 8px 22px rgba(58,60,59,.14); }
.mhm-news-img { width: 100%; height: 165px; object-fit: cover; display: block; background: var(--mhm-patina); }
.mhm-news-body { padding: .85rem 1rem 1.1rem; display: block; }
.mhm-news-date { display: block; font-size: .8rem; color: var(--mhm-bronze); font-weight: 600; margin-bottom: .3rem; }
.mhm-news-title { display: block; font-size: 1rem; font-weight: 600; color: var(--mhm-stone); line-height: 1.4; }
.mhm-news-item:hover .mhm-news-title { color: var(--mhm-bronze); }
.mhm-news-all { text-align: center; margin: 1.8rem 0 .5rem; }
.mhm-news-all a {
    display: inline-block;
    padding: .7rem 1.9rem;
    background: var(--mhm-stone);
    color: #FFF !important;
    border-radius: 3px;
    font-weight: 600;
    text-decoration: none !important;
    letter-spacing: .02em;
}
.mhm-news-all a:hover { background: var(--mhm-bronze); }

@media (max-width: 600px) {
    .mhm-visit { grid-template-columns: 1fr; }
    .mhm-news  { grid-template-columns: 1fr; }
}

/* адресът в плочката на обекта */
.mhm-obj-meta {
    display: block;
    margin-top: .5rem;
    font-size: .82rem;
    color: var(--mhm-soft);
    padding-left: 1.1rem;
    position: relative;
}
.mhm-obj-meta::before {
    content: "▪";
    position: absolute; left: 0;
    color: var(--mhm-bronze);
}

/* таблица с билетите */
.mhm-tickets { margin: 1.5rem 0 .5rem; overflow-x: auto; }
.mhm-ticket-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--mhm-surface);
    border: 1px solid var(--mhm-line);
    border-radius: 3px;
}
.mhm-ticket-table td {
    padding: .8rem 1.1rem;
    border-bottom: 1px solid var(--mhm-line);
    font-size: .96rem;
    line-height: 1.5;
    vertical-align: top;
}
.mhm-ticket-table tr:last-child td { border-bottom: none; }
.mhm-ticket-table tr:nth-child(even) td { background: rgba(168,176,166,.09); }
.mhm-ticket-price {
    text-align: right;
    white-space: nowrap;
    color: var(--mhm-bronze);
    font-size: 1rem;
}
.mhm-ticket-price b { font-weight: 700; }
.mhm-ticket-price small { color: var(--mhm-soft); font-weight: 400; }
@media (max-width: 560px) {
    .mhm-ticket-table td { padding: .65rem .7rem; font-size: .88rem; }
    .mhm-ticket-price { font-size: .9rem; }
}

/* ============================================================
   11. БАНЕР НА НАЧАЛНАТА
   page.php не носи фонова снимка, затова се задава тук.
   ============================================================ */
body.home .page-header,
body.page-id-7974 .page-header {
    background-image: url("/wp-content/uploads/2026/09/15.jpg") !important;
    background-size: cover !important;
    background-position: center 55% !important;
    background-repeat: no-repeat !important;
}
/* воалът над снимката — Hestia слага собствен градиент, който тук пречи */
body.home .page-header::before,
body.page-id-7974 .page-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(43,45,44,.58) 0%, rgba(43,45,44,.76) 100%);
    z-index: 0;
}
body.home .page-header > *,
body.page-id-7974 .page-header > * { position: relative; z-index: 1; }
body.home .page-header .title,
body.page-id-7974 .page-header .title { color: #FFFFFF !important; }

/* ============================================================
   12. ПОПРАВКИ ПО ОФОРМЛЕНИЕТО
   ============================================================ */

/* ⚠️ .main-raised има отрицателен margin-top и покриваше лентата
   с работното време. Лентата се вдига над него. */
.mhm-strip { position: relative; z-index: 3; }

/* ⚠️ Bootstrap col-md-offset-2 стеснява съдържанието до 66%.
   На началната плочките искат повече място, за да са по три на ред.
   Offset-ът трябва да се нулира изрично — margin:0 auto не го бие. */
body.home .page-content-wrap.col-md-8,
body.page-id-7974 .page-content-wrap.col-md-8 {
    width: 100%;
    max-width: 1140px;
    margin-left: auto !important;
    margin-right: auto !important;
    float: none;
    padding-left: 20px;
    padding-right: 20px;
}
body.home .page-content-wrap.col-md-offset-2,
body.page-id-7974 .page-content-wrap.col-md-offset-2 { margin-left: auto !important; }

@media (min-width: 992px) {
    body.home .main-raised,
    body.page-id-7974 .main-raised { margin-left: 20px; margin-right: 20px; }
    /* три плочки на ред при широк екран */
    body.home .mhm-objects,
    body.page-id-7974 .mhm-objects { grid-template-columns: repeat(3, 1fr); }
}

/* ⚠️⚠️ .main-raised на Hestia има отрицателен margin-top (-60px), с който
   „качва" съдържанието върху банера. Точно той поглъщаше лентата с работното
   време. На страниците с лента margin-ът се нулира. */
.mhm-strip + .main.main-raised,
.mhm-strip + .main {
    margin-top: 0 !important;
}

/* Лентата е първи елемент в съдържанието и трябва да се залепи за банера:
   белият блок отгоре се нулира, а самата лента се разпъва извън него. */
.page-content-wrap:has(> .mhm-strip),
.entry-content:has(> .mhm-strip) { padding-top: 0 !important; }

.main.main-raised:has(.mhm-strip) { padding-top: 0 !important; }

.page-content-wrap > .mhm-strip,
.entry-content > .mhm-strip {
    margin: 0 -100vw 2.2rem;
    padding-left: 100vw;
    padding-right: 100vw;
    border-bottom: 3px solid var(--mhm-bronze);
}
@media (max-width: 991px) {
    .page-content-wrap > .mhm-strip,
    .entry-content > .mhm-strip { margin: 0 -20px 1.6rem; padding-left: 20px; padding-right: 20px; }
}

/* ⚠️⚠️ Hestia вдига .main-raised с отрицателен margin върху банера. Заедно с
   padding-а отгоре това оставяше бяла ивица между банера и лентата.
   На страниците блокът се долепя за банера. */
body.page .main.main-raised,
body.home .main.main-raised {
    margin-top: 0 !important;
    padding-top: 0 !important;
    border-radius: 0;
}
body.page .main.main-raised > .container:first-child,
body.home .main.main-raised > .container:first-child { padding-top: 0; }
body.page .page-content-wrap,
body.home .page-content-wrap { padding-top: 0 !important; }

/* ⭐ Виновникът за бялата ивица над лентата е `article.section` — Hestia му
   дава padding: 70px 0. Веригата е:
   .main-raised → .blog-post → .container → article.section → .row → .col-md-8
   (`.container` НЕ е пряко дете на .main-raised, затова „>" селектор не хваща.) */
body.page .main.main-raised article.section,
body.home .main.main-raised article.section {
    padding-top: 0 !important;
}

/* padding-ът, който оставяше бялата ивица, е по цялата верига контейнери */
body.page .main.main-raised > .container,
body.home .main.main-raised > .container,
body.page .main.main-raised > .container > .row,
body.home .main.main-raised > .container > .row,
body.page .main.main-raised .col-md-8.page-content-wrap,
body.home .main.main-raised .col-md-8.page-content-wrap {
    padding-top: 0 !important;
    margin-top: 0 !important;
}
body.page .main.main-raised > .container,
body.home .main.main-raised > .container { padding-left: 0; padding-right: 0; }
/* след лентата съдържанието си връща вътрешния отстъп */
.page-content-wrap > .mhm-strip + * { margin-top: 0; }

/* ============================================================
   13. БАНЕР НА ВЪТРЕШНИТЕ СТРАНИЦИ
   Заглавието им се рендира в съдържанието (hestia_header_layout = no-content),
   затова банерът стои празен. Прави се нисък и в цветовете на палитрата,
   вместо лилавия градиент по подразбиране на Hestia.
   ============================================================ */
body:not(.home) .page-header,
body:not(.home) .page-header.header-small {
    min-height: 190px !important;
    height: 190px !important;
    max-height: 190px !important;
    background: linear-gradient(135deg, var(--mhm-stone-deep) 0%, var(--mhm-stone) 55%, #4A4C48 100%) !important;
}
body:not(.home) .page-header .header-filter,
body:not(.home) .page-header::before { background: none !important; }

/* заглавието на вътрешната страница */
.title-in-content,
h1.hestia-title.title-in-content {
    color: var(--mhm-stone) !important;
    margin-top: 1.6rem;
    margin-bottom: .2rem;
}

@media (max-width: 991px) {
    body:not(.home) .page-header,
    body:not(.home) .page-header.header-small {
        min-height: 130px !important; height: 130px !important; max-height: 130px !important;
    }
}

/* менюто стана 8 входа + търсачка — компактва се, за да остане на един ред */
@media (min-width: 992px) {
    .navbar .navbar-nav > li > a {
        font-size: 12.5px;
        padding-left: 11px;
        padding-right: 11px;
        letter-spacing: 0;
    }
    .navbar .navbar-nav > li.hestia-search-in-menu > a { padding-left: 8px; padding-right: 8px; }
}
@media (min-width: 992px) and (max-width: 1199px) {
    .navbar .navbar-nav > li > a { font-size: 11.5px; padding-left: 8px; padding-right: 8px; }
}

/* ============================================================
   14. ТИПОГРАФИЯ — сайтът беше твърде ситен
   Hestia стъпва на 14px почти навсякъде. Тук базата е 17px.
   ⚠️ Плъгинът за уголемяване на шрифта (accessibility-light) е махнат,
   затова базовият размер трябва да е четим сам по себе си.
   ============================================================ */
body,
.page-content-wrap,
.entry-content,
.blog-post .section-text,
.main p,
.main li {
    font-size: 17px;
    line-height: 1.75;
}
.page-content-wrap p,
.entry-content p { font-size: 17px; line-height: 1.75; margin-bottom: 1.2rem; }
.page-content-wrap li,
.entry-content li { font-size: 17px; line-height: 1.7; }

/* заглавия */
.mhm-section-title { font-size: 2rem; }
.page-content-wrap h2, .entry-content h2 { font-size: 1.85rem; }
.page-content-wrap h3, .entry-content h3 { font-size: 1.5rem; }
.page-content-wrap h4, .entry-content h4 { font-size: 1.25rem; }
.title-in-content, h1.hestia-title.title-in-content { font-size: 2.4rem; }
.mhm-section-lead { font-size: 16px; }

/* уводният абзац */
.mhm-home .mhm-lead { font-size: 19px; line-height: 1.7; }

/* плочки на обектите */
.mhm-obj-title { font-size: 19px; }
.mhm-obj-desc  { font-size: 15.5px; line-height: 1.55; }
.mhm-obj-meta  { font-size: 14.5px; }
.mhm-obj-more  { font-size: 15px; }

/* таблица с билетите */
.mhm-ticket-table td { font-size: 16.5px; line-height: 1.55; padding: .9rem 1.2rem; }
.mhm-ticket-price { font-size: 17px; }
.mhm-ticket-price small { font-size: 15px; }

/* „Посетете ни" */
.mhm-visit-label { font-size: 13px; }
.mhm-visit-value { font-size: 17px; }
.mhm-visit-note  { font-size: 14.5px; line-height: 1.55; }

/* лентата под банера */
.mhm-strip { font-size: 15.5px; }

/* новини */
.mhm-news-title { font-size: 16.5px; line-height: 1.45; }
.mhm-news-date  { font-size: 14px; }
.card-blog .card-title, .card-blog .card-title a { font-size: 20px; line-height: 1.35; }
.card-blog .card-description, .card-blog .card-description p { font-size: 16px; line-height: 1.65; }

/* меню — малко по-едро, но пак на един ред */
@media (min-width: 992px) {
    .navbar .navbar-nav > li > a { font-size: 13.5px; padding-left: 10px; padding-right: 10px; }
}
@media (min-width: 992px) and (max-width: 1199px) {
    .navbar .navbar-nav > li > a { font-size: 12px; padding-left: 7px; padding-right: 7px; }
}
.navbar .dropdown-menu > li > a { font-size: 15px; }

/* футър */
footer.footer, .footer, .footer p, .footer li, .footer td { font-size: 15.5px; line-height: 1.65; }
.footer h4, .footer .widget-title { font-size: 18px; }

/* мобилно — малко по-малко, но пак четимо */
@media (max-width: 600px) {
    body, .page-content-wrap, .entry-content,
    .page-content-wrap p, .entry-content p,
    .page-content-wrap li, .entry-content li { font-size: 16.5px; line-height: 1.7; }
    .mhm-home .mhm-lead { font-size: 17.5px; }
    .mhm-section-title { font-size: 1.6rem; }
    .title-in-content, h1.hestia-title.title-in-content { font-size: 1.8rem; }
    .mhm-ticket-table td { font-size: 15.5px; }
}

/* ⚠️ Заглавията: `.page-content-wrap h2` (клас+елемент) е по-специфично от
   `.mhm-section-title` (само клас) и го надделяваше. Затова тук са с еднаква
   или по-висока специфичност, и в px — за да не зависят от rem базата. */
.page-content-wrap h2.mhm-section-title,
.entry-content h2.mhm-section-title,
.main h2.mhm-section-title { font-size: 31px; line-height: 1.25; }

.page-content-wrap h1, .entry-content h1, .main .page-content-wrap h1 { font-size: 36px; line-height: 1.2; }
.page-content-wrap h2, .entry-content h2 { font-size: 28px; line-height: 1.3; }
.page-content-wrap h3, .entry-content h3 { font-size: 23px; line-height: 1.35; }
.page-content-wrap h4, .entry-content h4 { font-size: 20px; line-height: 1.4; }
.title-in-content, h1.hestia-title.title-in-content, .main h1.title-in-content { font-size: 38px; line-height: 1.2; }
.page-header .title, .page-header .hestia-title, body.home .page-header .title { font-size: 40px; }

@media (max-width: 600px) {
    .page-content-wrap h2.mhm-section-title,
    .entry-content h2.mhm-section-title,
    .main h2.mhm-section-title { font-size: 24px; }
    .page-content-wrap h2, .entry-content h2 { font-size: 22px; }
    .page-content-wrap h3, .entry-content h3 { font-size: 19px; }
    .title-in-content, h1.hestia-title.title-in-content, .main h1.title-in-content { font-size: 27px; }
    .page-header .title, .page-header .hestia-title, body.home .page-header .title { font-size: 24px; }
}

/* лентата: четима и на телефон, без да заема два реда напразно */
.mhm-strip { font-size: 16px; padding: .9rem 0; }
.mhm-strip .mhm-strip-inner { gap: .5rem 2rem; }
@media (max-width: 991px) {
    .mhm-strip { font-size: 15px; padding: .8rem 0; }
    .mhm-strip .mhm-strip-inner { gap: .35rem 1.1rem; line-height: 1.5; }
}
@media (max-width: 600px) {
    .mhm-strip { font-size: 14.5px; }
    .mhm-strip .mhm-strip-inner { flex-direction: column; text-align: center; gap: .25rem; }
}

/* ============================================================
   15. ЛОГОТО В БАНЕРА
   В хедъра гербът беше твърде малък, за да се разчете. Тук стои голям,
   обърнат в бяло (оригиналът е черен на прозрачен фон).
   ============================================================ */
.page-header .container::before {
    content: "";
    display: block;
    width: 84px;
    height: 84px;
    margin: 0 auto 14px;
    background: url("/wp-content/uploads/2022/01/01.png") no-repeat center center;
    background-size: contain;
    filter: brightness(0) invert(1);
    opacity: .95;
}
/* на вътрешните банерът е нисък — логото е по-малко и без отстъп отдолу */
body:not(.home) .page-header .container::before {
    width: 58px; height: 58px; margin-bottom: 0;
}

/* логото се маха от хедъра — там оставя само името */
.navbar .navbar-brand img,
.navbar .navbar-header img,
.navbar .title-logo-wrapper img { display: none !important; }
.navbar .navbar-brand {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: .04em;
    color: #F1EFE9 !important;
    padding-top: 18px;
}

@media (max-width: 991px) {
    .page-header .container::before { width: 62px; height: 62px; margin-bottom: 10px; }
    body:not(.home) .page-header .container::before { width: 44px; height: 44px; }
    .navbar .navbar-brand { font-size: 14px; }
}

/* името в хедъра е дълго („Регионален Исторически Музей Монтана") и
   дублира банера — менюто остава само с входовете си */
.navbar .navbar-brand,
.navbar .title-logo-wrapper { display: none !important; }

/* ============================================================
   16. ПОДМЕНЮТА — по-въздушни
   ============================================================ */
.navbar .dropdown-menu {
    padding: 10px 0;
    min-width: 260px;
    border-radius: 0 0 3px 3px;
    box-shadow: 0 12px 28px rgba(0,0,0,.28);
}
.navbar .dropdown-menu > li > a {
    padding: 13px 24px;
    line-height: 1.5;
    font-size: 15px;
}
.navbar .dropdown-menu > li + li > a { border-top: 1px solid rgba(255,255,255,.07); }

/* ============================================================
   17. ЛЕНТАТА — телефонът беше нечетим
   ⚠️ Лентата стои вътре в .page-content-wrap, затова правилото
   `.page-content-wrap a { color: bronze }` оцветяваше телефона в тъмно
   злато върху тъмен фон. Тук се бие с по-специфичен селектор.
   ============================================================ */
.page-content-wrap .mhm-strip a,
.entry-content .mhm-strip a,
.mhm-strip a {
    color: #E8DFC8 !important;
    font-weight: 600;
    text-decoration: none;
}
.page-content-wrap .mhm-strip a:hover,
.entry-content .mhm-strip a:hover,
.mhm-strip a:hover { color: #FFFFFF !important; text-decoration: underline; }
.mhm-strip { color: #EDEAE2; }
.mhm-strip b { color: #FFFFFF; }

/* ============================================================
   18. ФУТЪР — компактен и центриран
   ============================================================ */
.footer .copyright,
footer.footer .copyright,
.footer .container .copyright {
    text-align: center !important;
    float: none !important;
    width: 100%;
    padding: 1.1rem 0 .4rem;
    font-size: 15px;
}
.footer .copyright p { margin: 0; }
.footer .mhm-sep { color: var(--mhm-bronze); padding: 0 .5rem; font-weight: 400; }
.footer .copyright a { color: var(--mhm-patina) !important; font-weight: 600; }
.footer .copyright a:hover { color: #FFFFFF !important; }

/* по-стегнат футър */
footer.footer, .footer { padding-top: 2rem; padding-bottom: .8rem; }
.footer .widget { margin-bottom: 1.2rem; }
.footer h4, .footer .widget-title { margin-bottom: .7rem; }

/* логото се губеше върху светлите места на снимката — по-голямо, със сянка,
   и малко по-плътен воал в горната част на банера */
.page-header .container::before {
    width: 104px;
    height: 104px;
    margin-bottom: 16px;
    filter: brightness(0) invert(1) drop-shadow(0 2px 6px rgba(0,0,0,.75));
    opacity: 1;
}
body:not(.home) .page-header .container::before { width: 62px; height: 62px; }

body.home .page-header::before,
body.page-id-7974 .page-header::before {
    background: linear-gradient(180deg, rgba(38,40,39,.74) 0%, rgba(38,40,39,.62) 45%, rgba(38,40,39,.80) 100%);
}

@media (max-width: 991px) {
    .page-header .container::before { width: 72px; height: 72px; margin-bottom: 10px; }
    body:not(.home) .page-header .container::before { width: 46px; height: 46px; }
}

/* ============================================================
   19. ФУТЪРЪТ — беше разпънат на три колони с една запълнена
   ============================================================ */
.footer .container > .row { justify-content: center; }
.footer [class*="col-md-"]:empty { display: none; }
/* картата е единственият widget — центрира се и заема разумна ширина */
.footer .footer-menu-wrapper,
.footer .row > div:has(iframe),
.footer .row > div:has(.textwidget) {
    float: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center;
}
.footer iframe { max-width: 100%; border-radius: 3px; }
.footer .widget { text-align: center; }
.footer h4, .footer .widget-title { text-align: center; }

/* кредитът — централно, с разделител */
.footer .copyright,
.footer .mhm-copyright,
footer.footer .mhm-copyright {
    text-align: center !important;
    float: none !important;
    width: 100%;
    padding: 1.2rem 0 .3rem;
    font-size: 15px;
    border-top: 1px solid rgba(255,255,255,.09);
    margin-top: 1.2rem;
}
.footer .mhm-copyright p { margin: 0; }
.footer .mhm-sep { color: var(--mhm-bronze); padding: 0 .6rem; }
.footer .mhm-copyright a { color: var(--mhm-patina) !important; font-weight: 600; }
.footer .mhm-copyright a:hover { color: #FFFFFF !important; }

/* логото по-едро, почти долепено до заглавието — общата височина се запазва */
.page-header .container::before {
    width: 152px;
    height: 152px;
    margin-bottom: 2px;
}
body:not(.home) .page-header .container::before {
    width: 84px; height: 84px; margin-bottom: 0;
}
body.home .page-header .title,
body.page-id-7974 .page-header .title { margin-top: 0; }

@media (max-width: 991px) {
    .page-header .container::before { width: 104px; height: 104px; margin-bottom: 2px; }
    body:not(.home) .page-header .container::before { width: 60px; height: 60px; }
}
@media (max-width: 600px) {
    .page-header .container::before { width: 88px; height: 88px; }
}

/* ⚠️ Банерът на ВЪТРЕШНИТЕ страници няма `.container` — има само
   `.header-filter`. Затова там логото се закача на самия `.page-header`
   през ::after, центрирано абсолютно. */
body:not(.home) .page-header { position: relative; }
body:not(.home) .page-header::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 96px;
    height: 96px;
    background: url("/wp-content/uploads/2022/01/01.png") no-repeat center center;
    background-size: contain;
    filter: brightness(0) invert(1) drop-shadow(0 2px 6px rgba(0,0,0,.55));
    opacity: .92;
    pointer-events: none;
}
@media (max-width: 991px) {
    body:not(.home) .page-header::after { width: 64px; height: 64px; }
}

/* ⚠️⚠️ Менюто лежи ВЪРХУ банера (absolute), затова горните ~72px от него са
   скрити зад него. Съдържанието се центрираше в цялата височина и логото
   влизаше под менюто — отрязано отгоре, а под заглавието оставаше празнина.
   Компенсацията е padding-top колкото менюто, при запазена обща височина. */
body.home .page-header,
body.page-id-7974 .page-header {
    box-sizing: border-box;
    padding-top: 72px;
    padding-bottom: 8px;
    align-items: center;
}
body.home .page-header .container,
body.page-id-7974 .page-header .container { padding-top: 0; padding-bottom: 0; }

/* заглавието плътно след логото, без излишен отстъп отдолу */
body.home .page-header .title,
body.page-id-7974 .page-header .title { margin: 0 !important; }
body.home .page-header .subtitle,
body.home .page-header h4.description { margin-top: .3rem !important; margin-bottom: 0 !important; }

@media (max-width: 991px) {
    body.home .page-header,
    body.page-id-7974 .page-header { padding-top: 62px; padding-bottom: 6px; }
}

/* ============================================================
   20. ЛОГОТО — окончателно решение
   Досега стоеше като ::before на `.container`, тоест в СЪСЕДЕН блок над
   `.row` със заглавието. При голям размер това изтласкваше заглавието извън
   банера. Сега логото е ::before на самото заглавие — двете са един поток
   и се центрират заедно.
   ⚠️ Заглавието е `h1.hestia-title`, НЕ `.title`.
   ============================================================ */
body.home .page-header .container::before,
body.page-id-7974 .page-header .container::before { content: none !important; }

body.home .page-header,
body.page-id-7974 .page-header {
    padding-top: 72px;
    padding-bottom: 10px;
    box-sizing: border-box;
}

body.home .page-header h1.hestia-title::before,
body.page-id-7974 .page-header h1.hestia-title::before {
    content: "";
    display: block;
    width: 100%;
    height: 150px;
    margin: 0 auto 4px;
    background: url("/wp-content/uploads/2022/01/01.png") no-repeat center bottom;
    background-size: contain;
    filter: brightness(0) invert(1) drop-shadow(0 2px 6px rgba(0,0,0,.7));
}
body.home .page-header h1.hestia-title,
body.page-id-7974 .page-header h1.hestia-title { margin: 0 !important; }

@media (max-width: 991px) {
    body.home .page-header,
    body.page-id-7974 .page-header { padding-top: 62px; padding-bottom: 8px; }
    body.home .page-header h1.hestia-title::before,
    body.page-id-7974 .page-header h1.hestia-title::before { height: 96px; margin-bottom: 4px; }
}
@media (max-width: 600px) {
    body.home .page-header h1.hestia-title::before,
    body.page-id-7974 .page-header h1.hestia-title::before { height: 78px; }
}

/* ⚠️⚠️ Фиксираната височина на банера отрязваше заглавието, щом логото стана
   голямо. Височината става гъвкава: `min-height` вместо `height`, за да се
   побере логото + заглавието без изрязване. */
body.home .page-header,
body.page-id-7974 .page-header {
    height: auto !important;
    max-height: none !important;
    min-height: 340px !important;
    padding-top: 78px;
    padding-bottom: 22px;
    display: flex;
    align-items: center;
    overflow: visible;
}
body.home .page-header .container,
body.page-id-7974 .page-header .container {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}
body.home .page-header .row,
body.page-id-7974 .page-header .row { margin-top: 0; margin-bottom: 0; }

@media (max-width: 991px) {
    body.home .page-header,
    body.page-id-7974 .page-header {
        min-height: 250px !important;
        padding-top: 66px;
        padding-bottom: 16px;
    }
}

/* банерът се свива точно до логото + заглавието — без празнина отдолу */
body.home .page-header,
body.page-id-7974 .page-header {
    min-height: 0 !important;
    height: auto !important;
    padding-top: 78px;
    padding-bottom: 26px;
    display: block;
}
body.home .page-header .container,
body.page-id-7974 .page-header .container {
    display: block;
    height: auto;
}
body.home .page-header .row,
body.page-id-7974 .page-header .row { display: block; }
body.home .page-header .col-md-10,
body.page-id-7974 .page-header .col-md-10 { padding-top: 0; padding-bottom: 0; float: none; }

@media (max-width: 991px) {
    body.home .page-header,
    body.page-id-7974 .page-header { padding-top: 66px; padding-bottom: 18px; }
}

/* ⚠️ При `display:block` на банера `.header-filter` спира да е наслагване и
   се показва като отделен блок с лилавия градиент на Hestia. Връща се в
   абсолютно позициониране върху банера. */
body.home .page-header,
body.page-id-7974 .page-header { position: relative; overflow: hidden; }
body.home .page-header .header-filter,
body.page-id-7974 .page-header .header-filter {
    position: absolute !important;
    top: 0; right: 0; bottom: 0; left: 0;
    height: auto !important;
    min-height: 0 !important;
    background: none !important;
    z-index: 0;
    pointer-events: none;
}
body.home .page-header .container,
body.page-id-7974 .page-header .container { position: relative; z-index: 2; }

/* заглавието се режеше отдолу — повече въздух и корав line-height */
body.home .page-header h1.hestia-title,
body.page-id-7974 .page-header h1.hestia-title {
    line-height: 1.28;
    padding-bottom: 4px;
}
body.home .page-header,
body.page-id-7974 .page-header { padding-bottom: 34px; }
@media (max-width: 991px) {
    body.home .page-header,
    body.page-id-7974 .page-header { padding-bottom: 22px; }
}

/* ⚠️ На вътрешните логото беше центрирано спрямо ЦЕЛИЯ банер, а горните ~72px
   от него са скрити зад менюто — затова се режеше отгоре. Позиционира се
   спрямо долния ръб, който е изцяло видим. */
body:not(.home) .page-header { padding-top: 72px; box-sizing: border-box; }
body:not(.home) .page-header::after {
    top: auto;
    bottom: 16px;
    transform: translateX(-50%);
    width: 88px;
    height: 88px;
}
@media (max-width: 991px) {
    body:not(.home) .page-header { padding-top: 62px; }
    body:not(.home) .page-header::after { width: 58px; height: 58px; bottom: 12px; }
}

/* ============================================================
   21. КАРТАТА ВЪВ ФУТЪРА — на цяла ширина
   ============================================================ */
.footer .mhm-map { width: 100%; max-width: 1140px; margin: 0 auto; }
.footer .mhm-map iframe {
    display: block;
    width: 100% !important;
    height: 420px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 3px;
}
/* колоната на widget-а вече е една — да заеме цялата ширина */
.footer [class*="col-md-"]:has(.mhm-map),
.footer [class*="col-md-"]:has(iframe) {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
    float: none;
    margin-left: 0;
    margin-right: 0;
    padding-left: 15px;
    padding-right: 15px;
}
@media (max-width: 991px) { .footer .mhm-map iframe { height: 320px; } }
@media (max-width: 600px) { .footer .mhm-map iframe { height: 260px; } }

/* ============================================================
   22. КОМЕНТАРИ — изключени навсякъде, без остатъци
   Темата рендира заглавие, форма и „Коментарите са изключени" дори при
   затворени коментари. Всичко това се скрива.
   ============================================================ */
#comments,
#respond,
#comment-respond,
.comments-area,
.comment-respond,
.comments-title,
.comment-list,
.comment-reply-title,
.no-comments,
.nocomments,
.comments-link,
.comment-count,
.hestia-comments,
.section-comments,
.post-comments,
.entry-comments,
.comment-form,
p.comment-notes,
a[href*="#respond"],
a[href*="#comments"] { display: none !important; }

/* ============================================================
   23. CV НА СЛУЖИТЕЛ (страници като /director/)
   Съдържанието е внесено като плосък текст: всеки ред е самостоятелен абзац,
   а секциите са само „получер + подчертан" текст.
   ⚠️ Само за СТРАНИЦИ и записи на служители — в публикациите `<strong><u>`
   се среща насред изречение и там заглавие би било грешка.
   ============================================================ */
body.page .page-content-wrap p,
body.single-wpm_team .page-content-wrap p { }

body.page .page-content-wrap:has(p > strong > u) p,
body.single-wpm_team .page-content-wrap:has(p > strong > u) p {
    margin-bottom: .45rem;
    line-height: 1.6;
}
body.page .page-content-wrap:has(p > strong > u) ul,
body.page .page-content-wrap:has(p > strong > u) ol {
    margin: .3rem 0 1rem 1.4rem;
}
body.page .page-content-wrap:has(p > strong > u) li {
    margin-bottom: .25rem;
    line-height: 1.55;
}

/* „ЛИЧНИ ДАННИ", „ТРУДОВ СТАЖ" и т.н. стават секционни заглавия */
body.page .page-content-wrap:has(p > strong > u) p:has(> strong > u) {
    margin: 2.2rem 0 1rem !important;
    padding-bottom: .45rem;
    border-bottom: 2px solid var(--mhm-line);
    position: relative;
    display: flow-root;
}
body.page .page-content-wrap:has(p > strong > u) p:has(> strong > u)::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 64px; height: 2px;
    background: var(--mhm-bronze);
}
body.page .page-content-wrap:has(p > strong > u) p:has(> strong > u) u {
    text-decoration: none;
    color: var(--mhm-stone);
    font-size: 21px;
    letter-spacing: .02em;
}

/* редът с датата — маркер на времевата линия */
body.page .page-content-wrap:has(p > strong > u) p:has(> strong:first-child):not(:has(u)) {
    margin-top: 1.4rem;
    font-weight: 600;
}
body.page .page-content-wrap:has(p > strong > u) p:has(> strong:first-child):not(:has(u)) strong {
    color: var(--mhm-bronze);
}

/* снимката на служителя — отляво, текстът я обтича
   ⚠️ не е пряко дете на .page-content-wrap: между тях са `.row > .col-md-12`,
   а първи там стои лентата с работното време */
body.page .page-content-wrap:has(p > strong > u) figure.wp-block-image:first-of-type {
    float: left;
    margin: .3rem 1.8rem .8rem 0;
    max-width: 235px;
}
body.page .page-content-wrap:has(p > strong > u) figure.wp-block-image:first-of-type img {
    width: 100%;
    height: auto;
    border: 1px solid var(--mhm-line);
    border-radius: 3px;
    display: block;
}

@media (max-width: 767px) {
    body.page .page-content-wrap:has(p > strong > u) figure.wp-block-image:first-of-type {
        float: none;
        margin: 0 auto 1.2rem;
        max-width: 210px;
    }
    body.page .page-content-wrap:has(p > strong > u) p:has(> strong > u) u { font-size: 18px; }
}

/* ============================================================
   24. ЕТИКЕТИТЕ НА КАТЕГОРИИТЕ
   Hestia ротира Bootstrap класовете (text-info, text-danger, text-warning…),
   затова една и съща категория излизаше ту циан, ту червена, ту лилава.
   Музеен сайт — един сдържан цвят за всички.
   ============================================================ */
.category,
.category.text-info,
.category.text-danger,
.category.text-warning,
.category.text-success,
.category.text-primary,
.category.text-muted,
.card-blog .category,
.card-blog .category a,
.category a {
    color: var(--mhm-bronze) !important;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.category a:hover { color: var(--mhm-stone) !important; }

/* ============================================================
   25. ПЛОЧКИТЕ НА ПЕРСОНАЛА (team-showcase-supreme)
   Плъгинът рисува розово-червена рамка (#F43662) и при посочване залива
   плочката в ЦИАН (rgba(54,206,214,1)) — нищо от това не се връзва с музея.
   ⚠️ Класът `_border` НЕ е рамката на плочката, а разделителят под името
      (циан с розов ::after). Самата плочка е `_team_member_info`.
   ============================================================ */
[class*="_team_member_info"] {
    border: 1px solid var(--mhm-line) !important;
    border-radius: 3px !important;
    background: var(--mhm-surface) !important;
    transition: box-shadow .2s ease, border-color .2s ease !important;
}
[class*="_team_member_info"]:hover {
    background: var(--mhm-surface) !important;
    border-color: var(--mhm-bronze) !important;
    box-shadow: 0 8px 22px rgba(58,60,59,.16) !important;
    padding-bottom: 20px !important;
}

/* разделителят под името → една бронзова черта вместо циан + розово */
[class*="_team_style_"][class*="_border"] {
    border-bottom: 2px solid var(--mhm-bronze) !important;
    width: 56px !important;
    background: none !important;
}
[class*="_team_style_"][class*="_border"]::after { display: none !important; }
[class*="_team_member_info"]:hover [class*="_border"] {
    border-color: var(--mhm-bronze) !important;
}

/* име и длъжност */
[class*="_team_style_"][class*="_title"],
[class*="_team_style_"][class*="_title"] a {
    color: var(--mhm-stone) !important;
    font-size: 16px;
}
[class*="_team_member_info"]:hover [class*="_title"],
[class*="_team_member_info"]:hover [class*="_title"] a {
    color: var(--mhm-bronze) !important;
}
[class*="_team_style_"][class*="_designation"] {
    color: var(--mhm-soft) !important;
    font-size: 14px;
    line-height: 1.5;
    text-transform: none;
}
[class*="_team_member_info"]:hover [class*="_designation"] {
    color: var(--mhm-soft) !important;
}

/* снимката */
[class*="_team_style_"][class*="_pic"] img {
    border-color: var(--mhm-line) !important;
    box-shadow: 0 2px 10px rgba(58,60,59,.10);
}

/* заглавията в архивите остават тъмни — бронзът е само за етикета,
   иначе двете се сливат */
.card-blog .card-title,
.card-blog .card-title a,
.blog-post .card-title,
.blog-post .card-title a,
article .card-title a,
.archive .card-title a,
h2.card-title a, h3.card-title a {
    color: var(--mhm-stone) !important;
    text-transform: none;
    letter-spacing: 0;
}
.card-blog .card-title a:hover,
article .card-title a:hover { color: var(--mhm-bronze) !important; }

/* сайдбарът: заглавията на новините са по-четими без главни букви */
.sidebar .widget a,
aside .widget a,
.widget_recent_entries a,
.widget_categories a {
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-size: 15.5px;
    line-height: 1.5;
    color: var(--mhm-stone) !important;
}
.sidebar .widget a:hover,
aside .widget a:hover,
.widget_recent_entries a:hover,
.widget_categories a:hover { color: var(--mhm-bronze) !important; }
.widget_recent_entries li,
.widget_categories li { margin-bottom: .7rem; line-height: 1.5; }
.widget_recent_entries .post-date { display: block; font-size: 13px; color: var(--mhm-soft); }
.sidebar .widget-title,
aside .widget-title,
.sidebar h5, aside h5 {
    color: var(--mhm-stone) !important;
    font-size: 17px;
    letter-spacing: .02em;
    padding-bottom: .4rem;
    border-bottom: 2px solid var(--mhm-line);
    position: relative;
}
.sidebar .widget-title::after,
aside .widget-title::after {
    content: ""; position: absolute; left: 0; bottom: -2px;
    width: 46px; height: 2px; background: var(--mhm-bronze);
}

/* ⚠️⚠️ При посочване плъгинът прави `opacity: 0` на длъжността, за да покаже
   социални икони на нейно място. Тук социални профили няма, а текстът трябва
   да остава видим. */
[class*="_team_member_info"]:hover [class*="_designation"],
[class*="_team_style_"]:hover [class*="_designation"] {
    opacity: 1 !important;
    margin-top: inherit !important;
    visibility: visible !important;
}
/* празният списък със социални икони не бива да изскача върху текста */
[class*="_team_style_"][class*="_social"]:empty,
[class*="_team_member_info"]:hover [class*="_social"]:empty { display: none !important; }
/* описанието да не побелява върху светъл фон */
[class*="_team_member_info"]:hover [class*="_description"],
[class*="_team_style_"]:hover [class*="_description"] { color: var(--mhm-soft) !important; }
/* снимката запазва рамката си вместо розовата на плъгина */
[class*="_team_member_info"]:hover [class*="_pic"] img {
    border-color: var(--mhm-bronze) !important;
}

/* Правилата по-горе важат само при `:hover`, което ги прави зависими от
   реда и от състоянието. Тези тук са безусловни — длъжността НИКОГА не се
   скрива, а плочката никога не се залива в цвят. */
[class*="_team_style_"][class*="_designation"],
[class*="_team_member_info"] [class*="_designation"] {
    opacity: 1 !important;
    visibility: visible !important;
}
[class*="_team_member_info"],
[class*="_team_member_info"]:hover,
[class*="_team_member_info"]:focus-within {
    background: var(--mhm-surface) !important;
}

/* ============================================================
   26. БЕЗ САЙДБАР ПРИ НОВИНИТЕ
   Търсачката не е нужна, а „Последни новини" дублираше самия списък.
   Съдържанието се центрира на цяла ширина.
   ⚠️ Bootstrap `col-md-offset-*` не се бие с `margin: 0 auto` — offset-ът
      трябва да се нулира изрично.
   ============================================================ */
body.mhm-no-sidebar .col-md-8,
body.mhm-no-sidebar .col-md-9,
body.mhm-no-sidebar .blog-post .col-md-8 {
    width: 100%;
    max-width: 900px;
    flex: 0 0 100%;
    float: none;
    margin-left: auto !important;
    margin-right: auto !important;
}
body.mhm-no-sidebar .col-md-4:has(.widget),
body.mhm-no-sidebar .col-md-3:has(.widget),
body.mhm-no-sidebar .sidebar,
body.mhm-no-sidebar aside.sidebar,
body.mhm-no-sidebar #secondary { display: none !important; }

/* редът да не остава изместен */
body.mhm-no-sidebar .blog-post > .container > .row,
body.mhm-no-sidebar .main .container > .row { justify-content: center; }

/* бутоните за споделяне — ако темата ги изведе въпреки филтъра */
.entry-social,
.hestia-social-icons,
.btn-twitter, .btn-facebook,
[class*="btn-just-icon"][class*="btn-round"] { display: none !important; }

/* ============================================================
   27. СНИМКИТЕ НА ПЕРСОНАЛА — равни правоъгълни, не овални
   Плъгинът ги реже в овал с дебела бяла рамка („старовремски снимки").
   Тук са с еднакво съотношение, изрязани по центъра.
   ============================================================ */
[class*="_team_style_"][class*="_pic"],
[class*="_team_member_info"] [class*="_pic"] {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 auto !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    background: none !important;
    box-shadow: none !important;
    overflow: hidden;
}
[class*="_team_style_"][class*="_pic"] img,
[class*="_team_member_info"] [class*="_pic"] img {
    width: 100% !important;
    max-width: 100% !important;
    height: 250px !important;
    aspect-ratio: 4 / 5;
    object-fit: cover !important;
    object-position: center 22%;   /* лицата са в горната част на кадъра */
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: var(--mhm-patina);
}

/* плочката става равномерна колона: снимка горе, текст под нея */
[class*="_team_member_info"] {
    padding: 0 0 1.2rem !important;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
[class*="_team_style_"][class*="_team_content"] {
    padding: 1rem 1rem 0 !important;
    flex: 1 1 auto;
}
[class*="_team_style_"][class*="_title"] {
    margin: 0 0 .2rem !important;
    padding: 0 !important;
}

/* всички плочки на еднаква височина */
.wpm-6310-col-3,
[class*="wpm-"][class*="-col-"] { display: flex; }
[class*="wpm-"][class*="-col-"] > div { width: 100%; }

@media (max-width: 991px) {
    [class*="_team_style_"][class*="_pic"] img,
    [class*="_team_member_info"] [class*="_pic"] img { height: 220px !important; }
}
@media (max-width: 600px) {
    [class*="_team_style_"][class*="_pic"] img,
    [class*="_team_member_info"] [class*="_pic"] img { height: 260px !important; }
}
