:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #657085;
  --line: #d9e2ef;
  --paper: #ffffff;
  --soft: #f5f8fb;
  --navy: #172a45;
  --blue: #1e73be;
  --blue-dark: #125c9e;
  --gold: #d9a441;
  --shadow: 0 18px 50px rgba(23, 32, 51, 0.14);
  font-family: Montserrat, Inter, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 88px;
  padding: 10px clamp(18px, 4vw, 48px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(217, 226, 239, 0.9);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 300px;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.25;
}

.brand-logo {
  display: block;
  width: min(24vw, 260px);
  height: auto;
  max-height: 84px;
  object-fit: contain;
  object-position: left center;
}

.brand-mark {
  display: grid;
  place-items: center;
  min-width: 56px;
  height: 42px;
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  border-radius: 4px;
  letter-spacing: 0.08em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.main-nav a,
.menu-toggle,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  font-size: 1.04rem;
  font-weight: 700;
  cursor: pointer;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--navy);
  border-color: rgba(30, 115, 190, 0.18);
  background: rgba(30, 115, 190, 0.08);
}

.menu-toggle {
  display: none;
  border-color: var(--line);
  width: 46px;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
}

.hero {
  position: relative;
  min-height: clamp(430px, 68vh, 720px);
  display: grid;
  align-items: center;
  padding: clamp(64px, 9vw, 120px) clamp(20px, 6vw, 84px);
  color: #fff;
  overflow: hidden;
  background-color: var(--navy);
  background-image: linear-gradient(90deg, rgba(12, 25, 43, 0.82) 0%, rgba(12, 25, 43, 0.58) 42%, rgba(12, 25, 43, 0.76) 100%), var(--hero-image);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.02);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 850px;
}

.eyebrow {
  color: #b9d9ff;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
}

h1 {
  margin-top: 14px;
  font-size: clamp(2.6rem, 6vw, 5.8rem);
  font-weight: 800;
  letter-spacing: 0;
}

.hero p {
  max-width: 720px;
  margin: 22px 0 0;
  color: #e9f2ff;
  font-size: 1.12rem;
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

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

.btn:hover {
  background: var(--blue-dark);
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.42);
}

.section {
  padding: clamp(56px, 8vw, 96px) clamp(20px, 6vw, 84px);
}

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

.section-header {
  max-width: 860px;
  margin-bottom: 32px;
}

.section-header.center {
  margin-inline: auto;
  text-align: center;
}

.section-header h2 {
  color: var(--navy);
  font-size: clamp(2rem, 3.4vw, 3.2rem);
}

.divider {
  width: 68px;
  height: 5px;
  margin: 18px 0 0;
  background: var(--blue);
}

.center .divider {
  margin-inline: auto;
}

.lead {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.grid {
  display: grid;
  gap: 24px;
}

.cards {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(23, 32, 51, 0.07);
}

.card-media {
  min-height: 240px;
  background: var(--navy);
  background-image: linear-gradient(rgba(15, 30, 51, 0.16), rgba(15, 30, 51, 0.5)), var(--card-image);
  background-size: cover;
  background-position: center;
}

.card-body {
  padding: 24px;
}

.card h3 {
  color: var(--navy);
  font-size: 1.22rem;
}

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

.content-block {
  max-width: 980px;
  white-space: pre-line;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.image-panel {
  min-height: 420px;
  border-radius: 8px;
  background-image: linear-gradient(rgba(23, 42, 69, 0.08), rgba(23, 42, 69, 0.18)), var(--panel-image);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.stat {
  padding: 28px;
  background: #fff;
}

.stat strong {
  display: block;
  color: var(--blue);
  font-size: 2rem;
}

.project-list {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.project-card .card-media {
  min-height: 220px;
}

.page-hero {
  min-height: 360px;
}

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

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(30, 115, 190, 0.09);
  color: var(--blue-dark);
  font-size: 0.88rem;
  font-weight: 700;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 1.2fr);
  gap: 32px;
}

.contact-form,
.info-box,
.admin-panel {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(23, 32, 51, 0.07);
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

label {
  color: var(--navy);
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
}

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

.footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 36px clamp(20px, 6vw, 84px);
  background: #111b2c;
  color: #d8e3f2;
}

.footer-logo {
  display: block;
  width: min(260px, 70vw);
  height: auto;
  margin: 0 0 14px;
  padding: 8px;
  background: #fff;
  border-radius: 6px;
}

.footer p {
  margin: 6px 0 0;
}

.admin-body {
  background: #eef3f8;
}

.admin-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  min-height: 100vh;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  min-height: 100vh;
  padding: 24px;
  background: #111b2c;
  color: #fff;
}

.admin-logo {
  width: 220px;
  max-width: 100%;
  height: auto;
  margin-bottom: 18px;
  padding: 10px;
  background: #fff;
  border-radius: 8px;
}

.admin-sidebar h1 {
  margin-bottom: 4px;
  font-size: 1.7rem;
}

.admin-sidebar-note {
  margin: 0 0 22px;
  color: #b8c7db;
}

.admin-nav {
  display: grid;
  gap: 8px;
}

.admin-sidebar button,
.admin-toolbar button,
.section-row button {
  width: 100%;
  justify-content: flex-start;
  margin-top: 8px;
  color: inherit;
  border-color: rgba(255, 255, 255, 0.18);
}

.admin-nav button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  padding-inline: 14px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
}

