:root {
  --navy: #0f172a; /* Solid deep slate navy */
  --blue: #1e40af; /* Classic deep academic blue */
  --blue-soft: #f0f4ff;
  --green: #0f766e; /* Solid pine green */
  --green-soft: #f0fdfa;
  --gold: #b45309; /* Warm dark amber */
  --coral: #be123c; /* Academic brick red */
  --ink: #1e293b;
  --muted: #475569;
  --line: #cbd5e1;
  --paper: #ffffff;
  --soft: #f8fafc;
  --footer: #0f172a;
  --shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.08);
  --shadow-small: 0 2px 8px -1px rgba(15, 23, 42, 0.05);
  --shadow-glow: none;
  --radius: 4px; /* Crisp institutional borders */
  --radius-lg: 6px;
  --container: 1200px;
  --text-scale: 1;
  --transition: all 0.2s ease;
}

* {
  box-sizing: border-box;
}

html {
  font-size: calc(16px * var(--text-scale));
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family: "Inter", "Outfit", "Open Sans", Arial, sans-serif;
  line-height: 1.6;
}

body.high-contrast {
  --navy: #000000;
  --blue: #002db3;
  --blue-soft: #ffffff;
  --green: #006b1f;
  --green-soft: #ffffff;
  --gold: #ffd400;
  --coral: #b00000;
  --ink: #000000;
  --muted: #111111;
  --line: #000000;
  --paper: #ffffff;
  --soft: #ffffff;
  --footer: #000000;
  --shadow: none;
  --shadow-small: none;
}

body.nav-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  transition: var(--transition);
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
  transition: var(--transition);
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  transform: translateY(-140%);
  padding: 10px 14px;
  color: #ffffff;
  background: var(--navy);
  border-radius: var(--radius);
  font-weight: 800;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.utility-bar {
  color: rgba(255, 255, 255, 0.92);
  background: var(--footer);
  font-size: 0.875rem;
}

.utility-bar__inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.utility-links,
.utility-contact {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.utility-links a,
.utility-contact a {
  text-decoration: none;
}

.utility-links a:hover,
.utility-contact a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.utility-fb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-size: 0.875rem;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.utility-fb:hover {
  color: #ffffff;
}

.utility-fb svg {
  flex-shrink: 0;
}

.identity-bar {
  background: transparent;
}

.identity-bar__inner {
  min-height: 88px;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  gap: 20px;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand__seal {
  position: relative;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  filter: drop-shadow(0 6px 12px rgba(16, 47, 85, 0.16));
  transition: transform 0.2s ease;
}

.brand:hover .brand__seal {
  transform: scale(1.05);
}

.brand__copy {
  display: grid;
  gap: 2px;
}

.brand__copy strong {
  color: var(--navy);
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  line-height: 1.15;
}

.brand__copy small {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.site-search {
  position: relative;
  width: min(310px, 32vw);
}

.site-search input {
  width: 100%;
  min-height: 44px;
  padding: 10px 46px 10px 14px;
  color: var(--ink);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.site-search button {
  position: absolute;
  inset-block: 4px;
  right: 4px;
  width: 38px;
  display: grid;
  place-items: center;
  color: var(--navy);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 1.2rem;
}

.nav-toggle {
  min-width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--navy);
  background: var(--paper);
  font-weight: 900;
}

.schedule-top-button {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: #7f1d1d;
  background: #ef4444;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius);
  box-shadow: 0 8px 20px rgba(16, 47, 85, 0.12);
  text-decoration: none;
  transition: all 0.2s ease;
}

.tool-button:hover,
.nav-toggle:hover,
.site-search button:hover {
  background: var(--blue-soft);
  border-color: var(--blue);
}

.schedule-top-button:hover {
  background: #dc2626;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(220, 38, 38, 0.24);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
}

.nav-toggle span:not(.sr-only) {
  width: 20px;
  height: 2px;
  background: var(--navy);
}

.main-nav {
  background: var(--paper);
  padding: 0 0 10px;
}

.main-nav__inner {
  display: flex;
  min-height: 52px;
  align-items: center;
  gap: 4px;
  padding: 0 6px;
  overflow: hidden;
  background: var(--navy);
  border: 1px solid var(--navy);
  border-radius: var(--radius);
  box-shadow: var(--shadow-small);
}

.main-nav a {
  min-height: 40px;
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  color: rgba(255, 255, 255, 0.85);
  border: none;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
  transition: var(--transition);
}

.main-nav a:hover,
.main-nav a.is-active {
  color: #ffffff;
  background: var(--blue);
  box-shadow: none;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(560px, calc(100svh - 178px), 720px);
  display: grid;
  align-items: stretch;
  color: #ffffff;
  background: var(--navy);
  overflow: hidden;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background-image:
    linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 64, 175, 0.72)),
    url("img/scoala-tansa.jpg");
  background-position: center;
  background-size: cover;
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 6px;
  content: "";
  background: linear-gradient(90deg, var(--blue), var(--green), var(--gold), var(--coral));
}

.hero__inner {
  display: flex;
  align-items: center;
  padding-block: 70px;
}

.hero__copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-weight: 900;
  font-size: 0.78rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow,
.media-section .eyebrow,
.map-placeholder .eyebrow {
  color: #bceec8;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--navy);
  font-family: "Montserrat", sans-serif;
  line-height: 1.12;
  letter-spacing: 0;
}

.hero h1 {
  color: #ffffff;
  max-width: 800px;
  font-size: clamp(2.35rem, 4vw, 4rem);
}

.hero__copy p:not(.eyebrow) {
  max-width: 650px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-small);
}

