/* ============================================================
   CIV PRO v1.0.0 — Temă pentru primării și instituții publice
   Design: sobrietate instituțională, accesibilitate, claritate
   Paleta: Albastru regal #1a3a6b + Auriu #c8941a + Alb + Gri
   ============================================================ */

:root {
  --cp-blue:       #1a3a6b;
  --cp-blue-light: #2452a0;
  --cp-blue-pale:  #e8eef8;
  --cp-gold:       #c8941a;
  --cp-gold-light: #f5e6c0;
  --cp-red:        #b91c1c;
  --cp-green:      #15803d;
  --cp-text:       #1a1a2e;
  --cp-muted:      #4a5568;
  --cp-border:     #d1d9e6;
  --cp-bg:         #f7f8fc;
  --cp-white:      #ffffff;
  --cp-font-body:  'Inter', Arial, sans-serif;
  --cp-font-head:  'Playfair Display', Georgia, 'Times New Roman', serif;
  --cp-radius:     8px;
  --cp-radius-lg:  14px;
  --cp-shadow:     0 4px 16px rgba(26,58,107,.10);
  --cp-shadow-lg:  0 12px 32px rgba(26,58,107,.14);
}

*, *::before, *::after { box-sizing: border-box; }

body { margin: 0; font-family: var(--cp-font-body); font-size: 16px; color: var(--cp-text); background: var(--cp-white); line-height: 1.65; }
a { color: var(--cp-blue-light); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }
h1,h2,h3,h4,h5,h6 { font-family: var(--cp-font-head); font-weight: 700; line-height: 1.15; color: var(--cp-blue); margin-top: 0; }
.container { width: min(1360px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: auto; }
.skip-link:focus { left: 12px; top: 12px; z-index: 9999; background: #fff; padding: 10px 14px; border-radius: 6px; box-shadow: var(--cp-shadow); }
:focus-visible { outline: 3px solid var(--cp-gold); outline-offset: 3px; border-radius: 3px; }
html { scroll-behavior: smooth; }

/* Topbar */
.civpro-topbar { background: var(--cp-blue); color: #fff; font-size: 13px; border-bottom: 2px solid var(--cp-gold); }
.civpro-topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; flex-wrap: wrap; padding: 4px 0; }
.civpro-topbar-contact { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.civpro-topbar-contact a { color: #dbeafe; display: flex; align-items: center; gap: 5px; font-size: 12px; }
.civpro-topbar-contact a:hover { color: #fff; text-decoration: none; }
.civpro-topbar-contact .civpro-icon { width: 13px; height: 13px; }
.civpro-topbar-announcement { background: var(--cp-gold); color: var(--cp-blue); border-radius: 4px; padding: 3px 10px; font-weight: 700; font-size: 12px; }
.civpro-topbar-announcement a { color: var(--cp-blue); text-decoration: none; }

/* Antet */
.civpro-header { background: var(--cp-white); box-shadow: 0 2px 12px rgba(26,58,107,.08); position: relative; z-index: 100; border-bottom: 1px solid var(--cp-border); }
.civpro-brandbar { padding: 16px 0; }
.civpro-brandbar-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; }
.civpro-coat-of-arms { width: 72px; height: 72px; object-fit: contain; }
.civpro-logo-area { display: flex; align-items: center; gap: 16px; min-width: 0; }
.civpro-logo-area .custom-logo { max-height: 80px; width: auto; }
.civpro-logo-text { color: var(--cp-blue); }
.civpro-logo-title { display: block; font-family: var(--cp-font-head); font-size: clamp(18px,2.5vw,28px); font-weight: 900; color: var(--cp-blue); line-height: 1.1; }
.civpro-logo-subtitle { display: block; font-size: 12px; color: var(--cp-muted); margin-top: 3px; }
.civpro-header-search { display: flex; align-items: center; border: 1.5px solid var(--cp-border); border-radius: 999px; overflow: hidden; background: var(--cp-bg); max-width: 280px; }
.civpro-header-search input { border: 0; background: transparent; padding: 10px 14px; font-size: 14px; min-width: 180px; outline: 0; color: var(--cp-text); }
.civpro-header-search button { border: 0; background: var(--cp-blue); color: #fff; padding: 10px 14px; cursor: pointer; display: flex; align-items: center; }
.civpro-header-search .civpro-icon { width: 16px; height: 16px; }

/* Nav */
.civpro-mainnav { background: var(--cp-blue); position: sticky; top: 0; z-index: 99; box-shadow: 0 4px 12px rgba(26,58,107,.18); }
.civpro-nav-inner { display: flex; align-items: center; justify-content: space-between; }
.civpro-primary-menu { display: flex; list-style: none; margin: 0; padding: 0; }
.civpro-primary-menu > li > a { display: block; color: #fff; font-size: 14px; font-weight: 600; padding: 16px 18px; text-transform: uppercase; letter-spacing: .04em; transition: background .18s; }
.civpro-primary-menu > li > a:hover, .civpro-primary-menu > .current-menu-item > a { background: var(--cp-blue-light); text-decoration: none; }
.civpro-primary-menu li { position: relative; }
.civpro-primary-menu .sub-menu { position: absolute; top: 100%; left: 0; min-width: 260px; background: var(--cp-white); border: 1px solid var(--cp-border); border-top: 3px solid var(--cp-gold); border-radius: 0 0 var(--cp-radius) var(--cp-radius); box-shadow: var(--cp-shadow-lg); display: none; list-style: none; margin: 0; padding: 6px 0; z-index: 200; }
.civpro-primary-menu li:hover > .sub-menu { display: block; }
.civpro-primary-menu .sub-menu a { display: block; color: var(--cp-text); font-size: 14px; padding: 9px 18px; transition: background .15s; font-weight: 500; }
.civpro-primary-menu .sub-menu a:hover { background: var(--cp-blue-pale); color: var(--cp-blue); text-decoration: none; }
.civpro-menu-toggle { display: none; background: var(--cp-blue-light); color: #fff; border: 0; padding: 14px 16px; font-size: 14px; font-weight: 700; cursor: pointer; }

/* Breaking ticker */
.civpro-breaking { background: var(--cp-white); border-bottom: 1px solid var(--cp-border); font-size: 14px; }
.civpro-breaking .container { display: flex; align-items: center; gap: 16px; padding: 10px 0; }
.civpro-breaking-label { background: var(--cp-red); color: #fff; border-radius: 4px; padding: 5px 12px; font-size: 11px; font-weight: 800; text-transform: uppercase; white-space: nowrap; flex-shrink: 0; }
.civpro-ticker { display: flex; gap: 28px; overflow: hidden; white-space: nowrap; }
.civpro-ticker a { color: var(--cp-text); font-weight: 600; }
.civpro-ticker a::before { content: '•'; color: var(--cp-gold); margin-right: 8px; }

/* Hero */
.civpro-hero { background: linear-gradient(135deg, var(--cp-blue) 0%, var(--cp-blue-light) 100%); color: #fff; padding: 40px 0; }
.civpro-hero-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: start; }
.civpro-hero-main { position: relative; border-radius: var(--cp-radius-lg); overflow: hidden; min-height: 400px; background: rgba(255,255,255,.08); }
.civpro-hero-main img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.civpro-hero-main::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 30%,rgba(5,20,50,.82)); }
.civpro-hero-overlay { position: absolute; z-index: 2; left: 24px; right: 24px; bottom: 24px; }
.civpro-hero-overlay h1 { font-size: clamp(22px,3vw,34px); color: #fff; margin-bottom: 8px; line-height: 1.1; }
.civpro-hero-overlay p { color: #dbeafe; font-size: 15px; margin: 0; }
.civpro-hero-side { display: flex; flex-direction: column; gap: 14px; }

/* Cards */
.civpro-card { background: var(--cp-white); border: 1px solid var(--cp-border); border-radius: var(--cp-radius-lg); overflow: hidden; box-shadow: 0 4px 12px rgba(26,58,107,.07); transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; }
.civpro-card:hover { transform: translateY(-3px); box-shadow: var(--cp-shadow-lg); }
.civpro-card-thumb { height: 200px; background: var(--cp-blue-pale); display: block; overflow: hidden; flex-shrink: 0; }
.civpro-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.civpro-card:hover .civpro-card-thumb img { transform: scale(1.04); }
.civpro-placeholder-thumb { height: 100%; display: grid; place-items: center; color: var(--cp-blue); opacity: .3; }
.civpro-placeholder-thumb .civpro-icon { width: 48px; height: 48px; }
.civpro-card-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.civpro-card-body h3 { font-size: 18px; margin: 8px 0 10px; line-height: 1.25; }
.civpro-card-body h3 a { color: var(--cp-blue); }
.civpro-card-body h3 a:hover { color: var(--cp-blue-light); text-decoration: none; }
.civpro-card-body p { color: var(--cp-muted); font-size: 14px; margin: 0 0 12px; line-height: 1.55; }
.civpro-card-meta { font-size: 12px; color: var(--cp-muted); margin-top: auto; }
.civpro-badge { display: inline-block; background: var(--cp-blue-pale); color: var(--cp-blue); border-radius: 4px; padding: 3px 8px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; text-decoration: none !important; }
.civpro-badge:hover { background: var(--cp-blue); color: #fff; }
.civpro-badge.gold { background: var(--cp-gold-light); color: var(--cp-gold); }

/* Section */
.civpro-section { padding: 40px 0; }
.civpro-section-soft { background: var(--cp-bg); }
.civpro-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 3px solid var(--cp-gold); }
.civpro-section-head h2 { font-size: 22px; margin: 0; color: var(--cp-blue); }
.civpro-section-head a { color: var(--cp-blue-light); font-size: 14px; font-weight: 600; }
.civpro-cards-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }

/* Document cards */
.civpro-doc-card { background: var(--cp-white); border: 1px solid var(--cp-border); border-radius: var(--cp-radius); border-left: 4px solid var(--cp-blue); padding: 16px 18px; transition: box-shadow .2s, border-color .2s; }
.civpro-doc-card:hover { box-shadow: var(--cp-shadow); border-left-color: var(--cp-gold); }
.civpro-doc-card.dispozitie { border-left-color: var(--cp-gold); }
.civpro-doc-card.achizitie { border-left-color: var(--cp-green); }
.civpro-doc-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.civpro-doc-type { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--cp-blue); background: var(--cp-blue-pale); border-radius: 4px; padding: 2px 7px; }
.civpro-doc-nr { font-size: 12px; font-weight: 700; color: var(--cp-muted); }
.civpro-doc-meta time { font-size: 12px; color: var(--cp-muted); margin-left: auto; }
.civpro-doc-title { font-size: 15px; margin: 0 0 8px; line-height: 1.3; }
.civpro-doc-title a { color: var(--cp-text); }
.civpro-doc-title a:hover { color: var(--cp-blue); }
.civpro-doc-excerpt { font-size: 13px; color: var(--cp-muted); margin: 0 0 12px; }
.civpro-doc-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.civpro-docs-list { display: flex; flex-direction: column; gap: 10px; }

/* Butoane */
.civpro-btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 700; cursor: pointer; border: 2px solid transparent; transition: background .18s, color .18s, border-color .18s; text-decoration: none !important; }
.civpro-btn .civpro-icon { width: 15px; height: 15px; flex-shrink: 0; }
.civpro-btn:not(.civpro-btn-outline):not(.civpro-btn-ghost) { background: var(--cp-blue); color: #fff; }
.civpro-btn:not(.civpro-btn-outline):not(.civpro-btn-ghost):hover { background: var(--cp-blue-light); }
.civpro-btn.civpro-btn-outline { background: transparent; color: var(--cp-blue); border-color: var(--cp-blue); }
.civpro-btn.civpro-btn-outline:hover { background: var(--cp-blue-pale); }
.civpro-btn.civpro-btn-gold { background: var(--cp-gold); color: #fff; }
.civpro-btn.civpro-btn-gold:hover { background: #a67614; }
.civpro-btn.civpro-btn-sm { padding: 6px 12px; font-size: 12px; }

/* Quick links */
.civpro-quick-links { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.civpro-quick-link { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 20px 14px; background: var(--cp-white); border: 1px solid var(--cp-border); border-radius: var(--cp-radius-lg); text-align: center; color: var(--cp-blue); font-weight: 700; font-size: 13px; transition: background .18s, box-shadow .18s; text-decoration: none !important; border-top: 3px solid var(--cp-gold); }
.civpro-quick-link:hover { background: var(--cp-blue-pale); box-shadow: var(--cp-shadow); }
.civpro-quick-link .civpro-icon { width: 28px; height: 28px; color: var(--cp-blue); }

/* Homepage layout */
.civpro-home-portal { padding: 28px 0 48px; }
.civpro-portal-grid { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }
.civpro-portal-main { min-width: 0; }
.civpro-portal-aside { position: sticky; top: 76px; align-self: start; }

/* Monitor Oficial sidebar */
.civpro-monitor-sidebar { background: var(--cp-white); border: 1px solid var(--cp-border); border-radius: var(--cp-radius-lg); overflow: hidden; box-shadow: var(--cp-shadow); margin-bottom: 20px; }
.civpro-monitor-sidebar-head { background: var(--cp-blue); color: #fff; padding: 16px 18px; font-family: var(--cp-font-head); font-size: 16px; font-weight: 700; border-bottom: 3px solid var(--cp-gold); }
.civpro-monitor-nav { list-style: none; margin: 0; padding: 8px 0; }
.civpro-monitor-nav li { border-bottom: 1px solid var(--cp-border); }
.civpro-monitor-nav li:last-child { border-bottom: 0; }
.civpro-monitor-nav a { display: flex; align-items: center; gap: 8px; padding: 11px 18px; color: var(--cp-text); font-size: 14px; font-weight: 600; transition: background .15s; }
.civpro-monitor-nav a::before { content: '›'; color: var(--cp-gold); font-weight: 900; }
.civpro-monitor-nav a:hover { background: var(--cp-blue-pale); color: var(--cp-blue); text-decoration: none; }

/* Contact widget */
.civpro-contact-widget { background: var(--cp-white); border: 1px solid var(--cp-border); border-radius: var(--cp-radius-lg); overflow: hidden; box-shadow: var(--cp-shadow); margin-bottom: 20px; }
.civpro-contact-widget-head { background: var(--cp-blue); color: #fff; padding: 14px 18px; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; border-bottom: 3px solid var(--cp-gold); }
.civpro-contact-widget-body { padding: 16px 18px; }
.civpro-contact-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; font-size: 14px; }
.civpro-contact-item:last-child { margin-bottom: 0; }
.civpro-contact-item .civpro-icon { width: 16px; height: 16px; flex-shrink: 0; color: var(--cp-gold); margin-top: 2px; }
.civpro-contact-item a { color: var(--cp-blue); font-weight: 600; }
.civpro-contact-item strong { display: block; color: var(--cp-muted); font-size: 11px; text-transform: uppercase; }

/* Breadcrumbs */
.civpro-breadcrumbs { font-size: 13px; color: var(--cp-muted); margin-bottom: 20px; }
.civpro-breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.civpro-breadcrumbs li::after { content: '›'; color: var(--cp-border); margin-left: 6px; }
.civpro-breadcrumbs li:last-child::after { content: ''; }
.civpro-breadcrumbs a { color: var(--cp-blue-light); }

/* Articol */
.civpro-article-layout { display: grid; grid-template-columns: 1fr 300px; gap: 28px; padding: 32px 0 48px; align-items: start; }
.civpro-article-main { min-width: 0; }
.civpro-article-header h1 { font-size: clamp(26px,4vw,42px); line-height: 1.1; margin: 0 0 16px; color: var(--cp-blue); }
.civpro-article-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--cp-muted); margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--cp-border); }
.civpro-article-thumb { margin: 0 0 24px; }
.civpro-article-thumb img { border-radius: var(--cp-radius-lg); }
.civpro-entry-content { font-size: 17px; line-height: 1.78; color: #1a1a2e; }
.civpro-entry-content h2 { font-size: 24px; margin: 28px 0 12px; border-bottom: 2px solid var(--cp-gold); padding-bottom: 8px; }
.civpro-entry-content h3 { font-size: 20px; margin: 22px 0 10px; }
.civpro-entry-content p { margin: 0 0 18px; }
.civpro-entry-content a { color: var(--cp-blue-light); text-decoration: underline; text-underline-offset: 3px; }
.civpro-entry-content ul, .civpro-entry-content ol { padding-left: 24px; margin-bottom: 18px; }
.civpro-entry-content li { margin-bottom: 6px; }
.civpro-entry-content table { border-collapse: collapse; width: 100%; margin-bottom: 20px; font-size: 14px; }
.civpro-entry-content th, .civpro-entry-content td { border: 1px solid var(--cp-border); padding: 10px 14px; text-align: left; }
.civpro-entry-content th { background: var(--cp-blue-pale); color: var(--cp-blue); font-weight: 700; }
.civpro-entry-content tr:nth-child(even) td { background: var(--cp-bg); }
.civpro-entry-content::after { content: ''; display: table; clear: both; }
.civpro-entry-content .alignleft, .civpro-entry-content img.alignleft { float: left !important; margin: .3rem 1.5rem 1rem 0 !important; max-width: min(42%,360px) !important; }
.civpro-entry-content .alignright, .civpro-entry-content img.alignright { float: right !important; margin: .3rem 0 1rem 1.5rem !important; max-width: min(42%,360px) !important; }
.civpro-entry-content .aligncenter, .civpro-entry-content img.aligncenter { float: none !important; clear: both !important; display: block !important; margin: 1rem auto !important; }

/* PDF block */
.civpro-pdf-block { margin: 20px 0; }
.civpro-pdf-block iframe { border: 1px solid var(--cp-border); border-radius: var(--cp-radius); }
.civpro-pdf-block p { font-size: 13px; margin-top: 6px; }

/* Footer */
.civpro-footer { background: var(--cp-blue); color: #fff; margin-top: 48px; border-top: 4px solid var(--cp-gold); }
.civpro-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; padding: 40px 0 32px; }
.civpro-footer-logo { max-width: 200px; background: #fff; border-radius: 8px; padding: 8px; margin-bottom: 12px; }
.civpro-footer-tagline { font-size: 13px; color: #93c5fd; line-height: 1.6; margin-top: 8px; }
.civpro-footer-col h4 { font-family: var(--cp-font-head); font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--cp-gold); margin: 0 0 14px; }
.civpro-footer-links { list-style: none; margin: 0; padding: 0; }
.civpro-footer-links li { margin-bottom: 8px; }
.civpro-footer-links a { color: #bfdbfe; font-size: 13px; transition: color .15s; }
.civpro-footer-links a:hover { color: #fff; text-decoration: none; }
.civpro-footer-legal { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 5px 14px; }
.civpro-footer-legal a { color: #93c5fd; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.civpro-footer-legal a:hover { color: #fff; }
.civpro-footer-bottom { background: rgba(0,0,0,.2); border-top: 1px solid rgba(255,255,255,.1); padding: 14px 0; }
.civpro-footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; color: #93c5fd; }
.civpro-footer-bottom a { color: #bfdbfe; text-decoration: underline; }
.civpro-footer-brand { font-weight: 700; color: #fff; }

/* Tabel registre */
.civpro-register-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.civpro-register-table th { background: var(--cp-blue); color: #fff; padding: 10px 14px; font-size: 13px; text-align: left; font-weight: 600; }
.civpro-register-table td { padding: 9px 14px; font-size: 14px; border-bottom: 1px solid var(--cp-border); vertical-align: top; }
.civpro-register-table tr:nth-child(even) td { background: var(--cp-bg); }
.civpro-register-table tr:hover td { background: var(--cp-blue-pale); }

/* Alert */
.civpro-alert-banner { background: var(--cp-gold-light); border: 1px solid var(--cp-gold); border-left: 5px solid var(--cp-gold); border-radius: var(--cp-radius); padding: 14px 18px; display: flex; align-items: flex-start; gap: 12px; margin-bottom: 20px; }
.civpro-alert-banner .civpro-icon { color: var(--cp-gold); width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; }
.civpro-alert-banner p { margin: 0; font-size: 14px; }
.civpro-alert-banner strong { color: var(--cp-blue); }

/* Paginare */
.civpro-pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 32px; flex-wrap: wrap; }
.civpro-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1.5px solid var(--cp-border); border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--cp-text); transition: background .15s; }
.civpro-pagination .page-numbers:hover { background: var(--cp-blue-pale); border-color: var(--cp-blue); color: var(--cp-blue); text-decoration: none; }
.civpro-pagination .page-numbers.current { background: var(--cp-blue); border-color: var(--cp-blue); color: #fff; }

/* Powered by */
.civpro-powered { text-align: center; font-size: 11px; color: #64748b; margin-top: 6px; }
.civpro-powered a { color: var(--cp-blue-light); text-decoration: none; }

/* Formulare cetățeni */
.civpro-citizen-form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 5px; color: var(--cp-text); }
.civpro-citizen-form input, .civpro-citizen-form textarea, .civpro-citizen-form select { width: 100%; border: 1.5px solid var(--cp-border); border-radius: var(--cp-radius); padding: 10px 14px; font-size: 15px; font-family: var(--cp-font-body); color: var(--cp-text); transition: border-color .15s; background: var(--cp-white); }
.civpro-citizen-form input:focus, .civpro-citizen-form textarea:focus, .civpro-citizen-form select:focus { outline: 0; border-color: var(--cp-blue); box-shadow: 0 0 0 3px rgba(26,58,107,.12); }
.civpro-citizen-form .civpro-form-success { padding: 12px 16px; border-radius: var(--cp-radius); background: #dcfce7; color: #15803d; border: 1px solid #86efac; margin-bottom: 16px; font-weight: 600; }

/* Program audiențe */
.civpro-schedule-table { width: 100%; border-collapse: collapse; }
.civpro-schedule-table th { background: var(--cp-blue-pale); color: var(--cp-blue); padding: 10px 14px; font-size: 13px; text-align: left; border: 1px solid var(--cp-border); }
.civpro-schedule-table td { padding: 10px 14px; font-size: 14px; border: 1px solid var(--cp-border); }
.civpro-schedule-table tr:hover td { background: var(--cp-bg); }

/* ── Monitor Oficial / Informații Publice — componente ───────── */

.civpro-monitor-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
}

.civpro-monitor-content { min-width: 0; }

.civpro-monitor-section {
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--cp-border);
}
.civpro-monitor-section:last-child { border-bottom: 0; }

.civpro-monitor-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  color: var(--cp-blue);
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--cp-gold);
}
.civpro-monitor-section-title .civpro-icon { width: 22px; height: 22px; flex-shrink: 0; }

.civpro-monitor-subsection { margin: 16px 0 20px; padding-left: 16px; border-left: 3px solid var(--cp-blue-pale); }
.civpro-monitor-subsection-title { font-size: 15px; font-family: var(--cp-font-body); font-weight: 600; color: var(--cp-text); margin: 0 0 10px; line-height: 1.4; }

/* Accordion */
.civpro-accordion { display: flex; flex-direction: column; gap: 6px; }
.civpro-accordion-item { border: 1px solid var(--cp-border); border-radius: var(--cp-radius); overflow: hidden; }
.civpro-accordion-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: var(--cp-bg);
  border: 0;
  text-align: left;
  font-size: 15px;
  font-weight: 600;
  color: var(--cp-text);
  cursor: pointer;
  transition: background .15s;
  font-family: var(--cp-font-body);
}
.civpro-accordion-toggle:hover { background: var(--cp-blue-pale); color: var(--cp-blue); }
.civpro-accordion-toggle[aria-expanded="true"] { background: var(--cp-blue); color: #fff; }
.civpro-accordion-toggle[aria-expanded="true"] .civpro-accordion-chevron .civpro-icon { transform: rotate(90deg); }
.civpro-accordion-chevron { flex-shrink: 0; }
.civpro-accordion-chevron .civpro-icon { width: 16px; height: 16px; transition: transform .2s; }
.civpro-accordion-body { padding: 16px 18px; background: var(--cp-white); }
.civpro-accordion-body[hidden] { display: none; }

/* Info card (fișe responsabili) */
.civpro-info-card {
  background: var(--cp-blue-pale);
  border: 1px solid var(--cp-border);
  border-radius: var(--cp-radius);
  padding: 18px 20px;
  margin-bottom: 16px;
}
.civpro-info-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--cp-border);
  font-size: 14px;
}
.civpro-info-row:last-child { border-bottom: 0; }
.civpro-info-label { font-weight: 700; color: var(--cp-blue); }
.civpro-info-value { color: var(--cp-text); }

/* Placeholder admin */
.civpro-monitor-empty {
  border: 2px dashed var(--cp-border);
  border-radius: var(--cp-radius);
  padding: 20px;
  text-align: center;
  color: var(--cp-muted);
  background: var(--cp-bg);
}
.civpro-monitor-empty p { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 0 12px; font-size: 14px; }
.civpro-monitor-empty .civpro-icon { width: 16px; height: 16px; color: var(--cp-gold); }

/* Sidebar nav active */
.civpro-monitor-nav .current-section > a { color: var(--cp-blue); background: var(--cp-blue-pale); }

/* ── Header instituție (nou) ─────────────────────────────────── */

.civpro-brandbar {
  background: #fff;
  border-bottom: 3px solid var(--cp-gold);
  padding: 12px 0;
}

.civpro-brandbar-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
}

/* Stema României — stânga, dimensiune fixă */
.civpro-coat-romania-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.civpro-coat-romania {
  height: 90px;
  width: auto;
  object-fit: contain;
}

/* Text central */
.civpro-brand-center {
  text-align: center;
  min-width: 0;
}
.civpro-brand-link {
  display: block;
  text-decoration: none !important;
  line-height: 1.15;
  margin-bottom: 8px;
}
.civpro-brand-locality {
  display: block;
  font-family: var(--cp-font-head);
  font-size: clamp(22px, 3.5vw, 38px);
  font-weight: 900;
  color: var(--cp-blue);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.civpro-brand-subtitle {
  display: block;
  font-family: var(--cp-font-head);
  font-size: clamp(13px, 1.8vw, 20px);
  font-weight: 700;
  color: var(--cp-green, #15803d);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Date contact rapide sub titlu */
.civpro-brand-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--cp-muted);
  border-top: 1px solid var(--cp-border);
  padding-top: 7px;
  margin-top: 4px;
}
.civpro-brand-contact a {
  color: var(--cp-blue);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}
.civpro-brand-contact a:hover { color: var(--cp-blue-light); }
.civpro-brand-contact span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.civpro-brand-contact .civpro-icon { width: 13px; height: 13px; }

/* Stema localității — dreapta, dimensiune originală */
.civpro-coat-local-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  min-width: 60px;
}
.civpro-coat-local {
  max-height: 100px;
  width: auto;
  object-fit: contain;
}

/* Banner anunț */
.civpro-announcement-bar {
  background: var(--cp-gold);
  color: var(--cp-blue);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  padding: 6px 0;
}
.civpro-announcement-bar a {
  color: var(--cp-blue);
  text-decoration: underline;
}

/* Topbar simplificat (dată + căutare) */
.civpro-topbar {
  background: var(--cp-blue);
  color: #fff;
  font-size: 13px;
  border-bottom: 2px solid var(--cp-gold);
  padding: 6px 0;
}
.civpro-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
#civpro-datetime {
  color: #dbeafe;
  font-size: 12px;
}

/* Responsive header */
@media (max-width: 768px) {
  .civpro-brandbar-inner {
    grid-template-columns: auto 1fr auto;
    gap: 10px;
  }
  .civpro-coat-romania { height: 60px; }
  .civpro-coat-local   { max-height: 60px; }
  .civpro-brand-contact { gap: 10px; font-size: 12px; }
  .civpro-topbar-inner { flex-direction: column; align-items: flex-start; gap: 6px; }
  .civpro-header-search { width: 100%; max-width: 100%; }
}

@media (max-width: 480px) {
  .civpro-coat-romania-wrap,
  .civpro-coat-local-wrap { display: none; }
  .civpro-brandbar-inner { grid-template-columns: 1fr; justify-items: center; }
  .civpro-brand-locality { font-size: 20px; }
  .civpro-brand-subtitle { font-size: 13px; }
}

/* ── Footer actualizat ───────────────────────────────────────── */

.civpro-footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-bottom: 8px;
  font-size: 13px;
  color: #bfdbfe;
}
.civpro-footer-contact-item .civpro-icon { width: 13px; height: 13px; flex-shrink: 0; color: var(--cp-gold); margin-top: 2px; }
.civpro-footer-contact-item a { color: #bfdbfe; }
.civpro-footer-contact-item a:hover { color: #fff; text-decoration: none; }

.civpro-footer-social { display: flex; gap: 12px; margin-top: 14px; }
.civpro-footer-social a { color: #bfdbfe; display: flex; }
.civpro-footer-social a:hover { color: #fff; }
.civpro-footer-social .civpro-icon { width: 22px; height: 22px; }

.civpro-footer-links .civpro-icon { width: 12px; height: 12px; vertical-align: middle; margin-right: 3px; opacity: .7; }

/* Identificare UAT */
.civpro-footer-uat {
  font-size: 12px;
  color: #93c5fd;
  text-align: center;
  padding: 10px 0 8px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 12px;
  line-height: 1.8;
}
.civpro-footer-uat strong { color: #dbeafe; }

.civpro-footer-bottom-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.civpro-footer-copyright {
  font-size: 13px;
  color: #93c5fd;
  line-height: 1.6;
}
.civpro-footer-copyright strong { color: #fff; }

/* Responsive footer */
@media (max-width: 1200px) {
  .civpro-footer-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
}
@media (max-width: 768px) {
  .civpro-footer-grid { grid-template-columns: 1fr; }
  .civpro-footer-bottom-inner { flex-direction: column; gap: 10px; }
  .civpro-footer-legal { flex-direction: column; gap: 6px; }
}
