:root {
 --bg-main: #F4F6F9;
 --primary: #0A3D62;
 --secondary: #3C6382;
 --accent: #8B0000;
 --accent-light: #C0392B;
 --text-color: #1B1B1B;
 --title-color:red;
}
/* ===== BASE ===== */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}
body {
	font-family: 'Crimson Text', serif;
	background-color: var(--bg-main);
	color: var(--text-color);
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}
/* ===== HEADER ===== */
.site-header {
	background: #fff;
	box-shadow: 0 2px 4px rgba(0,0,0,0.05);
	padding: 0.5rem 1rem 1rem;
}
.header-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 0.3rem; /* reduce spațiul de sub logo */
}
.logo-svg {
	width: 260px;
	height: auto;
	display: block;
}
.site-header hr {
	margin: 0.1rem 0; /* micșorează distanța între logo și titlu */
}
.site-title {
	text-align: left;
	font-weight: 550;
	font-size: clamp(1rem, 1.2rem, 1.1rem); /* dimensiune flexibilă: min 1rem, max 1.5rem */
	color: var(--accent);
	letter-spacing: 0.03em;
	text-shadow: 0 1px 4px rgba(139, 0, 0, 0.3);
	margin-top: 0.4rem;
	line-height: 1.2;
}
/* ===== FLAGS + SEARCH AREA ===== */
.flag-search-container {
	display: flex;
	align-items: center;
	gap: 1rem;
}
.flags {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}
.flag {
	width: 22px;
	height: 16px;
	cursor: pointer;
	border: 1px solid rgba(0,0,0,0.1);
	border-radius: 2px;
}
/* ===== SEARCH BOX ===== */
.search-bar {
	display: flex;
	align-items: center;
	background: #ffffff; /* fundal alb */
	border: 1px solid rgba(10, 61, 98, 0.3); /* border gri */
	border-radius: 8px; /* colțuri mai rotunjite */
	padding: 6px 12px; /* padding mai generos */
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); /* shadow subtil */
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
 .search-bar:hover, .search-bar:focus-within {
 border-color: rgba(10, 61, 98, 0.5); /* border mai închis la hover/focus */
 box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); /* shadow mai vizibil la hover/focus */
}
.search-field {
	background: transparent;
	border: none;
	outline: none; /* elimină outline pe input */
	color: var(--text-color);
	font-size: 0.95rem;
	width: 160px;
	font-family: 'Crimson Text', serif;
	letter-spacing: 0.02em;
	transition: width 0.3s ease;
}
 .search-field::placeholder {
 color: rgba(10, 61, 98, 0.5);
}
.search-field:focus {
	width: 200px;
}
/* ===== ICON ===== */
.search-icon {
	background: transparent;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 3px;
	margin-left: 4px;
	outline: none; /* elimină conturul negru */
}
.search-icon:focus {
	outline: none; /* Elimină outline-ul negru */
	background-color: rgba(10, 61, 98, 0.05); /* Adaugă un fundal ușor albastru la focus */
	border-radius: 4px; /* O mică rotunjire */
}
.search-icon svg {
	stroke: rgba(10, 61, 98, 0.3); /* lupa gri */
	transition: transform 0.2s ease, opacity 0.2s ease;
}
.search-icon:hover svg {
	opacity: 0.9;
	transform: scale(1.1);
}
/* ===== NAVIGATION BAR (Desktop) ======= */
.banner-menu {
	position: relative;
	top: 0;
	right: 0;
	width: 100%;
	height: fit-content;
	/*justify-content: center; // aliniere centru*/
  /*justify-content: flex-start;  aliniere la stânga */
	justify-content: flex-end; /* aliniere la dreapta */
	display: flex;
	background: rgba(13, 59, 102, 0.9);
	font-family: 'Crimson Text', serif;
	font-weight: 400;
	font-size: clamp(0.85rem, 0.7vw + 0.5rem, 1rem);
	letter-spacing: 0.02em;
}
.banner-menu a {
	color: #ffffff;
	min-width: 90px;
	text-decoration: none;
	display: block;
	padding: 6px 10px;
	border-radius: 4px;
	transition: background-color 0.25s ease, color 0.25s ease;
	text-shadow: none;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.banner-menu a:hover {
	background-color: rgba(255, 255, 255, 0.15);
	color: #fdfdfd;
}
/* Structura meniului principal */
.banner-menu ul {
	list-style: none;
	display: flex;
	margin: 0;
	padding: 2px 0;
	flex-wrap: wrap;
}
.banner-menu li {
	position: relative;
	margin: 0 12px;
}
/* Submeniu dropdown (Desktop) */
.banner-menu li .dropdown-content {
	display: none;
	position: absolute;
	background: rgba(13, 59, 102, 0.95);
	border-radius: 5px;
	padding: 4px 0;
	min-width: 160px;
	white-space: nowrap;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, transform 0.3s ease;
	transform: translateY(-10px);
	top: calc(100% + 2px);
	left: 0;
	box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
	z-index: 9999;
}
/* Linkuri din dropdown */
.banner-menu li .dropdown-content a {
	display: block;
	padding: 6px 10px;
	color: #ffffff;
	text-decoration: none;
	font-family: 'Crimson Text', serif;
	transition: background-color 0.25s ease;
}
.banner-menu li .dropdown-content a:hover {
	background-color: rgba(255, 255, 255, 0.15);
}
/* Activare dropdown la hover */
.banner-menu li.dropdown:hover .dropdown-content {
	display: block;
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
/* ===== CONTENT ===== */
main.content {
	font-family: 'Crimson Text', serif;
	flex: 1;
	display: flex;
	justify-content: center; /* centrează conținutul pe orizontală */
}
.content-wrapper {
	width: 100%;
	max-width: 900px; /* limitează lățimea maximă */
}
/* Titlurile din secțiune */
.title_proj {
	font-family: 'Crimson Text', serif;
	font-size: clamp(1.2rem, 1.6vw, 1.4rem); /* mai mare decât site-title, scalabil */
	color: var(--primary);
	margin-bottom: 1rem;
	text-align: left;
	line-height: 1.3;
}
/* Text general */
.content-text {
	font-family: 'Crimson Text', serif;
	font-size: 1rem;
	color: var(--text-color);
	line-height: 1.7;
	text-align: justify;
	margin-bottom: 1rem;
}
/* ===== FIELDSET STYLING (Content Structure) ===== */
.content-fieldset {
	display: block !important;      /* <── FIX critic */
	width: 70% !important;
	max-width: 70% !important;
	min-width: 70% !important;
	background-color: #ffffff;
	border: 1px solid var(--secondary);
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
	padding: 2rem;
	margin: 2rem auto !important;
	text-align: justify;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	box-sizing: border-box;
}
.content-fieldset:hover {
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}
/* ===== CONTAINER DOUĂ COLOANE ===== */
.content-columns {
	display: flex;
	gap: 2rem;
	flex-wrap: nowrap;
	justify-content: center;
	align-items: flex-start;
}
/* Coloana text */
.text-column {
	flex: 1 1 35%; /* mai mică decât slider-ul */
	min-width: 250px;
}
/* Inner fieldset text */
.inner-fieldset {
	padding: 1rem 1.5rem;
	border: 1px solid var(--secondary);
	border-radius: 10px;
	background-color: #fefefe;
	box-shadow: 0 4px 15px rgba(0,0,0,0.08);
	font-family: 'Crimson Text', serif;
	font-size: 1rem;
	line-height: 1.5;
	width: 100% !important;
	min-width: 100% !important;
	display: block;
	box-sizing: border-box;
}
/* Coloana slider */
.slider-column {
	flex: 1 1 65%;
	max-width: 650px;
}
/* Slider cu border și shadow */
.slider-column .carousel {
	border: 1px solid var(--secondary);
	border-radius: 12px;
	box-shadow: 0 8px 25px rgba(0,0,0,0.15);
	overflow: hidden;
	width: 100%;
	height: 431px; /* fixăm înălțimea pentru toate imaginile */
}
/* Imagini slider */
.slider-column img {
	width: 100%;
	height: 100%; /* ocupă tot containerul */
	object-fit: cover;
	display: block;
}
/* Indicatori slider */
.carousel-indicators li {
	background-color: var(--secondary);
	border-radius: 50%;
	width: 10px;
	height: 10px;
}
/* Săgeți slider */
.carousel-control-prev-icon, .carousel-control-next-icon {
	background-color: rgba(10,61,98,0.6);
	border-radius: 50%;
	width: 35px;
	height: 35px;
	background-size: 100%, 100%;
}
/* ===== VARIANTE FIELDSET (dimensiuni diferite) ===== */

/* VARIANTE PENTRU COLOANA TEXT  */
.text-column.small {
	flex: 1 1 auto; /* se adaptează la spațiul rămas */
	min-width: 250px;
	max-width: calc(100% - 316px - 1rem); /* nu depășește spațiul */
}
/* VARIANTE PENTRU COLOANA SLIDER */
.slider-column.small {
	flex: 0 0 316px; /* lățime FIXĂ 316px */
	max-width: 316px;
	min-width: 316px;
}
/* Slider mic (324px înălțime ) */
.slider-column.small .carousel, .slider-column .carousel.carousel-small {
	height: 324px;
	width: 316px;
}
.slider-column .carousel.carousel-medium {
	height: 380px;
}
/* Asigură că imaginile se ajustează la noile dimensiuni */
.slider-column.small .carousel img, .slider-column .carousel.carousel-small img, .slider-column .carousel.carousel-medium img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
/* ===== FIX PENTRU BOOTSTRAP - FORȚEAZĂ LĂȚIMEA FIELDSET ===== */
fieldset.inner-fieldset {
	width: 100% !important;
	max-width: 100% !important;
	min-width: 100% !important;
	display: block !important;
	box-sizing: border-box !important;
}
/* Hamburger ascuns implicit (desktop) */
.banner-menu .icon {
	display: none;
}
@media (min-width: 1024px) {
.content-fieldset {
	width: clamp(800px, 70vw, 1200px) !important;
	max-width: clamp(800px, 70vw, 1200px) !important;
	min-width: clamp(800px, 70vw, 1200px) !important;
}
}
/* ===== RESPONSIVITATE ===== */
@media (max-width: 768px) {
main.content {
	padding: 2rem 1rem;
}
.content-wrapper {
	max-width: 95%;
}
.content-fieldset {
	padding: 1rem 1rem;
	width: 90% !important; /* Adăugați !important pentru a suprascrie 70% !important de bază */
	max-width: 100% !important; /* Asigurați-vă că nu depășește lățimea */
	min-width: unset !important; /* Sau 90% !important */
}
.content-fieldset legend {
	font-size: 1.3rem;
}
/* Reordonare coloane pe mobil */
.content-columns {
	flex-direction: column;
	width: 100%;
}
.text-column, .text-column.small {
	flex-direction: column-reverse;
	flex: 1 1 100%;
	max-width: 100%;
	gap: 1rem;
	min-width: unset;
	order: 1; /* apare după slider */
}
.slider-column, .slider-column.small {
	flex-direction: column-reverse;
	flex: 1 1 100%;
	max-width: 100%;
	gap: 1rem;
	min-width: unset;
	order: 0; /* apare prima pe mobil */
}
.slider-column .carousel, .slider-column .carousel.carousel-small {
	height: auto;
	width: 100%;
}
.inner-fieldset {
	height: auto;
}
/* Header/Search */
.site-header hr, .site-title {
	display: none;
}
.flag-search-container {
	flex-direction: column;
	align-items: flex-start;
	gap: 0.5rem;
	margin-top: 0.5rem;
}
.search-bar {
	display: none;
}
/* Meniu Hamburger */
.banner-menu {
	position: relative;
	justify-content: flex-start;
	top: 0;
	left: 0;
	padding: 0;
	width: 100%;
	background: rgba(13, 59, 102, 0.9);
	font-family: 'Crimson Text', serif;
	margin: 0;  /* ADAUGĂ această linie */
	z-index: 9999;
}
.banner-menu .icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	color: #fff;
	background: rgba(13, 59, 102, 0.9);
	padding: 8px;
	border-radius: 6px;
	z-index: 3;
	cursor: pointer;
	border: 1px solid #003366;
}
.banner-menu .icon:hover {
	background-color: rgba(13, 59, 102, 0.4);
}
.banner-menu ul {
	display: none;
	flex-direction: column;
	position: absolute;
	top: 40px;
	left: 0;
	background: rgba(13, 59, 102, 0.95);
	width: 100%;
	padding: 10px 0;
	z-index: 999;
}
.banner-menu ul.show {
	display: flex;
}
.banner-menu li {
	margin: 0;
	width: 100%;
}
.banner-menu a {
	padding: 12px 20px;
	display: block;
	color: #fff;
}
.banner-menu li .dropdown-content {
	position: relative;
	top: 0;
	left: 0;
	transform: none;
	box-shadow: none;
	opacity: 1;
	visibility: visible;
	padding: 0;
	background: rgba(13, 59, 102, 0.85);
	display: none;
	width: 100%;
}
.banner-menu li.dropdown.open .dropdown-content {
	display: flex;
	flex-direction: column;
}
.banner-menu li .dropdown-content a {
	padding: 10px 32px;
}
/* Săgeți mai mici în dropdown  ▼ */
.banner-menu li.dropdown > a::before {
	content: 'ᐁ  '; /* Sau folosește ' ⌄' sau ' ▼ ' sau un simbol HTML/icon */
	font-size: 0.75em;
	opacity: 0.8;
}
/* Săgeți mai mici în dropdown */
.banner-menu li .dropdown-content a::before {
	content: '➢ ';
	font-size: 0.75em; /* face săgeata mai mică cu 25% */
	opacity: 0.8; /* opțional: o face puțin mai transparentă */
}
}
/* ===== IMAGE MODAL/LIGHTBOX ===== */
.image-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.image-modal-content {
  position: relative;
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 90%;
  top: 50%;
  transform: translateY(-50%);
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from { transform: translateY(-50%) scale(0.7); }
  to { transform: translateY(-50%) scale(1); }
}

.image-modal-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #ffffff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
  z-index: 10001;
}