.admin-nav button span {
  min-width: 28px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  text-align: center;
}

.admin-sidebar button.active {
  background: var(--blue);
  border-color: var(--blue);
}

.admin-sidebar-actions {
  display: grid;
  gap: 8px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.admin-sidebar-actions a,
.admin-sidebar-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 800;
}

.admin-main {
  padding: clamp(20px, 4vw, 38px);
}

.admin-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 20px;
}

.admin-top h2 {
  margin-top: 4px;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3rem);
}

.admin-kicker {
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.admin-toolbar button,
.section-row button {
  width: auto;
  margin: 0;
  color: var(--ink);
  border-color: var(--line);
  background: #fff;
}

.admin-toolbar .admin-save {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.btn.secondary-dark {
  border-color: var(--line);
  background: #fff;
  color: var(--blue-dark);
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.admin-stats button {
  display: grid;
  gap: 4px;
  min-height: 86px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  box-shadow: 0 8px 24px rgba(23, 32, 51, 0.06);
  cursor: pointer;
}

.admin-stats button.active {
  border-color: rgba(30, 115, 190, 0.42);
  background: #f7fbff;
  box-shadow: inset 4px 0 0 var(--blue), 0 8px 24px rgba(23, 32, 51, 0.06);
}

.admin-stats strong {
  color: var(--navy);
  font-size: 1.55rem;
  line-height: 1;
}

.admin-stats span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.editor-grid {
  display: grid;
  grid-template-columns: minmax(290px, 0.62fr) minmax(420px, 1.38fr);
  gap: 18px;
  align-items: start;
}

.page-list {
  max-height: calc(100vh - 170px);
  overflow: auto;
  position: sticky;
  top: 24px;
}

.page-search {
  position: sticky;
  top: 0;
  z-index: 2;
  margin-bottom: 12px;
  background: #fff;
}

.admin-search-label {
  display: block;
  margin-bottom: 8px;
}

.list-count {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.page-list button {
  display: grid;
  gap: 5px;
  width: 100%;
  margin-bottom: 8px;
  padding: 14px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.page-list button.active {
  border-color: var(--blue);
  box-shadow: inset 4px 0 0 var(--blue);
}

.page-list button strong {
  color: var(--navy);
  line-height: 1.28;
}

.page-list button small,
.page-list button em {
  color: var(--muted);
  font-style: normal;
  line-height: 1.4;
}

.page-kind {
  width: fit-content;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(30, 115, 190, 0.1);
  color: var(--blue-dark);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.page-editor-head,
.layout-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.page-editor-head h3,
.layout-editor-head h3 {
  margin: 8px 0 4px;
  color: var(--navy);
  font-size: 1.35rem;
}

.page-editor-head p,
.layout-editor-head p {
  margin: 0;
  color: var(--muted);
}

.layout-editor-head input {
  max-width: 280px;
}

.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(150px, 0.45fr);
  gap: 14px;
}

.section-row {
  display: grid;
  gap: 10px;
  padding: 16px;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbfd;
}

.editor-help {
  margin: 0 0 18px;
  color: var(--muted);
}

.editor-block-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.editor-block-title strong {
  color: var(--navy);
}

.editor-block-title span {
  color: var(--muted);
  font-size: 0.86rem;
}

.save-status {
  min-width: 92px;
  color: var(--blue-dark);
  font-weight: 800;
  text-align: right;
}

.section-row .compact {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 10px;
}

.danger-zone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 22px;
  padding: 16px;
  border: 1px solid #f0c9c9;
  border-radius: 8px;
  background: #fff7f7;
}

.danger-zone strong {
  color: #7f1d1d;
}

.danger-zone button {
  width: auto;
  margin: 0;
  border-color: #e6aaaa;
  background: #fff;
  color: #9f1d1d;
}

.message-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.board-editor {
  display: grid;
  gap: 16px;
}

.board-admin-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(23, 32, 51, 0.07);
}

.board-admin-card .photo-preview {
  min-height: 210px;
}

.board-fields {
  display: grid;
  gap: 14px;
}

.board-fields textarea {
  min-height: 130px;
}

.board-photo-actions {
  grid-template-columns: minmax(150px, auto) minmax(0, 1fr) auto;
  align-items: start;
}

.message-card span {
  color: var(--blue);
  font-size: 0.88rem;
  font-weight: 800;
}

.message-card h3 {
  margin: 8px 0 8px;
  color: var(--navy);
}

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

.empty-admin-state {
  text-align: center;
}

.empty-admin-state h3 {
  color: var(--navy);
}

.simple-admin-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
  background: #eef3f8;
}

.simple-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  background: #111b2c;
  color: #fff;
}

.simple-sidebar h1 {
  margin: 0;
  font-size: 1.55rem;
}

.role-badge {
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(185, 217, 255, 0.16);
  color: #b9d9ff;
  font-size: 0.82rem;
  font-weight: 900;
}

.simple-sidebar nav {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.simple-sidebar button,
.simple-sidebar a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.simple-sidebar button.active {
  border-color: var(--blue);
  background: var(--blue);
}

.simple-sidebar a {
  justify-content: center;
  margin-top: auto;
}

.simple-admin-main {
  padding: clamp(22px, 4vw, 40px);
}

.simple-admin-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.simple-admin-top span,
.editor-title-row span {
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.simple-admin-top h2 {
  margin: 5px 0;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3rem);
}

.simple-admin-top p,
.editor-title-row p {
  margin: 0;
  color: var(--muted);
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.quick-actions button,
.admin-save {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--blue);
  border-radius: 6px;
  background: var(--blue);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.quick-actions button {
  border-color: var(--line);
  background: #fff;
  color: var(--blue-dark);
}

.content-workspace {
  display: grid;
  grid-template-columns: minmax(280px, 370px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.content-list,
.simple-editor {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(23, 32, 51, 0.07);
}

.content-list {
  position: sticky;
  top: 24px;
}

.type-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.type-tabs button {
  min-height: 46px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fbfe;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.type-tabs button.active {
  border-color: rgba(30, 115, 190, 0.45);
  background: #eaf4ff;
  color: var(--blue-dark);
}

.type-tabs span {
  display: inline-flex;
  margin-left: 4px;
  color: var(--muted);
}

.page-picker {
  display: grid;
  gap: 8px;
  max-height: calc(100vh - 300px);
  margin-top: 14px;
  overflow: auto;
}

.page-picker button {
  display: grid;
  gap: 5px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.page-picker button.active {
  border-color: var(--blue);
  box-shadow: inset 4px 0 0 var(--blue);
}

.page-picker strong {
  color: var(--navy);
}

.page-picker span {
  color: var(--muted);
  font-size: 0.86rem;
}

.editor-title-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.editor-title-row h3 {
  margin: 7px 0 4px;
  color: var(--navy);
  font-size: 1.5rem;
}

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

.simple-editor textarea[name="summary"] {
  min-height: 230px;
}

.design-editor {
  max-width: 820px;
}

.editor-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 8px;
}

.editor-actions span,
.simple-editor [data-save-status] {
  color: var(--blue-dark);
  font-weight: 800;
}

.editor-actions button {
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid #e6aaaa;
  border-radius: 6px;
  background: #fff7f7;
  color: #9f1d1d;
  font-weight: 900;
  cursor: pointer;
}

.empty-copy {
  color: var(--muted);
}

.login-panel h1 {
  color: var(--navy);
}

.auth-screen {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(320px, 0.65fr);
  min-height: 100vh;
  background: #eef3f8;
}

.auth-brand {
  display: grid;
  align-content: center;
  padding: clamp(36px, 7vw, 92px);
  background-image: linear-gradient(90deg, rgba(17, 27, 44, 0.9), rgba(17, 27, 44, 0.55)), url("/uploads/2022/10/cmbst-exterior-1286-hor-pano.jpg");
  background-size: cover;
  background-position: center;
  color: #fff;
}

.auth-brand img {
  width: min(330px, 80vw);
  margin-bottom: 30px;
  padding: 12px;
  border-radius: 8px;
  background: #fff;
}

.auth-brand h1 {
  max-width: 620px;
  color: #fff;
  font-size: clamp(3rem, 7vw, 5.4rem);
}

.auth-brand p {
  max-width: 560px;
  color: #e7f1ff;
  font-size: 1.08rem;
}

.auth-card {
  align-self: center;
  width: min(430px, calc(100% - 36px));
  margin: 0 auto;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(23, 32, 51, 0.14);
}

.auth-card span,
.cms-top span,
.editor-head span {
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.auth-card h2 {
  margin: 8px 0 22px;
  color: var(--navy);
  font-size: 2rem;
}

.auth-card label,
.cms-editor label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--navy);
  font-weight: 850;
}

.auth-card button {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 6px;
  background: var(--blue);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.auth-card small {
  display: block;
  margin-top: 18px;
  color: var(--muted);
}

.cms-shell {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  min-height: 100vh;
  background: #eef3f8;
}

.cms-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  background: #111b2c;
  color: #fff;
}

.cms-logo {
  width: 220px;
  max-width: 100%;
  height: 86px;
  margin-bottom: 4px;
  padding: 10px;
  border-radius: 8px;
  background: #fff;
  object-fit: contain;
}

.cms-sidebar strong {
  font-size: 1.5rem;
}

.cms-role {
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(185, 217, 255, 0.16);
  color: #b9d9ff;
  font-size: 0.82rem;
  font-weight: 900;
}

.cms-sidebar nav {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.nav-label {
  grid-column: 1 / -1;
  margin: 12px 2px 2px;
  color: #8da7c7;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-label:first-child {
  margin-top: 0;
}

.cms-sidebar button,
.cms-sidebar a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-weight: 850;
  cursor: pointer;
}

.cms-sidebar button.active {
  border-color: var(--blue);
  background: var(--blue);
}

.cms-sidebar button.advanced-nav {
  border-color: rgba(245, 158, 11, 0.45);
  background: rgba(245, 158, 11, 0.12);
}

.cms-sidebar button.advanced-nav.active {
  border-color: #f59e0b;
  background: #b76b00;
}

.cms-sidebar a {
  justify-content: center;
  margin-top: auto;
}

.cms-main {
  padding: clamp(20px, 4vw, 40px);
}

.cms-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}

.cms-top h1 {
  margin: 5px 0;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3.1rem);
}

.cms-top p {
  margin: 0;
  color: var(--muted);
}

.top-actions,
.status-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.primary-action,
.secondary-action,
.cms-actions button {
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid var(--blue);
  border-radius: 6px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.secondary-action {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

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

.cms-stats article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(23, 32, 51, 0.06);
}

.cms-stats strong {
  display: block;
  color: var(--navy);
  font-size: 1.8rem;
  line-height: 1;
}

.cms-stats span {
  color: var(--muted);
  font-weight: 800;
}

.cms-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.cms-actions input {
  max-width: 420px;
}

.cms-workspace {
  display: grid;
  grid-template-columns: minmax(310px, 410px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.cms-list,
.cms-editor {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(23, 32, 51, 0.07);
}

.cms-list {
  position: sticky;
  top: 22px;
  display: grid;
  gap: 10px;
  max-height: calc(100vh - 190px);
  padding: 14px;
  overflow: auto;
}

.list-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 2px 2px 8px;
  border-bottom: 1px solid var(--line);
}

.list-title strong {
  color: var(--navy);
  font-size: 0.98rem;
  line-height: 1.25;
}

.list-title span {
  color: var(--muted);
  font-size: 0.86rem;
}

.cms-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.cms-row.active {
  border-color: var(--blue);
  box-shadow: inset 4px 0 0 var(--blue);
}

.thumb {
  width: 64px;
  height: 54px;
  border-radius: 6px;
  background-image: var(--thumb);
  background-size: cover;
  background-position: center;
}

.cms-row strong {
  display: block;
  color: var(--navy);
  line-height: 1.25;
}

.cms-row small {
  color: var(--muted);
}

.cms-row em {
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 900;
}

.cms-row em.on {
  background: #e9f8ef;
  color: #166534;
}

.cms-row em.off {
  background: #fff3dc;
  color: #8a4b00;
}

.cms-editor {
  padding: clamp(20px, 3vw, 28px);
}

.editor-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.editor-head h2 {
  margin: 6px 0 4px;
  color: var(--navy);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
}

.editor-head p {
  margin: 0;
  color: var(--muted);
}

.editor-head a {
  align-self: start;
  min-height: 40px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--blue-dark);
  font-weight: 900;
}

.editor-note,
.advanced-warning {
  display: grid;
  gap: 4px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid #cfe4fa;
  border-radius: 8px;
  background: #f3f9ff;
}

.editor-note strong,
.advanced-warning strong {
  color: var(--navy);
  font-size: 0.98rem;
}

.editor-note span,
.advanced-warning span {
  color: var(--muted);
  line-height: 1.55;
}

.advanced-warning {
  border-color: #f5d28a;
  background: #fff8e8;
}

.advanced-workspace {
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
}

.advanced-editor {
  border-color: #d5dce8;
}

.advanced-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.advanced-toolbar label {
  margin: 0 !important;
}

.advanced-toolbar span {
  padding-bottom: 12px;
  color: var(--muted);
  font-size: 0.9rem;
  white-space: nowrap;
}

.advanced-field {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.advanced-field + .advanced-field {
  margin-top: 10px;
}

.contact-admin-section {
  display: grid;
  gap: 16px;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.contact-admin-head {
  display: grid;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.contact-admin-head.inline {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.contact-admin-head h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1.2rem;
}

.contact-admin-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.social-admin-list {
  display: grid;
  gap: 10px;
}

.social-admin-row {
  display: grid;
  grid-template-columns: minmax(150px, 190px) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.page-section-editor {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.page-section-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.page-section-card summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 16px;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
}

.page-section-card summary::-webkit-details-marker {
  display: none;
}

.page-section-card summary span {
  font-size: 1rem;
  font-weight: 650;
}

.page-section-card summary small {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 500;
  white-space: nowrap;
}

.section-card-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 16px 14px;
  border-bottom: 1px solid var(--line);
}

.section-card-toolbar .switch {
  margin: 0 !important;
}

.section-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 16px;
}

.section-field {
  position: relative;
}

.section-field.full {
  grid-column: 1 / -1;
}

.compact-upload {
  display: inline-flex;
  width: auto;
  margin-top: 8px;
  padding: 8px 12px;
  font-size: 0.88rem;
}

.social-admin-row label {
  margin: 0 !important;
}

.editor-block-title {
  display: grid;
  gap: 3px;
}

.editor-block-title strong {
  color: var(--navy);
}

.editor-block-title span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.editor-block-title small {
  color: #8a97a8;
  font-size: 0.78rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.status-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.switch {
  display: inline-flex !important;
  grid-auto-flow: column;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  margin: 0 !important;
  color: var(--ink) !important;
}

.switch input {
  position: absolute;
  opacity: 0;
}

.switch span {
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: #cbd5e1;
}

.switch span::before {
  content: "";
  display: block;
  width: 22px;
  height: 22px;
  margin: 3px;
  border-radius: 50%;
  background: #fff;
  transition: transform 160ms ease;
}

.switch input:checked + span {
  background: #20a162;
}

.switch input:checked + span::before {
  transform: translateX(20px);
}

.cms-form-grid,
.project-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.photo-field {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 16px;
}

.photo-preview {
  min-height: 168px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background-image: var(--photo);
  background-size: cover;
  background-position: center;
  background-color: #eef3f8;
}

.photo-buttons {
  display: grid;
  grid-template-columns: minmax(150px, auto) minmax(0, 1fr);
  gap: 10px;
}

.file-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--blue);
  border-radius: 6px;
  background: #eaf4ff;
  color: var(--blue-dark) !important;
  font-weight: 600 !important;
  cursor: pointer;
}

.file-button input {
  display: none;
}

.asset-chooser {
  position: relative;
}

.asset-chooser summary {
  display: grid;
  min-height: 44px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--blue-dark);
  font-weight: 600;
  cursor: pointer;
}

.asset-grid {
  position: absolute;
  right: 0;
  z-index: 5;
  display: grid;
  width: min(460px, 80vw);
  max-height: 360px;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 8px;
  padding: 10px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(23, 32, 51, 0.16);
}

.asset-grid button {
  aspect-ratio: 1.25;
  border: 1px solid var(--line);
  border-radius: 6px;
  background-image: var(--asset);
  background-size: cover;
  background-position: center;
  cursor: pointer;
}

.asset-grid button:hover {
  border-color: var(--blue);
}

.event-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.event-gallery-item {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef3f8;
}

.event-gallery-item img {
  display: block;
  width: 100%;
  aspect-ratio: 1.15;
  object-fit: cover;
}

.event-gallery-item .danger-action {
  width: 100%;
  min-height: 34px;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  font-size: 0.82rem;
}

.event-gallery-actions {
  max-width: 460px;
  margin-top: 16px;
}

.cms-editor textarea[name="summary"] {
  min-height: 220px;
}

.bottom-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.bottom-actions button,
.danger-action {
  min-height: 42px;
  padding: 9px 14px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
}

.danger-action {
  border: 1px solid #e6aaaa;
  background: #fff7f7;
  color: #9f1d1d;
}

[data-save-status] {
  color: var(--blue-dark);
  font-weight: 600;
}

.design-form {
  max-width: 900px;
}

.admin-body {
  font-weight: 400;
}

.admin-body label,
.admin-body input,
.admin-body textarea,
.admin-body select,
.cms-row strong,
.cms-row small,
.cms-top p,
.editor-head p,
.auth-brand p,
.auth-card small {
  font-weight: 400;
}

.admin-body h1,
.admin-body h2,
.admin-body h3,
.cms-sidebar strong,
.cms-stats strong {
  font-weight: 650;
}

.cms-sidebar button,
.cms-sidebar a,
.primary-action,
.secondary-action,
.cms-actions button,
.file-button,
.asset-chooser summary,
.bottom-actions button,
.auth-card button {
  font-weight: 600;
}

.cms-role,
.cms-top span,
.editor-head span,
.auth-card span,
.cms-row em,
[data-save-status] {
  font-weight: 600;
}

.login {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 20px;
}

.login .admin-panel {
  width: min(420px, 100%);
}

.notice {
  margin-top: 14px;
  color: var(--blue-dark);
  font-weight: 700;
}

.error {
  color: #a4262c;
}

.elementor-page {
  background: #fff;
}

.elementor-section {
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  isolation: isolate;
}

.elementor-section > .elementor-container {
  position: relative;
  z-index: 2;
}

.elementor-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.elementor-section:has(> .elementor-video)::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(24, 31, 42, 0.72);
  pointer-events: none;
}

.elementor-container {
  display: flex;
  width: min(var(--container-width, 1140px), calc(100% - 36px));
  margin-inline: auto;
  gap: 0;
}

.elementor-column {
  position: relative;
  min-width: 0;
  flex: 1 1 0;
  padding: 10px;
  background-size: cover;
  background-position: center;
}

.elementor-column:has(.flip-card) {
  display: flex;
  align-items: flex-end;
  min-height: 360px;
}

.elementor-heading {
  margin: 0 0 14px;
  color: var(--navy);
  font-family: Montserrat, Inter, "Segoe UI", Arial, sans-serif;
  font-weight: 700;
}

h1.elementor-heading {
  font-size: clamp(2.8rem, 7vw, 5.6rem);
}

h2.elementor-heading {
  font-size: clamp(2rem, 4vw, 3.1rem);
}

h3.elementor-heading {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.elementor-text {
  color: var(--muted);
  font-family: Montserrat, Inter, "Segoe UI", Arial, sans-serif;
}

.elementor-text p {
  margin: 0 0 16px;
}

.elementor-divider {
  width: var(--divider-width, 64px);
  height: var(--divider-weight, 4px);
  margin: 12px 0 20px;
  background: var(--divider-color, var(--blue));
}

.elementor-spacer {
  min-height: 1px;
}

.elementor-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 12px;
  padding: 10px 20px;
  border: 2px solid var(--blue);
  border-radius: 4px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
}

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

.elementor-image {
  display: block;
  max-width: 100%;
  height: auto;
}

.elementor-image-box {
  text-align: center;
}

.elementor-image-box img {
  width: 100%;
  max-width: 280px;
  border-radius: 10px;
  box-shadow: 0 14px 40px rgba(23, 32, 51, 0.16);
  object-fit: cover;
}

.elementor-image-box h3 {
  margin: 16px 0 8px;
  color: var(--navy);
  font-size: 1.1rem;
}

.elementor-image-box p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.home-section-heading-section > .elementor-container {
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 24px;
}

.home-section-heading-column {
  flex: 0 1 min(820px, 100%) !important;
  width: min(820px, 100%) !important;
  margin: 0 !important;
  padding-inline: 10px !important;
  text-align: center;
}

.home-section-title {
  margin-bottom: 10px !important;
  text-align: center !important;
  letter-spacing: 0;
}

.home-section-divider {
  margin: 14px auto 20px !important;
}

.home-section-intro {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.home-section-action-column {
  flex: 0 0 100% !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 10px 10px !important;
  text-align: center;
}

.home-section-action-column .elementor-button {
  margin: 2px auto 0;
}

.home-section-spacer-column {
  display: none !important;
}

.home-board-section {
  padding: 58px 18px 64px;
  background: #eff7ff;
}

.home-board-head {
  width: min(1120px, 100%);
  margin: 0 auto 28px;
  text-align: center;
}

.home-board-head h2 {
  margin: 0;
  color: var(--navy);
  font-family: Montserrat, Inter, "Segoe UI", Arial, sans-serif;
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.home-board-head span {
  display: block;
  width: 64px;
  height: 4px;
  margin: 18px auto 0;
  background: var(--blue);
}

.home-board-grid {
  display: flex;
  width: min(1120px, 100%);
  margin-inline: auto;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 34px clamp(28px, 4vw, 58px);
}

.home-board-card {
  width: min(236px, 100%);
  text-align: center;
}

.home-board-card img {
  width: 100%;
  height: 264px;
  border-radius: 8px;
  object-fit: cover;
  object-position: top center;
  box-shadow: 0 16px 42px rgba(23, 32, 51, 0.11);
}

.home-board-card h3 {
  margin: 16px 0 8px;
  color: var(--navy);
  font-size: 1.08rem;
  line-height: 1.12;
}

.home-board-card p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
  text-transform: uppercase;
}

.elementor-icon-box {
  display: flex;
  gap: 16px;
  margin-bottom: 22px;
}

.icon-dot {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 50%;
  background: rgba(30, 115, 190, 0.12);
}

.icon-dot::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--blue);
}

.elementor-icon-box h3 {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: 1.05rem;
}

.elementor-icon-box p {
  margin: 0;
  color: var(--muted);
}

.elementor-icon-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.elementor-icon-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
}

.elementor-icon-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue);
}

