/* css/style.css - VERSIUNEA FINALĂ COMPLETĂ */

:root {
    /* --- CULORI DE BAZĂ (Structura Profesională) --- */
    --industrial-dark: #001931;  /* Navy închis - Header/Footer */
    --industrial-grey: #334155;  /* Gri text */
    --white: #ffffff;
    --light-bg: #F8FAFC;         /* Fundal general */

    /* --- PALETA DE BRAND --- */
    --brand-blue: #0369A9;       /* Link-uri, accente */
    --brand-orange: #EA5906;     /* BUTOANE (CTA) & Chat Bubble */
    --brand-yellow: #FDC203;     /* Hover și detalii fine */

    --max-width: 1200px;
}

/* --- RESET & GLOBAL --- */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Roboto', sans-serif;
    color: var(--industrial-grey);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden; 
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: rgb(0, 25, 49); 
    margin-bottom: 1rem;
}

a { text-decoration: none; transition: 0.3s; color: var(--brand-blue); }
a:hover { color: var(--brand-orange); }

ul { list-style: none; }
img { max-width: 100%; height: auto; }

/* --- CLASE UTILITARE --- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Butoane - Portocaliu Brand */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 4px;
    letter-spacing: 0.5px;
    cursor: pointer;
    border: none;
    font-size: 0.9rem;
    color: white !important;
    text-align: center;
}

.btn-primary {
    background-color: rgb(194, 65, 12);
    box-shadow: 0 4px 6px rgba(234, 89, 6, 0.2);

}

.btn-primary-orange {
    background-color: rgb(194, 65, 12);
    box-shadow: 0 4px 6px rgba(234, 89, 6, 0.2);
}

.btn-primary-orange:hover {
    background-color: #000000;
    transform: translateY(-1px);
}

.btn-primary-blue {
    background-color: rgb(33, 91, 167);
    box-shadow: 0 4px 6px rgba(3, 57, 163, 0.2);
}

.btn-primary-blue:hover {
    background-color: #000000; 
    transform: translateY(-1px);
}

.btn-primary-yellow {
    background-color: rgb(228, 180, 8);
    box-shadow: 0 4px 6px rgba(228, 191, 8, 0.2);
}

.btn-primary-yellow:hover {
    background-color: #000000;
    transform: translateY(-1px);
}

.btn-primary-gray {
    background-color: rgb(108, 108, 108);
    box-shadow: 0 4px 6px rgba(228, 191, 8, 0.2);
}

.btn-primary-gray:hover {
    background-color: #000000;
    transform: translateY(-1px);
}

.btn-primary:hover { 
    background-color: #c2410c; 
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white) !important;
}

.btn-outline:hover { 
    background-color: var(--white);
    color: var(--industrial-dark) !important; 
}

.section-padding { padding: 60px 0; }
.text-center { text-align: center; }

/* --- HEADER --- */
header {
    background-color: rgb(0, 25, 49); /* Schimbat din var(--industrial-dark) în alb */
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
    display: flex;
    justify-content: center; /* Schimbat din space-between în center */
    align-items: center;
    gap: 60px; /* Adaugă un spațiu plăcut între logo și primul text din meniu */
}

nav ul { display: flex; gap: 30px; }

nav a { 
    color: white !important; /* Textul neactivat devine albastru brandului */
    font-weight: 500; 
    font-size: 0.9rem; 
    text-transform: uppercase; 
}

/* Notă: Pe fundal alb, galbenul vechi e greu de citit. 
   Îți recomand portocaliul pentru hover/activ */
nav a:hover { 
    color: var(--brand-orange) !important; 
}

nav a.active { 
    color: var(--brand-yellow) !important; 
}

/* Pentru a colora separatorul "|" dintre steagurile de limbă */
.lang-switch {
    color: var(--brand-blue);
}

.menu-toggle { display: none; color: rgb(0, 25, 49) ; font-size: 1.5rem; cursor: pointer; }

/* --- HERO SECTION --- */
.hero {
    position: relative; /* Esențial pentru poziționarea elementelor din interior */
    min-height: 80vh;
    display: flex;
    align-items: center;
    color: var(--white);
    padding: 60px 0;
    overflow: hidden; /* Ascunde orice parte a videoului care depășește containerul */
}

/* Stiluri pentru Video */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asigură că videoul acoperă tot spațiul fără a se deforma */
    z-index: 0;
}

/* Stiluri pentru Stratul Întunecat (Overlay) */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradientul original din vechiul CSS, aplicat acum separat */
    background: linear-gradient(rgba(0, 25, 49, 0.9), rgba(0, 25, 49, 0.9));
    z-index: 1;
}

.hero-content h1 {
    color: var(--white);
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 600px;
    color: #e2e8f0;
}

/* Fix Butoane Hero (Responsive) */
.hero-actions {
    margin-top: 30px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* --- CARDS & SERVICES --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: var(--white);
    padding: 30px;
    border: 1px solid #e2e8f0;
    border-top: 4px solid var(--brand-blue);
    transition: transform 0.3s;
}

.service-card:hover { 
    transform: translateY(-5px); 
    border-top-color: var(--brand-orange);
}

.icon-box { 
    font-size: 2rem; 
    color: var(--brand-blue); 
    margin-bottom: 15px; 
}

/* --- SECTIUNI FLEX (Why Us, Solutii, TerraHUB) --- */
.why-us { background-color: var(--light-bg); }

/* Layout-ul principal (Desktop) - 2 coloane stânga/dreapta */
.feature-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    width: 100%;
}

/* Clasa specială pentru a inversa ordinea (Text stânga, Imagine dreapta) */
.feature-flex.reverse-row {
    flex-direction: row-reverse;
}

/* Setăm ca imaginea și textul să ocupe fix 50% din spațiu fiecare */
.feature-img, .feature-text {
    flex: 1 1 50%;
    max-width: 50%;
}

/* Stiluri pentru imagini din interior */
.feature-img img { 
    border-radius: 8px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
    width: 100%; 
    object-fit: cover;
    max-height: 450px; /* Previne imaginile prea înalte */
}

/* Centrează schema piramidei (din TerraHUB) în interiorul coloanei ei */
.data-pyramid {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
}

/* Layout-ul pentru Mobile și Tablete (sub 991px) */
@media (max-width: 991px) {
    .feature-flex, 
    .feature-flex.reverse-row {
        flex-direction: column !important; /* Trece pe o singură coloană (Imagine sus, text jos) */
        gap: 30px;
    }
    
    .feature-img, 
    .feature-text { 
        flex: 1 1 100%; 
        max-width: 100%; 
    }
}

