/* ═══════════════════════════════════
   ARTICLE PAGE
═══════════════════════════════════ */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.article-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--gray-500);
  font-weight: 500;
}
.article-date svg { flex-shrink: 0; }
.article-tag {
  display: inline-block;
  padding: 4px 14px;
  background: #e8f1fc;
  color: #5b9bd5;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
}

.article-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 34px;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.3;
  margin-bottom: 32px;
}

.article-body {
  font-size: 16px;
  line-height: 1.85;
  color: var(--gray-700);
}
.article-body p { margin-bottom: 20px; }
.article-body h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-900);
  margin: 36px 0 16px;
  font-family: 'Inter', sans-serif;
}
.article-body ul, .article-body ol {
  margin: 0 0 20px 24px;
}
.article-body li {
  margin-bottom: 8px;
}
.article-body hr {
  border: none;
  border-top: 1px solid var(--gray-200);
  margin: 32px 0;
}
/* Small inline images (flags, icons) should sit next to text */
.article-body p img {
  display: inline-block;
  vertical-align: middle;
  margin: 0 8px;
}

/* Attachments */
.article-attachments {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--gray-200);
}
.article-attachments h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 16px;
  font-family: 'Inter', sans-serif;
}
.attachment-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  transition: all 0.2s var(--ease);
  cursor: pointer;
}
.attachment-item:hover {
  border-color: var(--blue-100);
  background: var(--blue-50);
}
.attachment-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: #e8f1fc;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.attachment-icon svg { stroke: #5b9bd5; }
.attachment-info { flex: 1; }
.attachment-info h4 { font-size: 14px; font-weight: 600; color: var(--gray-800); }
.attachment-info p { font-size: 12px; color: var(--gray-500); }
.attachment-size {
  font-size: 12px;
  color: var(--gray-400);
  font-weight: 600;
  white-space: nowrap;
}

/* Sidebar */
.article-sidebar { position: sticky; top: 140px; }

.sidebar-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 20px;
}
.sidebar-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--gray-100);
}

.related-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-100);
  cursor: pointer;
  transition: color 0.2s;
}
.related-item:last-child { border-bottom: none; padding-bottom: 0; }
.related-item:hover h4 { color: var(--blue-600); }
.related-item h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-800);
  line-height: 1.5;
  margin-bottom: 4px;
  transition: color 0.2s;
}
.related-item p {
  font-size: 12px;
  color: var(--gray-400);
  font-weight: 500;
}

.share-row {
  display: flex;
  gap: 8px;
}
.share-btn {
  flex: 1;
  padding: 10px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-600);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  text-align: center;
  font-family: inherit;
}
.share-btn:hover {
  background: var(--gray-50);
  border-color: var(--gray-300);
  color: var(--gray-800);
}

/* Back link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue-600);
  margin-bottom: 32px;
}

@media (max-width: 1024px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
}
@media (max-width: 768px) {
  .article-title { font-size: 26px; }
}

/* ═══════════════════════════════════
   INNER PAGES (Formulare / HCL)
═══════════════════════════════════ */
.inner-page {
  display: none;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px 72px;
}
.inner-page.active { display: block; }

.breadcrumbs {
  padding: 20px 0 32px;
  font-size: 13px;
  color: var(--gray-400);
  display: flex;
  align-items: center;
  gap: 8px;
}
.breadcrumbs a {
  color: var(--blue-600);
  font-weight: 500;
}
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs .sep { color: var(--gray-300); }

.page-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}
.page-subtitle {
  font-size: 15px;
  color: var(--gray-500);
  margin-bottom: 32px;
}