.elementor-social {
  display: flex;
  gap: 12px;
}

.elementor-social a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(30, 115, 190, 0.18);
  color: var(--blue);
  font-weight: 800;
}

.flip-card {
  display: flex;
  width: 100%;
  min-height: 220px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  color: #fff;
  text-align: center;
  transition: background 160ms ease, transform 160ms ease;
}

.flip-card:hover {
  background: rgba(24, 31, 42, 0.24);
  transform: translateY(-2px);
}

.flip-card span {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.3);
}

.flip-card em {
  margin-top: 14px;
  color: #9fd0ff;
  font-style: normal;
  font-weight: 800;
}

.elementor-carousel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
}

.elementor-carousel img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
}

.map-box {
  min-height: 420px;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: #e8eef6;
}

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

.page-fallback {
  min-height: 420px;
  padding: 120px 0;
  color: #fff;
  background-image: linear-gradient(rgba(24,31,42,.7),rgba(24,31,42,.7)), var(--elementor-bg);
}

.page-fallback h1,
.page-fallback p {
  color: #fff;
}

.clean-hero {
  position: relative;
  min-height: clamp(420px, 60vh, 680px);
  display: grid;
  align-items: end;
  padding: clamp(72px, 10vw, 130px) clamp(22px, 6vw, 76px) clamp(40px, 6vw, 90px);
  background-color: #0d1a2a;
  background-image: linear-gradient(90deg, rgba(12, 20, 33, 0.72) 0%, rgba(12, 20, 33, 0.52) 42%, rgba(12, 20, 33, 0.58) 100%), var(--clean-bg);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  color: #fff;
  overflow: hidden;
}

