:root {
  --blue: #0750a4;
  --blue-dark: #052c59;
  --blue-light: #2b69b1;
  --footer-bg: #0d233c;
  --footer-text: #c8d6e8;
  --orange: #f26527;
  --text: #585858;
  --text-muted: #c4c7cd;
  --border: #f2f2f2;
  --surface: #fafafa;
  --surface-alt: #f3f3f3;
  --container: 928px;
}

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

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: Arial, "Open Sans", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

main,
main .container {
  text-align: center;
}

h1,
h2,
h3,
h4 {
  font-family: "Open Sans", sans-serif;
  font-weight: 300;
  color: var(--blue);
  margin: 0 0 0.75rem;
}

h1 {
  font-size: 2.1rem;
}

h2 {
  font-size: 1.8rem;
}

h3 {
  font-size: 1.5rem;
}

.button {
  display: inline-block;
  padding: 0 18px;
  height: 37px;
  line-height: 37px;
  font-size: 0.95em;
  font-weight: 400;
  text-align: center;
  border: 0;
  cursor: pointer;
}

.button.blue {
  background: var(--blue);
  color: #fff;
}

.button.blue:hover {
  opacity: 0.9;
  text-decoration: none;
}

.padd {
  padding: 40px 0;
}

.fancy-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: block;
  text-align: justify;
  text-justify: inter-word;
  max-width: 820px;
  width: 100%;
}

.fancy-list li {
  position: relative;
  padding: 0 0 8px 14px;
  text-align: justify;
}

.fancy-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  background: var(--orange);
}

.listing-intro {
  max-width: 820px;
  margin: 0 auto 1.5rem;
  text-align: center;
}

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  text-align: left;
}

.faq-item {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.faq-item:last-child {
  border-bottom: 0;
}

.faq-item dt {
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 0.35rem;
}

.faq-item dd {
  margin: 0;
  color: var(--text);
}

.faq-section h2 {
  text-align: center;
}

/* Header */
.site-header {
  padding-top: 0;
}

.header-bar {
  position: relative;
  min-height: 130px;
  overflow: hidden;
}

.header-bar::after {
  content: "";
  display: table;
  clear: both;
}

#header-logo {
  float: left;
  margin-top: 17px;
  margin-right: 14px;
}

#header-logo img {
  display: block;
  width: auto;
  height: auto;
}

#header-title {
  float: left;
  margin-top: 33px;
  font-family: "Open Sans", sans-serif;
}

#header-title strong {
  display: block;
  color: #075da4;
  font-weight: 600;
  font-size: 1.35em;
  line-height: 1.25em;
}

#header-title span {
  display: block;
  color: #c4c7cd;
  font-weight: 400;
  font-size: 0.75em;
  line-height: 2em;
}

#header-info {
  float: right;
  margin-top: 18px;
}

#header-info-links {
  float: right;
  color: #eaeaea;
  font-size: 0.9em;
}

#header-info-links a {
  color: var(--blue);
}

.header-sep {
  display: inline-block;
  margin: 0 8px 0 12px;
  color: #eaeaea;
}

.sprite {
  background: url("../img/sprite.png");
}

.header-organizatii,
.header-membri {
  display: inline-block;
  width: 21px;
  height: 14px;
  margin-right: 6px;
  margin-bottom: -2px;
}

.header-membri {
  background-position: 0 -14px;
  margin-right: 7px;
}

#header-info-112 {
  clear: right;
  float: right;
  margin-top: 36px;
}

.header-phone {
  float: left;
  width: 38px;
  height: 38px;
  background-position: -21px 0;
  margin-right: 6px;
}

#header-info-112-text {
  float: left;
  color: #075da4;
  font-size: 0.95em;
  height: 31px;
  line-height: 1em;
  border-right: 2px solid #f0f0f0;
  padding-top: 2px;
  padding-right: 11px;
  margin-top: 3px;
  margin-right: 9px;
  letter-spacing: 0.4px;
}

#header-info-112-text span {
  color: #c4c7cd;
  font-size: 0.85em;
  letter-spacing: 0;
}

#header-info-112-number {
  float: left;
  font-family: "Open Sans", sans-serif;
  color: #075da4;
  font-weight: 600;
  font-size: 2.4em;
  height: 31px;
  line-height: 31px;
  margin-top: 2px;
  letter-spacing: -1px;
}