/* --- FORMULARE --- */
input, select, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    background: #fdfdfd;
    margin-bottom: 15px;
}

/* --- PAGINA ECHIPA (Carduri) --- */
.team-card {
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s box-shadow 0.3s;
    text-align: center;
    padding-bottom: 30px;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.team-img-wrapper {
    width: 100%;
    height: 300px;
    overflow: hidden;
    background-color: var(--light-bg);
    border-bottom: 4px solid var(--brand-blue);
}

.team-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: 0.3s;
}

.team-card:hover .team-img-wrapper img { transform: scale(1.05); }

.team-info { padding: 25px 20px; }
.team-info h3 { margin-bottom: 5px; font-size: 1.4rem; color: var(--industrial-dark); }
.team-role { display: block; font-size: 0.9rem; color: var(--brand-orange); font-weight: 700; text-transform: uppercase; margin-bottom: 15px; letter-spacing: 0.5px; }
.team-info p { font-size: 0.95rem; color: #64748b; margin-bottom: 20px; line-height: 1.5; }

.linkedin-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background-color: var(--white);
    color: var(--brand-blue) !important;
    border: 1px solid var(--brand-blue);
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.3s;
}

.linkedin-btn:hover { background-color: var(--brand-blue); color: var(--white) !important; }

/* --- AI CHATBOT WIDGET --- */

/* Bula Plutitoare */
#chat-bubble {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--brand-orange);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    z-index: 9999;
    transition: transform 0.2s, background-color 0.3s;
    color: white;
    font-size: 24px;
    user-select: none;
}

#chat-bubble:active { cursor: grabbing; transform: scale(0.95); }
#chat-bubble:hover { background-color: #c2410c; }

/* Fereastra Chat */
#chat-window {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    height: 500px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    z-index: 9998;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

#chat-window.active { opacity: 1; pointer-events: all; transform: translateY(0) scale(1); }

/* Header Chat */
.chat-header {
    background-color: var(--industrial-dark);
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid var(--brand-blue);
}

.chat-header h4 { color: white; margin: 0; font-size: 1rem; line-height: 1.2; }
.close-chat { cursor: pointer; font-size: 2rem; line-height: 1; padding: 0 5px; font-weight: 300; }
.close-chat:hover { color: var(--brand-yellow); }

/* Mesaje */
#chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background-color: var(--light-bg);
    display: flex;
    flex-direction: column;
    gap: 10px;
    scroll-behavior: smooth;
}

