:root {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --ink: #0b1220;
  --ink-2: #111a2e;
  --ink-soft: #475569;
  --muted: #94a3b8;
  --line: #e5e7eb;
  --line-strong: #cbd5e1;

  --brand: #0b1220;
  --accent: #06b6d4;
  --accent-2: #0ea5e9;
  --accent-soft: #cffafe;
  --accent-glow: rgba(6,182,212,.35);

  --gold: #d97706;
  --gold-soft: #fef3c7;

  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(11,18,32,.06);
  --shadow: 0 2px 4px rgba(11,18,32,.04), 0 12px 28px rgba(11,18,32,.08);
  --shadow-lg: 0 8px 40px rgba(11,18,32,.12);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin: 0 0 0.5em;
  color: var(--ink);
}

a { color: var(--accent-2); text-decoration: none; transition: color .15s; }
a:hover { color: var(--accent); }

code, .mono { font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 28px; }

/* ===== NAVBAR ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 28px; max-width: 1160px; margin: 0 auto; }
.nav-logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700; color: var(--ink);
}
.nav-logo::before {
  content: ''; width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft), 0 0 12px var(--accent-glow);
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--ink-soft); font-weight: 500; font-size: 15px;
  padding: 6px 0; position: relative;
  display: inline-flex; align-items: center; gap: 9px;
}
.nav-links a .ico {
  width: 28px; height: 28px; flex-shrink: 0;
  display: inline-grid; place-items: center;
  border-radius: 8px;
  background: #f1f5f9;
  color: var(--ink-soft);
  transition: background .18s, color .18s;
}
.nav-links a .ico svg {
  width: 15px; height: 15px;
  stroke-width: 2; color: currentColor;
}
.nav-links a:hover .ico, .nav-links a.active .ico {
  background: var(--accent-soft);
  color: var(--accent-2);
}
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -20px; height: 2px;
  background: var(--accent);
}
.nav-links a:hover { color: var(--ink); }

/* ===== HERO — DARK TECH ===== */
.hero {
  position: relative;
  padding: 120px 28px 110px;
  text-align: center;
  color: #e2e8f0;
  background:
    radial-gradient(1000px 400px at 50% -100px, rgba(6,182,212,.18), transparent 60%),
    radial-gradient(800px 500px at 80% 110%, rgba(217,119,6,.10), transparent 60%),
    linear-gradient(180deg, #0b1220 0%, #0f172a 100%);
  overflow: hidden;
  border-bottom: 1px solid #1e293b;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(148,163,184,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 35%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 35%, transparent 75%);
  pointer-events: none;
}
.hero-code {
  position: absolute; inset: 0; pointer-events: none; opacity: .14;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  color: #94a3b8; font-size: 13px; line-height: 1.7;
  padding: 60px 40px; white-space: pre; overflow: hidden;
  text-align: left;
}
.hero-inner { position: relative; z-index: 2; max-width: 900px; margin: 0 auto; }

.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px;
  background: rgba(6,182,212,.10);
  border: 1px solid rgba(6,182,212,.35);
  border-radius: 999px;
  color: #67e8f9; font-family: 'JetBrains Mono', monospace;
  font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 32px;
}
.hero .eyebrow .dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 10px var(--accent); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }

.hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  color: #f8fafc;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.hero h1 .accent { color: var(--accent); font-style: italic; }
.hero .lead {
  color: #cbd5e1; font-size: 19px; max-width: 640px; margin: 0 auto 40px;
  line-height: 1.6;
}
.hero-meta {
  display: flex; justify-content: center; gap: 32px; margin-top: 56px;
  flex-wrap: wrap;
}
.hero-meta .stat { text-align: center; }
.hero-meta .stat .num {
  font-family: 'Playfair Display', serif; font-size: 38px; font-weight: 700;
  color: var(--accent); line-height: 1;
}
.hero-meta .stat .lbl {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; text-transform: uppercase;
  color: #94a3b8; letter-spacing: 0.12em; margin-top: 8px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: var(--radius);
  font-family: inherit; font-weight: 600; font-size: 15px; cursor: pointer;
  border: 1px solid transparent; transition: all .18s ease; text-decoration: none;
}
.btn.small { padding: 7px 14px; font-size: 13px; }
.btn-primary {
  background: var(--accent); color: #042f3d;
  box-shadow: 0 4px 20px rgba(6,182,212,.4);
}
.btn-primary:hover { background: #22d3ee; transform: translateY(-1px); box-shadow: 0 6px 24px rgba(6,182,212,.5); color: #042f3d; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #1e293b; color: #fff; transform: translateY(-1px); }
.btn-outline {
  background: transparent; color: #f1f5f9;
  border: 1px solid rgba(255,255,255,.25);
}
.btn-outline:hover { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.5); }
.btn-outline-ink { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); }
.btn-outline-ink:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-soft { background: var(--accent-soft); color: #0e7490; }
.btn-soft:hover { background: #a5f3fc; color: #0e7490; }
.btn-danger { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.btn-danger:hover { background: #fee2e2; color: #991b1b; }
.btn-ghost { background: transparent; color: var(--ink-soft); border: 1px solid var(--line); }
.btn-ghost:hover { background: #f1f5f9; color: var(--ink); }

.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===== SECTIONS ===== */
section { padding: 88px 0; }
section.alt { background: var(--surface); border-block: 1px solid var(--line); }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 44px; flex-wrap: wrap; gap: 16px;
}
.section-eyebrow {
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  color: var(--accent-2); text-transform: uppercase; letter-spacing: 0.14em;
  margin-bottom: 8px; display: block; font-weight: 600;
}
.section-head h2 {
  font-size: clamp(30px, 3.8vw, 44px); margin: 0 0 6px;
}
.section-head p { margin: 0; color: var(--ink-soft); font-size: 16px; }

/* ===== CARDS ===== */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: all .2s ease;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0; transition: opacity .2s;
}
.card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-2px); }
.card:hover::before { opacity: 1; }
.card h3 { font-size: 22px; margin-bottom: 10px; }
.card .date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; color: var(--accent-2); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px;
}
.card p { color: var(--ink-soft); margin: 0; }
.card-body-preview { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ===== TABLE (rezultate) ===== */
.table-wrap {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm);
}
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px 20px; text-align: left; font-size: 15px; }
th {
  background: #f8fafc; font-family: 'JetBrains Mono', monospace;
  font-weight: 600; color: var(--ink-soft); font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.08em;
  border-bottom: 1px solid var(--line);
}
tbody tr { border-top: 1px solid var(--line); transition: background .12s; }
tbody tr:hover { background: #f8fafc; }
tbody tr:nth-child(1) td { background: linear-gradient(90deg, var(--gold-soft), transparent 40%); }
tbody tr:nth-child(2) td { background: linear-gradient(90deg, #f1f5f9, transparent 40%); }
tbody tr:nth-child(3) td { background: linear-gradient(90deg, #fef3c7, transparent 40%); }
td.num { font-family: 'JetBrains Mono', monospace; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); }
td.cod { font-family: 'JetBrains Mono', monospace; font-weight: 600; }
td.premiu { color: var(--gold); font-weight: 600; }
td.rank {
  font-family: 'JetBrains Mono', monospace; font-weight: 700; color: var(--muted);
  text-align: center;
}
tbody tr:nth-child(1) td.rank { color: var(--gold); }
tbody tr:nth-child(2) td.rank { color: #64748b; }
tbody tr:nth-child(3) td.rank { color: #92400e; }

/* ===== TABS ===== */
.tabs {
  display: inline-flex; gap: 4px; margin-bottom: 28px;
  background: var(--surface); padding: 4px; border-radius: var(--radius);
  border: 1px solid var(--line);
}
.tab {
  padding: 10px 22px; background: transparent; border: none; cursor: pointer;
  font-family: inherit; font-size: 14px; font-weight: 600; color: var(--ink-soft);
  border-radius: 8px; transition: all .15s;
}
.tab:hover { color: var(--ink); }
.tab.active { color: #042f3d; background: var(--accent-soft); }

/* ===== FOOTER ===== */
footer {
  background: var(--ink);
  color: #94a3b8;
  padding: 56px 28px 32px;
  margin-top: 100px;
  position: relative;
  overflow: hidden;
}
footer::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
footer .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
footer .brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Playfair Display', serif; font-size: 22px; color: #fff; font-weight: 700;
}
footer .brand::before {
  content: ''; width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 12px var(--accent-glow);
}
footer small { color: #64748b; font-family: 'JetBrains Mono', monospace; font-size: 12px; }

/* ===== EMPTY STATE ===== */
.empty {
  text-align: center; padding: 64px 24px; color: var(--muted);
  background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius-lg);
  font-size: 15px;
}
.empty::before {
  content: '{ }'; display: block;
  font-family: 'JetBrains Mono', monospace; font-size: 32px;
  color: var(--line-strong); margin-bottom: 12px; font-weight: 700;
}

/* ===== FORMS ===== */
.form-group { margin-bottom: 20px; }
label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; color: var(--ink); font-family: 'JetBrains Mono', monospace; letter-spacing: 0.04em; text-transform: uppercase; }
input[type=text], input[type=password], input[type=number], input[type=file], textarea, select {
  width: 100%; padding: 11px 14px; font: inherit;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: #fff; color: var(--ink); transition: all .15s;
}
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
textarea { min-height: 140px; resize: vertical; font-family: inherit; }

/* ===== ADMIN LAYOUT ===== */
.admin-wrap { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.admin-side {
  background: var(--ink); color: #cbd5e1;
  padding: 28px 18px; border-right: 1px solid #1e293b;
}
.admin-side .brand {
  color: #fff; font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700;
  padding: 8px 14px 28px; display: inline-flex; align-items: center; gap: 10px;
}
.admin-side .brand::before {
  content: ''; width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 12px var(--accent-glow);
}
.admin-nav { display: flex; flex-direction: column; gap: 2px; }
.admin-nav a {
  padding: 11px 14px; border-radius: 8px; color: #cbd5e1;
  font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 10px;
}
.admin-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.admin-nav a.active { background: var(--accent); color: #042f3d; font-weight: 600; }
.admin-main { padding: 44px 52px; overflow: auto; background: var(--bg); }
.admin-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 36px; }
.admin-head h1 { font-size: 32px; margin: 0; }
.admin-user {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px; color: var(--ink-soft);
}

/* ===== TOAST ===== */
.toast {
  position: fixed; bottom: 28px; right: 28px;
  background: var(--ink); color: #fff;
  padding: 14px 20px; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); z-index: 100;
  opacity: 0; transform: translateY(12px); transition: all .25s;
  font-size: 14px; font-weight: 500;
  border-left: 3px solid var(--accent);
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.error { border-left-color: #ef4444; }

/* ===== LOGIN ===== */
.login-wrap {
  min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(6,182,212,.18), transparent 60%),
    linear-gradient(180deg, #0b1220 0%, #0f172a 100%);
  position: relative; overflow: hidden;
}
.login-wrap::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(148,163,184,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,.06) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%);
}
.login-card {
  background: rgba(255,255,255,.98);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 44px;
  width: 100%; max-width: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
  position: relative; z-index: 1;
}
.login-card h1 { font-size: 28px; margin-bottom: 6px; text-align: center; }
.login-card .sub {
  text-align: center; color: var(--ink-soft); margin-bottom: 32px; font-size: 14px;
  font-family: 'JetBrains Mono', monospace;
}
.login-card .lock {
  width: 56px; height: 56px; margin: 0 auto 16px;
  border-radius: 14px; background: var(--accent-soft); color: var(--accent-2);
  display: grid; place-items: center; font-size: 26px;
}

/* ===== UTIL ===== */
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.row.center { justify-content: center; }
.stack { display: flex; flex-direction: column; gap: 16px; }

.divider-chip {
  display: inline-block; padding: 4px 12px;
  background: var(--accent-soft); color: #0e7490;
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600;
}

.program-wrap { display: flex; flex-direction: column; gap: 24px; }
.day-block {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
}
.day-head {
  padding: 16px 24px;
  background: linear-gradient(90deg, var(--ink) 0%, #1e293b 100%);
  color: #fff;
  font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 600;
  letter-spacing: -0.01em;
  border-left: 4px solid var(--accent);
}
.day-items { padding: 8px 0; }
.slot {
  display: grid; grid-template-columns: 140px 1fr auto;
  gap: 20px; align-items: center;
  padding: 14px 24px;
  border-top: 1px solid var(--line);
}
.slot:first-child { border-top: none; }
.slot-time {
  font-size: 13px; font-weight: 600; color: var(--accent-2);
  letter-spacing: 0.02em;
}
.slot-activity { font-size: 15px; color: var(--ink); }
.slot-loc .chip {
  display: inline-block; padding: 4px 12px;
  background: var(--accent-soft); color: #0e7490;
  border-radius: 999px; font-family: 'JetBrains Mono', monospace;
  font-size: 12px; font-weight: 500;
}

/* Admin schedule table (in dashboard) */
.admin-schedule-table { display: flex; flex-direction: column; }
.admin-row {
  display: grid; grid-template-columns: 130px 1fr 180px 260px;
  gap: 16px; align-items: center;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.admin-row.head {
  border-top: none; background: #f8fafc;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-soft); font-weight: 600;
  padding: 10px 12px;
}
.admin-row:first-child { border-top: none; }

@media (max-width: 720px) {
  .slot { grid-template-columns: 1fr; gap: 4px; }
  .admin-row { grid-template-columns: 1fr; gap: 6px; }
  .admin-row > div[style*="text-align:right"] { text-align: left !important; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .hero { padding: 72px 20px 64px; }
  .hero-meta { gap: 20px; margin-top: 36px; }
  .hero-meta .stat .num { font-size: 28px; }
  section { padding: 56px 0; }
  .admin-wrap { grid-template-columns: 1fr; }
  .admin-side { display: flex; flex-wrap: wrap; gap: 6px; padding: 14px; border-right: none; border-bottom: 1px solid #1e293b; }
  .admin-side .brand { flex-basis: 100%; padding: 6px 10px; }
  .admin-nav { flex-direction: row; flex-wrap: wrap; }
  .admin-main { padding: 28px 20px; }
}

/* ============ Subiecte / Materiale ============ */
.mat-tipgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 8px;
}
.mat-tipgrid .mat-tip h4 {
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #475569;
  margin: 0 0 10px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.mat-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef2ff;
  color: #4338ca;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 2px 9px;
  min-width: 22px;
}
.mat-files { display: flex; flex-direction: column; gap: 8px; }
.mat-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  background: #fff;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.mat-link:hover {
  border-color: #6366f1;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px -10px rgba(99, 102, 241, 0.5);
}
.mat-link-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}
.mat-link-body { min-width: 0; flex: 1; }
.mat-link-title {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mat-link-meta { font-size: 0.82rem; color: #6b7280; margin-top: 2px; }
.mat-class-card { margin-bottom: 22px; }
.mat-class-card h3 { margin: 0 0 14px 0; }

@media (max-width: 820px) {
  .mat-tipgrid { grid-template-columns: 1fr; }
}

/* ============ Hero logo ============ */
.hero-logo {
  display: block;
  max-width: 360px;
  width: 100%;
  height: auto;
  margin: 0 auto 28px;
  filter: drop-shadow(0 8px 32px rgba(0,0,0,0.35));
}
@media (max-width: 600px) {
  .hero-logo { max-width: 260px; }
}

/* ============ Navbar logo imagine ============ */
.nav-logo-has-img::before { display: none; }
.nav-logo-img {
  height: 126px;
  width: auto;
  display: block;
}
@media (max-width: 600px) {
  .nav-logo-img { height: 72px; }
}

/* ============ Despre / Info cards ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}
.about-text p {
  color: var(--ink-soft);
  line-height: 1.8;
  margin-bottom: 16px;
  font-size: 1.05rem;
}
.about-text p:last-child { margin-bottom: 0; }
.about-cards { display: flex; flex-direction: column; gap: 14px; }
.info-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 2px 8px -4px rgba(0,0,0,.08);
}
.info-card-icon { font-size: 1.6rem; flex-shrink: 0; }
.info-card-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: .06em; color: #94a3b8; font-weight: 600; }
.info-card-val { font-size: 1rem; font-weight: 700; color: var(--ink); margin-top: 2px; }

/* ============ Secțiuni concurs ============ */
.sections-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.section-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 4px 20px -8px rgba(0,0,0,.1);
  display: flex;
  flex-direction: column;
}
.section-card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.section-card-head h3 { margin: 0; font-size: 1.05rem; }
.section-card p { color: var(--ink-soft); line-height: 1.7; flex: 1; }
.section-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  border-radius: 10px;
  padding: 6px 12px;
  flex-shrink: 0;
  letter-spacing: .03em;
}
.section-badge.csharp { background: linear-gradient(135deg, #0ea5e9, #6366f1); }
.clase-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.clasa-tag {
  background: #eef2ff;
  color: #4338ca;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
}
.clasa-tag.csharp { background: #e0f2fe; color: #0369a1; }

/* ============ Organizatori ============ */
.organizer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.organizer-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px 28px;
  box-shadow: 0 4px 20px -8px rgba(0,0,0,.08);
}
.organizer-logo-wrap {
  flex-shrink: 0;
  width: 64px; height: 64px;
  border-radius: 14px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  display: flex; align-items: center; justify-content: center;
}
.organizer-initials {
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: .04em;
}
.organizer-initials.me { font-size: 1rem; }
.organizer-logo-wrap:has(.me) { background: linear-gradient(135deg, #0ea5e9, #06b6d4); }
.organizer-name { font-weight: 700; font-size: 1rem; color: var(--ink); }
.organizer-role { font-size: 0.85rem; color: var(--ink-soft); margin-top: 4px; }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .sections-grid { grid-template-columns: 1fr; }
  .organizer-grid { grid-template-columns: 1fr; }
}

/* Organizer real logo */
.organizer-img-logo {
  height: 56px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  flex-shrink: 0;
}

.organizer-img-square {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 14px;
}


/* ============ Navbar logo imagine ============ */
.nav-logo-has-img::before { display: none; }
.nav-logo-has-img {
  display: flex;
  align-items: center;
  padding: 10px 0;
}
.nav-logo-img {
  height: 126px;
  width: auto;
  display: block;
  mix-blend-mode: multiply;
}
@media (max-width: 600px) {
  .nav-logo-img { height: 56px; }
}

/* ============ Navbar butoane full-height tab style ============ */
.nav-inner {
  align-items: stretch;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 28px;
  padding-right: 28px;
}
.nav-links {
  display: flex;
  align-items: stretch;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links li { display: flex; }
.nav-links a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 18px;
  position: relative;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: background .18s, color .18s, border-color .18s;
  border-radius: 0;
  white-space: nowrap;
}
.nav-links a::after { display: none; }
.nav-links a:hover {
  background: #f8fafc;
  color: #334155;
  border-bottom-color: #cbd5e1;
}
.nav-links a.active {
  color: #4f46e5;
  background: #eef2ff;
  border-bottom-color: #4f46e5;
}
.nav-links a .ico {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  background: none;
  border-radius: 0;
  color: currentColor;
  transition: none;
}
.nav-links a .ico svg { width: 20px; height: 20px; stroke-width: 1.8; }
.nav-links a:hover .ico,
.nav-links a.active .ico { background: none; color: currentColor; }

/* ============ Rezultate homepage ============ */
.rez-home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.rez-home-card h3 { font-size: 1.05rem; }
@media (max-width: 820px) {
  .rez-home-grid { grid-template-columns: 1fr; }
}

/* ISJ logo background alb */
.organizer-img-square { background: white; }

/* Footer logo */
.footer-logo { height: 80px; width: auto; mix-blend-mode: multiply; }

/* ============ Hartă Leaflet ============ */
#map {
  height: 480px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 32px -8px rgba(0,0,0,.15);
  border: 1px solid var(--line);
}
.map-legend { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.map-legend-item {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .85rem; font-weight: 600; padding: 6px 14px;
  border-radius: 999px; border: 1px solid transparent;
}
.map-legend-item::before {
  content: ''; width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
}
.map-legend-item.concurs { background:#eef2ff; color:#4338ca; border-color:#c7d2fe; }
.map-legend-item.concurs::before { background:#6366f1; }
.map-legend-item.cazare { background:#f0fdf4; color:#15803d; border-color:#bbf7d0; }
.map-legend-item.cazare::before { background:#16a34a; }
.map-legend-item.vizita { background:#fef2f2; color:#b91c1c; border-color:#fecaca; }
.map-legend-item.vizita::before { background:#dc2626; }

/* ============ Anunturi atasamente ============ */
.anunt-atasamente { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.atas-poze-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 6px; }
.atas-poza { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: inherit; }
.atas-poza img { width: 140px; height: 110px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); transition: transform .18s; }
.atas-poza:hover img { transform: scale(1.04); }
.atas-poza-label { font-size: .8rem; color: #64748b; max-width: 140px; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.atas-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  background: #fafafa;
  transition: border-color .15s, background .15s;
  font-size: .9rem;
}
.atas-item:hover { border-color: #6366f1; background: #eef2ff; }
.atas-item.link { color: #2563eb; }
.atas-titlu { font-weight: 600; }
.atas-meta { font-size: .8rem; color: #94a3b8; margin-top: 2px; }

/* ============ Rezultate search bar ============ */
.rez-search-wrap {
  position: relative;
  max-width: 400px;
  margin-bottom: 4px;
}
.rez-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  pointer-events: none;
}
.rez-search-wrap input {
  width: 100%;
  padding: 10px 14px 10px 40px;
  border: 2px solid var(--line);
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border-color .18s, box-shadow .18s;
  background: #fff;
}
.rez-search-wrap input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99,102,241,.15);
}
tr.rez-highlight td { background: #fef9c3; }
tr.rez-highlight td.cod { font-weight: 700; color: #854d0e; }

/* ============ Contact page ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 28px;
  align-items: start;
}
.contact-info-card h3 { margin-bottom: 20px; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #f1f5f9;
}
.contact-item:last-child { border-bottom: none; }
.contact-item-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: var(--accent-soft);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.contact-item-icon svg { width: 18px; height: 18px; stroke: var(--accent-2); }
.contact-item-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: #94a3b8; font-weight: 600; margin-bottom: 3px; }
.contact-item-val { font-size: .95rem; font-weight: 600; color: var(--ink); line-height: 1.5; }
a.contact-item-val { color: #4f46e5; text-decoration: none; }
a.contact-item-val:hover { text-decoration: underline; }
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}