/* Search bar for inner pages */
.inner-search {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.inner-search input,
.inner-search select {
  padding: 12px 18px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: var(--gray-900);
  transition: border-color 0.2s;
}
.inner-search input { flex: 1; min-width: 240px; }
.inner-search input:focus,
.inner-search select:focus {
  outline: none;
  border-color: var(--blue-400);
  box-shadow: 0 0 0 3px rgba(37,99,168,0.1);
}

/* Filter chips */
.filters {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 8px 18px;
  border: 1.5px solid var(--gray-200);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  background: #fff;
  color: var(--gray-600);
  font-family: inherit;
}
.filter-btn:hover {
  border-color: var(--blue-400);
  color: var(--blue-700);
  background: var(--blue-50);
}
.filter-btn.active {
  background: var(--blue-700);
  color: #fff;
  border-color: var(--blue-700);
}

/* Form items */
.list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  padding: 18px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  transition: all 0.2s var(--ease);
  margin-bottom: 8px;
  gap: 16px;
}
.list-item:hover {
  border-color: var(--blue-100);
  box-shadow: var(--shadow-md);
}
.list-item .item-info h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 2px;
}
.list-item .item-info p {
  font-size: 13px;
  color: var(--gray-500);
}

.file-badge {
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.file-badge.pdf { background: #fef2f2; color: #dc2626; }
.file-badge.doc { background: #eff6ff; color: #2563eb; }

/* HCL specific */
.hcl-item {
  display: flex;
  align-items: center;
  background: #fff;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  margin-bottom: 10px;
  gap: 20px;
  transition: all 0.2s var(--ease);
}
.hcl-item:hover {
  border-color: var(--blue-100);
  box-shadow: var(--shadow-md);
}
.hcl-item--clickable {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.hcl-number {
  background: var(--blue-900);
  color: #fff;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.3px;
}
.hcl-info { flex: 1; }
.hcl-info h4 { font-size: 14px; font-weight: 600; color: var(--gray-800); margin-bottom: 2px; }
.hcl-info p { font-size: 13px; color: var(--gray-500); }
.hcl-actions { display: flex; gap: 8px; }
.hcl-btn {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  border: none;
  font-family: inherit;
}
.hcl-btn.view {
  background: var(--blue-50);
  color: var(--blue-700);
}
.hcl-btn.view:hover { background: var(--blue-100); }
.hcl-btn.download {
  background: var(--success-bg);
  color: var(--success);
}
.hcl-btn.download:hover { background: #d1fae5; }

/* ═══════════════════════════════════
   PAGE HERO (compact inner-page banner)
═══════════════════════════════════ */
.page-hero {
  background: linear-gradient(170deg, var(--blue-900) 0%, var(--blue-700) 60%, var(--blue-600) 100%);
  color: #fff;
  padding: 56px 32px 52px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 0;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(212,168,67,0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(255,255,255,0.03) 0%, transparent 50%);
}
.page-hero-content {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
}
.page-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold-400);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.page-hero-eyebrow::before, .page-hero-eyebrow::after {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--gold-500);
  opacity: 0.5;
}
.page-hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 8px;
}
.page-hero p {
  font-size: 16px;
  opacity: 0.75;
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto;
}

/* ═══════════════════════════════════
   INFO CARDS
═══════════════════════════════════ */
.info-cards {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-bottom: 32px;
}
.info-cards > .info-card {
  flex: 1 1 0;
  min-width: 0;
}
.info-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.2s var(--ease);
}
.info-card:hover {
  border-color: var(--blue-100);
  box-shadow: var(--shadow-md);
}
.info-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #e8f1fc;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.info-card-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--blue-600);
  stroke-width: 1.75;
  fill: none;
}
.info-card-green .info-card-icon { background: var(--success-bg); }
.info-card-green .info-card-icon svg { stroke: var(--success); }
.info-card-orange .info-card-icon { background: var(--warning-bg); }
.info-card-orange .info-card-icon svg { stroke: var(--warning); }
.info-card-gold .info-card-icon { background: var(--gold-100); }
.info-card-gold .info-card-icon svg { stroke: #92700c; }
.info-card-body { flex: 1; min-width: 0; }
.info-card-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.info-card-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-800);
  line-height: 1.5;
}
.info-card-value a {
  color: var(--blue-600);
}
.info-card-value a:hover {
  text-decoration: underline;
}

