/* ===================================================
   1. STILURI GLOBALE
   =================================================== */
body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    font-size: 14px; 
    color: #333;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: #f4f7f6;
}

/* Containerul principal pentru header-ul încărcat prin JS */
#header-placeholder {
    display: block;
    min-height: 350px; /* Previne saltul paginii la încărcare */
    position: relative;
    z-index: 1002;
}

/* ===================================================
   2. HEADER ȘI NAVIGARE (NAVBAR)
   =================================================== */
.header-container {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    background-color: white; /* solid background to mask the faded image under it */
}

.header-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.title-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 4rem;
    font-weight: bold;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.6);
    pointer-events: none;
}

.navbar {
    background-color: #f1f1f1;
    border-bottom: 1px solid #ccc;
    position: sticky;
    top: 0;
    z-index: 1001;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.navbar ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

.navbar li { position: relative; }

.navbar li a {
    display: block;
    color: #333;
    text-align: center;
    padding: 14px 20px;
    text-decoration: none;
    font-weight: 500;
}

.navbar li a:hover {
    background-color: #ddd;
    color: #0056b3;
}

/* DROP-DOWN (Institut) */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 220px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    z-index: 1003;
}

.dropdown-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left !important;
    font-size: 13px;
}

.dropdown-content a:hover { background-color: #f1f1f1; }
.dropdown:hover .dropdown-content { display: block; }

/* ===================================================
   3. ZONA DE CONȚINUT ȘI FUNDAL
   =================================================== */
.content-area {
    position: relative;
    min-height: 100vh;
    z-index: 1;
    padding-top: 20px;
    padding-bottom: 50px;
}

/* PSEUDO-ELEMENT PENTRU FUNDAL ESTOMPAT */
.content-area::before {
    content: "";
    position: fixed;   /* Rămâne blocat pe ecran */
    top: 0;            /* Începe de sus de tot */
    left: 0;
    width: 100%;
    height: 100%;      /* Ocupă tot ecranul indiferent de scroll */
    background-image: url('/assets/img/fundaluri/background.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    
    /* Estompare discretă */
    opacity: 0.12; 
    
    z-index: -1;       /* Stă în spatele conținutului */
    pointer-events: none;
}

/* IMPORTANT: Ne asigurăm că Header-ul și Navbar-ul sunt opace pentru a ascunde fundalul în partea de sus */
.header-container {
    background-color: white !important;
    position: relative;
    z-index: 1002;
}

.navbar {
    background-color: #f1f1f1 !important; /* Meniul gri solid */
    position: sticky;
    top: 0;
    z-index: 1003; /* Mai sus decât orice */
}

/* Ajustăm spațierea conținutului ca să nu fie lipit de meniu */
.content-area {
    position: relative;
    z-index: 1;
    padding-top: 40px; 
    background: transparent; /* Permite fundalului de dedesubt să se vadă */
}

/* Caseta albă pentru text - o facem puțin mai opacă pentru contrast bun */
.content-box {
    padding: 30px;
    max-width: 850px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.98); /* Aproape alb complet */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* ===================================================
   4. TIPOGRAFIE ȘI ELEMENTE PAGINĂ
   =================================================== */
.lab-title, h1 { 
    color: #0056b3; 
    border-bottom: 2px solid #0056b3; 
    padding-bottom: 10px; 
    font-size: 1.6rem; 
    text-align: center;
    margin-top: 0;
}

h2 { 
    color: #0056b3; 
    margin-top: 25px; 
    border-left: 4px solid #0056b3; 
    padding-left: 10px; 
    font-size: 1.25rem; 
}

h3 { color: #444; margin-top: 20px; font-size: 1.1rem; }

/* Imagini laboratoare */
.img-modern { 
    display: block;
    margin: 20px auto;
    max-width: 350px;
    width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.equipment-section { 
    margin-top: 20px; 
    background: #fff; 
    padding: 15px; 
    border-radius: 8px; 
    border: 1px solid #eee;
}

.tech-specs { 
    background: #fdfdfd; 
    padding: 12px; 
    border-radius: 5px; 
    font-size: 0.9rem; 
    margin-bottom: 15px; 
    border: 1px solid #f0f0f0;
}

.tech-specs ul, .capabilities ul { 
    list-style-type: square; 
    margin-left: 20px;
}

.team-box { 
    margin-top: 30px; 
    padding: 12px; 
    border-left: 5px solid #28a745; 
    background: #f4faf6;
    font-size: 0.9rem;
}

.force-list { font-weight: bold; color: #c0392b; }

.back-btn {
    display: block;
    text-align: center;
    margin-top: 40px;
    text-decoration: none;
    color: #0056b3;
    font-weight: bold;
}

.lab-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}
.lab-list li {
    margin-bottom: 12px;
    padding: 12px;
    background: rgba(0, 86, 179, 0.05); /* Un albastru foarte șters */
    border-left: 4px solid #0056b3;
    transition: 0.3s;
}
.lab-list li:hover {
    background: rgba(0, 86, 179, 0.1);
    transform: translateX(8px);
}
.lab-list a {
    text-decoration: none;
    color: #0056b3;
    font-size: 1.1em;
    font-weight: bold;
}
.lab-list span {
    display: block;
    font-size: 0.9em;
    color: #555;
}