.clean-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.02);
  pointer-events: none;
}

.clean-hero > div {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  width: min(100%, 1100px);
  margin: 0 auto;
}

.clean-hero h1 {
  margin: 10px 0 18px;
  font-size: clamp(3.2rem, 6vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: #fff;
}

.clean-hero p {
  max-width: 980px;
  margin: 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(1.2rem, 2vw, 2.1rem);
  line-height: 1.45;
}

.team-hero {
  background-position: center 35%;
}

.about-hero {
  background-position: center 48%;
}

.projects-hero {
  background-position: center 45%;
}

.research-hero {
  background-position: center 42%;
}

.clean-section {
  padding: clamp(26px, 4vw, 56px) clamp(18px, 5vw, 72px);
}

.clean-muted {
  background: #f4f8fd;
}

.clean-section-head {
  max-width: 860px;
  margin: 0 auto 20px;
  text-align: center;
}

.clean-section-head h2 {
  color: var(--navy);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.clean-section-head p {
  margin: 8px 0 0;
  color: var(--muted);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.service-card {
  display: grid;
  grid-template-rows: 180px 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(23, 32, 51, 0.08);
}

.service-image {
  background-image: linear-gradient(rgba(17, 27, 44, 0.14), rgba(17, 27, 44, 0.3)), var(--service-bg);
  background-size: cover;
  background-position: center;
}

.service-body {
  padding: 18px 18px 20px;
}

.service-body h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 1.15rem;
}

.service-body p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.95rem;
}

.service-body ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-body li {
  position: relative;
  padding-left: 18px;
  margin-top: 6px;
  color: #344056;
  font-size: 0.92rem;
}

.service-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
}

