@font-face
{
	font-family: "Fira Sans";
	src: url('/assets/fonts/firasans-regular.ttf') format('truetype');
	font-weight: 400;
	font-style: normal;
}
@font-face
{
	font-family: "Fira Sans";
	src: url('/assets/fonts/firasans-bold.ttf') format('truetype');
	font-weight: 700;
	font-style: normal;
}
:root
{
	--bg-color: #ffffff;
	--text-color: #333333;
	--header-bg: #f4f4f4;
	--link-color: #0056b3;
	--accent-color: #002d5b;
	--btn-bg: #e9ecef;
	--btn-hover: #dee2e6;
	--shadow: 0 2px 5px rgba(0,0,0,0.1);
	--input-bg: #ffffff;
}
:root, [data-theme="light"] 
{
    --focus-color: #0056b3;
    --focus-shadow: rgba(0, 86, 179, 0.5);
}
[data-theme="dark"] 
{
    --focus-color: #ffca28;
    --focus-shadow: rgba(255, 202, 40, 0.5);
}
:focus 
{
    outline: none !important;
}
:focus-visible 
{
    outline: 3px solid var(--focus-color) !important; 
    outline-offset: 3px !important;
    box-shadow: 0 0 10px var(--focus-shadow) !important;
    border-radius: 4px !important;
}

[data-theme="dark"]
{
	--bg-color: #1a1a1a;
	--text-color: #f0f0f0;
	--header-bg: #2d2d2d;
	--link-color: #4da3ff;
	--btn-bg: #3a3a3a;
	--btn-hover: #4a4a4a;
	--shadow: 0 2px 10px rgba(0,0,0,0.3);
	--input-bg: #333333;
}
html.font-small { font-size: 14px; }
html.font-normal { font-size: 16px; }
html.font-large { font-size: 20px; }

body
{
	font-family: "Fira Sans", sans-serif;
	background-color: var(--bg-color);
	color: var(--text-color);
	margin: 0;
	transition: background-color 0.7s ease, color 0.7s ease;
}

*, *::before, *::after
{
	transition: background-color 0.7s ease, color 0.7s ease, border-color 0.7s ease, box-shadow 0.7s ease;
}

a
{
	color: var(--link-color);
	text-decoration: underline;
	transition: color 0.2s ease, text-decoration 0.2s ease;
}

a:hover
{
	text-decoration: none;
	color: var(--accent-color);
}



