/* =========================================================================
   Neuro Craiova — stiluri suplimentare (design modern clinica de neurologie)
   Se incarca DUPA main.min.css. Foloseste variabilele temei.
   ========================================================================= */

:root{
	/* Registru medical „roșiatic": accentul principal devine roșu clinic, iar
	   secundarul un roșu-coral cald. Aceste variabile SUPRASCRIU main.css/
	   main.min.css (neuro.css se încarcă ultimul), deci întreg site-ul trece pe
	   roșu indiferent de CSS-ul minificat/critic. */
	--ed-blue:#c62828;         /* accent principal -> roșu medical */
	--ed-blue-600:#a01818;     /* variantă închisă (linkuri, hover) */
	--ed-blue-050:#fbe9e9;     /* tentă foarte deschisă (fundaluri) */
	--ed-bg-blue:#fdeff0;      /* fundal secțiuni -> roz foarte pal */
	--ed-magenta:#e5484d;      /* partenerul de gradient -> roșu-coral */
	--ed-gold:#b8862b;         /* auriu cald, complementar */
	--ed-teal:#c62828;         /* compat. neuro.css (fostul teal -> roșu) */
	--ed-teal-050:#fbe9e9;
	--ed-teal-700:#a01818;
	--ed-urgent:#b3261e;       /* urgențe -> roșu intens, distinct */
	--ed-urgent-bg:#fdecec;
}

/* ---- utilitare sectiune ---- */
.ed-sec{padding:clamp(2.5rem,6vw,4.5rem) 0}
.ed-sec--soft{background:var(--ed-bg-soft)}
.ed-sec__head{max-width:760px;margin:0 auto 2rem;text-align:center}
.ed-sec__eyebrow{display:inline-block;font-weight:700;letter-spacing:.06em;text-transform:uppercase;font-size:.78rem;color:var(--ed-teal-700);margin-bottom:.5rem}
.ed-sec__title{font-family:var(--ed-font-display,inherit);font-size:clamp(1.5rem,3.5vw,2.15rem);line-height:1.15;color:var(--ed-navy-800);margin:0 0 .6rem}
.ed-sec__lead{color:var(--ed-muted);font-size:1.05rem;margin:0}
.ed-sec__cta{text-align:center;margin-top:2rem}

/* ---- grid carduri (afectiuni + blog) ---- */
.ed-cardgrid{display:grid;gap:1.25rem;grid-template-columns:repeat(auto-fill,minmax(260px,1fr))}