.about-story-section {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(58px, 8vw, 104px) clamp(20px, 6vw, 76px);
  background: #fff;
}

.about-story-copy {
  max-width: 860px;
}

.about-story-copy .eyebrow,
.about-values article > span {
  color: var(--blue);
}

.about-story-copy h2 {
  margin: 12px 0 22px;
  color: var(--navy);
  font-size: clamp(2.3rem, 4.4vw, 4.2rem);
}

.about-story-text {
  color: #263247;
  font-size: 1.04rem;
  line-height: 1.85;
}

.about-story-text p {
  margin: 0 0 18px;
}

.about-story-image {
  min-height: clamp(360px, 42vw, 560px);
  border-radius: 8px;
  background-image: linear-gradient(rgba(17, 27, 44, 0.05), rgba(17, 27, 44, 0.24)), var(--about-image);
  background-size: cover;
  background-position: center;
  box-shadow: 0 18px 50px rgba(23, 32, 51, 0.16);
}

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

.about-values article {
  padding: clamp(26px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(23, 32, 51, 0.08);
}

.about-values h2 {
  margin: 10px 0 14px;
  color: var(--navy);
  font-size: clamp(1.55rem, 3vw, 2.3rem);
}

.about-values p {
  margin: 0;
  color: #344056;
  line-height: 1.75;
}

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

.mini-project {
  display: flex;
  min-height: 250px;
  align-items: end;
  padding: 24px;
  border-radius: 8px;
  background-image: linear-gradient(rgba(17, 27, 44, 0.18), rgba(17, 27, 44, 0.74)), var(--mini-bg);
  background-size: cover;
  background-position: center;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}

.portfolio-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(23, 32, 51, 0.08);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.portfolio-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(23, 32, 51, 0.14);
}