/* ═══════════════════════════════════
   SUBPAGE GRID (hub navigation)
═══════════════════════════════════ */
.subpage-grid {
  display: grid;
  gap: 14px;
  margin-bottom: 32px;
}
.subpage-grid-2 { grid-template-columns: repeat(2, 1fr); }
.subpage-grid-3 { grid-template-columns: repeat(3, 1fr); }

.subpage-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.25s var(--ease);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.subpage-card::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--blue-600);
  transform: scaleY(0);
  transition: transform 0.25s var(--ease);
}
.subpage-card:hover {
  border-color: var(--blue-100);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.subpage-card:hover::after { transform: scaleY(1); }

.subpage-card-body { flex: 1; min-width: 0; }
.subpage-card-body h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 4px;
  transition: color 0.2s;
}
.subpage-card:hover .subpage-card-body h3 { color: var(--blue-700); }
.subpage-card-body p {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.4;
}
.subpage-card-arrow {
  flex-shrink: 0;
  color: var(--gray-300);
  transition: all 0.2s var(--ease);
}
.subpage-card:hover .subpage-card-arrow {
  color: var(--blue-600);
  transform: translateX(4px);
}

/* ═══════════════════════════════════
   PERSON CARD
═══════════════════════════════════ */
.person-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 40px;
  display: flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 32px;
}
.person-card-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 4px solid var(--blue-50);
}
.person-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.person-card-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--blue-100), var(--blue-50));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-400);
}
.person-card-info h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 4px;
}
.person-card-role {
  display: inline-block;
  padding: 5px 16px;
  background: var(--blue-50);
  color: var(--blue-700);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
}

/* ═══════════════════════════════════
   CONTENT SECTION (titled block)
═══════════════════════════════════ */
.content-section {
  margin-bottom: 32px;
}
.content-section-header {
  border-bottom: 2px solid var(--blue-100);
  margin-bottom: 20px;
  padding-bottom: 12px;
}
.content-section-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
  font-family: 'Inter', sans-serif;
  display: flex;
  align-items: center;
  gap: 10px;
}
.content-section-header h3::before {
  content: '';
  width: 4px;
  height: 20px;
  background: var(--blue-600);
  border-radius: 2px;
  flex-shrink: 0;
}
.content-section-body {
  font-size: 15px;
  line-height: 1.8;
  color: var(--gray-700);
}
.content-section-body p { margin-bottom: 16px; }
.content-section-body ul, .content-section-body ol {
  margin: 0 0 16px 24px;
}
.content-section-body li { margin-bottom: 6px; }

/* ═══════════════════════════════════
   DEPARTMENT PAGE LAYOUT
═══════════════════════════════════ */
.dept-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}
.dept-main { min-width: 0; }
.dept-sidebar {
  position: sticky;
  top: 140px;
}
.dept-contact-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.dept-contact-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--gray-100);
}
.dept-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-50);
}
.dept-contact-item:last-child { border-bottom: none; }
.dept-contact-item svg {
  width: 18px;
  height: 18px;
  stroke: var(--blue-600);
  flex-shrink: 0;
  margin-top: 2px;
}
.dept-contact-item span {
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.5;
}

/* ═══════════════════════════════════
   ARTICLE WITH SIDEBAR (prose pages)
═══════════════════════════════════ */
.prose-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}
.prose-main { min-width: 0; }
.prose-sidebar {
  position: sticky;
  top: 140px;
}