.menu-toggle {
  display: none;
  margin: 16px 0 0 auto;
  background: var(--blue);
  color: #fff;
  border: 0;
  padding: 10px 14px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 4px;
}

.menu-toggle-bars {
  position: relative;
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  box-shadow: 0 -7px 0 #fff, 0 7px 0 #fff;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bars {
  background: transparent;
  box-shadow: none;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bars::before,
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 2px;
  background: #fff;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bars::before {
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bars::after {
  transform: rotate(-45deg);
}

.site-nav {
  margin-top: 12px;
  background: var(--blue);
}

.site-nav ul {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  width: min(var(--container), calc(100% - 40px));
}

.site-nav .nav-soon {
  display: block;
  color: rgba(255, 255, 255, 0.55);
  padding: 0 12px;
  height: 36px;
  line-height: 36px;
  font-size: 0.95rem;
  white-space: nowrap;
  cursor: default;
}

.site-nav .submenu .nav-soon {
  height: auto;
  line-height: 1.35;
  padding: 10px 14px;
  white-space: normal;
}

.site-nav .nav-soon em {
  font-style: normal;
  font-size: 0.8em;
  opacity: 0.9;
}

.site-footer .site-nav .nav-soon {
  color: rgba(255, 255, 255, 0.45);
}

.site-nav a {
  display: block;
  color: #fff;
  padding: 0 12px;
  height: 36px;
  line-height: 36px;
  font-size: 1.05rem;
  text-align: center;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a.active {
  background: var(--blue-light);
  text-decoration: none;
}

.site-nav .has-submenu {
  position: relative;
}

.site-nav .submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 320px;
  max-width: min(420px, 90vw);
  background: var(--blue-dark);
  z-index: 1000;
  flex-direction: column;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.site-nav .has-submenu:hover > .submenu,
.site-nav .has-submenu.open > .submenu,
.site-nav .has-submenu:focus-within > .submenu {
  display: flex;
}

.site-nav .submenu a {
  height: auto;
  line-height: 1.4;
  padding: 10px 14px;
  white-space: normal;
  text-align: left;
}

.site-nav .submenu .has-submenu {
  position: relative;
}

.site-nav .submenu .submenu {
  top: 0;
  left: 100%;
}

.site-nav .submenu .submenu-toggle-nested::after {
  content: " ▸";
}

.site-nav .submenu-toggle::after {
  content: " ▾";
  font-size: 0.85em;
  opacity: 0.85;
}

/* Hero — fixed equal frames on every slide */
.hero-slider {
  position: relative;
  background:
    radial-gradient(ellipse 80% 70% at 18% 45%, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0) 58%),
    linear-gradient(135deg, #e8f1fb 0%, #d7e7f8 42%, #eaf3fc 100%);
  border-top: 1px solid #d5e4f4;
  border-bottom: 1px solid #d5e4f4;
  overflow: hidden;
  height: 420px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 0;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}

.hero-slide .container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  padding: 24px 0 48px;
  box-sizing: border-box;
}

.hero-inner {
  display: grid;
  grid-template-columns: 420px minmax(0, 420px);
  column-gap: 28px;
  align-items: center;
  justify-content: center;
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
}

.hero-media {
  width: 420px;
  height: 280px;
  border-radius: 12px;
  overflow: hidden;
  background: #dce9f7;
  box-sizing: border-box;
  box-shadow: 0 10px 28px rgba(7, 80, 164, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.hero-image {
  display: block;
  width: 420px !important;
  height: 280px !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover;
  object-position: center;
}

.hero-content {
  width: 100%;
  max-width: 420px;
  height: 280px;
  padding: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}

.hero-controls {
  z-index: 2;
}

.hero-content h2 {
  font-size: 1.9rem;
  padding-bottom: 10px;
}

.hero-kicker {
  margin: 0 0 6px;
  color: var(--blue);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.home-card h2 {
  font-size: 1.2rem;
  margin: 0.75rem 0 0.5rem;
}

.hero-controls {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-controls button {
  pointer-events: auto;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(7, 80, 164, 0.55);
  color: #fff;
  cursor: pointer;
  font-size: 1.4rem;
  transition: background 0.2s ease;
}

.hero-controls button:hover {
  background: rgba(7, 80, 164, 0.8);
}

.hero-prev {
  left: 12px;
}

.hero-next {
  right: 12px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: rgba(7, 80, 164, 0.25);
  cursor: pointer;
}

.hero-dots button.active {
  background: var(--blue);
}

/* Home sections */
.intro-section {
  text-align: left;
}

.intro-title {
  text-align: center;
  margin: 0 0 1.5rem;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

.intro-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 36px 40px;
  align-items: start;
}

.intro-copy p {
  max-width: none;
  margin: 0 0 1rem;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.intro-links {
  margin: 1.35rem 0 0;
  text-align: center;
}

.intro-media {
  margin: 0;
  justify-self: stretch;
}

.intro-photo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 14px 36px rgba(7, 80, 164, 0.14);
  object-fit: cover;
  background: var(--surface-alt);
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}

.home-card {
  text-align: center;
}

.home-card .card-image {
  display: block;
  height: 185px;
  overflow: hidden;
  margin-bottom: 12px;
}

.home-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-card p {
  margin-bottom: 12px;
}

.news-list a {
  display: block;
  padding: 16px 28px 16px 16px;
  margin-bottom: 7px;
  background: var(--surface-alt);
  color: #929191;
  position: relative;
}

.news-list a:hover {
  background: #eee;
  text-decoration: none;
}

.news-list a::after {
  content: "›";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #dedede;
  font-size: 1.4rem;
}

.news-list span {
  color: #6c93bf;
}

/* Page banner */
.page-banner {
  background: #00499e;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.page-banner .container {
  position: relative;
  min-height: 132px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  background-image: var(--page-banner-image, url("../img/h1-bg.jpg"));
  background-position: right center;
  background-repeat: no-repeat;
  background-size: auto 100%;
  padding-right: 300px;
}

.page-banner .container::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    #00499e 0%,
    #00499e 32%,
    rgba(0, 73, 158, 0.58) 48%,
    rgba(0, 73, 158, 0.38) 62%,
    rgba(0, 73, 158, 0.42) 78%,
    rgba(0, 73, 158, 0.78) 92%,
    #00499e 100%
  );
}

.page-banner h1 {
  position: relative;
  z-index: 1;
  color: #fff;
  margin: 0;
  max-width: 34rem;
  line-height: 1.25;
}

.content-block {
  margin-bottom: 2rem;
  text-align: left;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.content-block h2,
.content-block h3 {
  text-align: left;
}

.content-block p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.article-list article {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.content-block pre,
.card-note {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 12px 16px;
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 0.95rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  justify-items: center;
}

.team-card {
  background: var(--surface-alt);
  padding: 20px;
  text-align: center;
  width: 100%;
  max-width: 280px;
}

.team-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.team-card strong {
  display: block;
  font-size: 1.2rem;
  color: var(--blue);
  margin-bottom: 6px;
}

.article-list article {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.article-list h2 {
  font-size: 1.4rem;
}

.article-meta {
  color: #bfbfbf;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.article-image {
  margin: 0 auto 1.25rem;
}

.article-image img {
  display: block;
  max-width: min(100%, 820px);
  margin: 0 auto;
  height: auto;
}

.article-file a {
  display: inline-block;
  margin-top: 0.5rem;
  font-weight: 600;
}

.article-rich {
  text-align: left;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.article-rich p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.article-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  max-width: 920px;
  margin: 0 auto 1.5rem;
}

.article-gallery:has(> :only-child) {
  grid-template-columns: minmax(0, 640px);
}

.article-gallery--carousel {
  display: block;
  position: relative;
  max-width: 1100px;
  margin: 0 auto 1.5rem;
}

.article-carousel-frame {
  position: relative;
}

.article-carousel-viewport {
  overflow: visible;
  background: transparent;
}

.article-carousel-track {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.article-gallery--carousel .article-gallery-item {
  flex: 0 0 calc((100% - 40px) / 5);
  width: calc((100% - 40px) / 5);
  max-width: 208px;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
}

.article-gallery--carousel .article-gallery-item img {
  object-fit: cover;
  background: transparent;
  min-height: 120px;
}

.article-carousel-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(13, 35, 60, 0.78);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.article-carousel-nav:hover {
  background: var(--orange);
}

.article-carousel-prev {
  left: 10px;
}

.article-carousel-next {
  right: 10px;
}

.article-carousel-status {
  margin: 10px 0 0;
  text-align: center;
  font-weight: 700;
  color: var(--blue-dark);
}

.article-gallery--carousel .article-carousel-nav,
.article-gallery--carousel .article-carousel-status,
.article-gallery--carousel.is-single .article-carousel-nav,
.article-gallery--carousel.is-single .article-carousel-status {
  display: none;
}

.article-gallery-event {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.article-gallery-event .article-gallery-item {
  width: calc((100% - 40px) / 5);
  max-width: 208px;
  flex: 0 0 calc((100% - 40px) / 5);
}

.article-gallery-event + .gallery-note,
.article-gallery-event ~ .gallery-note {
  max-width: 920px;
  margin: 0 auto 1.5rem;
  color: var(--text-muted, #666);
  font-size: 0.95rem;
}

.article-rich h2 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
  text-align: left;
}

.article-rich ul,
.article-rich ol {
  margin: 0 0 1rem;
  padding-left: 1.4rem;
  text-align: left;
}

.article-rich li {
  margin: 0 0 0.35rem;
}

.article-rich a {
  color: var(--blue, #0750a4);
}

.news-page {
  text-align: left;
  max-width: 800px;
}

.news-page,
.news-page * {
  text-align: left;
}

.news-intro {
  margin: 0 0 1.75rem;
  color: #4b5563;
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 42rem;
}

.news-feed {
  display: grid;
  gap: 16px;
}

.news-card {
  background: #fff;
  border: 1px solid #e6eef6;
  border-left: 4px solid var(--orange);
  border-radius: 14px;
  padding: 20px 22px 18px;
  box-shadow: 0 10px 28px rgba(5, 44, 89, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.news-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(5, 44, 89, 0.1);
}

.news-date {
  display: inline-block;
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.news-card h2 {
  font-size: 1.28rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 8px;
  color: var(--blue-dark);
}

.news-card h2 a {
  color: var(--blue-dark);
}

.news-card h2 a:hover {
  color: var(--blue);
  text-decoration: none;
}

.news-excerpt {
  margin: 0 0 12px;
  color: #5b6573;
  line-height: 1.55;
}

.news-more {
  font-weight: 700;
  color: var(--orange);
}

.news-more:hover {
  color: #d3551c;
}

.news-back {
  display: inline-flex;
  align-items: center;
  margin-bottom: 1rem;
  font-weight: 700;
  color: var(--blue);
}

.news-back--bottom {
  margin: 1.75rem 0 0;
}

.news-article .news-date {
  color: var(--orange);
  margin-bottom: 1.1rem;
}

.news-body.article-rich {
  max-width: none;
  margin: 0;
  text-align: left;
}

.news-page .article-rich p,
.news-page .article-rich li {
  text-align: left;
  text-justify: auto;
  color: #334155;
  font-size: 1.05rem;
  line-height: 1.75;
}

.news-page .article-rich p {
  margin: 0 0 1rem;
}

.news-page .article-gallery {
  max-width: none;
  margin: 1.5rem 0;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.news-page .article-gallery:has(> :only-child) {
  grid-template-columns: minmax(0, 640px);
}

.news-page .article-gallery-wrap {
  margin: 1.5rem 0;
}

.news-page .article-gallery-wrap .article-gallery-event {
  display: flex;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  grid-template-columns: none;
}

.article-gallery-item.is-offpage {
  display: none !important;
}

.news-page .article-video,
.news-page .article-youtube {
  max-width: none;
  margin: 1.25rem 0;
  border-radius: 12px;
  overflow: hidden;
}

.news-page .article-file a {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  margin: 0.35rem 0 1rem;
  padding: 12px 16px;
  background: #fff6f1;
  border: 1px solid #f4c9b3;
  border-radius: 10px;
  color: var(--blue-dark);
  font-weight: 700;
}

.news-page .article-file a:hover {
  background: #ffeee6;
  text-decoration: none;
}

.gallery-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 20px;
  max-width: 1100px;
  margin: 0 auto 1rem;
}

.gallery-count {
  color: var(--text-muted, #666);
  font-size: 0.95rem;
}

.gallery-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 1100px;
  margin: 0 auto 1.5rem;
}

.gallery-page-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.gallery-page-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  color: var(--blue-dark);
  cursor: pointer;
  font: inherit;
  line-height: 1;
}

.gallery-page-btn:hover:not(:disabled) {
  background: var(--blue-light);
  color: #fff;
  border-color: var(--blue-light);
}

.gallery-page-btn.active {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
  font-weight: 600;
}

.gallery-page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.gallery-page-nav {
  min-width: auto;
  padding: 0 14px;
}

.gallery-page-gap {
  min-width: 20px;
  text-align: center;
  color: var(--text-muted, #666);
}

.article-gallery-item {
  display: block;
  overflow: hidden;
  background: var(--surface-alt);
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 0;
  padding: 0;
  cursor: pointer;
  width: 100%;
}

.article-gallery-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.article-gallery-item picture {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
}

.article-gallery-item img {
  width: 100%;
  height: 100%;
  min-height: 120px;
  object-fit: cover;
  display: block;
  background: transparent;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
}

.gallery-lightbox[hidden] {
  display: none;
}

.gallery-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
}

.gallery-lightbox-dialog {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: 56px 72px;
}

.gallery-lightbox-figure {
  margin: 0;
  max-width: min(1100px, calc(100vw - 144px));
  max-height: calc(100vh - 112px);
  text-align: center;
}

.gallery-lightbox-figure img {
  max-width: 100%;
  max-height: calc(100vh - 160px);
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 6px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.gallery-lightbox-caption {
  margin-top: 12px;
  color: #fff;
  font-size: 0.95rem;
}

.gallery-lightbox-close,
.gallery-lightbox-nav {
  position: absolute;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  line-height: 1;
  transition: background 0.2s ease;
}

.gallery-lightbox-close:hover,
.gallery-lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.22);
}

.gallery-lightbox-close {
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.8rem;
}

.gallery-lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 2rem;
}

.gallery-lightbox-prev {
  left: 16px;
}

.gallery-lightbox-next {
  right: 16px;
}

.gallery-lightbox-nav[hidden] {
  display: none;
}

body.gallery-lightbox-open {
  overflow: hidden;
}

.article-video,
.article-youtube {
  max-width: 848px;
  margin: 0 auto 1.5rem;
}

.article-video video {
  width: 100%;
  height: auto;
  background: #000;
  display: block;
}

.article-youtube {
  position: relative;
  aspect-ratio: 16 / 9;
}

.article-youtube iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Organizatii */
.org-layout {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  grid-template-areas:
    "controls map"
    "panel map";
  gap: 24px;
  align-items: start;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.org-controls {
  grid-area: controls;
  width: 100%;
  text-align: left;
}

.org-panel {
  grid-area: panel;
  display: none;
  background: var(--surface-alt);
  padding: 20px;
  text-align: left;
}

.org-layout--open .org-panel {
  display: block;
}

.org-panel h3 {
  margin-top: 0;
}

.org-layout > div {
  width: 100%;
}

.county-select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  font-size: 16px;
  margin-top: 8px;
  min-height: 44px;
}

.org-item {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #ddd;
}

.org-item div {
  margin-top: 4px;
}

.org-item a {
  word-break: break-word;
}

.org-item:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.org-map {
  grid-area: map;
  width: 100%;
  max-width: 100%;
  margin: 0;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.org-map svg {
  width: 100%;
  height: auto;
  display: block;
  max-width: 100%;
}

.org-map path {
  cursor: pointer;
}

/* Literele județului nu blochează hover/click pe formă */
.org-map text,
.org-map tspan {
  pointer-events: none !important;
  user-select: none;
  -webkit-user-select: none;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 720px;
  margin: 0 auto;
  justify-items: center;
}

.contact-data,
.contact-form {
  width: 100%;
  text-align: center;
}

.contact-data {
  font-size: 1.1rem;
}

.contact-form {
  background: #6c8195;
  padding: 24px;
  text-align: left;
}

.contact-form label {
  display: block;
  color: #fff;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 0;
  padding: 10px 12px;
  margin-bottom: 14px;
  font: inherit;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form button {
  width: 100%;
  background: var(--orange);
  color: #fff;
  border: 0;
  height: 40px;
  cursor: pointer;
}

.contact-form button:hover {
  background: #0080bd;
}

.contact-form .form-note {
  color: #fff;
  font-size: 0.85rem;
  margin-top: 10px;
}

.map-embed {
  margin-top: 24px;
  border: 0;
  width: 100%;
  min-height: 360px;
}

/* Footer */
.site-footer {
  background: var(--footer-bg);
  border-top: 12px solid #efefef;
  padding: 22px 0 18px;
  color: #fff;
}

.footer-bottom {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px 20px;
  align-items: center;
  text-align: left;
}

.footer-logo {
  width: 40px;
  height: 40px;
}

.footer-meta {
  min-width: 0;
}

.footer-title {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.footer-info {
  color: var(--footer-text);
  font-size: 0.82rem;
  line-height: 1.35;
  margin-top: 2px;
}

.footer-emergency {
  text-align: right;
  line-height: 1.1;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: #d7e3f2;
}

.footer-emergency span {
  display: block;
  font-size: 1.75rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0;
}

.footer-credits {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 16px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.8rem;
  line-height: 1.35;
}

.footer-copy,
.footer-concept {
  margin: 0;
  color: #e6eef8;
}

.footer-concept a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-concept a:hover {
  color: #9ec5ff;
}

@media (max-width: 980px) and (min-width: 901px) {
  .hero-inner {
    grid-template-columns: 380px minmax(0, 380px);
    column-gap: 20px;
  }

  .hero-media {
    width: 380px;
    height: 253px;
  }

  .hero-image {
    width: 380px !important;
    height: 253px !important;
  }

  .hero-content {
    max-width: 380px;
    min-height: 253px;
  }
}

@media (max-width: 1100px) {
  .site-nav a {
    padding: 0 10px;
    font-size: 0.98rem;
  }

  .site-nav .submenu {
    min-width: 280px;
  }
}

@media (max-width: 900px) {
  :root {
    --container: 100%;
  }

  body {
    font-size: 15px;
  }

  body.nav-open {
    overflow: hidden;
  }

  .article-gallery-event .article-gallery-item,
  .article-gallery--carousel .article-gallery-item {
    width: calc((100% - 12px) / 2);
    max-width: none;
    flex: 0 0 calc((100% - 12px) / 2);
  }

  .container {
    width: calc(100% - 28px);
  }

  .padd {
    padding: 28px 0;
  }

  h1 {
    font-size: 1.65rem;
    line-height: 1.25;
  }

  h2 {
    font-size: 1.4rem;
  }

  h3 {
    font-size: 1.2rem;
  }

  .intro-section .intro-title {
    text-align: center;
  }

  .intro-section .intro-copy p {
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
  }

  .intro-section .intro-links {
    text-align: center;
  }

  .listing-intro,
  .content-block p,
  .fancy-list,
  .fancy-list li,
  .article-list p,
  .home-card p {
    text-align: left;
    text-justify: auto;
    hyphens: manual;
  }

  .intro-section .container,
  .faq-section .container {
    text-align: left;
  }

  .intro-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .intro-media {
    order: 0;
  }

  .intro-photo {
    border-radius: 14px;
    max-height: 260px;
    width: 100%;
    object-fit: cover;
  }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 2000;
    background: #fff;
    box-shadow: 0 1px 0 rgba(7, 80, 164, 0.12);
    padding-top: env(safe-area-inset-top, 0px);
  }

  .header-bar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
      "logo title toggle"
      "info info info";
    align-items: center;
    column-gap: 10px;
    row-gap: 8px;
    min-height: 0;
    padding: 10px 0;
    overflow: visible;
  }

  .header-bar::after {
    display: none;
  }

  #header-logo,
  #header-title,
  #header-info,
  #header-info-links,
  #header-info-112,
  .header-phone,
  #header-info-112-text,
  #header-info-112-number {
    float: none;
  }

  #header-logo {
    grid-area: logo;
    margin: 0;
  }

  #header-logo img {
    width: 56px;
    height: 56px;
    max-height: none;
  }

  #header-title {
    grid-area: title;
    margin: 0;
    text-align: left;
    min-width: 0;
  }

  #header-title strong {
    font-size: 0.88rem;
    line-height: 1.25;
  }

  #header-title span {
    display: none;
  }

  #header-info {
    grid-area: info;
    margin: 0;
    text-align: left;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
    padding-top: 4px;
    border-top: 1px solid var(--border);
  }

  #header-info-links {
    margin: 0;
    font-size: 0.85rem;
  }

  #header-info-112 {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
  }

  #header-info-112-text {
    border-right: 0;
    padding-right: 0;
    margin: 0;
    height: auto;
    line-height: 1.15;
    font-size: 0.78rem;
  }

  #header-info-112-number {
    font-size: 1.55rem;
    height: auto;
    line-height: 1;
    margin: 0;
  }

  .header-phone,
  #header-info-112-text,
  #header-info-112-number {
    float: none;
  }

  .menu-toggle {
    grid-area: toggle;
    display: inline-flex;
    position: static;
    width: auto;
    min-width: 44px;
    min-height: 44px;
    margin: 0;
    padding: 10px 12px;
  }

  .menu-toggle-label {
    font-size: 0.9rem;
  }

  #primary-nav {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .site-header > #primary-nav .site-nav {
    margin-top: 0;
    background: var(--blue);
  }

  /* Mobile accordion: block layout (avoids flex-wrap second column bug) */
  .site-header > #primary-nav .site-nav > ul {
    display: none;
    flex-direction: unset;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: stretch;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .site-header > #primary-nav .site-nav.open > ul {
    display: block;
    max-height: calc(100dvh - 120px);
    max-height: calc(100vh - 120px);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .site-header > #primary-nav .site-nav > ul > li,
  .site-header > #primary-nav .site-nav .submenu > li {
    display: block;
    width: 100%;
    float: none;
    clear: both;
  }

  .site-header > #primary-nav .site-nav a {
    display: block;
    width: 100%;
    box-sizing: border-box;
    height: auto;
    min-height: 48px;
    line-height: 1.35;
    padding: 14px 16px;
    white-space: normal;
    text-align: left;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .site-header > #primary-nav .site-nav .submenu-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .site-header > #primary-nav .site-nav .submenu-toggle::after {
    content: "▾";
    flex-shrink: 0;
    font-size: 0.85em;
    opacity: 0.85;
    transition: transform 0.15s ease;
  }

  .site-header > #primary-nav .site-nav .has-submenu.open > .submenu-toggle::after {
    transform: rotate(180deg);
  }

  .site-header > #primary-nav .site-nav .submenu {
    position: static;
    left: auto;
    top: auto;
    min-width: 0;
    max-width: none;
    width: 100%;
    box-shadow: none;
    background: var(--blue-dark);
    display: none;
    flex-direction: unset;
    flex-wrap: nowrap;
  }

  .site-header > #primary-nav .site-nav .submenu a {
    padding-left: 28px;
    background: rgba(0, 0, 0, 0.12);
  }

  .site-header > #primary-nav .site-nav .submenu .submenu a {
    padding-left: 42px;
    background: rgba(0, 0, 0, 0.18);
  }

  .site-header > #primary-nav .site-nav .submenu .submenu-toggle-nested::after {
    content: "▾";
  }

  /* Only .open opens submenus on mobile — never hover/focus-within */
  .site-header > #primary-nav .site-nav .has-submenu:hover > .submenu,
  .site-header > #primary-nav .site-nav .has-submenu:focus-within > .submenu {
    display: none;
  }

  .site-header > #primary-nav .site-nav .has-submenu.open > .submenu {
    display: block;
  }

  .site-header > #primary-nav .site-nav .submenu .submenu {
    left: auto;
  }

  .hero-slider {
    border-top: 0;
    height: auto;
    min-height: 0;
  }

  .hero-slide {
    position: absolute;
  }

  .hero-slide.active {
    position: relative;
  }

  .hero-slide .container {
    height: auto;
    min-height: 0;
    padding: 20px 0 52px;
  }

  .hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100%;
    gap: 14px;
    text-align: center;
  }

  .hero-content {
    text-align: center;
    align-items: center;
    padding: 0 44px;
    max-width: none;
    height: auto;
  }

  .hero-content h2 {
    font-size: 1.45rem;
    line-height: 1.25;
  }

  .hero-content p {
    font-size: 0.98rem;
    line-height: 1.5;
  }

  .hero-media {
    width: min(100%, 360px);
    height: 240px;
  }

  .hero-image {
    width: 100% !important;
    height: 100% !important;
  }

  .hero-controls button {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }

  .hero-prev {
    left: 4px;
  }

  .hero-next {
    right: 4px;
  }

  .hero-dots {
    bottom: 12px;
  }

  .page-banner .container {
    min-height: 88px;
    padding: 18px 12px;
    padding-right: 36%;
    background-size: auto 100%;
    background-position: right center;
  }

  .page-banner h1 {
    max-width: none;
    font-size: 1.4rem;
  }

  .home-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .home-card {
    text-align: left;
  }

  .home-card .card-image {
    height: 180px;
  }

  .faq-section details {
    text-align: left;
  }

  .news-list a {
    padding: 14px 36px 14px 14px;
    font-size: 0.95rem;
    min-height: 48px;
  }

  .org-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "controls"
      "map"
      "panel";
    gap: 16px;
  }

  .org-panel {
    padding: 16px;
  }

  .org-map {
    min-height: 280px;
  }

  .county-select {
    min-height: 48px;
    font-size: 16px;
  }

  .contact-data,
  .contact-form {
    text-align: left;
  }

  .contact-form {
    padding: 20px 16px;
  }

  .contact-form input,
  .contact-form textarea,
  .contact-form button {
    font-size: 16px;
  }

  .contact-form button {
    min-height: 48px;
  }

  .map-embed {
    min-height: 240px;
  }

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

  .article-list article {
    text-align: left;
    padding-bottom: 1.25rem;
  }

  .article-list h2 {
    font-size: 1.2rem;
  }

  .gallery-toolbar,
  .gallery-pagination {
    gap: 8px;
  }

  .site-footer {
    padding: 18px 0 calc(20px + env(safe-area-inset-bottom, 0px));
    border-top-width: 8px;
  }

  .footer-bottom {
    grid-template-columns: auto minmax(0, 1fr);
    text-align: left;
  }

  .footer-emergency {
    grid-column: 1 / -1;
    text-align: center;
  }

  .footer-credits {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 14px;
    padding-top: 10px;
  }

  .footer-emergency span {
    font-size: 1.55rem;
  }
}