.portfolio-image {
  min-height: 220px;
  background-image: linear-gradient(rgba(17, 27, 44, 0.08), rgba(17, 27, 44, 0.28)), var(--portfolio-bg);
  background-size: cover;
  background-position: center;
}

.portfolio-body {
  padding: 22px;
}

.portfolio-body h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 1.18rem;
}

.portfolio-body p {
  min-height: 70px;
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.55;
}

.portfolio-body span {
  color: var(--blue);
  font-weight: 800;
}

.research-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 24px;
}

.research-card {
  display: grid;
  grid-template-rows: 240px 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(23, 32, 51, 0.08);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.research-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(23, 32, 51, 0.14);
}

.research-image {
  background-image: linear-gradient(rgba(17, 27, 44, 0.04), rgba(17, 27, 44, 0.26)), var(--research-bg);
  background-size: cover;
  background-position: center;
}

.research-body {
  padding: 24px;
}

.research-body > span {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.research-body h3 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 1.25rem;
}

.research-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.project-detail-hero {
  position: relative;
  min-height: clamp(390px, 64vh, 680px);
  display: grid;
  align-items: end;
  padding: clamp(48px, 8vw, 90px) clamp(20px, 6vw, 76px);
  background-image: linear-gradient(180deg, rgba(17, 27, 44, 0.2), rgba(17, 27, 44, 0.88)), var(--project-bg);
  background-size: cover;
  background-position: center;
  color: #fff;
}

