/* CSS RESET & VARIABILE */
:root {
    --primary-color: #0056b3; /* Albastru medical */
    --secondary-color: #00a8cc;
    --bg-color: #f8f9fa;
    --text-color: #333;
    --white: #ffffff;
}
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }
body { background-color: var(--bg-color); color: var(--text-color); line-height: 1.6; scroll-behavior: smooth; }

/* HEADER & NAVIGATIE */
header { background: var(--white); box-shadow: 0 2px 10px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 1000; }
nav { display: flex; justify-content: space-between; align-items: center; padding: 20px 5%; max-width: 1200px; margin: 0 auto; }
.logo { font-size: 24px; font-weight: 700; color: var(--primary-color); text-decoration: none; }
.nav-links a { text-decoration: none; color: var(--text-color); margin-left: 20px; font-weight: 600; transition: color 0.3s; }
.nav-links a:hover { color: var(--primary-color); }
.btn-programare { background: var(--primary-color); color: var(--white) !important; padding: 10px 20px; border-radius: 5px; }

/* SECTIUNI COMUNE */
section { padding: 60px 5%; max-width: 1200px; margin: 0 auto; }
h2 { text-align: center; color: var(--primary-color); margin-bottom: 40px; font-size: 32px; }

/* HERO SECTION */
.hero { text-align: center; padding: 100px 5%; background: linear-gradient(rgba(0,86,179,0.8), rgba(0,168,204,0.8)), url('assets/img/gallery/mri1-1.jpg?auto=format&fit=crop&w=1920&q=80') center/cover; color: var(--white); }
.hero h1 { font-size: 48px; margin-bottom: 20px; }
.hero p { font-size: 20px; margin-bottom: 30px; }

/* DEPARTAMENTE (GRID) */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.card { background: var(--white); padding: 30px; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: transform 0.3s; border-top: 5px solid var(--primary-color); }
.card:hover { transform: translateY(-10px); }
.card h3 { color: var(--secondary-color); margin-bottom: 15px; }
.card p { font-size: 14px; margin-bottom: 10px; }
.card strong { color: var(--primary-color); }

/* FORMULARE (PROGRAMARI & SATISFACTIE) */
.form-container { background: var(--white); padding: 40px; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); max-width: 800px; margin: 0 auto; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 600; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 5px; outline: none; }
button[type="submit"] { background: var(--primary-color); color: var(--white); padding: 15px 30px; border: none; border-radius: 5px; cursor: pointer; font-size: 16px; font-weight: bold; width: 100%; transition: 0.3s; }
button[type="submit"]:hover { background: var(--secondary-color); }

/* FAQ (INTREBARI FRECVENTE) */
details { background: var(--white); padding: 15px; border-radius: 5px; margin-bottom: 15px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
summary { font-weight: 600; cursor: pointer; outline: none; color: var(--primary-color); font-size: 18px; }
details p { margin-top: 10px; font-size: 15px; padding-left: 20px; border-left: 3px solid var(--secondary-color); }

/* CONTACT & LOCATII */
.locations-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 30px; }
.location-card { background: var(--white); padding: 20px; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.map-container { width: 100%; height: 250px; margin-top: 15px; border-radius: 5px; overflow: hidden; }
.map-container iframe { width: 100%; height: 100%; border: none; }

/* FOOTER */
footer { background: var(--primary-color); color: var(--white); text-align: center; padding: 20px; margin-top: 40px; }

/* RESPONSIVE */
@media(max-width: 768px) {
    .nav-links { display: none; /* Aici se poate adauga un meniu hamburger via JS */ }
    .hero h1 { font-size: 32px; }
    .locations-grid { grid-template-columns: 1fr; }
}

/* --- STILURI PENTRU CARDURILE CLICKABILE --- */

/* 1. Resetam stilul link-ului care inveleste cardul */
.card-link-wrapper {
    text-decoration: none; /* Scoatem sublinierea textului */
    color: inherit;        /* Pastram culorile originale ale textului din card */
    display: block;        /* Il facem sa respecte grila de elemente */
}

/* 2. Modificam un pic comportamentul cardului la hover pentru a fi mai evident ca e clickabil */
.clickable-card {
    cursor: pointer;
    border: 2px solid transparent; /* Pregatim o margine invizibila */
    transition: all 0.3s ease;
}

.clickable-card:hover {
    border-color: var(--secondary-color); /* Marginea devine albastra la trecerea mouse-ului */
    box-shadow: 0 10px 25px rgba(0, 168, 204, 0.2); /* O umbra mai pronuntata */
}

/* 3. Stilul textului de ghidaj din interiorul cardului */
.vezi-detalii {
    margin-top: 15px; 
    color: var(--primary-color); 
    font-weight: bold;
    font-size: 14px;
    transition: transform 0.3s;
}

.clickable-card:hover .vezi-detalii {
    transform: translateX(5px); /* Sageata se misca putin spre dreapta la hover */
}