/* ----------------------------------------------------
   FAMILYINSURANCE - STILURI FINALE (RESPONSIVE & FLUID)
---------------------------------------------------- */

/* =========================================
   1. RESETARE & BAZĂ
   ========================================= */
*, *::before, *::after {
    box-sizing: border-box;
}

:root {
    --primary-blue: #2563eb;
    --primary-dark: #1e3a8a;
    --secondary-gold: #fbbf24;
    --text-dark: #0f172a;
    --text-gray: #334155;
    --btn-radius: 50px;
    --header-height: 80px;
    
    /* Spatieri Responsive */
    --container-padding: clamp(1rem, 5vw, 2rem);
    --section-padding: clamp(3rem, 8vw, 6rem);
    /* Inaltimea efectiva a spatiului de continut (viewport height - header - padding) */
    --content-area-height: calc(100vh - var(--header-height) - 4rem); 
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden; /* CRITIC: Elimină scroll orizontal */
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    color: var(--text-gray);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-dark);
    margin: 0;
    line-height: 1.2;
    word-wrap: break-word; /* Previne textul lung sa iasa din ecran */
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* =========================================
   2. STRUCTURA (LAYOUT FLUID)
   ========================================= */
.layout-container {
    width: 100%;
    padding-right: var(--container-padding);
    padding-left: var(--container-padding);
    margin-right: auto;
    margin-left: auto;
    /* Eliminăm lățimile fixe rigide, folosim max-width fluid */
    max-width: 1280px; 
}

.layout-grid {
    display: grid;
    gap: clamp(1.5rem, 4vw, 2.5rem); /* Gap dinamic */
    width: 100%;
}

/* Grid Systems - Mobile First Approach */
.grid-responsive-4 { 
    grid-template-columns: 1fr; 
}
@media (min-width: 640px) { .grid-responsive-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-responsive-4 { grid-template-columns: repeat(4, 1fr); } }

.grid-responsive-3 { 
    grid-template-columns: 1fr; 
}
@media (min-width: 768px) { .grid-responsive-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-responsive-3 { grid-template-columns: repeat(3, 1fr); } }

.grid-responsive-2 { 
    grid-template-columns: 1fr; 
}
@media (min-width: 900px) { .grid-responsive-2 { grid-template-columns: repeat(2, 1fr); } }

/* Utilitare Display */
.d-none { display: none !important; }
.d-flex { display: flex !important; }
.d-block { display: block !important; }

@media (min-width: 900px) { /* Breakpoint pentru meniu */
    .d-md-flex { display: flex !important; }
    .d-md-none { display: none !important; }
}

/* =========================================
   3. HEADER DINAMIC
   ========================================= */
.main-header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.4s ease;
    background-color: transparent; 
    height: var(--header-height);
}