.project-detail-hero h1 {
  max-width: 940px;
  margin: 10px 0 0;
  color: #fff;
  font-size: clamp(2.5rem, 6vw, 5.2rem);
}

.research-detail-hero {
  background-position: center;
}

.back-link {
  position: absolute;
  top: 24px;
  left: clamp(20px, 6vw, 76px);
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 4px;
  background: rgba(17, 27, 44, 0.36);
  color: #fff;
  font-weight: 800;
}

.project-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: 32px;
  padding: clamp(52px, 7vw, 88px) clamp(20px, 6vw, 76px);
}

.project-summary h2 {
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3rem);
}

.project-summary p {
  color: var(--muted);
  font-size: 1.05rem;
  white-space: pre-line;
}

.project-facts {
  align-self: start;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(23, 32, 51, 0.08);
}

.project-facts div {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.project-facts div:last-child {
  border-bottom: 0;
}

.project-facts strong {
  display: block;
  color: var(--navy);
  font-size: 0.85rem;
  text-transform: uppercase;
}

.project-facts span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.team-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(23, 32, 51, 0.08);
}

.team-card img {
  width: 100%;
  aspect-ratio: 4 / 4.5;
  object-fit: cover;
  object-position: top center;
  background: #eef3f8;
}

.team-card div {
  padding: 22px;
}