/* Scraped images inside article-body */
.article-body img {
  border-radius: var(--radius-md);
  margin: 8px 0 16px;
  box-shadow: var(--shadow-sm);
  height: auto;
}
/* WordPress float-based image alignment */
.article-body img.alignright,
.article-body .alignright img {
  float: right;
  margin: 4px 0 16px 24px;
  max-width: 240px;
}
.article-body img.alignleft,
.article-body .alignleft img {
  float: left;
  margin: 4px 24px 16px 0;
  max-width: 240px;
}
.article-body img.aligncenter,
.article-body .aligncenter img {
  display: block;
  margin: 16px auto;
}
/* Large image mode — stop floating, display as prominent blocks */
.article-body--large-imgs img.alignright,
.article-body--large-imgs .alignright img,
.article-body--large-imgs img.alignleft,
.article-body--large-imgs .alignleft img {
  float: none;
  display: block;
  max-width: 360px;
  height: auto;
  margin: 24px 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* Clear float only after the last paragraph (allow text wrapping around floated images) */
.article-body::after {
  content: '';
  display: table;
  clear: both;
}
.article-body a {
  color: var(--blue-600);
  font-weight: 500;
}
.article-body a:hover {
  text-decoration: underline;
}
/* Style scraped tables */
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  font-size: 14px;
}
.article-body table th,
.article-body table td {
  padding: 10px 14px;
  border: 1px solid var(--gray-200);
  text-align: left;
}
.article-body table th {
  background: var(--gray-50);
  font-weight: 600;
  color: var(--gray-800);
}
.article-body table tr:hover td {
  background: var(--blue-50);
}

/* CTA banner */
.cta-banner {
  background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}
.cta-banner-text h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}
.cta-banner-text p {
  font-size: 14px;
  opacity: 0.75;
}
.cta-banner-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #fff;
  color: var(--blue-800);
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 14px;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
  text-decoration: none;
}
.cta-banner-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* ═══════════════════════════════════
   CONSILIERI LOCALI
═══════════════════════════════════ */
.consilieri-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 32px;
}
.consilier-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.2s var(--ease);
}
.consilier-card:hover {
  border-color: var(--blue-100);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.consilier-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-100), var(--blue-50));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--blue-600);
}
.consilier-avatar-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--blue-50);
}
.consilier-info {
  flex: 1;
  min-width: 0;
}
.consilier-info h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 2px;
}
.consilier-party {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.party-pnl { background: #fef9e7; color: #92700c; }
.party-psd { background: #fef2f2; color: #dc2626; }
.party-aur { background: #fef9e7; color: #b45309; }
.party-pusl { background: #eff6ff; color: #2563eb; }
.party-default { background: var(--gray-100); color: var(--gray-600); }

/* Party stats bar */
.party-stats {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.party-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
}
.party-stat-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  /* The parties are read off the page text now, so the next election can
     introduce one this list has never heard of. Without a default it would
     render as an invisible gap next to its tally. */
  background: var(--gray-400, #9ca3af);
}
.party-stat-dot.pnl { background: #d4a843; }
.party-stat-dot.psd { background: #dc2626; }
.party-stat-dot.aur { background: #b45309; }
.party-stat-dot.pusl { background: #2563eb; }

/* ═══════════════════════════════════
   COMISII DE SPECIALITATE
═══════════════════════════════════ */
.comisii-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}
.comisie-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.2s var(--ease);
}
.comisie-card:hover {
  border-color: var(--blue-100);
  box-shadow: var(--shadow-md);
}
.comisie-header {
  background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
  color: #fff;
  padding: 20px 28px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.comisie-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  flex-shrink: 0;
}
.comisie-header h3 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}
.comisie-members {
  padding: 8px 28px 20px;
}
.comisie-member {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 14px;
  color: var(--gray-700);
  font-weight: 500;
}
.comisie-member:last-child { border-bottom: none; }
.comisie-member-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-100), var(--blue-50));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.comisie-member-avatar svg {
  width: 18px;
  height: 18px;
  stroke: var(--blue-400);
}
.comisie-member-avatar img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

/* ═══════════════════════════════════
   SCHEDULE (Contact page)
═══════════════════════════════════ */
.schedule-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 8px;
}
.schedule-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.schedule-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 24px;
  background: var(--blue-900);
  color: #fff;
}
.schedule-header svg { stroke: var(--gold-400); flex-shrink: 0; }
.schedule-header h3 {
  font-size: 15px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
}
.schedule-body { padding: 8px 0; }
.schedule-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--gray-100);
}
.schedule-row:last-child { border-bottom: none; }
.schedule-day {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-800);
  min-width: 140px;
  flex-shrink: 0;
  padding-top: 4px;
}
.schedule-times {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.schedule-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-700);
}
.schedule-badge em {
  font-style: normal;
  color: var(--gray-400);
  margin-left: 4px;
  font-size: 12px;
}
.schedule-badge.open {
  background: var(--success-bg);
  color: var(--success);
}
.schedule-badge.open em { color: #34d399; }
.schedule-badge.closed {
  background: var(--gray-100);
  color: var(--gray-500);
}
.schedule-badge.muted {
  background: var(--blue-50);
  color: var(--blue-600);
}
.schedule-badge.muted em { color: var(--blue-400); }
.schedule-badge.accent {
  background: var(--gold-100);
  color: #92700c;
  font-weight: 600;
}
.schedule-highlight {
  background: var(--gold-100);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

@media (max-width: 1024px) {
  .schedule-section { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .schedule-row { flex-direction: column; gap: 8px; }
  .schedule-day { min-width: auto; }
}

/* ═══════════════════════════════════
   GALLERY
═══════════════════════════════════ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 32px;
  max-width: 800px;
}
.gallery-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  border: none;
  padding: 0;
  background: var(--gray-100);
  transition: all 0.3s var(--ease);
}
.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}
.gallery-item:hover img {
  transform: scale(1.08);
}
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(12, 35, 64, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s var(--ease);
}
.gallery-overlay svg {
  color: #fff;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s var(--ease);
}
.gallery-item:hover .gallery-overlay {
  background: rgba(12, 35, 64, 0.35);
}
.gallery-item:hover .gallery-overlay svg {
  opacity: 1;
  transform: scale(1);
}

/* First image spans 2 columns for visual interest */
.gallery-grid .gallery-item:first-child {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  animation: lightboxIn 0.2s ease;
}
@keyframes lightboxIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-content img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.lightbox-close {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  transition: all 0.2s;
}
.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}
.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  transition: all 0.2s;
}
.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.25);
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-counter {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  font-weight: 600;
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    max-width: 100%;
  }
  .gallery-grid .gallery-item:first-child {
    grid-column: span 2;
    grid-row: span 1;
    aspect-ratio: 16/9;
  }
  .lightbox-nav { width: 40px; height: 40px; }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 64px 32px;
  color: var(--gray-400);
}
.empty-state svg {
  margin-bottom: 16px;
  opacity: 0.4;
}
.empty-state p {
  font-size: 15px;
  font-weight: 500;
}