.button--primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), #1d4ed8);
}

.button--primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e3a8a);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.button--light {
  color: var(--navy);
  background: #ffffff;
}

.button--light:hover {
  background: var(--soft);
  transform: translateY(-3px);
  box-shadow: var(--shadow-small);
}

.button--ghost {
  color: #ffffff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.button--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.hero-panel {
  align-self: end;
  display: grid;
  gap: 8px;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-small);
}

.hero-panel__label {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-panel a {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  color: var(--navy);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  text-decoration: none;
  font-weight: 900;
}

.hero-panel a:hover {
  color: #ffffff;
  background: var(--navy);
  border-color: var(--navy);
}

.hero-panel__meta {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr;
  gap: 6px 8px;
  align-items: baseline;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-panel__meta strong {
  color: var(--navy);
  font-family: "Montserrat", sans-serif;
  font-size: 1.18rem;
}

.notice-strip {
  color: #ffffff;
  background: var(--green);
}

.notice-strip__inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-block: 12px;
}

.notice-strip strong {
  color: #ffffff;
}

.notice-strip a {
  margin-left: auto;
  font-weight: 900;
}

.section {
  padding-block: 72px;
}

.section--soft {
  background: var(--soft);
}

.page-hero {
  position: relative;
  isolation: isolate;
  min-height: 300px;
  display: grid;
  align-items: end;
  padding-block: 72px 54px;
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(16, 47, 85, 0.94), rgba(16, 47, 85, 0.72)),
    url("https://images.unsplash.com/photo-1509062522246-3755977927d7?auto=format&fit=crop&w=1600&q=82") center / cover;
}

.page-hero--school {
  background:
    linear-gradient(90deg, rgba(16, 47, 85, 0.94), rgba(16, 47, 85, 0.7)),
    url("https://adminis.ro/wp-content/uploads/2025/03/1-2.webp") center / cover;
}

.page-hero--projects {
  background:
    linear-gradient(90deg, rgba(16, 47, 85, 0.94), rgba(16, 47, 85, 0.72)),
    url("https://images.unsplash.com/photo-1542601906990-b4d3fb778b09?auto=format&fit=crop&w=1600&q=82") center / cover;
}

.page-hero--students {
  background:
    linear-gradient(90deg, rgba(16, 47, 85, 0.94), rgba(16, 47, 85, 0.72)),
    url("https://images.unsplash.com/photo-1524995997946-a1c2e315a42f?auto=format&fit=crop&w=1600&q=82") center / cover;
}

.page-hero h1 {
  max-width: 820px;
  color: #ffffff;
  font-size: clamp(2rem, 3.4vw, 3.3rem);
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.12rem;
}