.ed-tile{position:relative;display:flex;flex-direction:column;background:var(--ed-white,#fff);border:1px solid var(--ed-border,#e6ebf3);border-radius:var(--ed-radius,16px);padding:1.4rem 1.3rem;box-shadow:var(--ed-shadow-card,0 6px 24px rgba(16,32,64,.06));transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;overflow:hidden}
.ed-tile:hover{transform:translateY(-4px);box-shadow:var(--ed-shadow-hover,0 14px 40px rgba(16,32,64,.12));border-color:var(--ed-teal)}
.ed-tile__icon{font-size:1.9rem;line-height:1;margin-bottom:.7rem}
.ed-tile__title{font-size:1.15rem;margin:0 0 .5rem;color:var(--ed-navy-800);font-weight:700}
.ed-tile__title a{color:inherit;text-decoration:none}
.ed-tile__text{color:var(--ed-muted);font-size:.95rem;margin:0 0 1rem;flex:1}
.ed-tile__link{display:inline-flex;align-items:center;gap:.35rem;font-weight:600;color:var(--ed-teal-700);text-decoration:none;margin-top:auto}
.ed-tile__link::after{content:"→";transition:transform .18s ease}
.ed-tile:hover .ed-tile__link::after{transform:translateX(4px)}
.ed-tile__cover{display:block;margin:-1.4rem -1.3rem 1rem;aspect-ratio:16/9;overflow:hidden;background:var(--ed-bg-soft)}
.ed-tile__cover img{width:100%;height:100%;object-fit:cover;display:block}
.ed-tile__badge{align-self:flex-start;font-size:.72rem;font-weight:700;letter-spacing:.03em;text-transform:uppercase;color:var(--ed-teal-700);background:var(--ed-teal-050);padding:.25rem .6rem;border-radius:999px;margin-bottom:.7rem}
.ed-tile__meta{font-size:.82rem;color:var(--ed-muted);margin:.2rem 0 .6rem}

/* ---- buton ---- */
.ed-btn{display:inline-flex;align-items:center;gap:.5rem;font-weight:700;text-decoration:none;padding:.85rem 1.6rem;border-radius:999px;transition:transform .15s ease,box-shadow .15s ease,background .15s ease;cursor:pointer;border:0}
.ed-btn--primary{background:var(--ed-blue);color:#fff;box-shadow:0 8px 22px rgba(198,40,40,.28)}
.ed-btn--primary:hover{transform:translateY(-2px);box-shadow:0 12px 30px rgba(198,40,40,.36)}
.ed-btn--teal{background:var(--ed-teal);color:#fff}
.ed-btn--ghost{background:transparent;color:var(--ed-navy-800);border:2px solid var(--ed-border)}
.ed-btn--ghost:hover{border-color:var(--ed-teal);color:var(--ed-teal-700)}

/* =========================================================================
   PAGINA AFECTIUNE (single)
   ========================================================================= */
.ed-af{padding:clamp(2rem,5vw,3.5rem) 0}
.ed-af__wrap{max-width:820px;margin:0 auto}
.ed-af__hero{display:flex;gap:1rem;align-items:flex-start;margin-bottom:1.5rem}
.ed-af__hero-icon{font-size:2.6rem;line-height:1}
.ed-af__title{font-family:var(--ed-font-display,inherit);font-size:clamp(1.7rem,4vw,2.5rem);line-height:1.12;color:var(--ed-navy-900);margin:0 0 .4rem}
.ed-af__lead{font-size:1.12rem;color:var(--ed-ink);margin:0}
.ed-af__block{margin:2rem 0}
.ed-af__h2{font-size:1.35rem;color:var(--ed-navy-800);margin:0 0 .8rem;padding-bottom:.4rem;border-bottom:2px solid var(--ed-teal-050)}
.ed-af__list{list-style:none;padding:0;margin:0;display:grid;gap:.55rem}
.ed-af__list li{position:relative;padding-left:1.7rem;color:var(--ed-ink)}
.ed-af__list li::before{content:"";position:absolute;left:0;top:.5em;width:.6rem;height:.6rem;border-radius:50%;background:var(--ed-teal)}
.ed-af__urgent{background:var(--ed-urgent-bg);border-left:4px solid var(--ed-urgent);border-radius:12px;padding:1.2rem 1.3rem}
.ed-af__urgent .ed-af__h2{color:var(--ed-urgent);border:0;padding:0;margin-bottom:.6rem}
.ed-af__urgent li::before{background:var(--ed-urgent)}
.ed-af__services{display:flex;flex-wrap:wrap;gap:.6rem;margin-top:.4rem}
.ed-af__service-link{display:inline-flex;align-items:center;gap:.4rem;background:var(--ed-teal-050);color:var(--ed-teal-700);font-weight:600;text-decoration:none;padding:.55rem 1rem;border-radius:999px;transition:background .15s ease}
.ed-af__service-link:hover{background:var(--ed-teal);color:#fff}
.ed-af__reviewed{font-size:.85rem;color:var(--ed-muted);margin-top:2rem;padding-top:1rem;border-top:1px solid var(--ed-border)}
.ed-af__cta{margin-top:2rem;background:linear-gradient(135deg,var(--ed-navy-800),var(--ed-navy-600));color:#fff;border-radius:var(--ed-radius,16px);padding:1.8rem;text-align:center}
.ed-af__cta h2{color:#fff;margin:0 0 .5rem;font-size:1.35rem}
.ed-af__cta p{color:rgba(255,255,255,.85);margin:0 0 1.1rem}
.ed-af__disclaimer{font-size:.82rem;color:var(--ed-muted);font-style:italic;margin-top:1.5rem}

/* catalog afectiuni (listing) */
.ed-afcat{padding:clamp(2rem,5vw,3.5rem) 0}

/* =========================================================================
   BLOG modern (listing + single)
   ========================================================================= */
.ed-bloglist{padding:clamp(2rem,5vw,3.5rem) 0}
.ed-blog-filters{display:flex;flex-wrap:wrap;gap:.5rem;justify-content:center;margin-bottom:2rem}
.ed-blog-filters a{font-weight:600;font-size:.9rem;color:var(--ed-navy-700);text-decoration:none;padding:.45rem 1rem;border-radius:999px;border:1px solid var(--ed-border);transition:all .15s ease}
.ed-blog-filters a:hover,.ed-blog-filters a.is-active{background:var(--ed-navy-800);color:#fff;border-color:var(--ed-navy-800)}

.ed-article{max-width:760px;margin:0 auto;padding:clamp(1.5rem,4vw,3rem) 0}
.ed-article__head{margin-bottom:1.5rem}
.ed-article__cat{font-size:.78rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--ed-teal-700)}
.ed-article__title{font-family:var(--ed-font-display,inherit);font-size:clamp(1.7rem,4.2vw,2.6rem);line-height:1.12;color:var(--ed-navy-900);margin:.4rem 0 .8rem}
.ed-article__meta{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem .9rem;color:var(--ed-muted);font-size:.9rem}
.ed-article__cover{margin:1.5rem 0;border-radius:var(--ed-radius,16px);overflow:hidden}
.ed-article__cover img{width:100%;height:auto;display:block}
.ed-article__body{font-size:1.05rem;line-height:1.75;color:var(--ed-ink)}
.ed-article__body h2{font-size:1.5rem;color:var(--ed-navy-800);margin:2rem 0 .8rem}
.ed-article__body h3{font-size:1.2rem;color:var(--ed-navy-700);margin:1.6rem 0 .6rem}
.ed-article__body p{margin:0 0 1.1rem}
.ed-article__body a{color:var(--ed-blue-600);text-decoration:underline;text-underline-offset:2px}
.ed-article__body ul,.ed-article__body ol{margin:0 0 1.2rem;padding-left:1.3rem}
.ed-article__body li{margin:.4rem 0}
.ed-article__body blockquote{margin:1.4rem 0;padding:1rem 1.3rem;background:var(--ed-teal-050);border-left:4px solid var(--ed-teal);border-radius:10px;color:var(--ed-navy-800)}
.ed-article__body table{width:100%;border-collapse:collapse;margin:1.4rem 0;font-size:.95rem}
.ed-article__body th,.ed-article__body td{border:1px solid var(--ed-border);padding:.65rem .8rem;text-align:left;vertical-align:top}
.ed-article__body thead th{background:var(--ed-navy-800);color:#fff;font-weight:600}
.ed-article__body tbody tr:nth-child(even){background:var(--ed-bg-soft)}

.ed-author{display:flex;gap:1rem;align-items:center;margin:2.5rem 0;padding:1.3rem;background:var(--ed-bg-soft);border-radius:var(--ed-radius,16px);border:1px solid var(--ed-border)}
.ed-author__avatar{flex:0 0 auto;width:56px;height:56px;border-radius:50%;background:var(--ed-navy-800);color:#fff;display:grid;place-items:center;font-weight:700;font-size:1.2rem}
.ed-author__name{font-weight:700;color:var(--ed-navy-800);margin:0}
.ed-author__role{font-size:.88rem;color:var(--ed-muted);margin:.15rem 0 0}

.ed-article__cta{margin-top:2.5rem;background:linear-gradient(135deg,var(--ed-navy-800),var(--ed-navy-600));color:#fff;border-radius:var(--ed-radius,16px);padding:1.8rem;text-align:center}
.ed-article__cta h2{color:#fff;margin:0 0 .5rem;border:0}
.ed-article__cta p{color:rgba(255,255,255,.85);margin:0 0 1.1rem}

/* =========================================================================
   HARTA (contact)
   ========================================================================= */
.ed-map{position:relative;border-radius:var(--ed-radius,16px);overflow:hidden;box-shadow:var(--ed-shadow-card,0 6px 24px rgba(16,32,64,.06));min-height:340px}
.ed-map iframe{width:100%;height:100%;min-height:340px;border:0;display:block}
.ed-map__nav{position:absolute;right:12px;bottom:12px}

@media (max-width:640px){
	.ed-af__hero{flex-direction:column;gap:.4rem}
	.ed-author{flex-direction:column;text-align:center}
}

/* =========================================================================
   NEURO CRAIOVA — corecții v2 (meniu, echipă 2 medici, cabinet)
   Se încarcă ULTIMUL (după main.min.css), deci suprascrie sigur.
   ========================================================================= */

/* ---- MENIU DESKTOP: mega-meniu + submeniuri care merg fără „gap" de hover
        și fără să iasă din ecran ---- */
@media (min-width: 861px){
	.ed-nav{ position: relative; }

	/* Panourile se lipesc de bara de meniu (fără decalaj vertical). */
	.ed-menu .sub-menu{ margin-top: 0; }
	.ed-menu .ed-mega-panel{ margin-top: 0; }

	/* Mega-panelul se ancorează la NAV (nu la element), deci rămâne mereu în
	   ecran, indiferent de lățimea ferestrei. */
	.ed-menu > li.ed-mega{ position: static; }
	.ed-menu .ed-mega-panel{
		top: 100%; left: auto; right: 0;
		width: min(880px, calc(100vw - 32px)); max-width: calc(100vw - 24px);
	}

	/* Punte invizibilă de hover sub dropdown-urile clasice, ca mouse-ul să nu
	   piardă hover-ul când coboară de pe link spre submeniu. */
	.ed-menu > li.menu-item-has-children{ position: relative; }
	.ed-menu > li.menu-item-has-children::after{
		content: ""; position: absolute; left: 0; right: 0; top: 100%;
		height: 12px; background: transparent; display: none;
	}
	.ed-menu > li.menu-item-has-children:hover::after{ display: block; }

	/* Submeniurile din partea dreaptă a barei se deschid spre stânga. */
	.ed-menu > li.menu-item-has-children:nth-last-child(-n+2) > .sub-menu{
		left: auto; right: 0;
	}
}

/* ---- PAGINA ECHIPĂ: doi medici la ACELAȘI NIVEL, unul lângă celălalt ---- */
.ed-team-grid--pair{ max-width: 940px; margin-inline: auto; align-items: start; }
.ed-team-card--pair .ed-team-avatar-sm{ width: 150px; height: 150px; }
@media (max-width: 720px){
	.ed-team-grid--pair{ max-width: 520px; }
}

/* ---- HOME: grilă statică centrată de medici (2–3) în loc de carusel ---- */
.edc-team-grid{
	display: grid; gap: 24px; justify-content: center; align-items: start;
	grid-template-columns: repeat(2, minmax(0, 300px));
}
.edc-team-grid--n1{ grid-template-columns: minmax(0, 320px); }
.edc-team-grid--n3{ grid-template-columns: repeat(3, minmax(0, 280px)); }
.edc-team-grid .edc-team-card{ flex: initial; width: auto; }
@media (max-width: 640px){
	.edc-team-grid,
	.edc-team-grid--n1,
	.edc-team-grid--n3{ grid-template-columns: minmax(0, 340px); }
}

/* ---- MOBIL: butonul de meniu (hamburger) mereu vizibil ----
   Pe ecrane mici, brand-ul (logo + badge „Contract CAS Dolj") era prea lat și
   împingea burger-ul în afara ecranului. Ascundem badge-ul pe mobil, lăsăm
   brand-ul să se micșoreze și fixăm burger-ul la dreapta. */
@media (max-width: 860px){
	.ed-header__inner{ gap: 12px; }
	.ed-header__brand{ flex: 0 1 auto; min-width: 0; overflow: hidden; }
	.ed-header__cas-badge{ display: none !important; }
	.ed-header .ed-burger{ display: flex !important; flex: 0 0 auto; margin-left: auto; }
}
@media (max-width: 480px){
	.ed-header__brand img,
	.ed-logo-link img{ max-height: 40px; }
}

/* ---- Secțiune „Cabinetul nostru" (foto din cabinet) ---- */
.ed-cabinet{ padding: var(--ed-section) 0; background: var(--ed-bg-soft); }
.ed-cabinet__inner{ display: grid; grid-template-columns: 1fr 1.1fr; gap: 36px; align-items: center; }
.ed-cabinet__text .ed-section-title{ text-align: left; }
.ed-cabinet__text .ed-section-lead{ text-align: left; margin-inline: 0; }
.ed-cabinet__media{ margin: 0; border-radius: var(--ed-radius-lg); overflow: hidden; box-shadow: var(--ed-shadow-card); }
.ed-cabinet__media img{ width: 100%; height: auto; display: block; }
@media (max-width: 760px){
	.ed-cabinet__inner{ grid-template-columns: 1fr; gap: 20px; }
}

/* =========================================================================
   NEURO CRAIOVA — corecții v3 (paletă caldă, competențe, footer ANPC, blog)
   ========================================================================= */

/* Fundal secțiuni ușor cald, coerent cu accentul roșu. */
:root{ --ed-bg-soft:#faf4f5; }

/* ---- Competențe / etichete servicii: se încadrează (fără text tăiat) ---- */
.ed-team-course-tag,
.ed-team-feat__courses .ed-team-course-tag,
.edc-team-card__spec,
.ed-team-spec{
	white-space: normal;
	overflow-wrap: anywhere;
	word-break: break-word;
	line-height: 1.3;
}
.ed-team-feat__courses .ed-team-course-tag{ text-align: center; }

/* ---- Footer: logouri ANPC / SOL (auto) ---- */
.ed-footer__anpc{ display:flex; flex-wrap:wrap; gap:10px; margin-top:16px; }
.ed-footer__anpc a{ display:inline-block; line-height:0; }
.ed-footer__anpc img{ max-width:220px; width:100%; height:auto; border-radius:6px; background:#fff; padding:5px; }

/* ---- Copertă SVG generată pentru articole ---- */
.ed-cover-svg{ display:block; width:100%; height:100%; }
.ed-tile__cover .ed-cover-svg{ width:100%; height:100%; }
.ed-article-hero__media .ed-cover-svg{ width:100%; height:100%; object-fit:cover; }

/* ---- Blog: articol cu bară laterală sticky ---- */
/* Resetăm limitarea .ed-article (760px) — layout-ul își gestionează lățimile. */
.ed-article{ max-width:none; margin:0; padding:0; }
.ed-article-layout{
	display:grid; grid-template-columns:minmax(0,1fr) 320px; gap:44px;
	align-items:start; max-width:1180px; margin-inline:auto;
	padding:36px 24px 8px;
}
.ed-article-layout .ed-article-main{ min-width:0; }
.ed-article-layout .ed-article-body{ max-width:none; }
.ed-article-aside{ min-width:0; }
.ed-article-aside__sticky{ position:sticky; top:96px; display:flex; flex-direction:column; gap:20px; }
.ed-aside-card{ background:var(--ed-white); border:1px solid var(--ed-border); border-radius:var(--ed-radius-lg); padding:20px 20px 22px; box-shadow:var(--ed-shadow-card); }
.ed-aside-card__title{ font-size:1.05rem; margin:0 0 14px; color:var(--ed-navy-800); }
.ed-aside-reco{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:14px; }
.ed-aside-reco__link{ display:grid; grid-template-columns:74px 1fr; gap:12px; align-items:center; text-decoration:none; }
.ed-aside-reco__thumb{ width:74px; height:56px; border-radius:10px; overflow:hidden; background:var(--ed-bg-soft); display:block; }
.ed-aside-reco__thumb img,.ed-aside-reco__thumb .ed-cover-svg{ width:100%; height:100%; object-fit:cover; }
.ed-aside-reco__meta{ display:flex; flex-direction:column; gap:2px; min-width:0; }
.ed-aside-reco__cat{ font-size:.66rem; font-weight:700; text-transform:uppercase; letter-spacing:.04em; color:var(--ed-blue-600); }
.ed-aside-reco__t{ font-size:.92rem; font-weight:600; color:var(--ed-navy-800); line-height:1.3; }
.ed-aside-reco__r{ font-size:.78rem; color:var(--ed-muted); }
.ed-aside-reco__link:hover .ed-aside-reco__t{ color:var(--ed-blue-600); }
.ed-aside-card__all{ display:inline-block; margin-top:14px; font-weight:600; color:var(--ed-blue-600); font-size:.9rem; text-decoration:none; }
.ed-aside-card__all:hover{ text-decoration:underline; }
.ed-aside-card--cta{ background:linear-gradient(160deg,var(--ed-navy-800),var(--ed-navy-600)); border:0; color:#fff; }
.ed-aside-card--cta .ed-aside-card__title{ color:#fff; }
.ed-aside-card__text{ color:rgba(255,255,255,.82); font-size:.92rem; line-height:1.55; margin:0 0 14px; }
.ed-aside-cta__btns{ display:flex; flex-direction:column; gap:10px; }
.ed-aside-cta__btns .ed-btn{ width:100%; }
.ed-aside-cta__phone{ text-align:center; color:#fff; font-weight:700; text-decoration:none; padding-top:2px; }
.ed-article__cta-btns{ display:flex; flex-wrap:wrap; gap:12px; justify-content:center; margin-top:16px; }
@media (max-width:900px){
	.ed-article-layout{ grid-template-columns:1fr; gap:8px; padding:24px 20px 4px; }
	.ed-article-aside__sticky{ position:static; }
}