@media (max-width: 1024px) {
  .dept-layout, .prose-layout { grid-template-columns: 1fr; }
  .dept-sidebar, .prose-sidebar { position: static; }
  .info-cards { flex-direction: column; }
  .subpage-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .consilieri-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .page-hero { padding: 40px 20px 36px; }
  .page-hero h1 { font-size: 28px; }
  .person-card {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
  }
  .person-card-photo { width: 120px; height: 120px; }
  .subpage-grid-2, .subpage-grid-3 { grid-template-columns: 1fr; }
  .cta-banner { flex-direction: column; text-align: center; }
  .consilieri-grid { grid-template-columns: 1fr; }
  .comisie-header { padding: 16px 20px; }
  .comisie-members { padding: 8px 20px 16px; }
}

/* ═══════════════════════════════════
   SEARCH RESULTS
═══════════════════════════════════ */
.search-results-section {
  margin-bottom: 40px;
}
.search-results-section h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gray-100);
  display: flex;
  align-items: center;
  gap: 10px;
}
.search-result-type {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
}
.search-result-type.pagina { background: var(--blue-50); color: var(--blue-600); }
.search-result-type.anunt { background: var(--gold-100); color: #92700c; }
.search-result-type.hotarare { background: var(--success-bg); color: var(--success); }
.search-result-type.formular { background: #ede9fe; color: #7c3aed; }

.search-empty {
  text-align: center;
  padding: 64px 32px;
  color: var(--gray-400);
}
.search-empty svg {
  margin: 0 auto 16px;
  display: block;
  stroke: var(--gray-300);
}
.search-empty p {
  font-size: 16px;
  color: var(--gray-500);
}

/* ── PDF Viewer modal ── */
.pdf-viewer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 17, 23, 0.78);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: pdfFadeIn 0.18s var(--ease);
  -webkit-user-select: none;
  user-select: none;
}
@keyframes pdfFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.pdf-viewer-modal {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 1100px;
  height: calc(100vh - 48px);
  max-height: 1000px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.pdf-viewer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--gray-200);
  background: var(--gray-50);
}
.pdf-viewer-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-900);
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pdf-viewer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200);
  background: #fff;
  color: var(--gray-600);
  cursor: pointer;
  transition: all 0.15s var(--ease);
  flex-shrink: 0;
}
.pdf-viewer-close:hover {
  background: var(--gray-100);
  color: var(--gray-900);
  border-color: var(--gray-300);
}
.pdf-viewer-body {
  flex: 1;
  background: var(--gray-200);
  overflow: hidden;
}
.pdf-viewer-frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.pdf-viewer-unsupported {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px;
  background: #fff;
}
@media (max-width: 768px) {
  .pdf-viewer-backdrop { padding: 0; }
  .pdf-viewer-modal {
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
  }
}