.page-hero .eyebrow {
  color: #bceec8;
}

.page-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.content-card {
  min-height: 210px;
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-small);
}

.content-card--highlight {
  border-color: var(--green);
  box-shadow: 0 18px 42px rgba(61, 148, 96, 0.18);
}

.content-card h2 {
  font-size: 1.25rem;
}

.content-card p {
  color: var(--muted);
}

.page-list {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding-left: 20px;
  color: var(--muted);
  font-weight: 700;
}

.news-page-list {
  display: grid;
  gap: 12px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading--row {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 24px;
  align-items: end;
}

.section-heading h2,
.story-grid h2,
.contact-details h2,
.map-placeholder h2,
.media-layout h2,
.competitions-layout h2,
.info-layout h2 {
  font-size: clamp(1.7rem, 2.7vw, 2.35rem);
}

.section-heading p:last-child,
.story-grid p,
.media-layout p,
.competitions-layout p,
.info-layout p {
  color: var(--muted);
  font-size: 1.04rem;
}

.portal-section {
  background:
    linear-gradient(180deg, #ffffff 0%, #ffffff 55%, var(--soft) 55%, var(--soft) 100%);
}

.portal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
  gap: 24px;
  align-items: start;
}

.portal-main,
.aside-card,
.director-note,
.contact-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.portal-main {
  padding: 26px;
}

.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.tab {
  min-height: 46px;
  padding: 10px 16px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  font-weight: 900;
}

.tab:hover,
.tab.is-active {
  color: var(--navy);
  border-bottom-color: var(--green);
}

.tab-panel {
  display: grid;
  gap: 12px;
}

.tab-panel[hidden] {
  display: none;
}

.feed-card {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr) 110px;
  gap: 14px;
  align-items: start;
  padding: 16px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.feed-card__category {
  width: fit-content;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  color: var(--navy);
  background: var(--blue-soft);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.feed-card__category--green {
  color: #155329;
  background: var(--green-soft);
}

.feed-card__category--amber {
  color: #694200;
  background: #fff1ce;
}

.feed-card h3 {
  font-size: 1.06rem;
}

.feed-card p {
  margin: 6px 0 0;
  color: var(--muted);
}

.feed-card time {
  color: var(--muted);
  text-align: right;
  font-weight: 800;
  font-size: 0.875rem;
}

.search-status {
  min-height: 24px;
  margin: 18px 0 0;
  color: var(--green);
  font-weight: 800;
}

.portal-aside {
  display: grid;
  gap: 18px;
}

.aside-card {
  padding: 20px;
}

.aside-card__heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.aside-card h2 {
  font-size: 1.18rem;
}

.aside-card__heading a {
  color: var(--blue);
  font-weight: 900;
  text-decoration: none;
}

.document-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
}

.document-row span {
  grid-row: span 2;
  min-height: 36px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: var(--coral);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 900;
}

.document-row strong {
  color: var(--ink);
  line-height: 1.25;
}

.document-row small {
  color: var(--muted);
  font-weight: 700;
}

.document-row:hover strong {
  color: var(--blue);
}

.archive-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.archive-list a {
  display: flex;
  justify-content: space-between;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  text-decoration: none;
  font-weight: 900;
}

.archive-list span {
  color: var(--muted);
}

.audience-grid,
.department-grid,
.transparency-grid,
.project-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.department-grid,
.transparency-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.audience-card,
.department-card,
.transparency-card,
.project-card {
  min-height: 220px;
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-small);
}

.audience-card {
  display: grid;
  align-content: start;
  gap: 8px;
}