.main-header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.nav-wrapper {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Responsive & Tricolor */
.brand-logo {
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    font-weight: 900;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    z-index: 1001;
    /* Eliminăm culorile globale, folosim clasele specifice de mai jos */
}

/* Definire Culori Tricolor Permanente */
.logo-part-blue { 
    color: var(--primary-blue); 
}
.logo-part-yellow { 
    color: var(--secondary-gold); 
}
.logo-part-red { 
    color: #ef4444; /* Roșu profesional */
}

/* Asigurare vizibilitate pe fundalul dark (top page) 
   Adăugăm un text-shadow alb discret pentru a scoate în evidență albastrul pe fundalul albastru închis */
.main-header:not(.scrolled) .brand-logo span {
    text-shadow: 0 2px 4px rgba(0,0,0,0.5), 0 0 1px rgba(255,255,255,0.2);
}

/* Nav Link */
.nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.9);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    transition: all 0.2s;
}
.nav-link:hover {
    color: white;
    background-color: rgba(255,255,255,0.15);
}
.main-header.scrolled .nav-link { color: #475569; }
.main-header.scrolled .nav-link.active { color: var(--primary-blue); background-color: #eff6ff; }
.main-header.scrolled .nav-link:hover { color: var(--primary-blue); background-color: #eff6ff; font-weight: 700; }

/* Mobile Menu Button */
#menu-btn {
    color: white;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 44px;
    height: 44px;
    z-index: 1001;
}
#menu-btn:hover { background: rgba(255,255,255,0.25); }
.main-header.scrolled #menu-btn { color: #334155; background: white; border-color: #e2e8f0; }

/* Google Login Button */
.btn-google-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background-color: white;
    color: var(--text-dark);
    padding: 0.6rem 1.2rem;
    border-radius: var(--btn-radius);
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    white-space: nowrap;
    height: 44px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.btn-google-login svg { width: 18px; height: 18px; }
.main-header.scrolled .btn-google-login { border: 1px solid #e2e8f0; }

/* Mobile Menu Overlay */
#mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw; /* Full viewport width */
    height: 100vh; /* Full viewport height */
    background-color: #ffffff !important;
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    gap: 2rem;
    overflow-y: auto; /* Permite scroll vertical în meniu dacă ecranul e mic */
}
#mobile-menu .nav-link {
    color: var(--text-dark);
    font-size: 1.5rem;
    width: 100%;
    text-align: center;
    padding: 0.5rem 1rem;
}

/* =========================================
   4. HERO SECTION (RESPONSIVE)
   ========================================= */
.hero-section {
    position: relative;
    color: white;
    width: 100%;
    min-height: 100vh; /* Umple ecranul vertical */
    /* Fallback pentru mobile browsers cu bara de navigare dinamica */
    min-height: 100svh; 
    padding-top: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-dark);
    overflow: hidden;
}

.hero-bg img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 58, 138, 0.8) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 900px;
    text-align: center;
    padding: 2rem 1rem;
}

/* Typography Fluid */
.hero-title {
    /* Clamp: minim 2.2rem, preferat 5vw, maxim 4.5rem */
    font-size: clamp(2.2rem, 6vw, 4.5rem); 
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 1.2rem;
    line-height: 1.1;
}

.hero-description {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: #e2e8f0;
    margin: 0 auto 2.5rem auto;
    line-height: 1.6;
    max-width: 600px;
    padding: 0 1rem;
}

/* =========================================
   5. ELEMENTE UI & SECTIUNI
   ========================================= */