/* ════════════════════════════════════════════════════════════
   FORMULARE — ONLINE FILL
   ════════════════════════════════════════════════════════════ */

/* Shared buttons (form-scoped) */
.btn-primary,
.btn-secondary {
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  border: 1.5px solid transparent;
}
.btn-primary {
  background: var(--blue-700);
  color: #fff;
}
.btn-primary:hover { background: var(--blue-800); }
.btn-primary:disabled { opacity: 0.6; cursor: default; }
.btn-secondary {
  background: #fff;
  color: var(--gray-700);
  border-color: var(--gray-200);
}
.btn-secondary:hover { border-color: var(--blue-400); }
.btn-text {
  background: none;
  border: none;
  color: var(--blue-700);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 4px;
}
.btn-text:hover { text-decoration: underline; }

.list-item-badges { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.file-badge.online {
  background: var(--success-bg);
  color: var(--success);
  text-transform: none;
  letter-spacing: 0;
}

/* Detail page */
.form-detail { margin-top: 8px; }
.form-detail-lead { font-size: 15px; color: var(--gray-600); margin-bottom: 16px; }
.form-back { margin-bottom: 12px; }

/* Fork */
.form-fork { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-fork-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--gray-200);
  background: #fff;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.form-fork-card:hover { border-color: var(--blue-400); box-shadow: var(--shadow-md); }
.form-fork-primary { border-color: var(--blue-400); background: var(--blue-50); }
.form-fork-title { font-size: 17px; font-weight: 700; color: var(--gray-900); }
.form-fork-sub { font-size: 14px; color: var(--gray-600); }

/* Privacy + soon notices */
.form-privacy,
.form-soon {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 20px;
}
.form-privacy { background: var(--blue-50); color: var(--gray-800); border: 1px solid var(--blue-100); }
.form-soon { background: var(--warning-bg); color: var(--gray-800); border: 1px solid var(--warning); }

/* Form fields */
.form-step { font-size: 13px; font-weight: 600; color: var(--blue-700); text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 16px; }
.form-fields { display: flex; flex-direction: column; gap: 20px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: 15px; font-weight: 600; color: var(--gray-800); }
.form-required { color: var(--danger); }
.form-help { font-size: 13px; color: var(--gray-500); margin: 0; }
.form-field input,
.form-field textarea,
.form-field select {
  /* 16px prevents iOS zoom-jank on focus */
  font-size: 16px;
  padding: 12px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: #fff;
  width: 100%;
  transition: border-color 0.2s;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus { outline: none; border-color: var(--blue-500); }
.form-field input[aria-invalid="true"],
.form-field textarea[aria-invalid="true"] { border-color: var(--danger); }
.form-field-checkbox label { display: flex; align-items: center; gap: 10px; font-weight: 500; cursor: pointer; }
.form-field-checkbox input { width: 20px; height: 20px; }
.form-error { font-size: 13px; color: var(--danger); margin: 0; }
.form-error-banner { padding: 12px 14px; background: var(--danger-bg); border-radius: var(--radius-md); }

.form-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 28px; }

/* Review */
.form-review { display: flex; flex-direction: column; gap: 0; margin: 16px 0 0; border: 1px solid var(--gray-200); border-radius: var(--radius-md); overflow: hidden; }
.form-review-row { display: grid; grid-template-columns: 200px 1fr; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--gray-100); }
.form-review-row:last-child { border-bottom: none; }
.form-review-row dt { font-weight: 600; color: var(--gray-600); font-size: 14px; margin: 0; }
.form-review-row dd { margin: 0; color: var(--gray-900); font-size: 15px; }
.form-review-empty { color: var(--gray-400); font-style: italic; }