.audience-card span,
.transparency-card span {
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.audience-card h3,
.department-card h3,
.transparency-card h3,
.project-card h3 {
  font-size: 1.18rem;
}

.audience-card a {
  color: var(--blue);
  font-weight: 850;
  text-decoration: none;
}

.audience-card a:hover {
  text-decoration: underline;
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: 28px;
  align-items: center;
}

.director-note {
  position: relative;
  overflow: hidden;
  padding: 28px;
}

.director-note span {
  position: absolute;
  right: 18px;
  top: -32px;
  color: rgba(61, 148, 96, 0.22);
  font-family: Georgia, serif;
  font-size: 8rem;
  line-height: 1;
}

.director-note p,
.department-card p,
.transparency-card p,
.project-card p {
  color: var(--muted);
}

.director-note strong {
  color: var(--navy);
}

.stats-band {
  padding-block: 38px;
  color: #ffffff;
  background: var(--navy);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.stats-grid div {
  min-height: 106px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
}

.stats-grid strong {
  color: #d4f5dc;
  font-family: "Montserrat", sans-serif;
  font-size: 1.55rem;
  line-height: 1.1;
}

.stats-grid span {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}

.transparency-card {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 190px;
  color: inherit;
  text-decoration: none;
}

.transparency-card:hover,
.department-card:hover,
.project-card:hover,
.audience-card:hover {
  border-color: rgba(37, 99, 235, 0.3);
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.media-section {
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(16, 47, 85, 0.95), rgba(16, 47, 85, 0.78)),
    url("https://images.unsplash.com/photo-1542601906990-b4d3fb778b09?auto=format&fit=crop&w=1800&q=84") center / cover;
}

.media-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: start;
}

.media-layout h2,
.media-layout p {
  color: #ffffff;
}

.project-card {
  background: rgba(255, 255, 255, 0.96);
}

.media-layout .project-card p {
  color: var(--muted);
}

.competitions-layout,
.info-layout,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1.2fr);
  gap: 30px;
  align-items: start;
}

.competition-list,
.info-list {
  display: grid;
  gap: 10px;
}

.competition-list a {
  min-height: 58px;
  display: flex;
  align-items: center;
  padding: 14px 16px;
  color: var(--navy);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-small);
  text-decoration: none;
  font-weight: 900;
}

.competition-list a:hover {
  color: #ffffff;
  background: var(--navy);
}

.info-list details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-small);
}

.info-list summary {
  min-height: 58px;
  display: flex;
  align-items: center;
  padding: 14px 16px;
  color: var(--navy);
  font-weight: 900;
}

.info-list details p {
  margin: 0;
  padding: 0 16px 16px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  grid-auto-rows: 220px;
  gap: 12px;
}

.gallery-item {
  position: relative;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--soft);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item img[src*="defschool2"] {
  object-fit: contain;
  padding: 24px;
  background: #f2f4f7;
}

.gallery-item figcaption {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  padding: 8px 10px;
  color: #ffffff;
  background: rgba(11, 33, 59, 0.82);
  border-radius: 6px;
  font-weight: 850;
  font-size: 0.88rem;
}

.gallery-item--large {
  grid-row: span 2;
}

.contact-details dl {
  display: grid;
  gap: 14px;
  margin: 24px 0 0;
}

