:root {
  --ink: #14213d;
  --muted: #60718a;
  --line: #dce7f4;
  --paper: #f6f9fd;
  --blue: #246bfe;
  --blue-dark: #0b4edb;
  --green: #22a86b;
  --amber: #f59e0b;
  --red: #ef4444;
  --shadow: 0 18px 42px rgba(20, 33, 61, .12);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #fff;
  letter-spacing: 0;
}

a { color: inherit; text-decoration: none; }
.wrap { width: min(1180px, calc(100% - 56px)); margin: 0 auto; }

.funding-strip { background: #fff; border-bottom: 1px solid #e6edf5; }
.funding-row {
  min-height: 88px;
  padding: 12px 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
}

.funding-note,
.official-logos { display: flex; align-items: center; gap: 14px; }
.official-logos { justify-content: flex-end; }
.eu-emblem { width: 96px; height: auto; display: block; }
.government-logo { width: 62px; height: 62px; object-fit: contain; display: block; }
.project-logo { width: 238px; max-height: 70px; object-fit: contain; display: block; }
.funding-title { display: block; color: #075099; font-size: 21px; font-weight: 900; line-height: 1.08; }
.funding-subtitle { display: block; margin-top: 4px; color: #5f7288; font-size: 12px; font-weight: 750; line-height: 1.25; }

.nav {
  height: 78px;
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.95);
  border-bottom: 1px solid rgba(221,232,244,.8);
  backdrop-filter: blur(14px);
}

.nav-row { height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 230px; }
.brand-logo { width: 220px; max-height: 56px; object-fit: contain; display: block; }
.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 950;
  background: linear-gradient(135deg, var(--blue), var(--green));
  box-shadow: 0 14px 28px rgba(36,107,254,.22);
}

.brand-title { display: block; font-size: 23px; font-weight: 950; line-height: 1; }
.brand-sub { display: block; margin-top: 3px; color: #66758b; font-size: 12px; font-weight: 750; }
.nav-links { display: flex; align-items: center; gap: 18px; color: #30435f; font-size: 15px; font-weight: 820; }
.nav-links a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border-bottom: 3px solid transparent;
}
.nav-links a.active {
  color: var(--blue-dark);
  border-bottom-color: var(--green);
}
.nav-actions { display: flex; align-items: center; gap: 12px; }
.mobile-menu-toggle,
.mobile-auth-links { display: none; }

.btn {
  min-height: 44px;
  border-radius: 999px;
  padding: 0 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 900;
  font-size: 14px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn.primary { color: #fff; background: var(--blue); box-shadow: 0 14px 32px rgba(36,107,254,.28); }
.btn.green { color: #fff; background: var(--green); box-shadow: 0 14px 32px rgba(34,168,107,.24); }
.btn.outline { border-color: #cbd8ea; background: #fff; color: #243a59; }
.btn.admin-demo { min-height: 38px; padding: 0 14px; border-color: #d9e5f3; background: #f3f7fc; color: #415570; font-size: 12px; }

.hero {
  --cms-overlay: linear-gradient(90deg, rgba(12, 27, 51, .59) 0%, rgba(12, 27, 51, .46) 45%, rgba(12, 27, 51, .15) 100%);
  --cms-img: url("media/hero-practica.jpg");
  min-height: 650px;
  position: relative;
  color: #fff;
  background:
    var(--cms-overlay),
    var(--cms-img) center / cover;
}

.hero .wrap {
  min-height: 650px;
  display: flex;
  align-items: center;
}

.hero-content { max-width: 760px; padding: 78px 0 92px; }
.eyebrow {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.28);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

h1 { margin: 22px 0 18px; font-size: 64px; line-height: 1.02; letter-spacing: 0; }
h2 { margin: 0; font-size: 40px; line-height: 1.12; letter-spacing: 0; }
h3 { margin: 0; line-height: 1.2; }
p { margin: 0; color: var(--muted); line-height: 1.62; font-weight: 550; }
.hero-copy { max-width: 680px; color: rgba(255,255,255,.88); font-size: 20px; line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-actions .btn.outline { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.38); color: #fff; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-pill { min-height: 38px; padding: 0 13px; border-radius: 999px; background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.26); display: inline-flex; align-items: center; color: #fff; font-size: 13px; font-weight: 850; }

.section { padding: 82px 0; }
.section.soft { background: var(--paper); border-top: 1px solid #e4edf7; border-bottom: 1px solid #e4edf7; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 32px; }
.section-copy { max-width: 650px; margin-top: 12px; font-size: 16px; }

.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.category-card,
.info-card,
.article-card,
.mini-form,
.step-card {
  background: #fff;
  border: 1px solid #dfe9f5;
  box-shadow: 0 14px 34px rgba(20,33,61,.07);
}

.category-card {
  border-radius: 22px;
  overflow: hidden;
  min-height: 430px;
  display: flex;
  flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease;
}

.category-card:hover { transform: translateY(-5px); box-shadow: 0 20px 46px rgba(20,33,61,.13); }
.card-image { height: 185px; background: var(--cms-img, var(--img)) center / cover; position: relative; }
.card-image:after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(20,33,61,.38)); }
.category-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.category-kicker { color: var(--blue-dark); font-size: 13px; font-weight: 950; margin-bottom: 10px; }
.category-body h3 { font-size: 25px; margin-bottom: 10px; }
.category-body p { font-size: 15px; }
.category-body .card-action { margin-top: auto; padding-top: 22px; }

.role-action-card {
  border: 0;
  position: relative;
}

.role-action-card:before {
  content: "";
  height: 8px;
  background: var(--role-color);
  display: block;
}

.role-action-card.student { --role-color: var(--green); --role-soft: #eefbf5; }
.role-action-card.company { --role-color: var(--amber); --role-soft: #fff8e7; }
.role-action-card.school { --role-color: #2d95c9; --role-soft: #edf8fd; }
.role-action-card .category-body { background: linear-gradient(180deg, #fff, var(--role-soft)); }
.role-action-card .category-kicker,
.role-action-card .card-action { color: var(--role-color); }
.role-action-card .card-action span:last-child {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--role-color);
}

.card-action { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--blue-dark); font-size: 14px; font-weight: 950; }

.feature-band {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 28px;
  align-items: stretch;
}

.feature-photo {
  --cms-img: url("media/feature-practica.jpg");
  min-height: 440px;
  border-radius: 28px;
  overflow: hidden;
  background: var(--cms-img) center / cover;
  box-shadow: var(--shadow);
}

.step-list { display: grid; gap: 16px; }
.step-card { border-radius: 20px; padding: 22px; display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: start; }
.step-no { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--blue), var(--green)); font-weight: 950; }
.step-card h3 { font-size: 20px; margin-bottom: 8px; }

.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.article-card { border-radius: 20px; overflow: hidden; }
.article-image { height: 150px; background: var(--img) center / cover; }
.article-body { padding: 22px; }
.tag { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: 999px; background: #eef4fb; color: #415570; font-size: 12px; font-weight: 950; margin-bottom: 14px; }
.article-body h3 { font-size: 21px; margin-bottom: 8px; }

.page-hero {
  background: linear-gradient(135deg, #f6f9fd, #fff);
  border-bottom: 1px solid #e4edf7;
  padding: 70px 0 54px;
}

.page-hero-inner { max-width: 780px; }
.page-hero h1 { color: var(--ink); font-size: 54px; margin-bottom: 14px; }
.page-hero p { font-size: 18px; }
.page-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.public-content-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.split-latest {
  display: grid;
  grid-template-columns: 1fr;
  gap: 58px;
}

.latest-panel {
  --panel-color: var(--green);
  position: relative;
  padding: 28px;
  border: 1px solid #dfe9f5;
  border-radius: 24px;
  background: linear-gradient(180deg, var(--panel-soft), #fff 46%);
  box-shadow: 0 14px 34px rgba(20,33,61,.07);
  overflow: hidden;
}

.latest-panel:before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 8px;
  background: var(--panel-color);
}

.resources-panel { --panel-color: var(--green); --panel-soft: #eefbf5; }
.events-panel { --panel-color: #2d95c9; --panel-soft: #edf8fd; }
.latest-panel h2 { color: var(--panel-color); }
.latest-panel .btn.outline {
  border-color: color-mix(in srgb, var(--panel-color), #ffffff 62%);
  color: var(--panel-color);
  background: #fff;
}
.latest-panel .btn.outline:hover {
  border-color: var(--panel-color);
  background: var(--panel-soft);
}

.compact-head {
  align-items: center;
  margin-bottom: 18px;
}

.compact-head h2 { font-size: 32px; }
.compact-grid { grid-template-columns: repeat(2, 1fr); }
.listing-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 920px;
  margin: 0 auto;
}

.role-extra-section {
  padding: 0 0 70px;
}

.role-extra-section:has(.role-extra-content:empty) {
  display: none;
}

.role-extra-content {
  border: 1px solid #dfe9f5;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(20,33,61,.07);
  padding: 26px;
  color: var(--ink);
  font-weight: 550;
  line-height: 1.7;
  white-space: pre-line;
}

.role-extra-content:empty {
  display: none;
}

.role-extra-content h2,
.role-extra-content h3 {
  margin: 0 0 12px;
}

.role-extra-content p + p {
  margin-top: 12px;
}

.public-content-card,
.public-event-card {
  min-height: 100%;
  overflow: hidden;
  border: 1px solid #dfe9f5;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(20,33,61,.07);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.public-content-card:hover,
.public-event-card:hover {
  transform: translateY(-5px);
  border-color: #c6d8ee;
  box-shadow: 0 20px 46px rgba(20,33,61,.13);
}

.public-content-card { display: flex; flex-direction: column; }
.public-card-image { width: 100%; height: 160px; object-fit: cover; display: block; background: #eaf1f8; }
.public-card-visual {
  height: 160px;
  background:
    linear-gradient(135deg, rgba(36,107,254,.88), rgba(34,168,107,.82)),
    url("media/article-resurse.jpg") center / cover;
}

.public-card-body,
.event-content {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.public-card-body h3,
.event-content h3 { font-size: 21px; margin-bottom: 8px; }

.public-card-footer {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 950;
}

.public-event-card {
  position: relative;
  min-height: 300px;
  display: grid;
  grid-template-rows: 132px 1fr;
}

.public-event-card .public-card-image { height: 132px; }
.event-accent {
  height: 132px;
  background:
    linear-gradient(135deg, rgba(20,33,61,.34), rgba(36,107,254,.62)),
    url("media/article-evenimente.jpg") center / cover;
}

.event-date {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 70px;
  height: 76px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #dfe9f5;
  box-shadow: 0 14px 28px rgba(20,33,61,.16);
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
}

.event-date strong { display: block; color: var(--blue-dark); font-size: 28px; line-height: 1; }
.event-date span { display: block; color: #60718a; font-size: 12px; font-weight: 950; text-transform: uppercase; }

.contact-grid,
.auth-layout {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 24px;
  align-items: start;
}

.contact-card,
.auth-card {
  border: 1px solid #dfe9f5;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(20,33,61,.07);
  padding: 26px;
}

.contact-list { display: grid; gap: 14px; margin-top: 22px; }
.contact-list.compact { gap: 8px; }
.contact-details-row { margin-top: 24px; }
.contact-list > a,
.contact-list > span {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid #edf3fa;
  color: #30435f;
  font-weight: 850;
}

.about-contact-card {
  background: linear-gradient(135deg, #eff6ff, #f8fbff);
}

.about-contact-card .tag { margin-bottom: 14px; }

.auth-shell {
  min-height: calc(100vh - 166px);
  background: var(--paper);
  padding: 60px 0;
}

.auth-card { max-width: 520px; margin: 0 auto; }
.auth-card h1 { font-size: 40px; color: var(--ink); margin: 0 0 10px; }
.auth-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0; }
.auth-option {
  border: 1px solid #d7e4f2;
  border-radius: 16px;
  padding: 14px 10px;
  background: #fff;
  color: #30435f;
  text-align: center;
  font-size: 13px;
  font-weight: 950;
  font-family: inherit;
  cursor: pointer;
}

.auth-option:hover,
.auth-option.active {
  border-color: var(--blue);
  color: var(--blue-dark);
  background: #edf4ff;
}
.role-fields { display: grid; gap: 12px; }
.is-hidden { display: none !important; }
.form-grid textarea {
  min-height: 132px;
  width: 100%;
  border: 1px solid #cfdceb;
  border-radius: 12px;
  padding: 12px 13px;
  font: inherit;
  color: var(--ink);
  resize: vertical;
}

.content-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -8px 0 26px;
}

.content-filters.compact { margin: 0 0 28px; }
.filter-chip {
  min-height: 38px;
  border: 1px solid #d7e4f2;
  border-radius: 999px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #40546e;
  font: inherit;
  font-size: 13px;
  font-weight: 950;
  cursor: pointer;
}

.filter-chip.active,
.filter-chip:hover {
  border-color: var(--blue);
  background: #edf4ff;
  color: var(--blue-dark);
}

.public-empty {
  grid-column: 1 / -1;
  border: 1px solid #dfe9f5;
  border-radius: 20px;
  background: #fff;
  padding: 26px;
}

.detail-hero {
  min-height: 520px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(12,27,51,.62), rgba(12,27,51,.43) 48%, rgba(12,27,51,.13)),
    var(--preview-img) center / cover;
}

.event-detail-hero {
  background:
    linear-gradient(90deg, rgba(11,64,54,.63), rgba(20,95,76,.46) 48%, rgba(34,168,107,.14)),
    var(--preview-img) center / cover;
}

.detail-hero-inner {
  min-height: 520px;
  max-width: 920px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 78px 0;
}

.detail-hero h1 {
  margin: 20px 0 16px;
  font-size: 58px;
  line-height: 1.05;
}

.detail-hero p {
  max-width: 760px;
  color: rgba(255,255,255,.88);
  font-size: 19px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.detail-meta span {
  min-height: 38px;
  padding: 0 13px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.28);
  display: inline-flex;
  align-items: center;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.detail-section { background: #fff; }
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 860px);
  justify-content: center;
  gap: 28px;
}

.event-detail-layout {
  grid-template-columns: minmax(0, 760px) 340px;
  align-items: start;
}

.detail-content {
  color: #243a59;
  font-size: 18px;
  line-height: 1.78;
}

.preview-content p { margin-bottom: 18px; color: #243a59; }
.preview-content h2 { font-size: 30px; margin: 30px 0 12px; }

.event-info-card {
  position: sticky;
  top: 98px;
  border: 1px solid #dfe9f5;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 24px;
}

.event-info-date {
  width: 92px;
  height: 98px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--green), var(--blue));
  color: #fff;
  display: grid;
  place-items: center;
  text-align: center;
  margin-bottom: 18px;
}

.event-info-date strong { display: block; font-size: 34px; line-height: 1; }
.event-info-date span { display: block; font-size: 12px; font-weight: 950; text-transform: uppercase; }
.event-info-card h2 { font-size: 26px; margin-bottom: 16px; }
.event-info-card dl { margin: 0 0 22px; display: grid; gap: 12px; }
.event-info-card dl div { padding-bottom: 12px; border-bottom: 1px solid #edf3fa; }
.event-info-card dt { color: #60718a; font-size: 12px; font-weight: 950; text-transform: uppercase; }
.event-info-card dd { margin: 4px 0 0; color: #243a59; font-weight: 850; }

.partners-section { overflow: hidden; }
.logo-slider { overflow: hidden; padding: 10px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.logo-track { display: flex; width: max-content; gap: 18px; animation: logo-scroll 30s linear infinite; }
.partner-logo { width: 190px; height: 100px; border-radius: 18px; border: 1px solid #dfe9f5; background: #fff; display: grid; place-items: center; box-shadow: 0 12px 28px rgba(20,33,61,.06); flex: 0 0 auto; padding: 14px; }
.partner-logo img { max-width: 128px; max-height: 48px; object-fit: contain; filter: saturate(.95); }
.partner-logo span { color: #415570; font-weight: 900; font-size: 14px; }
.logo-wordmark { width: 100%; min-height: 54px; border-radius: 12px; display: grid; place-items: center; text-align: center; font-weight: 950; letter-spacing: 0; line-height: 1; }
.logo-wordmark.dedeman { background: #083f8f; color: #ffd434; font-size: 22px; }
.logo-wordmark.mathaus { background: #f5f7fb; color: #1f2937; border: 2px solid #e11d48; font-size: 21px; }
.logo-wordmark.emag { background: #fff; color: #0a6fae; border: 2px solid #dce8f4; font-size: 26px; }
.logo-wordmark.altex { background: #102b68; color: #ffe100; font-size: 24px; }
.logo-wordmark.fan { background: #fff7d6; color: #111827; border: 2px solid #facc15; font-size: 18px; }
.logo-wordmark.bt { background: #0a57a3; color: #fff; font-size: 18px; }
@keyframes logo-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.footer { background: #532080; color: #fff; padding: 52px 0 34px; }
.footer-top { display: grid; grid-template-columns: 1.15fr .85fr .85fr .85fr; gap: 38px; align-items: start; }
.footer p { color: rgba(255,255,255,.7); }
.footer h4 { margin: 0 0 14px; font-size: 15px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; color: rgba(255,255,255,.76); font-size: 14px; font-weight: 750; }
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand-logo { width: 230px; max-height: 74px; object-fit: contain; display: block; border-radius: 14px; background: rgba(255,255,255,.96); padding: 8px; }
.footer .brand-sub { color: rgba(255,255,255,.68); }
.footer-legal-links {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  color: rgba(255,255,255,.86);
  font-size: 13px;
  font-weight: 850;
}

.footer-legal-links a {
  width: fit-content;
  border-bottom: 1px solid rgba(255,255,255,.26);
  padding-bottom: 2px;
}

.footer-legal-links a:hover {
  color: #fff;
  border-bottom-color: rgba(255,255,255,.68);
}

.compliance { margin-top: 34px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.68); font-size: 13px; line-height: 1.6; font-weight: 550; }

.mandatory-footer-partners {
  background: #fff;
  border-top: 1px solid #e7edf5;
  color: #1f2937;
}

.mandatory-partners-wrap {
  width: min(1180px, calc(100% - 56px));
  min-height: 104px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 250px minmax(360px, 1fr) 310px;
  gap: 30px;
  align-items: center;
  padding: 16px 0;
}

.mandatory-partner {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.mandatory-partner p {
  margin: 0;
  color: #1f2937;
  font-size: 12px;
  line-height: 1.18;
  font-weight: 900;
}

.mandatory-logo-image {
  flex: 0 0 auto;
  display: block;
  max-width: 100%;
  max-height: 86px;
  object-fit: contain;
}

.estuar-logo-image { width: 98px; }
.school-logo-image { width: 96px; }
.change-logo-image { width: 270px; max-height: 76px; }

.estuar-partner { gap: 9px; }
.estuar-mark {
  width: 88px;
  height: 68px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  background: #f36f21;
  border: 2px solid #d9d9d9;
  overflow: hidden;
  position: relative;
}

.estuar-mark::before {
  content: "";
  position: absolute;
  width: 78px;
  height: 31px;
  border: 9px solid #fff;
  border-right-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  transform: rotate(-13deg);
  top: 18px;
  left: 11px;
}

.estuar-mark::after {
  content: "ESTUAR\A www.estuar.org";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  color: #fff;
  white-space: pre;
  text-align: center;
  font-size: 8px;
  line-height: .9;
  font-weight: 950;
  text-shadow: 0 1px 1px rgba(0,0,0,.18);
}

.estuar-mark span {
  color: #fff;
  font-size: 48px;
  font-weight: 950;
  line-height: 1;
  transform: translateY(4px);
  opacity: .98;
}

.estuar-text {
  display: none;
}

.estuar-text strong { display: block; font-size: 17px; letter-spacing: 0; }
.estuar-text span { display: block; color: #ef5f1a; font-size: 9px; font-weight: 850; }

.school-partner { justify-content: center; gap: 16px; }
.school-seal {
  width: 84px;
  height: 84px;
  flex: 0 0 auto;
  border: 3px solid #214da1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  background:
    radial-gradient(circle at 50% 48%, #f8fbff 0 40%, transparent 41%),
    repeating-conic-gradient(from 16deg, #214da1 0 14deg, #fff 14deg 27deg);
  box-shadow: inset 0 0 0 5px #fff, inset 0 0 0 7px #214da1;
}

.seal-ring {
  position: absolute;
  width: 72px;
  text-align: center;
  color: #214da1;
  font-size: 7px;
  line-height: .95;
  font-weight: 950;
  transform: rotate(-19deg);
}

.seal-icon {
  width: 34px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: #eef4ff;
  color: #214da1;
  border: 1px solid #9fb7e8;
  font-size: 12px;
  font-weight: 950;
  z-index: 1;
}

.school-partner p {
  max-width: 430px;
  font-size: 13px;
  line-height: 1.28;
}

.change-partner { justify-content: flex-end; }
.change-logo {
  position: relative;
  min-width: 276px;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  color: #4b286d;
}

.change-disc {
  width: 43px;
  height: 43px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #3d235e;
  color: #f6b221;
  font-size: 25px;
  font-weight: 950;
  line-height: 1;
}

.change-word {
  font-size: 43px;
  line-height: 1;
  font-weight: 300;
  letter-spacing: 0;
}

.change-label {
  position: absolute;
  right: 6px;
  top: 0;
  color: #7b6594;
  font-size: 17px;
  line-height: 1;
  font-weight: 500;
}

.role-hero {
  --cms-overlay: linear-gradient(90deg, rgba(12,27,51,.59), rgba(12,27,51,.29));
  --cms-img: var(--hero-img);
  min-height: 420px;
  color: #fff;
  background:
    var(--cms-overlay),
    var(--cms-img) center / cover;
}

.role-hero .wrap { min-height: 420px; display: flex; align-items: center; }
.role-hero-content { max-width: 720px; padding: 62px 0; }
.role-hero h1 { font-size: 56px; }
.role-hero p { color: rgba(255,255,255,.88); font-size: 19px; }

.contact-hero {
  --cms-overlay: linear-gradient(90deg, rgba(12,27,51,.60), rgba(12,27,51,.34));
  background:
    var(--cms-overlay),
    var(--cms-img) center / cover;
}

.about-hero {
  --cms-overlay: linear-gradient(90deg, rgba(12,27,51,.60), rgba(12,27,51,.32));
  background:
    var(--cms-overlay),
    var(--cms-img) center / cover;
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: start;
}

.about-main,
.project-facts {
  border: 1px solid #dfe9f5;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(20,33,61,.07);
  padding: 28px;
}

.about-main p + p { margin-top: 16px; }
.about-main h2 { margin-bottom: 16px; }
.legal-page {
  max-width: 920px;
  margin: 0 auto;
}

.legal-page [data-editable$="-main-content"] {
  color: var(--muted);
  font-weight: 550;
  line-height: 1.7;
}

.legal-page [data-editable$="-main-content"] p + p {
  margin-top: 14px;
}

.about-highlight {
  margin-top: 24px;
  padding: 22px;
  border-radius: 18px;
  background: linear-gradient(135deg, #eef5ff, #eefbf5);
}
.about-highlight h3 { margin-bottom: 8px; font-size: 22px; }
.project-facts { position: sticky; top: 98px; }
.project-facts h2 { font-size: 26px; margin-bottom: 18px; }
.project-facts dl { margin: 0 0 22px; display: grid; gap: 14px; }
.project-facts dl div { padding-bottom: 14px; border-bottom: 1px solid #edf3fa; }
.project-facts dt { color: #60718a; font-size: 12px; font-weight: 950; text-transform: uppercase; }
.project-facts dd { margin: 4px 0 0; color: #243a59; font-weight: 850; }

.role-layout { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.info-card { border-radius: 20px; padding: 22px; }
.info-card h3 { font-size: 21px; margin-bottom: 9px; }
.mini-form { border-radius: 22px; padding: 24px; position: sticky; top: 98px; }
.mini-form h2 { font-size: 26px; margin-bottom: 10px; }
.form-grid { display: grid; gap: 12px; margin-top: 18px; }
.field { display: grid; gap: 6px; }
.field label { color: #40546e; font-size: 13px; font-weight: 900; }
.field input,
.field select,
.field textarea {
  height: 44px;
  width: 100%;
  border: 1px solid #cfdceb;
  border-radius: 12px;
  padding: 0 13px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

.field textarea {
  min-height: 130px;
  padding-top: 13px;
  resize: vertical;
}

.field input.field-invalid,
.field select.field-invalid,
.field textarea.field-invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, .12);
}

.field-error {
  color: #b91c1c;
  font-size: 12px;
  font-weight: 900;
}

.form-alert {
  border: 1px solid #fecaca;
  border-radius: 14px;
  background: #fff1f2;
  color: #9f1239;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 900;
}

.form-success {
  border: 1px solid #bbf7d0;
  border-radius: 14px;
  background: #f0fdf4;
  color: #166534;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 900;
}

.form-note { margin-top: 14px; font-size: 13px; color: var(--muted); }

.forgot-password-link {
  width: fit-content;
  justify-self: center;
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 900;
  border-bottom: 1px solid rgba(11,78,219,.28);
  padding-bottom: 2px;
}

.forgot-password-link:hover {
  border-bottom-color: currentColor;
}

@media (max-width: 1040px) {
  .funding-row { grid-template-columns: 1fr auto; }
  .project-logo { grid-column: 1 / -1; justify-self: center; }
  .category-grid,
  .article-grid,
  .public-content-grid,
  .split-latest,
  .feature-band,
  .role-layout,
  .about-layout,
  .event-detail-layout,
  .contact-grid,
  .auth-layout { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .mini-form,
  .project-facts { position: static; }
}

@media (max-width: 900px) {
  .wrap { width: min(100% - 28px, 1180px); }
  .funding-row {
    min-height: auto;
    padding: 10px 0;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
  }
  .funding-note { gap: 8px; }
  .nav-links { display: none; }
  .nav {
    height: auto;
    position: sticky;
  }
  .nav-row {
    height: auto;
    min-height: 78px;
    gap: 12px;
    position: relative;
    justify-content: space-between;
  }
  .brand {
    min-width: 0;
    margin-right: auto;
  }
  .brand-logo {
    width: 164px;
    max-height: 56px;
  }
  .nav-actions { display: none; }
  .mobile-menu-toggle {
    width: 48px;
    height: 48px;
    border: 1px solid #cbd8ea;
    border-radius: 16px;
    background: #fff;
    display: inline-grid;
    place-items: center;
    gap: 4px;
    padding: 12px;
    box-shadow: 0 12px 26px rgba(20,33,61,.08);
    cursor: pointer;
  }
  .mobile-menu-toggle span {
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: var(--ink);
    display: block;
  }
  .nav.is-menu-open .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 30;
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid #dfe9f5;
    border-radius: 18px;
    background: rgba(255,255,255,.98);
    box-shadow: 0 20px 42px rgba(20,33,61,.18);
  }
  .nav.is-menu-open .nav-links a {
    min-height: 44px;
    padding: 0 12px;
    border-bottom: 0;
    border-radius: 12px;
  }
  .nav.is-menu-open .nav-links a.active {
    background: #eef5ff;
    color: var(--blue-dark);
  }
  .mobile-auth-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding-top: 8px;
    margin-top: 6px;
    border-top: 1px solid #edf3fa;
  }
  .nav.is-menu-open .mobile-auth-links a {
    justify-content: center;
    min-height: 42px;
    border: 1px solid #cbd8ea;
    border-radius: 999px;
    font-weight: 950;
  }
  .nav.is-menu-open .mobile-auth-links a:last-child {
    border-color: var(--blue);
    color: #fff;
    background: var(--blue);
  }
  .btn.admin-demo { display: none; }
  .funding-note span { display: none; }
  .eu-emblem { width: 68px; }
  .project-logo {
    width: 102px;
    max-height: 46px;
    grid-column: auto;
    justify-self: center;
  }
  .government-logo { width: 48px; height: 48px; }
  h1 { font-size: 42px; }
  h2 { font-size: 30px; }
  .page-hero h1 { font-size: 38px; }
  .detail-hero,
  .detail-hero-inner { min-height: 460px; }
  .detail-hero h1 { font-size: 38px; }
  .event-info-card { position: static; }
  .hero,
  .hero .wrap { min-height: calc(100svh - 128px); }
  .hero { background-position: center; }
  .hero-content { max-width: 100%; padding: 42px 0 48px; }
  .hero-copy { font-size: 18px; line-height: 1.45; }
  .hero-actions { display: grid; grid-template-columns: 1fr; margin-top: 26px; }
  .hero-actions .btn { width: 100%; white-space: normal; text-align: center; }
  .eyebrow { border-radius: 18px; white-space: normal; text-align: left; }
  .section { padding: 56px 0; }
  .section-head { align-items: start; flex-direction: column; }
  .compact-head { gap: 14px; }
  .compact-grid { grid-template-columns: 1fr; }
  .role-extra-section { padding: 0 0 56px; }
  .role-extra-content { padding: 20px; }
  .auth-options { grid-template-columns: 1fr; }
  .info-grid,
  .footer-top { grid-template-columns: 1fr; }
  .mandatory-partners-wrap {
    width: min(100% - 32px, 1180px);
    grid-template-columns: 1fr;
    gap: 18px;
    justify-items: center;
    padding: 22px 0;
  }
  .mandatory-partner,
  .school-partner,
  .change-partner {
    width: 100%;
    justify-content: center;
  }
  .estuar-partner { justify-content: flex-start; }
  .school-partner p { max-width: 250px; }
  .change-logo {
    min-width: 250px;
    justify-content: center;
  }
  .change-word { font-size: 36px; }
  .change-label { right: 18px; }
}

@media (max-width: 520px) {
  .wrap { width: min(100% - 24px, 1180px); }
  .funding-row { grid-template-columns: auto auto auto; }
  .eu-emblem { width: 60px; }
  .project-logo { width: 84px; }
  .government-logo { width: 42px; height: 42px; }
  .nav-row { flex-wrap: nowrap; }
  .brand-logo { width: 152px; max-height: 52px; }
  h1 { font-size: 36px; line-height: 1.08; }
  .role-hero h1,
  .page-hero h1,
  .detail-hero h1 { font-size: 34px; }
  .auth-shell { padding: 34px 0; }
  .auth-card,
  .contact-card { padding: 20px; }
}

.reset-confirm-panel {
  display: none;
}

.has-reset-token .reset-request-panel {
  display: none;
}

.has-reset-token .reset-confirm-panel {
  display: block;
}
/* Prevent old hardcoded image fallbacks from flashing before CMS images load. */
[data-cms-image]:not([data-cms-image-ready]) {
  background-image: var(--cms-overlay, none) !important;
}