/* Done */
.form-nextsteps { background: var(--success-bg); border: 1px solid var(--success); border-radius: var(--radius-md); padding: 20px 24px; margin-bottom: 20px; }
.form-nextsteps h3 { margin: 0 0 12px; font-size: 17px; }
.form-nextsteps ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.form-nextsteps li { font-size: 14px; line-height: 1.5; color: var(--gray-800); }
.form-nextsteps-note { margin: 14px 0 0; font-size: 13px; color: var(--gray-600); }
.form-download-hint { font-size: 14px; color: var(--gray-600); margin: 0 0 14px; }
.form-preview { margin: 20px 0; }
.form-preview h4 { font-size: 15px; margin: 0 0 8px; }
.form-preview-frame { width: 100%; height: 600px; border: 1px solid var(--gray-200); border-radius: var(--radius-md); }

/* Download card */
.form-download-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-md); }
.form-download-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

@media (max-width: 768px) {
  .form-fork { grid-template-columns: 1fr; }
  .form-review-row { grid-template-columns: 1fr; gap: 2px; }
  .form-download-card { flex-direction: column; align-items: stretch; }
  .form-preview-frame { height: 70vh; }
}

/* ── Admin ── */
.admin-gate { min-height: 70vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.admin-gate-box { width: 100%; max-width: 380px; background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-md); }
.admin-gate-box h1 { font-size: 20px; margin: 0 0 8px; }
.admin-gate-note { font-size: 13px; color: var(--gray-500); margin: 0 0 16px; }
.admin-gate-box form { display: flex; flex-direction: column; gap: 12px; }
.admin-gate-box input { font-size: 16px; padding: 12px 14px; border: 1.5px solid var(--gray-200); border-radius: var(--radius-md); }

.admin-nav { display: flex; justify-content: space-between; align-items: center; padding: 14px 0 18px; border-bottom: 1px solid var(--gray-200); margin-bottom: 24px; }
.admin-nav-links { display: flex; gap: 18px; }
.admin-nav-links a { color: var(--blue-700); font-weight: 600; font-size: 14px; text-decoration: none; }
.admin-nav-links a:hover { text-decoration: underline; }
.admin-empty { color: var(--gray-500); padding: 24px 0; }

.review-queue { display: flex; flex-direction: column; gap: 16px; }
.review-card { border: 1px solid var(--gray-200); border-radius: var(--radius-md); padding: 20px 24px; background: #fff; }
.review-decided { opacity: 0.75; }
.review-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.review-head h3 { margin: 0 0 4px; font-size: 16px; }
.review-meta { font-size: 13px; color: var(--gray-600); margin: 0; }
.review-conf-ok { color: var(--success); font-weight: 600; }
.review-conf-low { color: var(--warning); font-weight: 600; }
.review-actions { display: flex; gap: 10px; align-items: center; margin-top: 16px; flex-wrap: wrap; }
.review-tag { padding: 4px 12px; border-radius: 100px; font-size: 12px; font-weight: 700; }
.review-tag.approved { background: var(--success-bg); color: var(--success); }
.review-tag.rejected { background: var(--danger-bg); color: var(--danger); }
.review-mock-note { font-size: 12px; color: var(--gray-500); margin: 10px 0 0; }
.review-card .form-preview-frame { margin-top: 16px; }
