/* ВУАРР – общи стилове за подстраниците (цветове, меню, съдържание) */

.bg-vuarr-green { background-color: #1b4332; }
.text-vuarr-green { color: #1b4332; }
.text-vuarr-gold { color: #d4af37; }
.bg-vuarr-gold { background-color: #d4af37; }
.border-vuarr-gold { border-color: #d4af37; }
.border-vuarr-green { border-color: #1b4332; }
.hover-gold:hover { color: #d4af37; }

/* Падащи менюта */
@media (min-width: 1024px) {
    .dropdown:hover > .dropdown-menu,
    .dropdown:focus-within > .dropdown-menu { display: block; animation: fadeIn 0.2s; }
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.dropdown-menu ul { max-height: 75vh; overflow-y: auto; }

/* Лентата с логото – „виси“ от менюто, както на стария сайт */
.lenta { position: relative; z-index: 20; display: block; flex-shrink: 0; width: 155px; margin: -43px auto 0; }
.lenta img { display: block; width: 100%; height: auto; }
@media (min-width: 768px) { .lenta { position: absolute; left: 1.5rem; top: -43px; margin: 0; } }
/* по-малката лента в подстраниците */
.lenta.lenta-mala { position: absolute; left: 1.5rem; top: -21px; width: 72px; margin: 0; }
@media (min-width: 768px) { .lenta.lenta-mala { top: -23px; width: 100px; } }

/* Мобилно меню */
@media (max-width: 1023px) {
    #main-menu { display: none; }
    #main-menu.open { display: flex; }
    .dropdown.open > .dropdown-menu { display: block; }
    .dropdown.open > a .fa-chevron-down { transform: rotate(180deg); }
}

/* ---------- Съдържание на страниците ---------- */
.sadarzhanie { color: #374151; font-size: 1.04rem; line-height: 1.8; overflow-wrap: anywhere; }
.sadarzhanie > * + * { margin-top: 1rem; }
.sadarzhanie h2 { color: #1b4332; font-weight: 900; font-size: 1.4rem; line-height: 1.3; text-transform: uppercase; margin-top: 2.25rem; padding-bottom: .5rem; border-bottom: 3px solid #d4af37; display: inline-block; }
.sadarzhanie > h2:first-child, .sadarzhanie > h3:first-child { margin-top: 0; }
.sadarzhanie h3 { color: #1b4332; font-weight: 800; font-size: 1.2rem; line-height: 1.35; margin-top: 1.9rem; }
.sadarzhanie h4 { color: #1b4332; font-weight: 700; font-size: 1.05rem; margin-top: 1.5rem; }
.sadarzhanie h2 + *, .sadarzhanie h3 + *, .sadarzhanie h4 + * { margin-top: .6rem; }
.sadarzhanie strong { color: #1f2937; font-weight: 700; }

.sadarzhanie a { color: #15803d; font-weight: 600; text-decoration: underline; text-decoration-color: #d4af37; text-underline-offset: 3px; transition: color .2s; }
.sadarzhanie a:hover { color: #1b4332; text-decoration-thickness: 2px; }
.sadarzhanie a[href$=".pdf" i]::before,
.sadarzhanie a[href$=".doc" i]::before, .sadarzhanie a[href$=".docx" i]::before,
.sadarzhanie a[href$=".xls" i]::before, .sadarzhanie a[href$=".xlsx" i]::before {
    font-family: "Font Awesome 6 Free"; font-weight: 900; margin-right: .45em; color: #d4af37; display: inline-block; text-decoration: none;
}
.sadarzhanie a[href$=".pdf" i]::before { content: "\f1c1"; }
.sadarzhanie a[href$=".doc" i]::before, .sadarzhanie a[href$=".docx" i]::before { content: "\f1c2"; }
.sadarzhanie a[href$=".xls" i]::before, .sadarzhanie a[href$=".xlsx" i]::before { content: "\f1c3"; }

.sadarzhanie ul { list-style: none; padding-left: 0; }
.sadarzhanie ul > li { position: relative; padding-left: 1.5rem; }
.sadarzhanie ul > li + li { margin-top: .45rem; }
.sadarzhanie ul > li::before { content: ""; position: absolute; left: .25rem; top: .72em; width: .5rem; height: .5rem; border-radius: 9999px; background: #d4af37; }
.sadarzhanie ol { list-style: decimal; padding-left: 1.6rem; }
.sadarzhanie ol > li { padding-left: .3rem; }
.sadarzhanie ol > li + li { margin-top: .45rem; }
.sadarzhanie ol > li::marker { color: #1b4332; font-weight: 800; }
.sadarzhanie li > ul, .sadarzhanie li > ol { margin-top: .45rem; }

.sadarzhanie img { max-width: 100%; max-height: 440px; width: auto; height: auto; display: block; border-radius: 1rem; box-shadow: 0 12px 28px -14px rgba(0, 0, 0, .35); margin: 1rem auto; }
.sadarzhanie td img { margin: .25rem auto; }

.sadarzhanie .table-wrap { overflow-x: auto; border-radius: 1rem; border: 1px solid #e5e7eb; }
.sadarzhanie table { width: 100%; border-collapse: collapse; font-size: .95rem; line-height: 1.6; }
.sadarzhanie th, .sadarzhanie td { border-bottom: 1px solid #e5e7eb; padding: .65rem .85rem; text-align: left; vertical-align: top; }
.sadarzhanie th { background: #1b4332; color: #fff; font-weight: 700; }
.sadarzhanie tr:nth-child(even) td { background: #f9fafb; }
.sadarzhanie tr:last-child td { border-bottom: 0; }
.sadarzhanie td > p:first-child { margin-top: 0; }

.sadarzhanie blockquote { border-left: 4px solid #d4af37; background: #f0fdf4; padding: 1rem 1.25rem; border-radius: 0 1rem 1rem 0; font-style: italic; }
.sadarzhanie hr { border: 0; border-top: 2px dashed #d1d5db; margin: 2rem 0; }

.sadarzhanie .embed { border-radius: 1rem; overflow: hidden; box-shadow: 0 12px 28px -14px rgba(0, 0, 0, .35); background: #f3f4f6; }
.sadarzhanie .embed iframe { width: 100%; border: 0; display: block; }
.sadarzhanie .embed-video iframe { aspect-ratio: 16 / 9; height: auto; }
.sadarzhanie .embed-form iframe { height: 1100px; }
