/* Spitali Rajonal Durrës — stili i faqes publike */
:root {
  --brand: #0390b2; --brand-d: #00708c; --brand-dd: #0b3c4a; --brand-l: #e3f4fb;
  --text: #1f2a30; --muted: #5b6b73; --line: #dbe4e8; --bg: #fff; --alt: #f4f8fa;
  --radius: 10px; --w: 1160px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: var(--text); background: var(--bg); }
img { max-width: 100%; height: auto; }
a { color: var(--brand-d); }
a:hover { color: var(--brand-dd); }
h1, h2, h3, h4 { line-height: 1.25; color: var(--brand-dd); }
h1 { font-size: clamp(26px, 4vw, 36px); margin: 0 0 18px; }
h2 { font-size: 22px; margin: 32px 0 12px; }
h3 { font-size: 18px; margin: 24px 0 8px; }
.wrap { max-width: var(--w); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }

/* Top bar & header */
.topbar { background: var(--brand-dd); color: #cfe6ee; font-size: 14px; }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 4px 22px; padding-top: 7px; padding-bottom: 7px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar .social { margin-left: auto; display: flex; gap: 14px; }
.notice { background: #fff4d6; border-bottom: 1px solid #f0d58a; font-weight: 600; }
.notice .wrap { padding-top: 10px; padding-bottom: 10px; }
.header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 84px; }
.brand img { display: block; height: 62px; width: auto; }
.navt { position: absolute; opacity: 0; pointer-events: none; }
.navbtn { display: none; cursor: pointer; border: 1px solid var(--line); border-radius: 8px; padding: 8px 14px; font-weight: 600; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav > ul { display: flex; gap: 2px; }
.nav > ul > li { position: relative; }
.nav a { display: block; padding: 10px 12px; text-decoration: none; color: var(--text); font-weight: 600; border-radius: 8px; }
.nav > ul > li.active > a, .nav a:hover { color: var(--brand-d); background: var(--brand-l); }
.nav .has-sub > a::after { content: " ▾"; font-size: 12px; }
.nav li ul { display: none; position: absolute; left: 0; top: 100%; min-width: 260px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 6px; box-shadow: 0 10px 30px rgba(11,60,74,.12); }
.nav li ul a { font-weight: 500; }
.nav li:hover > ul, .nav li:focus-within > ul { display: block; }
.crumbs { font-size: 14px; color: var(--muted); padding-top: 14px; }
.crumbs a { color: var(--muted); }

/* Kërkimi dhe arkivi */
.tsearch input { font: inherit; font-size: 13px; padding: 3px 10px; border-radius: 14px; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.12); color: #fff; width: 190px; }
.tsearch input::placeholder { color: #cfe6ee; }
.tsearch { margin-left: auto; }
.topbar .social { margin-left: 0; }
.search-page { display: flex; gap: 8px; margin-bottom: 16px; max-width: 640px; }
.search-page input { flex: 1; font: inherit; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; }
mark { background: #fff1a8; color: inherit; padding: 0 1px; border-radius: 2px; }
.years { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 12px; font-size: 14px; }
.years a, .years .cur { padding: 4px 10px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; }
.years .cur { background: var(--brand-d); color: #fff; border-color: var(--brand-d); }
.years > span:first-child { border: 0; padding-left: 0; color: var(--muted); }

/* Kutitë me ikona */
.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding-top: 36px; padding-bottom: 8px; }
.feat { text-align: center; padding: 26px 22px; border-radius: 14px; background: #fff; border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.feat:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(11,60,74,.1); }
.feat-ic { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--brand-l); color: var(--brand-d); margin-bottom: 8px; }
.feat-ic svg { width: 38px; height: 38px; }
.feat h3 { margin: 6px 0; text-transform: uppercase; font-size: 16px; letter-spacing: .04em; }
.feat p { margin: 0; color: var(--muted); font-size: 15px; }

/* Këshilla (akordeon) dhe detaje */
.tip { border-radius: 10px; margin-bottom: 8px; background: #fff; border: 1px solid var(--line); overflow: hidden; }
.tip summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 0 16px 0 0; font-weight: 700; color: var(--brand-dd); min-height: 48px; }
.tip summary::-webkit-details-marker { display: none; }
.tip summary::before { content: "+"; flex: none; width: 48px; height: 48px; display: grid; place-items: center; background: var(--brand); color: #fff; font-size: 24px; font-weight: 400; }
.tip[open] summary::before { content: "−"; }
.tip-body { padding: 4px 18px 14px 62px; color: var(--muted); }
.tip-body p { margin: 8px 0; }
.det { display: flex; gap: 18px; align-items: center; margin-bottom: 22px; }
.det-ic { flex: none; width: 86px; height: 86px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand), var(--brand-d)); color: #fff; box-shadow: 0 0 0 6px var(--brand-l); }
.det-ic svg { width: 40px; height: 40px; }
.det h3 { margin: 0 0 4px; }
.det p { margin: 0; color: var(--muted); }
iframe.igp { width: 100%; height: 640px; border: 0; display: block; background: #fff; }
iframe.map { width: 100%; height: 200px; border: 0; border-radius: 8px; display: block; }

/* Footer */
.flinks li a { text-decoration: none; }
.flinks li a:hover { text-decoration: underline; }
.fcontact li { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.fcontact svg { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--brand); }
.footer p.social { flex-direction: row; flex-wrap: wrap; gap: 12px; margin-top: 12px; }

/* Social icons */
svg { width: 1em; height: 1em; fill: currentColor; vertical-align: -0.125em; }
.soc { display: inline-flex; align-items: center; gap: 6px; }
.footer .soc svg { width: 18px; height: 18px; }

/* Home */
.hero { background: linear-gradient(120deg, var(--brand-dd), var(--brand-d) 60%, var(--brand)); color: #fff; }
.hero .wrap { padding-top: 40px; padding-bottom: 64px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 36px; align-items: center; }
.slider { position: relative; aspect-ratio: 17 / 9; width: 100%; max-width: 850px; justify-self: end; border-radius: 14px; overflow: hidden; background: #fdf3f0; box-shadow: 0 18px 40px rgba(0,0,0,.25); }
.slide { margin: 0; position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; pointer-events: none; }
.slide.active { opacity: 1; pointer-events: auto; }
.slide a { display: block; height: 100%; color: #fff; text-decoration: none; }
.slide img { width: 100%; height: 100%; display: block; }
.slide.fit-cover img { object-fit: cover; }
.slide.fit-contain img { object-fit: contain; }
.slide figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 22px 34px; background: linear-gradient(transparent, rgba(5,30,38,.85)); color: #fff; }
.slide figcaption strong { display: block; font-size: 22px; }
.slide figcaption span { color: #e3f4fb; }
.slider .dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 2; }
.slider .dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; background: rgba(255,255,255,.55); cursor: pointer; box-shadow: 0 0 0 1px rgba(0,0,0,.2); }
.slider .dots button[aria-current="true"] { background: #fff; width: 24px; border-radius: 6px; }
.slider .arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.85); color: var(--brand-dd); font-size: 26px; line-height: 1; cursor: pointer; }
.slider .arrow.prev { left: 10px; }
.slider .arrow.next { right: 10px; }
.svc-sec { padding-top: 12px; }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.svc { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--brand-dd); font-weight: 600; background: #fff; }
.svc:hover { border-color: var(--brand); background: var(--brand-l); }
.plus { flex: none; width: 30px; height: 30px; border-radius: 8px; background: var(--brand-l); color: var(--brand-d); display: grid; place-items: center; font-size: 22px; font-weight: 700; }
.social-sec { padding-bottom: 32px; }
.soc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.soc-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: #fff; }
.soc-box h3 { margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.soc-box h3 svg { color: var(--brand-d); width: 22px; height: 22px; }
iframe.fb { width: 100%; height: 560px; border: 0; display: block; }
.ig-posts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
iframe.ig { width: 100%; height: 520px; border: 0; }
.ig-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 300px; border-radius: var(--radius); text-decoration: none; color: #fff; background: linear-gradient(135deg, #f58529, #dd2a7b 50%, #8134af); text-align: center; padding: 24px; }
.ig-card strong { font-size: 22px; }
.ig-icon svg { width: 64px; height: 64px; }
/* Programi i Transparencës (tabelë 3 kolona) */
.pt { margin: 8px 0 24px; }
.pt-head { display: grid; grid-template-columns: 1fr minmax(240px, 340px) 1fr; align-items: center; gap: 16px; margin-bottom: 22px; }
.pt-upd { color: #c0161c; font-weight: 700; font-family: Georgia, "Times New Roman", serif; }
.pt-main { display: block; text-align: center; padding: 18px 20px; border-radius: 12px; background: var(--brand-d); color: #fff; text-decoration: none; font-weight: 700; box-shadow: 0 6px 16px rgba(0,112,140,.3); }
.pt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: column; gap: 4px; }
.pt-grid.r1 { grid-template-rows: repeat(1, minmax(72px, auto)); }
.pt-grid.r2 { grid-template-rows: repeat(2, minmax(72px, auto)); }
.pt-grid.r3 { grid-template-rows: repeat(3, minmax(72px, auto)); }
.pt-grid.r4 { grid-template-rows: repeat(4, minmax(72px, auto)); }
.pt-grid.r5 { grid-template-rows: repeat(5, minmax(72px, auto)); }
.pt-grid.r6 { grid-template-rows: repeat(6, minmax(72px, auto)); }
.pt-grid.r7 { grid-template-rows: repeat(7, minmax(72px, auto)); }
.pt-grid.r8 { grid-template-rows: repeat(8, minmax(72px, auto)); }
.pt-grid.r9 { grid-template-rows: repeat(9, minmax(72px, auto)); }
.pt-grid.r10 { grid-template-rows: repeat(10, minmax(72px, auto)); }
.pt-grid.r11 { grid-template-rows: repeat(11, minmax(72px, auto)); }
.pt-grid.r12 { grid-template-rows: repeat(12, minmax(72px, auto)); }
.pt-cell { display: flex; align-items: center; justify-content: center; text-align: center; padding: 14px 18px; border-radius: 12px; background: var(--brand-d); color: #fff; text-decoration: none; font-size: 15px; line-height: 1.35; }
.pt-cell:hover, .pt-main:hover { background: var(--brand-dd); color: #fff; }
p.sep { color: var(--muted); }
.pt-cell.open, .pt-main.open { background: var(--brand-dd); box-shadow: inset 0 -4px 0 var(--brand); }
.pt-panels { margin-top: 16px; }
.pt-panel { background: #fbecee; border: 1px solid #e3a9b2; border-radius: 12px; padding: 8px 24px 16px; scroll-margin-top: 110px; }
.pt-panel h2 { margin-top: 16px; }
.pt-open { margin-top: 18px; font-weight: 600; }

/* Shiriti i administratorit */
.adminbar { position: sticky; top: 0; z-index: 50; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 6px 16px; background: #1d2327; color: #fff; font-size: 14px; }
.adminbar a { color: #fff; }
.adminbar [hidden], .pt-panel[hidden] { display: none !important; }
.adminbar .ab-left, .adminbar .ab-right, .adminbar .ab-tools { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.adminbar button, .adminbar .ab-right a { font: inherit; font-size: 13px; padding: 5px 10px; border-radius: 6px; border: 1px solid rgba(255,255,255,.3); background: transparent; color: #fff; cursor: pointer; text-decoration: none; }
.adminbar button.ab-primary { background: var(--brand); border-color: var(--brand); }
.adminbar button:disabled { opacity: .6; }
body.has-adminbar .header { top: 40px; }
.editing { outline: 2px dashed var(--brand); outline-offset: 6px; border-radius: 4px; min-height: 40px; }
.hero h1 { color: #fff; font-size: clamp(30px, 5vw, 46px); margin-bottom: 10px; }
.hero p { font-size: 19px; max-width: 640px; margin: 0 0 22px; color: #e3f4fb; }
.btn { display: inline-block; padding: 11px 20px; border-radius: 8px; background: var(--brand-d); color: #fff; text-decoration: none; font-weight: 600; border: 2px solid var(--brand-d); }
.btn:hover { background: var(--brand-dd); color: #fff; }
.btn.light { background: #fff; color: var(--brand-dd); border-color: #fff; }
.btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.quicks { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: -32px; position: relative; }
.quick { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-decoration: none; color: var(--text); box-shadow: 0 6px 20px rgba(11,60,74,.08); border-top: 4px solid var(--brand); }
.quick strong { display: block; color: var(--brand-dd); font-size: 17px; }
.quick span { color: var(--muted); font-size: 14px; }
.quick:hover { border-color: var(--brand); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding-top: 16px; padding-bottom: 32px; }
.more { font-weight: 600; text-decoration: none; }
.band { background: var(--alt); border-top: 1px solid var(--line); padding: 8px 0 32px; }

/* Lists */
.cards { list-style: none; margin: 0; padding: 0; }
.cards li { border-bottom: 1px solid var(--line); }
.cards a { display: block; padding: 14px 0; text-decoration: none; color: var(--text); }
.cards a:hover strong { color: var(--brand-d); text-decoration: underline; }
.cards time { display: block; font-size: 13px; color: var(--muted); }
.cards strong { display: block; font-size: 17px; color: var(--brand-dd); }
.cards span { display: block; color: var(--muted); font-size: 15px; }
.pager { display: flex; gap: 6px; margin: 24px 0; }
.pager a, .pager span { padding: 6px 12px; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; }
.pager span { background: var(--brand-d); color: #fff; border-color: var(--brand-d); }

/* Content pages */
.page { padding-top: 20px; padding-bottom: 48px; }
.page.with-side { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
.content { min-width: 0; }
.content p, .content li { max-width: 78ch; }
.content table { border-collapse: collapse; width: 100%; margin: 16px 0; display: block; overflow-x: auto; }
.content th, .content td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.content th { background: var(--alt); }
.content blockquote { margin: 16px 0; padding: 8px 16px; border-left: 4px solid var(--brand); background: var(--alt); }
.content img { border-radius: 6px; }
.meta { color: var(--muted); margin: 0 0 4px; }
.lead img { width: auto; max-width: 100%; max-height: 520px; display: block; }
.lead { margin: 0 0 20px; }
.side { background: var(--alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; position: sticky; top: 100px; }
.side h2 { font-size: 17px; margin: 0 0 8px; }
.side ul { list-style: none; margin: 0; padding: 0; }
.side li { padding: 7px 0; border-bottom: 1px solid var(--line); }
.side li:last-child { border: 0; }
.side li a { text-decoration: none; }
.side li.current a { font-weight: 700; color: var(--brand-dd); }
.side small { display: block; color: var(--muted); font-size: 13px; }
.files { margin-top: 28px; }
.files ul { list-style: none; padding: 0; margin: 0; }
.files li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.files a { text-decoration: none; font-weight: 600; }
.ext { display: inline-block; min-width: 46px; text-align: center; font-size: 12px; background: var(--brand-l); color: var(--brand-dd); border-radius: 4px; padding: 1px 6px; margin-right: 10px; }
.files small { color: var(--muted); white-space: nowrap; }
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 24px; }
.contact-cards > div { background: var(--alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; }
.contact-cards h3 { margin: 0 0 4px; }
.contact-cards p { margin: 0 0 4px; }

/* Footer */
.footer { background: var(--brand-dd); color: #cfe6ee; margin-top: 24px; font-size: 15px; }
.footer .cols { display: grid; grid-template-columns: 1fr 1.2fr 1.2fr 1.3fr; gap: 32px; padding-top: 36px; padding-bottom: 24px; }
.footer h2 { color: #fff; font-size: 17px; margin: 0 0 10px; }
.footer a { color: #fff; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { padding: 3px 0; }
.footer .social { display: flex; flex-direction: column; gap: 4px; }
.copy { border-top: 1px solid rgba(255,255,255,.15); padding-top: 14px; padding-bottom: 18px; font-size: 14px; }

@media (max-width: 900px) {
  .navbtn { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); max-height: 75vh; overflow-y: auto; }
  .navt:checked ~ .nav { display: block; }
  .navt:focus-visible + .navbtn { outline: 2px solid var(--brand-d); }
  .header .wrap { position: relative; }
  .nav > ul { flex-direction: column; padding: 8px 16px 16px; }
  .nav li ul { display: block; position: static; box-shadow: none; border: 0; padding: 0 0 0 14px; min-width: 0; }
  .nav .has-sub > a::after { content: ""; }
  .two, .page.with-side, .footer .cols, .hero-grid, .info, .soc-grid, .feats { grid-template-columns: 1fr; }
  .slider { justify-self: stretch; }
  .pt-head { grid-template-columns: 1fr; text-align: center; }
  .pt-grid, .pt-grid[class*=" r"] { grid-template-columns: 1fr; grid-auto-flow: row; grid-template-rows: none; }
  .pt-cell { min-height: 60px; }
  .hero .wrap { padding-top: 28px; padding-bottom: 28px; }
  .side { position: static; }
  .topbar .social { margin-left: 0; }
  .quicks { margin-top: 16px; }
}
@media print { .topbar, .header, .footer, .side, .crumbs { display: none; } }