.message { max-width: 85%; padding: 12px 15px; border-radius: 12px; font-size: 0.9rem; line-height: 1.5; position: relative; word-wrap: break-word; }
.bot-msg { align-self: flex-start; background-color: white; border: 1px solid #e2e8f0; color: var(--industrial-dark); border-bottom-left-radius: 2px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.user-msg { align-self: flex-end; background-color: var(--brand-blue); color: white; border-bottom-right-radius: 2px; box-shadow: 0 2px 5px rgba(3, 105, 169, 0.3); }

/* Input Chat */
.chat-input-area {
    padding: 15px;
    background: white;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    align-items: center;
}

.chat-input-area input { margin: 0; padding: 12px 15px; border-radius: 25px; border: 1px solid #ccc; flex: 1; font-size: 0.95rem; }
.chat-input-area input:focus { border-color: var(--brand-blue); }

.chat-input-area button {
    background: var(--brand-blue);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: 0.3s;
    box-shadow: 0 3px 8px rgba(3, 105, 169, 0.3);
}

.chat-input-area button:hover { background: var(--brand-orange); transform: translateX(3px); }

/* --- FOOTER --- */
footer {
    background-color: rgb(0, 25, 49);
    color: #94a3b8;
    padding: 60px 0 20px;
    border-top: 2px solid var(--brand-yellow);
}

.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-col h4 { color: var(--white); margin-bottom: 20px; }
.footer-col a { color: #94a3b8 !important; display: block; margin-bottom: 10px; }
.footer-col a:hover { color: var(--brand-orange) !important; }
.copyright { border-top: 1px solid #334155; padding-top: 20px; text-align: center; font-size: 0.9rem; }

/* --- RESPONSIVE / MOBILE --- */
@media (max-width: 768px) {
    /* Meniu Burger Fixed - Schimbat în albastru ca să fie vizibil pe fundal alb */
    .menu-toggle { 
        display: block; 
        color: white; 
        font-size: 1.5rem; 
        cursor: pointer; 
    }
    
    .nav-menu {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background-color: rgb(0, 25, 49); /* Fundalul meniului deschis pe mobil devine alb */
        flex-direction: column;
        padding: 40px 20px 80px 20px;
        transition: 0.3s;
        border-top: 1px solid #e2e8f0; /* O linie fină de separare */
        overflow-y: auto;
    }

    /* Adaugă imediat sub regula de mai sus, tot în interiorul media query: */
    .lang-switch {
        margin-top: 20px;
        width: 100%;
        display: flex;
        justify-content: center;
        padding-bottom: 20px;
    }

    .lang-switch select {
        width: 50% !important; /* Mai lat pentru a fi ușor de apăsat */
        text-align: center;
        border: 1px solid var(--brand-orange);
        color: white;
        background: rgba(255,255,255,0.05);
    }
    
    .lang-switch select option {
        color: black; /* Text negru în lista derulantă */
    }
    
    .nav-menu.active { left: 0; display: flex; }
    .nav-menu li { width: 100%; text-align: center; margin-bottom: 20px; }
    .nav-menu a { font-size: 1.2rem; display: block; padding: 10px; }

    /* Butoane Hero Mobile */
    .hero-actions { flex-direction: column; width: 100%; gap: 15px; }
    .hero-actions .btn { width: 100%; display: block; }
    .hero-actions .btn-outline { background-color: rgba(0, 0, 0, 0.5); border-color: white; }

    /* Ajustari Generale */
    .hero-content h1 { font-size: 2.2rem; }
    .section-padding { padding: 40px 0; }
    .feature-flex { flex-direction: column; }
    .feature-img, .feature-text { width: 100%; min-width: auto; }
    
    /* Carduri Echipa Mobil */
    .team-img-wrapper { height: 300px; }
}

@media (max-width: 480px) {
    /* Ajustare Chat pe ecran foarte mic */
    #chat-window { width: 95%; right: 2.5%; bottom: 90px; height: 65vh; }
}

/* --- BLOG STYLES --- */

/* 1. Blog Index (Carduri) */
.blog-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.blog-img {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.3s;
}

.blog-card:hover .blog-img img { transform: scale(1.05); }

.blog-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--brand-orange);
    color: white;
    padding: 5px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
}

.blog-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 10px;
    display: flex;
    gap: 15px;
}

.blog-content h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.blog-content h3 a { color: var(--industrial-dark); }
.blog-content h3 a:hover { color: var(--brand-blue); }

.blog-content p {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 20px;
    flex: 1;
}

.read-more {
    color: var(--brand-blue);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.read-more:hover { color: var(--brand-orange); gap: 8px; }

/* 2. Single Article Page Styles */
.article-hero {
    background-color: var(--industrial-dark);
    padding: 60px 0;
    color: white;
    text-align: center;
}

.article-tag {
    display: inline-block;
    background: rgba(255,255,255,0.1);
    color: var(--brand-yellow);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.article-hero h1 {
    color: white;
    font-size: 2.5rem;
    max-width: 900px;
    margin: 0 auto 20px;
}

.article-meta {
    color: #94a3b8;
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Layout 2 Coloane (Content + Sidebar) */
.blog-layout {
    display: grid;
    grid-template-columns: 2fr 1fr; /* 66% Continut, 33% Sidebar */
    gap: 50px;
}

.blog-post-content p { margin-bottom: 20px; font-size: 1.05rem; color: #334155; }
.blog-post-content h2 { margin-top: 40px; font-size: 1.8rem; color: var(--industrial-dark); }
.blog-post-content h3 { margin-top: 30px; font-size: 1.4rem; }
.lead-text { font-size: 1.2rem !important; font-weight: 500; color: var(--industrial-dark) !important; border-left: 4px solid var(--brand-orange); padding-left: 20px; }

.featured-image {
    width: 100%;
    border-radius: 8px;
    margin: 30px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.highlight-box {
    background: #eff6ff;
    border-left: 4px solid var(--brand-blue);
    padding: 20px;
    margin: 30px 0;
    border-radius: 4px;
}

/* Sidebar */
.sidebar-widget {
    background: #f8fafc;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid #e2e8f0;
}

.sidebar-widget h3 { font-size: 1.2rem; margin-bottom: 15px; }

.cta-widget {
    background: var(--industrial-dark);
    color: white;
    text-align: center;
}
.cta-widget h3 { color: white; }
.cta-widget p { color: #cbd5e1; margin-bottom: 20px; }

.recent-posts li {
    border-bottom: 1px solid #e2e8f0;
    padding: 10px 0;
}
.recent-posts li:last-child { border-bottom: none; }
.recent-posts a { font-weight: 500; font-size: 0.95rem; }

/* Responsive Blog */
@media (max-width: 900px) {
    .blog-layout { grid-template-columns: 1fr; } /* Pe mobil sidebar-ul trece jos */
    .article-hero h1 { font-size: 1.8rem; }
}

/* Selector Limba */
.lang-switch select {
    background: transparent;
    color: #cbd5e1;
    border: 1px solid #cbd5e1;
    padding: 5px;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    font-weight: 600;
}

.lang-switch select:focus {
    outline: none;
    border-color: var(--brand-orange);
    color: var(--brand-orange);
}

/* Ajustare pentru mobil */
@media (max-width: 768px) {
    .lang-switch { margin-top: 15px; }
    .lang-switch select { width: 100%; color: white; border-color: white; }
    .lang-switch select option { color: black; }
}

/* Buton Outline pentru fundaluri albe */
.btn-outline-dark {
    background-color: transparent;
    color: var(--industrial-dark) !important; /* Forțăm culoarea textului */
    border: 1px solid var(--industrial-dark);
    padding: 10px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-outline-dark:hover {
    background-color: var(--industrial-dark);
    color: white !important; /* Text alb la hover */
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* --- STILURI NOI PENTRU PAGINA PRODUSE (Layout Vertical/Wide) --- */

/* Container principal pentru un produs stivuit vertical */
.product-stack {
    display: block;
    margin-bottom: 120px; /* Spațiu generos între produse */
    text-align: center; /* Centrăm titlurile inițial */
}

/* Header-ul produsului (Titlu + Icon + Subtitlu) */
.product-header {
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.product-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.product-title-wrapper h2 {
    margin: 0;
    font-size: 2.5rem;
}

/* Stil pentru imaginea lată (Landscape) */
.product-image-wide {
    width: 100%;
    margin-bottom: 50px;
    border-radius: 12px;
    /* Umbră puternică pentru efect de "plutire" */
    box-shadow: 0 20px 40px rgba(0,0,0,0.15); 
    overflow: hidden;
}

.product-image-wide img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Containerul pentru textul de sub imagine */
.product-details-wide {
    max-width: 800px; /* Limităm lățimea textului pentru citire ușoară */
    margin: 0 auto; /* Centrăm blocul de text */
    text-align: left; /* Textul efectiv rămâne aliniat la stânga */
}

.product-desc-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 30px;
}

/* Lista de funcționalități reproiectată pentru spațiu lat */
.product-feature-list {
    list-style: none;
    padding: 0;
    margin-bottom: 40px;
    /* Folosim Grid pentru a pune punctele pe 2 coloane pe ecrane mari */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.product-feature-list li {
    display: flex;
    align-items: flex-start;
    font-weight: 500;
    margin-bottom: 0; /* Gap-ul se ocupă de spațiere */
}

.product-feature-list li i {
    margin-right: 15px;
    margin-top: 5px; /* Aliniem iconița cu prima linie de text */
    font-size: 1.2rem;
}

/* --- Modal (Pop-up) Styles --- */
.custom-modal {
    display: none; /* Ascuns implicit */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Fundal întunecat transparent */
    backdrop-filter: blur(4px);
}

.custom-modal-content {
    background-color: #fefefe;
    color: var(--industrial-dark);
    margin: 10% auto;
    padding: 30px;
    border-radius: 8px;
    width: 80%;
    max-width: 800px;
    max-height: 70vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.custom-modal-content h2 {
    margin-top: 0;
    border-bottom: 2px solid var(--brand-orange);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--brand-orange);
    text-decoration: none;
}

/* --- OVERRIDE PENTRU ALTERNARE IMAGINE/TEXT PE DESKTOP --- */
.feature-flex {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 50px !important;
}

.feature-flex .feature-img, 
.feature-flex .feature-text {
    flex: 1 1 50% !important;
    max-width: 50% !important;
}

.feature-flex .feature-img img {
    width: 100% !important;
    max-height: 400px !important; /* Controlează înălțimea să nu fie prea mare */
    object-fit: cover !important;
    border-radius: 8px !important;
}

/* Clasa specială care inversează ordinea (Imagine dreapta, Text stânga) */
.feature-flex.reverse-row {
    flex-direction: row-reverse !important;
}

/* --- COMPORTAMENT PE MOBIL / TABLETĂ (TEXT SUB IMAGINE) --- */
@media (max-width: 991px) {
    .feature-flex, 
    .feature-flex.reverse-row {
        flex-direction: column !important;
        gap: 30px !important;
    }
    
    .feature-flex .feature-img, 
    .feature-flex .feature-text {
        flex: 1 1 100% !important;
        max-width: 100% !important;
    }
}

/* --- Stiluri pentru Logo-ul imagine --- */

/* --- Stiluri ACTUALIZATE pentru Logo-ul imagine --- */

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-right: 0; /* Am șters marginea pentru a permite centrarea perfectă */
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.img-logo {
    width: auto;
    height: auto;
    /* Redus cu 50% (de la 35px la 18px) */
    max-height: 25px; 
    /* Am redus și lățimea maximă cu 50% pentru siguranță */
    max-width: 175px; 
    object-fit: contain; 
    display: block;
    transition: transform 0.3s ease;
}

.img-logo:hover {
    transform: scale(1.02);
}

/* Ajustare automată redusă cu 50% și pentru telefoane/tablete */
@media (max-width: 900px) {
    .img-logo {
        max-height: 14px; /* Redus de la 28px */
        max-width: 100px;
    }
}

.nav-menu > li > a {
    font-size: 1.15rem; /* Mărește dimensiunea fontului */
    font-weight: 400;   /* Face textul mai gros */
    letter-spacing: 0.5px; /* Spațiere subtilă pentru lizibilitate */
    transition: color 0.3s ease;
}

/* Stiluri pentru meniul Dropdown (About Us) */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: rgb(0, 25, 49);
    min-width: 180px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.15);
    z-index: 100;
    border-radius: 4px;
    padding: 10px 0;
    top: 100%; /* Îl poziționează fix sub elementul părinte */
    left: 0;
}

.dropdown-content li {
    display: block;
    margin: 0;
}

.dropdown-content li a {
    color: #333333;
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    font-size: 1rem;
    font-weight: 300;
    text-align: left;
    transition: background-color 0.2s ease;
}

/* Efect de hover pentru sub-elemente */
.dropdown-content li a:hover {
    background-color: rgb(0, 25, 49);
    color: #0056b3; /* Schimbă cu culoarea brandului tău */
}

/* Afișează dropdown-ul atunci când dai hover pe părinte */
.dropdown:hover .dropdown-content {
    display: block;
}

/* --- INFINITE CAROUSEL (NETFLIX STYLE) - FLAWLESS LOOP --- */
.gallery-showcase {
    background-color: var(--industrial-dark);
    color: var(--white);
    padding-bottom: 80px;
    overflow: hidden; /* Securizăm marginile generale */
}

.gallery-showcase h2 { color: var(--white); }
.gallery-showcase p { color: #cbd5e1; margin-bottom: 40px; }

.marquee-container {
    display: flex;
    flex-direction: column;
    gap: 20px; 
    width: 100vw; 
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.marquee-row {
    display: flex;
    width: max-content;
}

.marquee-row:hover .marquee-content {
    animation-play-state: paused;
}

.marquee-content {
    display: flex;
    flex-shrink: 0;
    gap: 20px; 
    padding-right: 20px; /* IMPORTANT: Trebuie să fie egal cu gap-ul! */
}

/* Containerul pentru fiecare imagine din galerie */
.gallery-item {
    position: relative;
    width: 320px;
    height: 200px;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
    cursor: pointer;
    overflow: hidden; /* Păstrează overlay-ul în interiorul marginilor rotunjite */
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s;
    flex-shrink: 0;
}

/* Efectul de mărire pe întregul container */
.gallery-item:hover {
    transform: scale(1.08);
    z-index: 10;
    box-shadow: 0 10px 25px rgba(234, 89, 6, 0.3);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

/* Filtrul portocaliu cu text (ascuns implicit) */
.gallery-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(234, 89, 6, 0.85); /* Folosește --brand-orange cu transparență 85% */
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
    padding: 20px;
    z-index: 2;
}

/* Afișează overlay-ul la hover */
.gallery-item:hover .overlay {
    opacity: 1;
}

/* Mic efect suplimentar: imaginea face un mic zoom in sub filtru */
.gallery-item:hover img {
    transform: scale(1.1);
}

/* Animațiile se aplică pe grupurile de conținut, nu pe rând! */
.track-rtl .marquee-content { animation: scrollRTL 90s linear infinite; }
.track-ltr .marquee-content { animation: scrollLTR 90s linear infinite; }

@keyframes scrollRTL {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

@keyframes scrollLTR {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(0); }
}

@media (max-width: 768px) {
    .gallery-item { width: 220px; height: 140px; }
    .marquee-container { gap: 15px; }
    .marquee-content { gap: 15px; padding-right: 15px; } 
    
    /* Opțional: text mai mic pe mobil pentru a nu ieși din chenar */
    .gallery-item .overlay { font-size: 0.9rem; padding: 10px; }
}

        /* În loc de html, body { ... } pune asta: */
.map-page, .map-page body {
    margin: 0; 
    padding: 0; 
    height: 100vh; /* 100% din înălțimea ecranului */
    width: 100%; 
    overflow: hidden; 
}
        header { position: relative; z-index: 1000; background-color: rgb(0, 25, 49); padding: 15px 0; }
        
        #map-container { position: absolute; top: 68px; bottom: 0; left: 0; right: 0; z-index: 1; overflow: hidden; }
        #map { width: 100%; height: 100%; background-color: #e2e8f0; }

        .leaflet-popup-content-wrapper { border-radius: 4px; border-top: 4px solid var(--brand-orange); }
        .leaflet-popup-content { font-family: 'Roboto', sans-serif; color: var(--industrial-dark); }
        .leaflet-popup-content h4 { font-family: 'Montserrat', sans-serif; margin: 0 0 10px 0; color: var(--brand-blue); }
        
        /* Custom UI Overlay (Info text) */
        .map-ui-overlay {
            position: absolute; top: 20px; left: 60px; z-index: 1000;
            background: rgba(0, 25, 49, 0.9); color: white; padding: 15px 25px;
            border-radius: 4px; border-left: 4px solid var(--brand-yellow);
            box-shadow: 0 4px 12px rgba(0,0,0,0.3); pointer-events: none;
        }

        /* --- MENIU CUSTOM PENTRU SCHIMBARE LAYERE --- */
        #custom-layer-panel {
            position: absolute;
            top: 175px; 
            left: 55px;
            background: white;
            border-radius: 8px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.2);
            padding: 15px;
            z-index: 2000;
            display: none; 
            flex-direction: column;
            gap: 10px;
            width: 220px;
            border-top: 3px solid var(--brand-blue);
        }

        #custom-layer-panel.active {
            display: flex;
            animation: fadeIn 0.2s ease-in-out;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateX(-10px); }
            to { opacity: 1; transform: translateX(0); }
        }

        .layer-option {
            display: flex; align-items: center; gap: 15px;
            padding: 12px; border-radius: 6px; border: 2px solid transparent;
            cursor: pointer; transition: 0.3s; background: #f8fafc;
            color: var(--industrial-dark); font-weight: 500; font-size: 0.95rem;
        }

        .layer-option:hover { border-color: var(--brand-blue); background: #f1f5f9; }
        .layer-option.active { border-color: var(--brand-orange); background: #fff7ed; color: var(--brand-orange); }
        .layer-option i { font-size: 1.5rem; color: #64748b; transition: 0.3s; }
        .layer-option.active i { color: var(--brand-orange); }

        /* Iconița de Layer Control din stânga */
        .leaflet-bar a.custom-layer-btn {
            display: flex; justify-content: center; align-items: center;
            font-size: 1.1rem; color: var(--industrial-dark); background: white;
        }
        .leaflet-bar a.custom-layer-btn:hover { background: #f4f4f4; color: var(--brand-orange); }

        /* --- BARA LATERALĂ (SIDEBAR) --- */
        #data-sidebar {
            position: absolute; top: 0; right: -400px; width: 400px; height: 100%;
            background-color: white; z-index: 2000; box-shadow: -5px 0 15px rgba(0,0,0,0.2);
            transition: right 0.3s ease-in-out; display: flex; flex-direction: column;
        }
        #data-sidebar.active { right: 0; }

        .sidebar-header {
            background-color: var(--industrial-dark); color: white; padding: 20px;
            display: flex; justify-content: space-between; align-items: center;
            border-bottom: 3px solid var(--brand-orange);
        }
        .sidebar-header h3 { color: white; margin: 0; font-size: 1.2rem; }
        .close-btn { cursor: pointer; font-size: 1.5rem; color: #cbd5e1; transition: 0.3s; }
        .close-btn:hover { color: var(--brand-orange); }

        .sidebar-content { padding: 25px; flex-grow: 1; overflow-y: auto; }
        
        .dynamic-form { display: none; }
        .dynamic-form.active { display: block; }
        .form-section-title { font-weight: 600; color: var(--brand-blue); margin-bottom: 10px; font-size: 1.05rem; }
        .form-group { margin-bottom: 12px; }
        
        .form-group label.radio-label {
            display: flex; align-items: center; gap: 10px; background: #f8fafc; padding: 12px;
            border: 1px solid #e2e8f0; border-radius: 4px; cursor: pointer; transition: 0.3s;
            font-weight: 500; color: var(--industrial-dark); position: relative; z-index: 2; margin-bottom: 0;
        }
        
        .form-group input[type="radio"] { width: auto; margin: 0; accent-color: var(--brand-orange); }
        
        .text-input {
    width: 100%; 
    padding: 10px 12px; /* Redus padding-ul vertical (era 12px) */
    border: 1px solid #cbd5e1;
    border-radius: 4px; 
    font-family: 'Roboto', sans-serif;
    margin-top: 0; /* Eliminat margin-top care crea spațiul dublu */
    box-sizing: border-box;
}
        .text-input:focus { outline: none; border-color: var(--brand-orange); }

        .alert-box {
            background-color: #fffbeb; border-left: 4px solid var(--brand-yellow);
            padding: 15px; margin-bottom: 20px; border-radius: 4px;
            color: #92400e; font-size: 0.95rem; font-weight: 500;
        }

        .btn-submit {
            background-color: var(--brand-orange); color: white; border: none;
            padding: 15px; width: 100%; border-radius: 4px; font-weight: 600;
            font-size: 0.85rem; cursor: pointer; text-transform: uppercase;
            transition: 0.3s; margin-top: 20px;
        }
        .btn-submit:hover { background-color: #c2410c; }

/* --- STILURI PENTRU DESCRIERILE PERMANENTE ALE NIVELURILOR --- */
        .level-desc {
            display: block; /* Schimbat din none pentru a fi mereu vizibil */
            padding: 12px 15px;
            background-color: #f8fafc; /* Fundal neutru când nu e selectat */
            border: 1px solid #e2e8f0; /* Chenar subtil */
            border-top: none;
            border-radius: 0 0 4px 4px;
            font-size: 0.85rem;
            color: #64748b;
            margin-top: -1px; 
            line-height: 1.4;
            position: relative;
            z-index: 1;
            transition: all 0.3s ease;
        }

        /* Modifică culorile descrierii doar când radio-ul este selectat */
        .form-group:has(input[type="radio"]:checked) .level-desc {
            background-color: #f1f5f9;
            border-color: var(--brand-blue);
            color: var(--industrial-dark);
        }

        /* Eliminăm colțurile rotunjite jos pentru TOATE label-urile ca să se îmbine cu descrierea */
        .form-group label.radio-label {
            border-bottom-left-radius: 0;
            border-bottom-right-radius: 0;
        }
        
        /* Modifică marginea label-ului când este selectat */
        .form-group:has(input[type="radio"]:checked) label.radio-label {
            border-color: var(--brand-blue);
            background-color: #f1f5f9;
        }
    
        /* --- STILURI PENTRU GRID-UL DE SETURI DE DATE (MULTI-SELECT) --- */
        .data-type-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 12px;
            margin-bottom: 25px;
        }

        .data-type-card {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 10px;
            background: var(--c-slate);
            border: 2px solid transparent;
            border-radius: 6px;
            padding: 15px 10px;
            cursor: pointer;
            transition: all 0.3s ease;
            text-align: center;
        }

        /* Ascundem checkbox-ul clasic */
        .data-type-card input[type="checkbox"] {
            display: none; 
        }

        .data-type-card i {
            font-size: 1.8rem;
            color: var(--text-muted);
            transition: color 0.3s ease;
        }

        .data-type-card span {
            font-size: 0.85rem;
            font-weight: 500;
            color: var(--text-light);
            line-height: 1.2;
        }

        /* Efect la trecerea cu mouse-ul (Hover) */
        .data-type-card:hover {
            background: rgba(3, 105, 169, 0.2); /* Nuanta de blue transparent */
        }
        
        .data-type-card:hover i {
            color: var(--text-light);
        }

        /* Efect când este BIFAT (Selectat) */
        .data-type-grid:has(input[type="checkbox"]:checked) .data-type-card:has(input[type="checkbox"]:checked) {
            border-color: var(--c-orange);
            background: rgba(59, 128, 255, 0.087);
            box-shadow: 0 4px 10px rgba(0,0,0,0.2);
        }

        .data-type-grid:has(input[type="checkbox"]:checked) .data-type-card:has(input[type="checkbox"]:checked) i {
            color: var(--c-orange);
            transform: scale(1.1);
        }

/* --- STILURI PENTRU TEXTAREA ȘI CASETA DINAMICĂ 'ALTELE' --- */
        .text-area-input {
            width: 100%; 
            padding: 15px; 
            border: 1px solid #cbd5e1; /* Culoare clară pentru chenar */
            border-radius: 4px; 
            font-family: 'Roboto', sans-serif;
            background-color: #fdfdfd; /* Fundal vizibil */
            color: var(--industrial-dark);
            font-size: 0.95rem; 
            transition: 0.3s;
            resize: vertical; 
            min-height: 100px;
            box-sizing: border-box; /* Previne ieșirea din container */
        }
        .text-area-input::placeholder { color: #94a3b8; }
        .text-area-input:focus { 
            outline: none; 
            border-color: var(--brand-orange); 
            box-shadow: 0 0 0 2px rgba(234, 89, 6, 0.2); 
        }

        /* Containerul ascuns pentru 'Altele' */
        .altele-input-container {
            display: none;
            margin-bottom: 25px;
        }

        /* Afișează containerul doar dacă checkbox-ul cu valoarea 'Altele' este bifat */
        .dynamic-form:has(input[value="Altele"]:checked) .altele-input-container {
            display: block;
            animation: slideDown 0.3s ease-out;
        }

        /* --- STILURI PENTRU MODALUL DE SUCCES --- */
        .success-modal-overlay {
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0, 25, 49, 0.8);
            backdrop-filter: blur(5px);
            z-index: 9999;
            display: none; /* Ascuns implicit */
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .success-modal-overlay.active {
            display: flex;
            animation: fadeInModal 0.3s forwards;
        }

        @keyframes fadeInModal {
            from { opacity: 0; }
            to { opacity: 1; }
        }

/* --- STILURI ACTUALIZATE PENTRU MODALUL DE SUCCES (VIZIBILITATE MAXIMĂ) --- */
        .success-modal-content {
            background-color: #0f2537; /* Un navy solid, puțin mai deschis pentru a ieși din fundal */
            border: 1px solid var(--c-slate);
            border-top: 5px solid var(--c-orange);
            border-radius: 8px;
            padding: 40px 30px;
            text-align: center;
            max-width: 400px;
            width: 90%;
            box-shadow: 0 25px 50px rgba(0,0,0,0.8); /* Umbră mai puternică pentru efect 3D */
            transform: translateY(20px);
            animation: slideUpModal 0.4s ease forwards;
            position: relative;
            z-index: 10000;
            opacity: 1 !important; /* Forțăm opacitatea la 100% */
        }

        @keyframes slideUpModal {
            from { transform: translateY(20px); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }

/* --- Bifa de succes cu vizibilitate maximă --- */
/* --- Iconiță modal dinamică cu vizibilitate maximă --- */
        .success-modal-content i#custom-modal-icon {
            font-size: 4.5rem !important;
            color: #EA5906 !important; 
            opacity: 1 !important; 
            margin-bottom: 25px;
            display: inline-block;
            background: transparent !important; 
            text-shadow: 0 0 25px rgba(234, 89, 6, 0.7); 
            transition: all 0.3s ease;
        }

        .success-modal-content h3 {
            font-family: 'Montserrat', sans-serif;
            color: #ffffff !important; /* Alb pur pentru contrast maxim */
            font-size: 1.6rem;
            margin: 0 0 15px 0;
            font-weight: 700;
        }

        .success-modal-content p {
            color: #e2e8f0 !important; /* Gri foarte deschis, ușor de citit */
            line-height: 1.6;
            margin-bottom: 30px;
            font-size: 1.05rem;
        }

/* Asigură-te că recipientul hărții are dimensiunile corecte sub noul header */
#map-container { 
    position: absolute; 
    top: 60px; /* Am redus distanța pentru a trage harta sub header */
    bottom: 0; 
    left: 0; 
    right: 0; 
    z-index: 1; 
    overflow: hidden; 
}

/* --- STILURI PENTRU MODALUL DE AUTENTIFICARE --- */
.auth-modal-content {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
    animation: slideUpModal 0.3s ease forwards;
}

.close-auth-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    color: var(--industrial-dark);
    cursor: pointer;
    transition: 0.3s;
}

.close-auth-btn:hover { color: var(--brand-orange); }

.auth-tabs {
    display: flex;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 25px;
    margin-top: 10px;
}

.auth-tab {
    flex: 1;
    background: none;
    border: none;
    padding: 10px;
    font-size: 1.1rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    position: relative;
}

.auth-tab.active {
    color: var(--brand-blue);
}

.auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--brand-orange);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

.auth-form label {
    font-weight: 500;
    color: var(--brand-blue);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 2px; /* Redus pentru a lipi textul mai bine de câmp */
}

/* --- STILURI ADAUGATE PENTRU FORMULARUL DE INREGISTRARE --- */
.auth-form {
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 5px; /* pentru a nu lipi textul de scrollbar */
}

/* Stil specific pentru scrollbar in formular (optional, pentru design curat) */
.auth-form::-webkit-scrollbar { width: 6px; }
.auth-form::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
.auth-form::-webkit-scrollbar-thumb:hover { background: var(--brand-orange); }

/* Adaptam stilul de la radio-label si pentru checkbox-uri (check-label) */
.form-group label.check-label {
    display: flex; align-items: center; gap: 10px; background: #f8fafc; padding: 12px;
    border: 1px solid #e2e8f0; border-radius: 4px; cursor: pointer; transition: 0.3s;
    font-weight: 500; color: var(--industrial-dark); position: relative; z-index: 2; margin-bottom: 0;
}
.form-group input[type="checkbox"].check-input { width: auto; margin: 0; accent-color: var(--brand-orange); }

/* Afiseaza descrierea nivelului si pentru checkbox-uri cand sunt bifate */
.form-group:has(input[type="checkbox"].check-input:checked) .level-desc {
    display: block;
    animation: slideDown 0.3s ease-out;
}
.form-group:has(input[type="checkbox"].check-input:checked) label.check-label {
    border-color: var(--brand-blue);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    background-color: #f1f5f9;
}

/* --- STILURI ACTUALIZATE PENTRU CARDURI COMPACTE --- */
.data-type-card.compact {
    display: flex;
    flex-direction: row; /* Aliniază iconița și textul pe orizontală */
    align-items: center;
    justify-content: flex-start; /* Lipește conținutul de partea stângă a cardului */
    padding: 8px 12px;
    gap: 12px; /* Spațiu fix și clar între iconiță și text */
    min-height: 45px; /* Asigură o înălțime uniformă pentru toate cardurile */
}

.data-type-card.compact i {
    font-size: 1rem; /* Dimensiune redusă pentru iconiță */
    min-width: 20px; /* Lățime fixă pentru iconiță, astfel încât tot textul să fie perfect aliniat vertical */
    text-align: center;
}

.data-type-card.compact span {
    font-size: 0.75rem; /* Font mai mic pentru text */
    line-height: 1.2;
    text-align: left;
}

/* --- STILURI PENTRU DESCRIERI PERMANENTE LA NIVEL DE PROCESARE --- */
.level-desc-permanent {
    display: block !important; /* Afișat în permanență */
    border: 1px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 4px 4px;
    padding: 8px 12px;
    background-color: #f8fafc;
    font-size: 0.8rem;
    color: #64748b;
    margin-top: -1px;
    line-height: 1.3;
    transition: 0.3s;
}

/* Ajustăm marginile label-ului pentru a se uni frumos cu descrierea */
.form-group label.check-label-permanent {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

/* Când este bifat, colorăm și descrierea permanentă */
.form-group:has(input[type="checkbox"].check-input:checked) .level-desc-permanent {
    border-color: var(--brand-blue);
    background-color: #f1f5f9;
    color: var(--industrial-dark);
}
.form-group:has(input[type="checkbox"].check-input:checked) label.check-label-permanent {
    border-color: var(--brand-blue);
    background-color: #f1f5f9;
}
/* --- STILURI CURATE PENTRU NIVELUL DE PROCESARE (FĂRĂ CARDURI) --- */
.check-label-clean {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500;
    color: var(--industrial-dark);
    margin-bottom: 2px;
    padding-left: 2px; /* Adaugă o mică margine interioară ca să prevină tăierea graficii */
}

.check-input-clean {
    width: 16px; /* Folosim dimensiuni fixe în loc de scale() */
    height: 16px;
    margin: 0;
    accent-color: var(--brand-orange);
    cursor: pointer;
    flex-shrink: 0; /* Previne deformarea căsuței dacă textul de lângă trece pe două rânduri */
}

.level-desc-clean {
    display: block;
    padding-left: 24px; /* Aliniază textul cu eticheta, sărind peste checkbox */
    font-size: 0.8rem;
    color: #64748b; /* Gri subtil */
    line-height: 1.4;
    margin-bottom: 15px; /* Spațiu între opțiuni */
}

/* Efect subtil de culoare la bifare (opțional, pentru claritate) */
.form-group-clean:has(input[type="checkbox"].check-input-clean:checked) .check-label-clean {
    color: var(--brand-blue);
    font-weight: 600;
}
.form-group-clean:has(input[type="checkbox"].check-input-clean:checked) .level-desc-clean {
    color: var(--industrial-dark); /* Textul devine puțin mai lizibil când e selectat */
}

/* --- STILURI PENTRU TABELUL VIZUAL DE INFORMAȚII --- */
.info-table {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 25px;
}

.info-row {
    display: grid;
    /* Coloana 1 (Titlu) are lățime fixă, Coloana 2 (Descriere) ocupă restul spațiului */
    grid-template-columns: 220px 1fr; 
    gap: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
    align-items: start;
}

.info-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-title {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-weight: 600;
    color: var(--industrial-dark);
    font-size: 1.05rem;
}

.info-title i {
    font-size: 1.3rem;
    margin-top: 2px;
    min-width: 24px; /* Asigură că iconițele sunt perfect aliniate pe centru între ele */
    text-align: center;
}

/* Culori specifice pentru iconițe */
.icon-blue i { color: var(--brand-blue); }
.icon-orange i { color: var(--brand-orange); }

.info-desc {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* Trecere la aspect vertical pe telefoane */
@media (max-width: 600px) {
    .info-row {
        grid-template-columns: 1fr; 
        gap: 5px;
    }
    .info-desc {
        padding-left: 36px; /* Aliniază textul cu titlul de deasupra (ignorând iconița) */
    }
}

/* --- STRUCTURA PIRAMIDALA PENTRU NIVELE DE DATE --- */
.data-pyramid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px; /* Spațiul dintre trepte */
    width: 100%;
}

.pyramid-tier {
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pyramid-tier:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.pyramid-tier i {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.pyramid-tier h4 {
    margin: 0 0 5px 0;
    font-size: 1.2rem;
    font-weight: 700;
}

.pyramid-tier p {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 500;
}

/* --- LĂȚIMILE PENTRU EFECTUL DE PIRAMIDĂ --- */
.tier-top { width: 55%; }
.tier-middle { width: 75%; }
.tier-bottom { width: 100%; }

/* --- CULORILE SPECIFICE --- */

/* Vârf (Level 3 - Portocaliu) */
.tier-top { 
    background: #fff7ed; 
    border: 2px solid #fed7aa; 
}
.tier-top i, .tier-top h4 { color: var(--brand-orange); }
.tier-top p { color: #c2410c; }

/* Mijloc (Level 2 - Albastru) */
.tier-middle { 
    background: #f0f9ff; 
    border: 2px solid #bae6fd; 
}
.tier-middle i, .tier-middle h4 { color: var(--brand-blue); }
.tier-middle p { color: #0284c7; }

/* Bază (Level 1 - Gri) */
.tier-bottom { 
    background: #f8fafc; 
    border: 2px solid #e2e8f0; 
}
.tier-bottom i { color: #64748b; }
.tier-bottom h4 { color: #475569; }
.tier-bottom p { color: #64748b; }

/* --- RESPONSIVITATE PENTRU MOBIL --- */
@media (max-width: 768px) {
    /* Pe ecrane mici, treptele devin egale (100% latime) pentru a incapea textul */
    .tier-top, .tier-middle, .tier-bottom {
        width: 100%;
    }
}

/* --- AJUSTARE PROPORȚII PENTRU SECȚIUNEA DE NIVELE (40% stânga / 60% dreapta) --- */
.feature-flex.levels-row .feature-img {
    flex: 1 1 35% !important; /* Am redus spațiul alocat piramidei */
    max-width: 35% !important;
}

.feature-flex.levels-row .feature-text {
    flex: 1 1 65% !important; /* Am extins spațiul alocat textului */
    max-width: 65% !important;
}

/* --- MĂRIM LĂȚIMEA TREPTELOR PENTRU A UMPLE MAI BINE SPAȚIUL --- */
/* (Dacă ai deja aceste clase în CSS, doar înlocuiește valorile width) */
.tier-top { width: 65%; }    /* Crescut de la 55% */
.tier-middle { width: 85%; } /* Crescut de la 75% */
.tier-bottom { width: 100%; }

/* --- RESPONSIVITATE (Pe mobil revine la 100% lățime ambele) --- */
@media (max-width: 991px) {
    .feature-flex.levels-row .feature-img,
    .feature-flex.levels-row .feature-text {
        flex: 1 1 100% !important;
        max-width: 100% !important;
    }
}

/* --- PARTNER LOGOS ROW --- */
.partner-logos-container {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #cbd5e1; /* O linie fină de separare sus */
    text-align: center;
}

.partner-logos-title {
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 1px;
    margin-bottom: 30px;
}

.partner-logos-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px; /* Spațiul dintre logo-uri */
}

.partner-logos-row a {
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, filter 0.3s ease;
    /* Efect premium: logo-urile sunt gri și devin colorate la hover */
    filter: grayscale(100%) opacity(70%); 
}

.partner-logos-row a:hover {
    transform: translateY(-4px); /* Se ridică puțin la hover */
    filter: grayscale(0%) opacity(100%); /* Revin la culoarea originală */
}

.partner-logos-row img {
    max-width: 140px; /* Dimensiunea maximă a logo-urilor */
    max-height: 60px;
    object-fit: contain; /* Păstrează proporțiile imaginii */
}

/* --- RESPONSIVITATE PENTRU MOBIL --- */
@media (max-width: 768px) {
    .partner-logos-container {
        margin-top: 40px;
        padding-top: 30px;
    }
    
    .partner-logos-row {
        gap: 25px; /* Spațiu mai mic pe mobil */
    }
    
    .partner-logos-row img {
        max-width: 100px;
        max-height: 45px;
    }
}

/* --- STILURI PENTRU PANOUL DE FILTRARE --- */
#filter-panel {
    position: absolute;
    top: 220px; /* Poziționat sub butonul de layere (ajustează dacă este nevoie) */
    left: 55px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    padding: 15px;
    z-index: 2000;
    display: none; 
    flex-direction: column;
    width: 280px;
    border-top: 3px solid var(--brand-orange);
}

#filter-panel.active {
    display: flex;
    animation: fadeIn 0.2s ease-in-out;
}

.filter-label { 
    font-size: 0.85rem; 
    font-weight: 600; 
    color: var(--industrial-dark); 
    margin-bottom: 5px; 
    display: block; 
}

.filter-types-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 10px; 
    margin-bottom: 10px; 
}

.filter-types-grid label { 
    font-size: 0.85rem; 
    display: flex; 
    align-items: center; 
    gap: 6px; 
    cursor: pointer; 
    color: #334155; 
}

.filter-types-grid input[type="checkbox"] {
    width: auto;
    margin: 0;
    accent-color: var(--brand-orange);
}

  .about-hero {
            background-color: var(--industrial-dark);
            padding: 80px 0 60px;
            text-align: center;
            color: var(--white);
            border-bottom: 4px solid var(--brand-orange);
        }

        .about-hero h1 {
            color: var(--white);
            font-size: 3rem;
            margin-bottom: 20px;
        }

        .about-hero p {
            color: #cbd5e1;
            font-size: 1.1rem;
            max-width: 600px;
            margin: 0 auto;
        }

        /* --- TIMELINE CSS --- */
        .timeline-section {
            background-color: var(--light-bg);
            padding: 80px 0;
            overflow: hidden;
        }

        .timeline {
            position: relative;
            max-width: 1000px;
            margin: 0 auto;
            padding: 20px 0;
        }

        /* The central vertical line */
        .timeline::after {
            content: '';
            position: absolute;
            width: 4px;
            background-color: var(--brand-blue);
            top: 0;
            bottom: 0;
            left: 50%;
            margin-left: -2px;
            border-radius: 2px;
        }

        .container-tl {
            padding: 0px 40px 15px 40px;
            position: relative;
            background-color: inherit;
            width: 50%;
            box-sizing: border-box;
        }

        .container-tl.left { left: 0; }
        .container-tl.right { left: 50%; }

        /* The dots on the line */
        .timeline-dot {
            position: absolute;
            width: 24px;
            height: 24px;
            background-color: var(--white);
            border: 4px solid var(--brand-orange);
            border-radius: 50%;
            z-index: 2;
            top: 15px;
            transition: all 0.3s ease;
            box-shadow: 0 0 0 4px rgba(234, 89, 6, 0.2);
        }

        .container-tl.left .timeline-dot { right: -12px; }
        .container-tl.right .timeline-dot { left: -12px; }

        .container-tl:hover .timeline-dot {
            background-color: var(--brand-orange);
            transform: scale(1.3);
            box-shadow: 0 0 15px rgba(234, 89, 6, 0.6);
        }

        /* Content Boxes */
        .content-tl {
            padding: 15px 25px;
            background-color: var(--white);
            position: relative;
            border-radius: 8px;
            border: 1px solid #e2e8f0;
            border-top: 4px solid var(--brand-blue);
            box-shadow: 0 5px 15px rgba(0,0,0,0.05);
            transition: all 0.3s ease;
        }

        .content-tl:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0,0,0,0.1);
            border-top-color: var(--brand-orange);
        }

        .content-tl h3 {
            color: var(--industrial-dark);
            margin-top: 0;
            margin-bottom: 10px;
            font-size: 1.4rem;
        }

        .content-tl .date {
            color: var(--brand-orange);
            font-weight: 700;
            font-size: 0.9rem;
            letter-spacing: 1px;
            text-transform: uppercase;
            display: block;
            margin-bottom: 5px;
        }

        /* Visible Text */
        .content-tl p {
            color: var(--industrial-grey);
            line-height: 1.6;
            margin: 0;
            font-size: 0.95rem;
        }

        /* Responsive Timeline */
        @media (max-width: 768px) {
            .timeline::after { left: 31px; }
            .container-tl { width: 100%; padding-left: 70px; padding-right: 20px; }
            .container-tl.right { left: 0; }
            .container-tl.left .timeline-dot, .container-tl.right .timeline-dot { left: 19px; }
        }

        /* Trage cardurile în sus pentru a se întrepătrunde (interlock) pe ecrane mari */
@media (min-width: 769px) {
    .container-tl:not(:first-child) {
        margin-top: -40px; 
    }
}