.section-padding { padding: var(--section-padding) 0; }
.section-bg-white { background-color: #ffffff; }
.section-bg-gray { background-color: #f8fafc; border-top: 1px solid #f1f5f9; border-bottom: 1px solid #f1f5f9; }
.section-bg-blue-light { background-color: #eff6ff; border-top: 1px solid #dbeafe; border-bottom: 1px solid #dbeafe; }

.section-header { 
    text-align: center; 
    margin-bottom: clamp(2.5rem, 5vw, 4rem); 
    max-width: 800px; 
    margin-left: auto; 
    margin-right: auto; 
}
.section-title { 
    font-size: clamp(1.8rem, 4vw, 2.5rem); 
    font-weight: 800; 
    color: #0f172a; 
    margin-bottom: 1rem; 
    letter-spacing: -0.5px; 
}
.section-subtitle { 
    font-size: clamp(1rem, 2vw, 1.1rem); 
    color: #64748b; 
    line-height: 1.6; 
}

/* Header Pagini Interne (ex: Servicii) */
.page-header-blue {
    background: #1e3a8a;
    padding: 7rem 0 4rem 0; /* Padding top mai mare pentru a compensa headerul fixed */
    text-align: center;
    color: white;
    width: 100%;
}
.page-header-title {
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 0.8rem;
}
.page-header-desc {
    color: #cbd5e1;
    max-width: 700px;
    margin: 0 auto;
    font-size: clamp(1rem, 2vw, 1.1rem);
    padding: 0 1rem;
}

/* Butoane */
.btn-primary, .btn-blue {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    border-radius: var(--btn-radius);
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    min-height: 50px;
    text-align: center;
}
.btn-primary {
    background: linear-gradient(to right, #fbbf24, #f59e0b);
    color: #0f172a;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4); }
.btn-blue {
    background-color: var(--primary-blue);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}
.btn-blue:hover { background-color: #1d4ed8; transform: translateY(-2px); }

/* Carduri */
.service-card {
    background: white; 
    padding: clamp(1.5rem, 3vw, 2.5rem); 
    border-radius: 16px;
    border: 1px solid #f1f5f9; 
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.03);
    display: flex; 
    flex-direction: column; 
    height: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
    align-items: flex-start;
}
.service-card:hover { transform: translateY(-5px); box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.1); border-color: #bfdbfe; }
.card-icon { 
    font-size: 2.5rem; margin-bottom: 1.5rem; background: #eff6ff; width: 70px; height: 70px; 
    display: flex; align-items: center; justify-content: center; border-radius: 16px; color: var(--primary-blue); 
    flex-shrink: 0;
}
.card-title { font-size: 1.35rem; font-weight: 800; margin-bottom: 0.75rem; color: #0f172a; }
.card-text { font-size: 1rem; color: #64748b; margin-bottom: 1.5rem; flex-grow: 1; line-height: 1.6; }
.card-link { color: var(--primary-blue); font-weight: 700; font-size: 0.95rem; display: inline-flex; align-items: center; margin-top: auto; border-bottom: 2px solid transparent; transition: border 0.3s; }
.card-link:hover { border-bottom-color: var(--primary-blue); }

/* NOU: Stiluri pentru Serviciile Afișate Dinamic */
.services-list-wrapper {
    display: grid;
    gap: 2rem;
    padding-top: 2rem;
}

/* Mod de vizualizare GRID (Implicit) */
.services-list-wrapper.view-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.services-list-wrapper.view-grid .service-card-dynamic {
    display: flex;
    flex-direction: column;
}
.services-list-wrapper.view-grid .service-card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.services-list-wrapper.view-grid .service-card-info {
    flex-grow: 1;
}
.services-list-wrapper.view-grid .service-image-container {
    height: 200px;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    margin: -1.5rem -1.5rem 1.5rem -1.5rem; /* Ajustează padding-ul interior */
}

/* Mod de vizualizare LISTĂ (Similar OLX) */
.services-list-wrapper.view-list {
    grid-template-columns: 1fr;
    max-width: 1000px; /* Limitează lățimea listei pentru lizibilitate */
    margin-left: auto;
    margin-right: auto;
}
.services-list-wrapper.view-list .service-card-dynamic {
    display: grid;
    grid-template-columns: 150px 1fr 150px; /* Imagine | Conținut | Preț/Detalii */
    gap: 1.5rem;
    padding: 1.5rem;
    align-items: center;
    min-height: 150px;
}
@media (max-width: 768px) {
    .services-list-wrapper.view-list .service-card-dynamic {
        grid-template-columns: 1fr; /* Pe mobil, revine la coloană */
        text-align: center;
    }
    .services-list-wrapper.view-list .service-image-container {
        max-width: 100%;
        margin: 0 auto 1rem auto;
    }
    .services-list-wrapper.view-list .service-price-area {
        margin-top: 1rem;
        text-align: center;
    }
}

.service-card-dynamic {
    background: white; 
    border-radius: 12px;
    border: 1px solid #e2e8f0; 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}
.service-card-dynamic:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}
.service-image-container {
    width: 100%;
    height: 100%;
    background: #e2e8f0; /* Placeholder culoare */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.service-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Formular */
.contact-centered-wrapper {
    max-width: 900px; 
    margin: 0 auto; 
    background: white; 
    padding: clamp(1.5rem, 4vw, 4rem); /* Padding fluid */
    border-radius: 24px; 
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15); 
    border: 1px solid #e2e8f0;
    width: 100%;
}
.form-label { font-size: 0.9rem; font-weight: 700; color: #334155; margin-bottom: 0.5rem; display: block; text-transform: uppercase; letter-spacing: 0.5px; }
.form-control { 
    width: 100%; 
    padding: 1rem 1.2rem; 
    border: 1px solid #cbd5e1; 
    border-radius: 12px; 
    font-size: 1rem; 
    background-color: #f8fafc; 
    transition: all 0.2s; 
}
.form-control:focus { background-color: white; border-color: #3b82f6; outline: none; box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1); }

/* Footer */
.footer-main { 
    background-color: #0f172a; 
    color: #94a3b8; 
    padding: 6rem 0 2rem 0; 
    font-size: 0.95rem; 
    width: 100%;
}
.footer-heading { color: white; font-size: 1.1rem; font-weight: 700; margin-bottom: 1.5rem; }
.footer-link { display: block; margin-bottom: 0.8rem; color: #cbd5e1; transition: color 0.2s; }
.footer-link:hover { color: white; transform: translateX(5px); display:inline-block; }

/* Clase Utilitare CSS */
.text-white { color: white !important; }
.text-highlight { color: #fbbf24; }
.text-blue { color: var(--primary-blue); }
.text-slate-900 { color: #0f172a; }
.img-fluid-rounded { 
    border-radius: 24px; 
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.2);
    width: 100%;
    height: auto;
}
.badge-pill {
    display: inline-block; background: #2563eb; color: white; 
    padding: 0.4rem 1.2rem; border-radius: 50px; 
    font-size: 0.85rem; font-weight: 700; margin-bottom: 1.5rem;
}

/* =========================================
   6. UTILITY RESPONSIVE (Pentru Tabele)
   ========================================= */

.responsive-table-wrapper {
    width: 100%;
    /* Foarte important: activează scroll-ul orizontal DOAR pentru elementul tabel, nu pentru pagină */
    overflow-x: auto; 
    -webkit-overflow-scrolling: touch; /* Îmbunătățește performanța scroll-ului pe iOS */
}

/* =========================================
   7. STILURI SPECIFICE PENTRU PANEL/DASHBOARD
   ========================================= */

/* Compactarea Secțiunilor */
.section-padding-compact {
    /* Folosim o variantă mai mică de padding vertical */
    padding: clamp(2rem, 6vw, 4rem) 0; 
}

/* Stiluri pentru Cardurile de Performanță (Agent Panel) */
.stat-card-compact {
    padding: clamp(1rem, 2vw, 1.5rem); 
    border-radius: 12px;
    /* Reducem umbra pentru un aspect mai "plat" */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05); 
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    transition: transform 0.2s;
}
.stat-card-compact h3 {
    font-size: clamp(1.8rem, 4vw, 2.2rem); /* Font fluid și mai mic */
    margin-bottom: 0.5rem;
}
.stat-card-compact p {
    font-size: 0.9rem;
}

/* Stiluri pentru Meniul Admin pe Desktop */
@media (min-width: 900px) {
    /* Eliminăm vechile stiluri de sidebar pentru a folosi flexbox */
    .admin-menu a.footer-link {
        padding: 0.5rem 0.5rem; /* Padding redus */
        font-size: 0.95rem; 
        margin-bottom: 0.5rem; /* Spațiu redus */
    }
}

/* NOU: Meniul Orizontal Admin (doar pe desktop) */
.admin-menu-horizontal {
    display: flex;
    /* Permite scroll orizontal doar in meniu, daca elementele depasesc latimea */
    overflow-x: auto; 
    -webkit-overflow-scrolling: touch;
    white-space: nowrap; /* Mentine elementele pe un singur rand */
    padding-bottom: 10px; /* Spațiu pentru scrollbar */
    margin-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
}
/* NOU: Stilul link-ului din meniul orizontal */
.admin-menu-horizontal .nav-link-admin {
    display: block;
    padding: 0.75rem 1.5rem;
    color: #64748b;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    margin-right: 0.5rem;
}
.admin-menu-horizontal .nav-link-admin:hover {
    color: var(--primary-blue);
    background-color: #f1f5f9;
}
.admin-menu-horizontal .nav-link-admin.active {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
    font-weight: 700;
}

/* NOU: Containerul principal de conținut Admin */
.admin-content-wrapper {
    /* Calculeaza inaltimea disponibila pentru a umple spatiul ramas */
    height: var(--content-area-height); 
    /* Permite scroll vertical in tot acest container (cu exceptia menului orizontal) */
    overflow-y: auto; 
    padding: 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* NOU: Ajusteaza padding-ul sectiunii principale pentru a functiona cu inaltimea calculata */
.panel-main-section {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    /* Ajusteaza min-height pentru a compensa lipsa footerului si a ocupa spatiul ramas */
    min-height: calc(100vh - 80px - 7rem); /* 100vh - header - page-header-blue bottom padding */
    display: flex;
    flex-direction: column;
}
.panel-main-section .layout-container {
    flex-grow: 1; /* Permite containerului sa se extinda vertical */
    display: flex;
    flex-direction: column;
}

/* Stiluri pentru Galerie Detalii Servicii */
.gallery-thumbnail-grid {
    display: flex; /* Asigură așezarea elementelor pe un singur rând */
    gap: 10px;
    overflow-x: auto; /* PERMITE SCROLL ORIZONTAL */
    padding-bottom: 10px;
    margin-top: 1rem;
}
.gallery-thumbnail {
    flex-shrink: 0; /* Important: previne micșorarea miniaturilor */
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border 0.2s, opacity 0.2s;
    opacity: 0.7;
}
.gallery-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gallery-thumbnail.active {
    border-color: var(--primary-blue);
    opacity: 1;
}

/* Stil pentru afisarea pretului in detalii */
.price-tag-detail {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    background: #e0f2fe; /* blue-100 */
    color: var(--primary-dark);
}

/* Titluri mai elegante pe pagina de detaliu */
.section-subtitle-detail {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.5rem;
}

/* Stil pentru containerul principal de imagine */
.main-image-container-detail {
    background: #f1f5f9; 
    border-radius: 16px; 
    overflow: hidden; 
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    min-height: 400px;
    display: flex; 
    flex-direction: column;
}
.main-image-detail {
    width: 100%; 
    height: 100%; /* Important pentru a umple containerul */
    object-fit: cover; 
    display: block;
    transition: opacity 0.4s ease; /* Pentru o schimbare mai elegantă a pozei */
}

/* Stil pentru a face descrierea mai lizibila in coloana dreapta */
.description-text-detail {
    font-size: 1.1rem; 
    color: #475569; 
    line-height: 1.8;
}

/* =========================================
   8. NEW: ABOUT US GRID & LIGHTBOX
   ========================================= */

/* Structura Grid-ului de imagini */
.about-gallery-grid {
    display: grid;
    grid-template-columns: 2fr 1fr; /* 2 părți stânga, 1 parte dreapta */
    gap: 1rem;
    position: relative;
    z-index: 2;
}

.about-photo-main {
    position: relative;
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    cursor: pointer;
}

.about-photo-secondary-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 400px;
}

.about-photo-small {
    flex: 1;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    cursor: pointer;
}

.about-photo-main img, 
.about-photo-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

/* Hover Effects */
.about-photo-main:hover img, 
.about-photo-small:hover img {
    transform: scale(1.05);
}

/* Indicator de zoom */
.zoom-indicator {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(0,0,0,0.5);
    padding: 0.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}
.about-photo-main:hover .zoom-indicator {
    opacity: 1;
}

/* Responsive Grid */
@media (max-width: 768px) {
    .about-gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
    }
    .about-photo-main {
        height: 300px;
    }
    .about-photo-secondary-col {
        flex-direction: row;
        height: 150px;
    }
}

/* Lightbox Modal */
.lightbox-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: fadeIn 0.3s forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(255,255,255,0.1);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lightbox-content.active {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 10000;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* =========================================
   9. NEW: FORUM & DISCUSSIONS
   ========================================= */

/* Layout Forum */
.forum-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.forum-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Card Subiect Listă */
.topic-list-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.topic-list-item:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
    transform: translateX(5px);
}
.topic-main-info h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--text-dark);
}
.topic-meta {
    font-size: 0.85rem;
    color: #64748b;
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Pagina Detaliu Subiect */
.topic-original-post {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    margin-bottom: 3rem;
    border-left: 5px solid var(--primary-blue);
}

/* Răspunsuri */
.reply-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
    margin-bottom: 1.5rem;
    position: relative;
}

.reply-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.reply-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

/* --- ADMIN HIGHLIGHT (OFFICIAL RESPONSE) --- */
.reply-card.admin-official {
    background: #f0f9ff; /* Albastru foarte deschis */
    border: 2px solid var(--primary-blue);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.15);
}

.reply-card.admin-official::after {
    content: "RĂSPUNS OFICIAL";
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--primary-blue);
    color: white;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.admin-badge {
    background: var(--secondary-gold);
    color: var(--text-dark);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 0.5rem;
    text-transform: uppercase;
}

/* Formular nou subiect/raspuns */
.forum-form-box {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px dashed #cbd5e1;
    margin-top: 2rem;
}

/* =========================================
   10. SCROLL ORIZONTAL SERVICII (INDEX)
   ========================================= */
.horizontal-scroll-wrapper {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding: 1rem 0.5rem 2.5rem 0.5rem; /* Padding actualizat pentru a se potrivi cu recenziile */
    margin-bottom: 0; /* Margin-ul este gestionat de containerul părinte sau indicații */
    /* Ascunde scrollbar standard dar permite scroll */
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
    scroll-snap-type: x mandatory; /* Adăugat scroll snap */
    -webkit-overflow-scrolling: touch; /* Adăugat pentru touch smooth */
}
.horizontal-scroll-wrapper::-webkit-scrollbar {
    height: 8px; /* Puțin mai mare, ca la recenzii */
}
.horizontal-scroll-wrapper::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 10px;
}

/* Clasă ajutătoare pentru textul de indicație scroll (Servicii + Recenzii) */
.scroll-indication {
    text-align: center;
    font-size: 0.75rem; /* text-xs */
    color: #94a3b8; /* text-slate-400 */
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

/* Card mai mic pentru scroll - ACTUALIZAT pentru a se potrivi stilului recenziilor */
.service-card-min {
    flex: 0 0 300px; /* Lățime fixă card (ușor crescută) */
    scroll-snap-align: center; /* Adăugat snap align */
    background: white;
    border: 1px solid #f1f5f9;
    border-radius: 20px; /* Rotunjire mai mare, ca la recenzii */
    padding: 2rem; /* Padding mai generos, ca la recenzii */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Aliniere verticală similară */
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02); /* Umbră inițială subtilă */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card-min:hover {
    transform: translateY(-5px);
    border-color: #e2e8f0; /* Bordură la hover */
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.08); /* Umbră mai puternică la hover */
}
.service-card-min .card-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.service-card-min .card-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}
.service-card-min .card-text {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* =========================================
   12. REVIEWS HORIZONTAL SCROLL (INDEX) & PAGINA NOUA
   ========================================= */

/* A. Container Scroll Orizontal (Index) */
.reviews-scroll-wrapper {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding: 1rem 0.5rem 2.5rem 0.5rem; /* Padding jos pt umbra */
    scroll-snap-type: x mandatory;
    /* Ascundere scrollbar dar funcționalitate păstrată */
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
    -webkit-overflow-scrolling: touch;
}

.reviews-scroll-wrapper::-webkit-scrollbar {
    height: 8px;
}
.reviews-scroll-wrapper::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 10px;
}

.review-card-scroll {
    flex: 0 0 320px; /* Lățime fixă card */
    scroll-snap-align: center;
    background: white;
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: auto; /* Înălțime fluidă */
}

.review-card-scroll:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.08);
    border-color: #e2e8f0;
}

/* Link Badge animat */
a.stats-badge-link {
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s;
}
a.stats-badge-link:hover {
    transform: scale(1.05);
}
a.stats-badge-link .stats-badge {
    cursor: pointer;
    /* Adăugăm un indiciu vizual că e clickabil */
    border: 2px solid transparent;
    transition: border-color 0.2s;
}
a.stats-badge-link:hover .stats-badge {
    border-color: #bfdbfe; /* Albastru deschis */
    background-color: #f8fafc;
}

/* B. Pagina Dedicată Recenzii (Grid) */
.reviews-page-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    padding: 6rem 0 4rem 0;
    color: white;
    text-align: center;
    margin-bottom: 3rem;
}

.reviews-grid-full {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

/* Card Review pe Pagina Dedicată */
.review-card-full {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.review-quote-icon {
    font-family: serif;
    font-size: 3rem;
    color: #e2e8f0;
    line-height: 1;
    margin-bottom: -1rem;
}