.contact-details dl div {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.contact-details dt {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-details dd {
  margin: 4px 0 0;
  font-weight: 800;
}

.contact-form {
  display: grid;
  gap: 10px;
  padding: 24px;
}

.contact-form label {
  color: var(--navy);
  font-weight: 900;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.contact-form textarea {
  resize: vertical;
}

.form-note {
  min-height: 24px;
  margin: 0;
  color: var(--green);
  font-weight: 800;
}

.map-section {
  padding-block: 48px;
  background: var(--navy);
}

.map-placeholder,
.map-frame {
  min-height: 360px;
  overflow: hidden;
  border-radius: var(--radius);
}

.map-placeholder {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background:
    linear-gradient(90deg, rgba(16, 47, 85, 0.94), rgba(16, 47, 85, 0.72)),
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1500&q=82") center / cover;
}

.map-placeholder h2,
.map-placeholder p {
  color: #ffffff;
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  display: block;
  border: 0;
}


.site-footer {
  color: rgba(255, 255, 255, 0.86);
  background: var(--footer);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.75fr 0.8fr 0.9fr;
  gap: 28px;
  padding-block: 42px;
}

.site-footer h2,
.site-footer h3 {
  color: #ffffff;
  font-size: 1.12rem;
}

.site-footer a,
.footer-button {
  width: fit-content;
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.9);
  background: transparent;
  border: 0;
  padding: 0;
  text-align: left;
  text-decoration: none;
}

.site-footer a:hover,
.footer-button:hover {
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding-block: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.875rem;
}

.cookie-banner {
  position: fixed;
  z-index: 100;
  right: 18px;
  bottom: 18px;
  left: 18px;
  max-width: 980px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-inline: auto;
  padding: 18px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner h2 {
  font-size: 1.12rem;
}

.cookie-banner p {
  margin: 6px 0 0;
  color: var(--muted);
}

.cookie-banner__actions {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}

.is-hidden {
  display: none !important;
}

@media (max-width: 1120px) {
  .identity-bar__inner {
    grid-template-columns: 1fr;
  }

  .header-actions {
    justify-content: space-between;
  }

  .site-search {
    width: min(520px, 100%);
  }

  .main-nav__inner {
    overflow-x: auto;
  }

  .portal-grid,
  .hero__inner,
  .media-layout,
  .competitions-layout,
  .info-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    max-width: 520px;
  }

  .audience-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .container {
    width: min(100% - 24px, var(--container));
  }

  .site-header {
    position: static;
  }

  .utility-bar__inner {
    display: grid;
    justify-content: stretch;
    padding-block: 8px;
  }

  .utility-links,
  .utility-contact {
    gap: 10px;
  }

  .identity-bar {
    position: relative;
  }

  .identity-bar__inner {
    min-height: 78px;
  }

  .brand__seal {
    width: 48px;
    height: 48px;
  }

  .brand__copy small {
    max-width: 270px;
  }

  .header-actions {
    flex-wrap: wrap;
  }

  .site-search {
    flex: 1 1 100%;
    order: 3;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .main-nav {
    display: none;
  }

  .main-nav.is-open {
    display: block;
  }

  .main-nav__inner {
    display: grid;
    gap: 2px;
    padding-block: 10px;
    overflow: visible;
  }

  .main-nav a {
    min-height: 48px;
    border-radius: 6px;
  }

  .hero {
    min-height: 500px;
  }

  .hero::before {
    background-image:
      linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 64, 175, 0.76)),
      url("img/scoala-tansa.jpg");
  }

  .hero__inner {
    padding-block: 48px;
  }

  .notice-strip__inner {
    display: grid;
  }

  .notice-strip a {
    margin-left: 0;
  }

  .section {
    padding-block: 54px;
  }

  .section-heading--row,
  .story-grid,
  .page-grid,
  .department-grid,
  .transparency-grid,
  .project-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .feed-card {
    grid-template-columns: 1fr;
  }

  .feed-card time {
    text-align: left;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 190px;
  }

  .gallery-item--large {
    grid-column: span 2;
    grid-row: auto;
  }

  .map-placeholder {
    display: grid;
    min-height: 320px;
  }

  /* contact two-column → single column on mobile */
  section[aria-label="Contact și hartă"] > .container > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  section[aria-label="Contact și hartă"] div[style*="height:480px"] {
    height: 300px !important;
  }

  .cookie-banner {
    display: grid;
  }
}

@media (max-width: 560px) {
  .brand__copy strong {
    font-size: 1rem;
  }

  .brand__copy small {
    font-size: 0.78rem;
  }



  .hero h1 {
    font-size: 2.2rem;
  }

  .hero__actions,
  .cookie-banner__actions {
    display: grid;
  }

  .button,
  .cookie-banner__actions .button {
    width: 100%;
  }

  .portal-main,
  .aside-card,
  .contact-form {
    padding: 18px;
  }

  .audience-grid,
  .stats-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item--large {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-margin-top: 0 !important;
  }
}

/* Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Galerie Foto */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.gallery-grid .gallery-item.large {
  grid-column: span 2;
  grid-row: span 2;
}

@media (max-width: 768px) {
  .gallery-grid .gallery-item.large {
    grid-column: span 1;
    grid-row: span 1;
  }
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper);
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item__caption {
  position: absolute;
  inset: auto 0 0;
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  padding: 12px;
  font-size: 0.875rem;
  font-weight: 500;
}

.gallery-item__placeholder {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--slate);
  background: var(--wash);
  padding: 24px;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
}