.image-modal-close:hover,
.image-modal-close:focus {
  color: #bbb;
}

.poster-thumbnail {
  cursor: pointer;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.poster-thumbnail:hover {
  opacity: 0.85;
  transform: scale(1.02);
}
/* ===== FOOTER ===== */
.site-footer {
	background: rgba(13, 59, 102, 0.9);
	color: #fff;
	text-align: center;
	padding: 1rem;
	font-size: 0.9rem;
}


/* =====================================================================
   AccessChRoM – ASPECT NOU (meniu, carduri, footer, căutare)
   Regulile de aici se aplică peste cele de mai sus.
   Se aplică de la meniul de navigare în jos (header-ul rămâne ca în styles.css).
   Pentru a reveni la aspectul vechi: ștergi tot de la acest comentariu până la final.
   Logoul (SVG-ul și .logo-svg) NU este modificat aici.
   ===================================================================== */

:root {
    --navy: #0d3b66;
    --navy-deep: #092a49;
    --navy-soft: #3c6382;
    --ink: #1f2430;
    --muted: #5b6575;
    --paper: #f5f3ee;
    --card: #ffffff;
    --line: #e5dfd3;
    --burgundy: #8b0000;
    --gold: #e0a800;
    --radius: 16px;
    --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 12px 32px rgba(16, 24, 40, .08);
}

body {
    background: var(--paper);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--burgundy); }