@media (max-width: 640px) {
  .header-bar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "logo title toggle";
    padding: 8px 0;
  }

  #header-info {
    display: none;
  }

  #header-logo img {
    width: 48px;
    height: 48px;
  }

  #header-title strong {
    font-size: 0.8rem;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .menu-toggle-label {
    display: none;
  }

  .menu-toggle {
    padding: 12px;
  }

  .page-banner .container {
    padding: 16px 4px;
    padding-right: 0;
    background-image: none;
    min-height: 72px;
  }

  .page-banner h1 {
    font-size: 1.25rem;
  }

  .hero-content h2 {
    font-size: 1.28rem;
  }

  .button {
    width: 100%;
    max-width: 100%;
  }

  .hero-content .button {
    max-width: 280px;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .article-gallery-event .article-gallery-item,
  .article-gallery--carousel .article-gallery-item {
    width: 100%;
    max-width: none;
    flex: 0 0 100%;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  .container {
    width: calc(100% - 20px);
  }

  .padd {
    padding: 20px 0;
  }

  h1 {
    font-size: 1.4rem;
  }

  .hero-slide .container {
    padding: 16px 0 48px;
  }

  .hero-media {
    width: 100%;
    max-width: 100%;
    height: 200px;
  }

  .hero-image {
    width: 100% !important;
    height: 100% !important;
  }

  .gallery-lightbox-dialog {
    padding: 48px 12px;
  }

  .gallery-lightbox-figure {
    max-width: calc(100vw - 24px);
  }

  .gallery-lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 1.6rem;
  }

  .gallery-lightbox-prev {
    left: 8px;
  }

  .gallery-lightbox-next {
    right: 8px;
  }

}

@media (hover: none) and (pointer: coarse) {
  a,
  button,
  .button,
  .county-select,
  .news-list a {
    -webkit-tap-highlight-color: rgba(7, 80, 164, 0.15);
  }
}