[data-theme="dark"] a:hover { color: #ffffff; }
.lang-content
{
	transition: opacity 0.7s ease-in-out, transform 0.7s ease-out;
	opacity: 0;
	display: none;
}

[data-lang="bg"] .bg-lang,
[data-lang="en"] .en-lang
{
	min-width: 150px;
	display: block;
	opacity: 1;
	transform: translateY(0);
}
.accordion, .menu-btn
{
    background-color: var(--btn-bg);
    color: var(--text-color);
    cursor: pointer;
    padding: 14px 18px;
    width: 100%;
    border: 1px solid rgba(0,0,0,0.05);
    margin-bottom: 8px;
    border-radius: 8px;
    display: block;
    text-align: left;
    font-weight: 700;
    text-decoration: none;
    font-size: 1rem;
    box-sizing: border-box;
    transition: 0.3s;
}
.accordion i:first-child, .menu-btn i:first-child
{
    margin-right: 12px;
    width: 20px;
    text-align: center;
}
.accordion::after
{
    content: '\25BC';
    font-size: 0.7rem;
    float: right;
    margin-top: 5px;
    transition: 0.3s;
}
.ext-link-icon
{
    float: right;
    margin-top: 3px;
    opacity: 0.8;
    font-size: 0.9rem;
}
.accordion.active
{
    background-color: var(--link-color);
    color: white;
    border-radius: 8px 8px 0 0;
    margin-bottom: 0;
}

.accordion.active::after
{
    transform: rotate(180deg);
}
.panel 
{ 
    max-height: 0; 
    overflow: hidden; 
    transition: max-height 0.3s ease-in-out; 
    background: var(--bg-color); 
    border-radius: 0 0 8px 8px; 
}
.panel a
{
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    padding: 12px 18px 12px 45px;
    position: relative;
    text-decoration: none;
    width: 100%;
    box-sizing: border-box;
    color: var(--text-color);
    border: none !important;
}
.panel a:focus-visible 
{
    outline: none !important;
    box-shadow: inset 0 0 0 3px var(--focus-color) !important;
    background-color: rgba(0, 0, 0, 0.05);
}
.panel a span, .panel a [data-i18n] { flex-grow: 1; }
.panel a i:first-child 
{ 
    margin-right: 12px; 
    width: 20px; 
    text-align: center; 
    flex-shrink: 0; 
}
.panel a .ext-link-icon 
{ 
    margin-left: auto !important; 
    padding-left: 10px; 
    opacity: 0.6; 
    font-size: 0.85rem; 
    flex-shrink: 0; 
}
/* old code
.panel a
{
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    padding: 12px 18px 12px 45px;
    position: relative;
    text-decoration: none;
    width: 100%;
    box-sizing: border-box;
}
.panel a span, 
.panel a [data-i18n]
{
    flex-grow: 1;
}
.panel a .ext-link-icon
{
    margin-left: auto !important;
    float: none !important;
    padding-left: 10px;
    opacity: 0.6;
    font-size: 0.85rem;
    flex-shrink: 0;
}
.panel a i:first-child
{
    margin-right: 12px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}
.panel { max-height: 0; overflow: hidden; transition: 0.3s ease-in-out; background: var(--bg-color); border-radius: 0 0 8px 8px; }
.panel a { display: block; padding: 12px 20px; text-decoration: none; color: var(--text-color); }
*/
.info-bar .lang-content[style*="display: block"],
.tts-btn .lang-content[style*="display: block"]
{
	display: inline-block;
}

[data-lang="bg"] .en-lang,
[data-lang="en"] .bg-lang
{
	display: none;
	opacity: 0;
	transform: translateY(5px);
}

.mobile-only-br
{
	display: none !important;
}

.desktop-only-margin
{
    display: inline-block !important;
    width: 30px !important;
}

.info-bar
{
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 8px 20px;
	font-size: 0.9rem;
	background: rgba(0,0,0,0.02);
	box-sizing: border-box;
	border-top: 1px solid rgba(0,0,0,0.05);
}

[data-theme="dark"] .info-bar
{
	background: rgba(255,255,255,0.02);
	border-top: 1px solid rgba(255,255,255,0.05);
}
.info-bar i { margin-right: 5px; color: var(--link-color); }
.map-contact
{
    width: 640px;
    height: 360px;
    margin-top: 20px;
    border: none;
    border-radius: 8px;
    z-index: 1;
}
header
{
	background-color: var(--header-bg);
	border-bottom: 3px solid var(--link-color);
}
.header-top
{
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px 20px;
}
.gov-identity svg
{
	fill: #000000;
	transition: fill 0.7s ease;
}

[data-theme="dark"] .gov-identity svg
{
	fill: #999999;
}

.tts-btn
{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: auto;
	padding: 8px 15px;
	background-color: var(--btn-bg);
	color: var(--text-color);
	border: 1px solid rgba(0,0,0,0.1);
	border-radius: 6px;
	font-size: 0.8rem;
	font-weight: 700;
	cursor: pointer;
	font-family: 'Fira Sans', sans-serif;
	transition: all 0.2s ease;
}

.tts-btn i
{
	width: 20px;
	text-align: center;
}

.tts-btn:hover { background-color: var(--btn-hover); }
.tts-btn.reading { background-color: var(--link-color); color: white; }

.gov-identity { display: flex; align-items: center; gap: 15px; }
.main-title { margin: 0; font-size: 1.2rem; }
.sub-title { display: block; font-size: 0.8rem; text-transform: uppercase; opacity: 0.8; }

.short-name, .sub-short-title { display: none; }
.full-name, .sub-full-title { display: inline; }

.top-banners { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.tools { display: flex; gap: 8px; align-items: center; }

.tools button,
.tools input
{
	background-color: var(--btn-bg);
	color: var(--text-color);
	border: 1px solid rgba(0,0,0,0.1);
	padding: 8px 14px;
	border-radius: 6px;
	font-size: 0.85rem;
	font-weight: 700;
	height: 38px;
	box-sizing: border-box;
	font-family: 'Fira Sans', sans-serif;
	transition: all 0.2s ease;
}

.tools button:hover { background-color: var(--btn-hover); cursor: pointer; }
.tools input:focus { outline: none; border-color: var(--link-color); background-color: var(--input-bg); }

#theme-toggle
{
	background-color: #333;
	color: #fff;
	min-width: 110px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}
[data-theme="dark"] #theme-toggle { background-color: #f0f0f0; color: #333; }
.search-container
{
    display: flex;
    align-items: stretch;
    height: 40px;
    border: 1px solid var(--border-color, #ccc);
    border-radius: 4px;
    overflow: hidden;
    background: transparent;
}
.search-container #q,
.search-container input[type="search"]
{
    border: none !important;
    background: transparent !important;
    padding: 0 12px !important;
    font-family: 'Fira Sans', sans-serif;
    color: var(--text-color);
    outline: none;
    flex: 1;
    height: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}
.search-btn
{
    background: transparent !important;
    border: none !important;
    border-left: 1px solid var(--border-color, #ccc) !important;
    color: var(--text-color);
    padding: 0 15px !important;
    cursor: pointer;
    height: 100% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    transition: background 0.2s;
}
.search-btn:hover
{
    background: rgba(0, 0, 0, 0.05) !important;
}
.main-nav
{
	background: rgba(0,0,0,0.03);
	position: relative;
	min-height: 50px;
}
[data-theme="dark"] .main-nav { background: rgba(255,255,255,0.05); }
.main-nav ul
{
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	width: 100%;
	justify-content: space-evenly;
}
.main-nav a
{
	padding: 15px 10px;
	display: flex;
	text-decoration: none;
	color: var(--link-color);
	font-weight: 700;
	white-space: normal;
	line-height: 1.2;
	min-height: 20px;
}
.main-nav a i
{
    margin-right: 8px;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}
.main-nav ul
{
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    justify-content: space-evenly;
    flex-wrap: wrap;
}
.has-submenu
{
	position: relative;
}
.submenu
{
	display: none;
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	z-index: 1000;
	background-color: var(--bg-color);
	min-width: 250px;
	box-shadow: var(--shadow);
	list-style: none;
	padding: 10px 0;
	margin: 0;
	border: 1px solid rgba(0,0,0,0.1);
}
[data-theme="dark"] .submenu { background-color: var(--header-bg); }
@media screen and (min-width: 1001px)
{
	.main-nav ul#nav-list > li
	{
	position: relative;
	margin: 0 !important;
	padding: 0 !important;
	list-style-type: none !important;
	}
    .submenu
    {
        display: none !important;
        position: absolute !important;
        top: 100%;
        left: 0 !important;
        transform: none !important;
        margin: 0 !important;
        padding: 10px 0 !important;
        min-width: 300px;
        width: max-content;
        background-color: var(--bg-color);
        box-shadow: var(--shadow);
        border: 1px solid rgba(0,0,0,0.1);
        z-index: 9999;
    }
	.has-submenu:hover > .submenu,
    .has-submenu.active > .submenu
    {
        display: block !important;
    }
    .submenu li a
    {
        display: flex !important;
        justify-content: flex-start;
        align-items: center;
        width: 100%;
        padding: 10px 20px !important;
        white-space: normal;
        box-sizing: border-box;
        text-decoration: none;
        color: var(--text-color);
    }
    .submenu li a .ext-link-icon
    {
        margin-left: auto !important;
        float: none !important;
        padding-left: 15px;
        opacity: 0.7;
        font-size: 0.85rem;
    }
    .submenu li a i:first-child
    {
        margin-right: 12px;
        width: 18px;
        text-align: center;
        flex-shrink: 0;
    }
    .has-submenu > a::after
    {
        content: '\25BC';
        font-size: 0.6rem;
        margin-left: 8px;
        display: inline-block;
        vertical-align: middle;
    }
}
.menu-toggle
{
	display: none;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 4px;
	
	position: fixed;
	top: 20px;
	right: 20px;
	z-index: 9999;
	
	width: 45px !important;
	height: 45px !important;
	min-width: 45px !important;
	
	background: var(--btn-bg);
	border: 1px solid rgba(0,0,0,0.1);
	border-radius: 8px;
	cursor: pointer;
	padding: 0;
}
.menu-toggle span
{
	display: block;
	width: 22px;
	height: 2px;
	background: var(--text-color);
	border-radius: 2px;
	transition: 0.3s;
}
[data-theme="dark"] .menu-toggle span
{
	background: #ffffff;
}
.menu-toggle.open span:nth-child(1) { transform: rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: rotate(-45deg); }
.container { display: flex; padding: 20px; gap: 30px; }
.sidebar { flex: 1; min-width: 300px; position: relative; }
.main-body { flex: 3; }
.main-body h1, .main-body h2, .main-body h3
{
	color: var(--accent-color);
	transition: color 0.3s;
}
[data-theme="dark"] .main-body h1,
[data-theme="dark"] .main-body h2,
[data-theme="dark"] .main-body h3
{
	color: var(--link-color);
}
.news-content { display: flex; gap: 30px; align-items: flex-start; margin-top: 20px; flex-wrap: wrap; }
.news-text { flex: 1; min-width: 300px; }
.news-text h2 { margin: 0 0 10px 0; font-size: 1.8rem; }
.news-meta { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; opacity: 0.8; margin-bottom: 15px; }
.in-btn
{
	display: inline-block; background-color: var(--link-color); color: #fff !important;
	width: 240px; padding: 10px 0; text-align: center; border-radius: 6px;
	text-decoration: none; font-weight: 700; transition: 0.3s;
}
.in-btn:hover { background-color: var(--accent-color); transform: translateY(-2px); }
.news-main-anchor .news-image, a.image[data-ruo="gallery"] img
{
	width: 100%; height: 100%; object-fit: cover; display: block;
}
.news-main-body
{
    display: block;
    width: 100%;
    margin-top: 20px;
}
.news-main-body::after
{
    content: "";
    display: table;
    clear: both;
}
.news-main-anchor
{
	position: relative;
    z-index: 10;
    cursor: pointer;
    float: right;
    margin-left: 25px;
    margin-bottom: 20px;
    max-width: 45%;
    min-width: 320px;
    display: block;
    transition: transform 0.3s ease;
}
.news-main-anchor:hover
{
    transform: scale(1.02);
}
.news-image
{
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: block;
}
.news-text
{
    line-height: 1.8;
    font-size: 1.1rem;
    color: inherit;
}
.gallery-grid
{
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
}
.gallery-grid a.image
{
    width: 320px;
    height: 180px;
    overflow: hidden;
    border-radius: 8px;
    display: block;
}
.gallery-grid a.image img
{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.modal
{
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    /* ТОВА ПОЗВОЛЯВА СКРОЛИРАНЕТО */
    overflow-y: auto; 
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content-wrapper
{
    background-color: var(--bg-color);
    margin: 2% auto; /* Малко разстояние отгоре и отдолу */
    width: 90%;
    max-width: 800px;
    border-radius: 12px;
    position: relative;
    /* Уверяваме се, че wrapper-ът няма да пречи на скрола на родителя */
    pointer-events: auto; 
}
.modal-close { position: absolute; top: 20px; right: 35px; color: #58a6ff; font-size: 50px; cursor: pointer; z-index: 100001; }
.modal-close:hover
{
    color: #1f6feb;
    transform: scale(1.1);
}
[data-theme="light"] .modal-close
{
    color: #0969da;
}
.modal-content-wrapper
{
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 5% auto;
    width: 90%;
    max-width: 800px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.modal-header-modern
{
    padding: 20px;
    background-color: var(--header-bg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.modal-body-modern
{
    padding: 25px;
}
.srm-info-group
{
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 15px;
    align-items: center;
}
.info-label
{
    flex: 0 0 180px;
    font-size: 0.9rem;
    opacity: 0.7;
}
.info-value
{
    flex: 1;
    font-weight: bold;
}
.info-value.highlight
{
    color: var(--link-color);
    font-size: 1.1rem;
}
.info-value-with-btn
{
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(128,128,128,0.05);
    padding: 8px 12px;
    border-radius: 8px;
}
.modal-divider
{
    border: 0;
    border-top: 1px solid rgba(128,128,128,0.2);
    margin: 20px 0;
}
.srm-section-title
{
    font-style: italic;
    margin-bottom: 15px;
    opacity: 0.8;
}
.info-grid
{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.modal-actions
{
    display: flex;
    gap: 15px;
    margin-top: 25px;
}
.action-btn-modern
{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background-color: #f8f9fa; /* Светло сив фон, за да се вижда на бяло */
    color: #333333; /* Тъмна икона за светла тема */
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none !important;
}

.action-btn-modern:hover
{
    background-color: #e2e6ea;
    color: #a32a29; /* Цвят бордо при посочване */
    border-color: #a32a29;
    transform: scale(1.05);
}

/* Специфични стилове за бутоните ВЪТРЕ в модала (те запазват цветовете си) */
.modal-actions .action-btn-modern
{
    width: auto; /* В модала не са квадратни */
    height: auto;
    padding: 10px 20px;
    color: #ffffff !important; /* Там искаме бял текст */
    border: none;
    flex: 1;
}

.modal-actions .action-btn-modern.view-file
{
    background-color: #a32a29;
}

.modal-actions .action-btn-modern.download-file
{
    background-color: #2c3e50;
}
[data-theme="dark"] .action-btn-modern
{
    background-color: rgba(255, 255, 255, 0.1);
    color: #eeeeee;
    border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .action-btn-modern:hover
{
    background-color: rgba(255, 255, 255, 0.2);
    color: #ff4d4d;
}
.prev-img, .next-img
{
	cursor: pointer;
	position: fixed;
	top: 50%;
	transform: translateY(-50%);
	padding: 20px;
	color: white !important;
	font-size: 50px;
	font-weight: bold;
	z-index: 100000;
	background: rgba(0,0,0,0.3);
	border-radius: 5px;
	display: none;
	align-items: center;
	justify-content: center;
	transition: background 0.3s;
	user-select: none;
	text-decoration: none !important;
}
.prev-img:hover, .next-img:hover { opacity: 0.9; }
.prev-img { left: 20px; opacity: 1; }
.next-img { right: 20px; opacity: 1; }
#sidebar-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 2500; display: none; }
#sidebar-overlay.active { display: block; }
.inst-logo-container { display: flex; justify-content: center; margin: 20px 0; }
.side-inst-logo
{
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 220px;
    height: auto;
    border: none;
    border-radius: 10px;
}
.breadcrumb-list { display: flex; flex-wrap: wrap; list-style: none; padding: 0; margin: 25px 0; gap: 10px; }
.breadcrumb-list li:not(:last-child)::after { content: "/"; margin-left: 10px; color: #ccc; }
footer
{
	padding: 40px 20px;
	text-align: center;
	border-top: 1px solid #ddd;
	margin-top: 60px;
	background-color: var(--header-bg);
}
footer nav
{
	display: flex;
	justify-content: space-evenly;
	align-items: center;
	flex-wrap: wrap;
	gap: 20px;
	margin-bottom: 20px;
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
}
footer nav a
{
	text-decoration: none;
	color: var(--text-color);
	font-weight: 400;
	display: flex;
	align-items: center;
	gap: 10px;
	white-space: nowrap;
}
.sidebar-mobile-btn { display: none; }
.close-sidebar-btn
	{
		display: none !important;
	}

.vacancies-wrapper
{
    background: var(--bg-color);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    margin-top: 20px;
}

.vacancies-header
{
    display: flex;
    background: #f8f9fa;
    padding: 15px;
    font-weight: bold;
    border-bottom: 2px solid #eee;
    color: #444;
}

[data-theme="dark"] .vacancies-header
{
    background: #1e2a3a;
    color: #ddd;
    border-color: #2d3d50;
}
.action-btn-modern
{
    background-color: var(--btn-bg);
    color: var(--text-color);
    border: 1px solid rgba(0,0,0,0.1);
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    height: 38px;
    width: auto;
    min-width: 45px;
    box-sizing: border-box;
    font-family: 'Fira Sans', sans-serif;
    transition: all 0.2s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.action-btn-modern:hover
{
    background-color: var(--link-color);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.action-btn-modern i
{
    font-size: 1rem;
}
.vacancy-card
{
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
}

.vacancy-card:hover
{
    background: rgba(0,0,0,0.02);
}

.job-title
{
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--link-color);
}

.inst-name
{
    font-size: 0.9rem;
    opacity: 0.8;
}
.category-badge
{
    background-color: #f0f0f0;
    color: #333333;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
}

[data-theme="dark"] .category-badge
{
    background-color: #2c3e50; 
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.col-view { width: 80px; text-align: center; }
.col-cat { width: 150px; }
.col-job { flex: 1; padding: 0 20px; }
.col-date { width: 150px; text-align: right; }

.accessibility-report
{
    margin: 20px 0;
}

.report-list
{
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.report-card
{
    background-color: var(--bg-color);
    border: 1px solid rgba(128, 128, 128, 0.2);
    border-radius: 10px;
    padding: 20px;
    transition: transform 0.2s ease;
}

.report-card:hover
{
    border-color: var(--link-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.report-header
{
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.criterion-id
{
    font-weight: 700;
    color: var(--link-color);
    background: rgba(0, 123, 255, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

.level-tag
{
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0.7;
}
.status-badge
{
    margin-left: auto;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.status-badge.full
{
    background-color: #1e7e34;
    color: #ffffff !important;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.status-badge.partial
{
    background-color: #c45a00;
    color: #ffffff !important;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.criterion-name
{
    margin: 0 0 8px 0;
    font-size: 1.15rem;
    color: var(--text-color);
}

.criterion-desc
{
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-color);
    opacity: 0.85;
}
.search-container-modern
{
    margin: 20px 0;
    width: 100%;
    max-width: 500px;
}
.search-box-wrapper
{
    display: flex;
    align-items: stretch;
    background: #f4f4f4;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
    height: 40px;
}
.search-box-wrapper input
{
    flex: 1;
    border: none !important;
    background: transparent !important;
    padding: 0 15px !important;
    font-size: 14px;
    outline: none !important;
    color: #333;
}
.search-box-wrapper input::placeholder
{
    color: #888;
}
.search-submit-btn
{
    background: transparent;
    border: none;
    border-left: 1px solid #ccc;
    padding: 0 15px;
    cursor: default;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
}
.search-box-wrapper:focus-within
{
    border-color: #0056b3;
    box-shadow: 0 0 5px rgba(0, 86, 179, 0.2);
}
[data-theme="dark"] .search-box-wrapper
{
    background: #2a2a2a;
    border-color: #444;
}
[data-theme="dark"] .search-box-wrapper input
{
    color: #eee;
}
[data-theme="dark"] .search-submit-btn
{
    border-left-color: #444;
    color: #aaa;
}
.modal:has(#modal-img[src])
{
    display: none;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(8px);
    overflow: hidden;
}
.modal:has(#modal-img[src]) .modal-content-wrapper
{
    display: none !important;
}
#modal-img
{
    max-width: 95%;
    max-height: 90vh;
    margin: auto;
    display: block;
    border-radius: 4px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    animation: modalZoom 0.3s ease;
}
.prev-img, .next-img
{
    z-index: 100002;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: none;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}
.prev-img:hover, .next-img:hover
{
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}
.contact-wrapper
{
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 20px;
}
.contact-info, .contact-work
{
    flex: 1; 
    min-width: 310px;
}
@keyframes modalZoom
{
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
@media (max-width: 1000px)
{
	*, *::before, *::after
	{
	box-sizing: border-box !important;
	}
	body
	{
	overflow-x: hidden;
	width: 100%;
	position: relative;
	}
	.map-contact
	{
		width: 320px;
		height: 180px;
	}
	.contact-wrapper
    {
        flex-direction: column;
    }    
    .contact-info, .contact-work
    {
        width: 100%;
    }
    .vacancies-header { display: none; }
	.info-grid { grid-template-columns: 1fr; }
    .info-label { flex: 0 0 100%; margin-bottom: 5px; }
	.vacancy-card
    {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        position: relative;
    }
	.status-badge
	{
		margin-left: 0;
		width: 100%;
		text-align: center;
	}
	.gallery-grid a.image
    {
        width: 100% !important;
        height: auto;
        aspect-ratio: 16 / 9;
        margin-bottom: 15px;
    }
    .gallery-grid
    {
        gap: 0;
    }
	.news-main-anchor
    {
        float: none;
        margin-left: 0;
        margin-bottom: 25px;
        max-width: 100%;
        width: 100%;
    }    
    .news-text
    {
        text-align: left;
        font-size: 1rem;
    }    
    .news-main-body
    {
        margin-top: 15px;
    }
    .col-view { position: absolute; right: 15px; top: 15px; }
    .col-job { padding: 0; }
    .col-date { width: 100%; text-align: left; border-top: 1px dashed #ddd; pt: 10px; }
	.mobile-only-br
	{
		display: block !important;
	}
	.desktop-only-margin
	{
		display: none !important;
	}
	.info-bar
	{
	flex-direction: column;
	gap: 10px;
	text-align: center;
	padding: 15px 10px;
	width: 100%;
	}
	.header-top
	{
	flex-direction: column;
	align-items: stretch;
	gap: 15px;
	padding: 15px;
	}
	.top-banners { align-items: stretch; width: 100%; }
	.tools
	{
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	}
	.tools button, .tools input, .tts-btn
	{
	flex: 1 1 auto;
	min-width: 0;
	height: 42px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	}
	.search-container
	{
	width: 100%;
	margin-top: 5px;
	}
	.full-name, .sub-full-title { display: none; }
	.short-name, .sub-short-title { display: inline; }
	.sidebar
	{
	position: fixed;
	left: -100%;
	top: 0;
	width: 280px;
	height: 100%;
	background: var(--bg-color);
	z-index: 5000;
	padding: 60px 20px 20px 20px;
	overflow-y: auto;
	transition: 0.4s ease;
	box-shadow: 10px 0 20px rgba(0,0,0,0.2);
	}
	.sidebar.open { left: 0; }
	.close-sidebar-btn
	{
		display: block !important;
		position: absolute;
		top: 15px;
		right: 15px;
		font-size: 2rem;
		line-height: 1;
		color: var(--text-color);
		cursor: pointer;
		background: none;
		border: none;
		padding: 5px;
		display: block;
	}
	[data-theme="dark"] .sidebar-close
	{
		color: #ffffff;
	}
	.sidebar-mobile-btn
	{
	display: flex;
	position: fixed;
	bottom: 20px;
	left: 20px;
	width: calc(100% - 40px);
	max-width: 300px;
	height: 55px;
	background: var(--accent-color);
	color: white;
	z-index: 4000;
	border-radius: 12px;
	justify-content: center;
	align-items: center;
	font-weight: 700;
	box-shadow: 0 4px 15px rgba(0,0,0,0.3);
	text-decoration: none;
	}
	.menu-toggle
	{
	display: flex !important;
	}
	.menu-toggle span
	{
	display: block;
	width: 24px;
	height: 3px;
	background: var(--text-color);
	border-radius: 2px;
	transition: all 0.3s ease-in-out;
	position: relative;
	}
	.menu-toggle.open span:nth-child(1)
	{
	transform: translateY(8px) rotate(45deg);
	}
	.menu-toggle.open span:nth-child(2)
	{
	opacity: 0;
	transform: translateX(10px);
	}
	.menu-toggle.open span:nth-child(3)
	{
	transform: translateY(-8px) rotate(-45deg);
	}
	.main-nav ul
	{
	position: fixed;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background: var(--bg-color);
	flex-direction: column;
	padding: 80px 0 40px 0;
	z-index: 1500;
	overflow-y: auto;
	display: none;
	opacity: 0;
	visibility: hidden;
	margin: 0;
	}
	.main-nav ul.open
	{
	display: block !important;
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	}
	.main-nav ul li
	{
	width: 100%;
	border-bottom: 1px solid rgba(0,0,0,0.05);
	}
	.has-submenu .submenu
	{
	position: static !important;
	transform: none !important;
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	width: 100% !important;
	min-width: auto !important;
	box-shadow: none !important;
	border: none !important;
	margin: 0 !important;
	padding: 0 !important;
	}
	.has-submenu:hover > .submenu
	{
	display: block !important;
	}
	.submenu li a
	{
	padding-left: 40px !important;
	font-size: 0.95rem;
	font-weight: 400;
	}
	.has-submenu > a::after { display: none !important; }
	.container
	{
	flex-direction: column;
	padding: 15px;
	width: 100%;
	gap: 20px;
	}
	.main-body { width: 100%; }
	.news-content
	{
	flex-direction: column;
	gap: 20px;
	}
	.news-main-anchor
	{
	width: 100% !important;
	max-width: 100%;
	height: auto;
	aspect-ratio: 16/9;
	}
	.news-text { width: 100%; min-width: 0; }
	#modal-img
    {
        max-width: 95%;
        max-height: 70vh;
    }
    .prev-img, .next-img
    {
        width: 40px;
        height: 40px;
        font-size: 30px;
        background: rgba(0, 0, 0, 0.5);
    }
    .prev-img { left: 10px; }
    .next-img { right: 10px; }
    .modal-close
    {
        top: 10px;
        right: 20px;
        font-size: 40px;
    }
}
.cookie-banner
{
	position: fixed !important; bottom: 30px !important; left: 50% !important;
	transform: translateX(-50%) translateY(150%); width: 90% !important; max-width: 450px !important;
	background-color: var(--header-bg) !important; color: var(--text-color) !important;
	padding: 25px !important; border-radius: 20px !important;
	border: 3px solid var(--link-color) !important;
	box-shadow: 0 15px 50px rgba(0,0,0,0.4) !important;
	z-index: 1000000 !important;
	transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
	display: block !important; opacity: 0;
}
.cookie-banner.show { transform: translateX(-50%) translateY(0) !important; opacity: 1 !important; }
.cookie-buttons { display: flex; gap: 12px; justify-content: center; margin-top: 5px; }
.cookie-btn { padding: 12px 25px !important; border-radius: 10px !important; border: none !important; font-weight: 700 !important; cursor: pointer !important; font-family: 'Fira Sans', sans-serif !important; transition: all 0.3s ease !important; }
.cookie-btn.accept { min-width: 150px; background-color: var(--link-color) !important; color: #ffffff !important; }
.back-to-top.lang-bg,
.back-to-top.lang-en
{
    display: none;
}
[data-lang="bg"] .back-to-top.lang-bg
{
    display: flex;
}
[data-lang="en"] .back-to-top.lang-en
{
    display: flex;
}
.back-to-top
{
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--link-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 1000;
    transition: opacity 0.3s, visibility 0.3s;
    opacity: 0;
    visibility: hidden;
}
.back-to-top.show
{
    opacity: 1;
    visibility: visible;
}