/* ---------- HEADER ----------
   Header-ul (logo, titlu, steaguri, căutare) păstrează aspectul din styles.css.
   Aici doar poziționăm lista de sugestii a căutării sub câmpul de căutare. */
.search-bar { position: relative; }

/* ---------- MENIU (desktop) ---------- */
@media (min-width: 769px) {
    .banner-menu {
        position: sticky;
        top: 0;
        z-index: 1100;
        background: var(--navy);
        box-shadow: 0 2px 10px rgba(9, 42, 73, .18);
        padding: 0 clamp(1rem, 3vw, 2.5rem);
        font-size: 1.05rem;
    }
    .banner-menu ul { padding: 0; }
    .banner-menu li { margin: 0 0 0 1.6rem; }
    .banner-menu > ul > li > a {
        position: relative;
        min-width: 0;
        padding: 13px 2px;
        border: 0;
        border-radius: 0;
        letter-spacing: .03em;
        color: rgba(255, 255, 255, .88);
        background: none;
    }
    .banner-menu > ul > li > a::after {
        content: '';
        position: absolute;
        left: 0; right: 0; bottom: 6px;
        height: 2px;
        background: var(--gold);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform .2s ease;
    }
    .banner-menu > ul > li > a:hover,
    .banner-menu > ul > li > a[aria-current="page"],
    .banner-menu > ul > li:has(a[aria-current="page"]) > a { color: #fff; background: none; }
    .banner-menu > ul > li > a:hover::after,
    .banner-menu > ul > li > a[aria-current="page"]::after,
    .banner-menu > ul > li:has(a[aria-current="page"]) > a::after { transform: scaleX(1); }

    /* submeniu: același albastru ca bara de navigare */
    .banner-menu li .dropdown-content {
        top: 100%;
        min-width: 190px;
        padding: 0;
        background: var(--navy);
        border-radius: 0 0 8px 8px;
        box-shadow: 0 14px 30px rgba(9, 42, 73, .35);
        overflow: hidden;
    }
    /* fără spațiul din stânga moștenit de la elementele meniului principal */
    .banner-menu li .dropdown-content li { margin: 0; padding: 0; }
    .banner-menu li .dropdown-content a {
        display: block;
        padding: 10px 14px;
        border: 0;
        border-radius: 0;
        color: rgba(255, 255, 255, .88);
        background: none;
        text-align: left;
    }
    /* linie separatoare între linkuri */
    .banner-menu li .dropdown-content li + li a { border-top: 1px solid var(--gold); }
    .banner-menu li .dropdown-content a:hover,
    .banner-menu li .dropdown-content a[aria-current="page"] { background: rgba(255, 255, 255, .12); color: #fff; }
}

/* ---------- CONȚINUT: carduri ---------- */
.content-fieldset {
    border: 0;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    background:
        linear-gradient(90deg, var(--navy) 0%, var(--navy-soft) 65%, var(--gold) 100%) top / 100% 4px no-repeat,
        var(--card);
    padding: clamp(1.25rem, 2.4vw, 2.4rem);
    text-align: justify;
}
.content-fieldset:hover { box-shadow: var(--shadow); }
/* cadrul de conținut, mai lat (același pe toate paginile, inclusiv harta) */
@media (min-width: 1024px) {
    .content-fieldset {
        width: clamp(900px, 84vw, 1360px) !important;
        max-width: clamp(900px, 84vw, 1360px) !important;
        min-width: clamp(900px, 84vw, 1360px) !important;
    }
}
@media (min-width: 769px) and (max-width: 1023px) {
    .content-fieldset { width: 88% !important; max-width: 88% !important; min-width: 88% !important; }
}
/* titlul (legend) devine titlu în interiorul cardului */
.content-fieldset > legend.title_proj {
    float: left;
    width: 100%;
    margin: 0 0 1.25rem;
    padding: 0 0 .7rem;
    border-bottom: 1px solid var(--line);
    font-family: 'Merriweather', serif;
    font-size: clamp(1.2rem, 1vw + .9rem, 1.55rem);
    font-weight: 700;
    color: var(--navy);
    line-height: 1.3;
}
.content-fieldset > legend.title_proj + * { clear: both; }

.inner-fieldset {
    border: 0;
    box-shadow: none;
    background: transparent;
    padding: 0;
    font-size: 1.14rem;
    line-height: 1.72;
    color: var(--ink);
}
.inner-fieldset p { margin-bottom: 1rem; }
.inner-fieldset hr { border: 0; border-top: 1px solid var(--line); margin: 1.4rem 0; }
.content-columns { gap: clamp(1.25rem, 3vw, 2.5rem); }

/* slider */
.slider-column .carousel {
    border: 0;
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(16, 24, 40, .16);
}
.carousel-indicators li { background-color: #fff; opacity: .6; }
.carousel-indicators li.active { opacity: 1; }
.carousel-control-prev-icon, .carousel-control-next-icon { background-color: rgba(9, 42, 73, .65); background-size: 55% 55%; }

.poster-thumbnail { border-radius: 10px; box-shadow: 0 10px 28px rgba(16, 24, 40, .18); }

/* textul aliniat justify pe toate paginile (titlurile rămân la stânga) */
.content-fieldset p, .inner-fieldset, .inner-fieldset p, .content-text,
.search-hit-snippet, .search-tips { text-align: justify; }
.content-fieldset > legend.title_proj, .search-hit-title { text-align: left; }

/* ---------- TEXT ȘI IMAGINI (index, despre) ----------
   Imaginea (sliderul) stă în dreapta, iar textul curge lângă ea și continuă
   pe toată lățimea dedesubt, când este mai lung decât imaginea. */
@media (min-width: 769px) {
    .content-columns { display: block; }
    .content-columns::after { content: ''; display: block; clear: both; }
    .content-columns .slider-column {
        float: right;
        width: min(55%, 650px);
        max-width: 650px;
        min-width: 0;
        margin: .3rem 0 1.25rem 2rem;
    }
    .content-columns .slider-column.small { width: 316px; max-width: 316px; min-width: 316px; }
    .content-columns .text-column,
    .content-columns .text-column.small { display: block; max-width: none; min-width: 0; }
}

/* ---------- POSTERE (Diseminare) ----------
   Posterul stă în stânga (.poster-left) sau în dreapta (.poster-right),
   iar textul curge lângă el și continuă dedesubt. */
.poster-block::after { content: ''; display: block; clear: both; }
.poster-block .poster-thumbnail { display: block; height: 400px; width: auto; max-width: 45%; object-fit: contain; cursor: zoom-in; }
.poster-left { float: left; margin: .3rem 1.75rem 1rem 0; }
.poster-right { float: right; margin: .3rem 0 1rem 1.75rem; }
@media (max-width: 768px) {
    .poster-block .poster-thumbnail { float: none; height: auto; max-width: 100%; max-height: 70vh; margin: 0 auto 1rem; }
}

/* ---------- VIZUALIZATOR PDF (se deschide peste pagină) ---------- */
.pdf-viewer { position: fixed; inset: 0; z-index: 20000; display: flex; align-items: center; justify-content: center; padding: 2.5vh 2.5vw; background: rgba(9, 20, 35, .72); animation: fadeIn .2s ease; }
.pdf-viewer[hidden] { display: none; }
.pdf-viewer-dialog { display: flex; flex-direction: column; width: min(1100px, 100%); height: 100%; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.pdf-viewer-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--navy); color: #fff; border-bottom: 3px solid var(--gold); }
.pdf-viewer-title { flex: 1; min-width: 0; font-family: 'Merriweather', serif; font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pdf-viewer-bar button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; background: transparent; color: #fff; font: 600 .85rem/1.2 system-ui, sans-serif; text-decoration: none; cursor: pointer; white-space: nowrap; }
.pdf-viewer-bar button:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.pdf-viewer-bar .pdf-viewer-close { width: 34px; height: 34px; justify-content: center; padding: 0; font-size: 1.4rem; line-height: 1; }
.pdf-viewer iframe { flex: 1; width: 100%; border: 0; background: #525659; }
a.pdf-link::after { content: ' \f1c1'; font-family: FontAwesome; color: var(--burgundy); }

/* ---------- FOOTER ---------- */
.site-footer {
    background: var(--navy-deep);
    color: rgba(255, 255, 255, .82);
    padding: 1.1rem clamp(1rem, 3vw, 2.5rem);
    font-size: .95rem;
    line-height: 1.5;
    border-top: 3px solid var(--gold);
}

/* ---------- CĂUTARE: sugestii live (header) ---------- */
.search-suggest {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 12000;
    width: min(440px, 92vw);
    max-height: 70vh;
    overflow-y: auto;
    padding: 6px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(16, 24, 40, .18);
    font-family: 'Crimson Text', serif;
}
.search-suggest[hidden] { display: none; }
.search-suggest-group { padding: 8px 10px 4px; font: 700 .7rem/1.2 system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.search-suggest a {
    display: block;
    padding: 7px 10px;
    border-radius: 8px;
    color: var(--ink);
    text-decoration: none;
    line-height: 1.3;
}
.search-suggest a small { display: block; color: var(--muted); font-size: .9rem; }
.search-suggest a:hover, .search-suggest a.active { background: #f1f5f9; color: var(--navy); }
.search-suggest mark, .search-results mark { padding: 0 1px; background: #fde68a; color: inherit; border-radius: 2px; }
.search-suggest-all { margin-top: 4px; border-top: 1px solid var(--line); font-weight: 700; color: var(--navy) !important; }
.search-suggest-empty { padding: 10px; color: var(--muted); }

/* ---------- PAGINA DE REZULTATE ---------- */
.search-page-form { display: flex; gap: 10px; margin-bottom: 1.2rem; }
.search-page-form input {
    flex: 1;
    min-width: 0;
    padding: 10px 16px;
    font: inherit;
    font-size: 1.1rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #faf9f6;
}
.search-page-form input:focus { outline: none; border-color: var(--navy-soft); background: #fff; box-shadow: 0 0 0 4px rgba(13, 59, 102, .08); }
.search-page-form button { padding: 0 22px; border: 0; border-radius: 999px; background: var(--navy); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.search-page-form button:hover { background: var(--navy-deep); }
.search-summary { color: var(--muted); margin-bottom: 1.4rem; }
.search-didyoumean { margin-bottom: 1.2rem; }
.search-results h3 {
    margin: 1.6rem 0 .7rem;
    font: 700 .78rem/1.2 system-ui, sans-serif;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
}
.search-results h3:first-child { margin-top: 0; }
.search-hit {
    display: block;
    padding: 14px 16px;
    margin-bottom: 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    text-decoration: none;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
a.search-hit:hover { border-color: var(--navy-soft); box-shadow: 0 8px 22px rgba(16, 24, 40, .08); transform: translateY(-1px); color: var(--ink); }
.search-hit-title { font-size: 1.2rem; font-weight: 700; color: var(--navy); }
.search-hit-meta { margin-top: 2px; color: var(--muted); font-size: .98rem; }
.search-hit-snippet { margin-top: 6px; font-size: 1.05rem; line-height: 1.55; }
.search-tips { color: var(--muted); }
.search-tips ul { padding-left: 1.2rem; margin-top: .4rem; }

/* ---------- TELEFON ---------- */
@media (max-width: 768px) {
    .banner-menu { background: var(--navy); }
    /* butonul ☰ desenat direct (nu mai depinde de încărcarea iconițelor Font Awesome) */
    .banner-menu .icon {
        border: 0;
        margin: 2px 6px;
        min-width: 48px;
        background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M4 7h16M4 12h16M4 17h16'/%3E%3C/svg%3E") center / 26px 26px no-repeat;
    }
    .banner-menu .icon .fa-bars { visibility: hidden; }
    .banner-menu ul { background: var(--navy-deep); }
    .banner-menu a { border-bottom: 1px solid rgba(255, 255, 255, .08); }
    .content-fieldset { border-radius: 12px; }
    .inner-fieldset { font-size: 1.08rem; }
    .search-page-form button { padding: 0 16px; }
}