.team-card h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 1.12rem;
}

.team-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.clean-cta {
  padding: clamp(48px, 7vw, 76px) clamp(18px, 5vw, 72px);
  background-image: linear-gradient(rgba(17, 27, 44, 0.82), rgba(17, 27, 44, 0.82)), url("/uploads/2021/02/Night-Cam_21062018_web1-scaled.jpg");
  background-size: cover;
  background-position: center;
  color: #fff;
  text-align: center;
}

.clean-cta h2 {
  margin: 0 0 22px;
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

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

@media (max-width: 1100px) {
  .menu-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    inset: 104px 14px auto;
    display: none;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: grid;
  }

  .hidden-desktop {
    display: revert !important;
  }

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

  .split,
  .contact-layout,
  .admin-shell,
  .editor-grid {
    grid-template-columns: 1fr;
  }

  .elementor-container {
    flex-direction: column;
  }

  .elementor-column {
    width: 100%;
    flex-basis: auto !important;
  }

  .mini-projects {
    grid-template-columns: 1fr;
  }

  .about-story-section,
  .about-values {
    grid-template-columns: 1fr;
  }

  .simple-admin-shell,
  .content-workspace,
  .project-fields,
  .auth-screen,
  .cms-shell,
  .cms-workspace,
  .photo-field {
    grid-template-columns: 1fr;
  }

  .simple-sidebar,
  .content-list,
  .cms-sidebar,
  .cms-list {
    position: static;
    min-height: auto;
  }

  .cms-sidebar {
    display: grid;
    grid-template-columns: auto minmax(160px, 1fr);
    gap: 12px 16px;
    align-items: center;
  }

  .cms-logo {
    width: 210px;
    height: 76px;
    grid-row: span 2;
  }

  .cms-sidebar nav {
    grid-column: 1 / -1;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .cms-sidebar a,
  .cms-sidebar [data-logout] {
    justify-content: center;
    margin-top: 0;
  }

  .page-picker,
  .cms-list {
    max-height: 420px;
  }

  .project-detail {
    grid-template-columns: 1fr;
  }

  .brand-logo {
    width: 235px;
    height: 72px;
  }

  .admin-sidebar {
    position: static;
    min-height: auto;
  }

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

  .page-list {
    position: static;
    max-height: 420px;
  }

  .form-grid,
  .page-editor-head,
  .layout-editor-head {
    grid-template-columns: 1fr;
  }

  .page-editor-head,
  .layout-editor-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .layout-editor-head input {
    max-width: none;
  }
}

@media (max-width: 620px) {
  .hidden-tablet {
    display: revert !important;
  }

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

  .hero {
    min-height: 500px;
  }

  .site-header {
    min-height: 82px;
  }

  .brand-logo {
    width: 190px;
    height: 58px;
  }

  .main-nav {
    inset: 82px 14px auto;
  }

  .main-nav a {
    justify-content: flex-start;
    width: 100%;
  }

  .section {
    padding-inline: 16px;
  }

  .footer,
  .admin-top {
    flex-direction: column;
  }

  .admin-main,
  .admin-sidebar,
  .admin-panel {
    padding: 18px;
  }

  .admin-stats {
    grid-template-columns: 1fr;
  }

  .simple-admin-top,
  .editor-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .type-tabs {
    grid-template-columns: 1fr;
  }

  .auth-brand {
    padding: 28px 20px;
  }

  .auth-brand h1 {
    font-size: 2.5rem;
  }

  .cms-sidebar {
    grid-template-columns: 1fr;
  }

  .cms-logo {
    width: 170px;
    height: 68px;
    grid-row: auto;
  }

  .cms-sidebar nav {
    grid-template-columns: 1fr;
  }

  .cms-stats,
  .cms-form-grid,
  .project-fields,
  .section-fields,
  .photo-buttons {
    grid-template-columns: 1fr;
  }

  .page-section-card summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .cms-actions {
    flex-direction: column;
  }

  .cms-actions input {
    max-width: none;
  }

  .danger-zone {
    align-items: flex-start;
    flex-direction: column;
  }

  h1.elementor-heading {
    font-size: 2.35rem;
  }
}
