:root {
  --navy-deep: #0b2b40;
  --navy: #123a56;
  --navy-soft: #31566f;
  --red-accent: #7d2e39;
  --cream: #f5f2ea;
  --gray-bg: #eceff1;
  --text: #1b2730;
  --muted: #5f6e78;
  --white: #ffffff;
  --border: rgba(11, 43, 64, 0.12);
  --shadow: 0 16px 40px rgba(11, 43, 64, 0.08);
  --radius: 18px;
  --container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Helvetica, Arial, Roboto, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f8f8f7 0%, var(--gray-bg) 100%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.container { width: min(var(--container), calc(100% - 40px)); margin: 0 auto; }
.hidden { display: none !important; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 242, 234, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand { display: flex; align-items: center; gap: 14px; }
.brand-logo {
  width: 54px;
  height: 54px;
  display: block;
  object-fit: contain;
  flex: 0 0 auto;
}
.brand-name {
  font-family: "Merriweather", "Times New Roman", serif;
  font-size: 1.05rem;
  color: var(--navy-deep);
}
.brand-sub { font-size: 0.85rem; color: var(--muted); }

.nav-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.nav-links a {
  font-size: 0.96rem;
  color: var(--navy-deep);
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--red-accent);
  transition: width 0.25s ease;
}
.nav-links a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: var(--white);
}
.lang-btn {
  border: 0;
  background: transparent;
  padding: 10px 14px;
  cursor: pointer;
  color: var(--navy-deep);
}
.lang-btn.active {
  background: var(--navy-deep);
  color: var(--white);
}
.admin-link { color: var(--red-accent); font-weight: 600; }

.hero {
  padding: 88px 0 52px;
  background:
    linear-gradient(135deg, rgba(11,43,64,0.95), rgba(18,58,86,0.9)),
    linear-gradient(120deg, rgba(125,46,57,0.15), transparent 45%);
  color: var(--white);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 32px;
  align-items: stretch;
}
.eyebrow, .section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.78rem;
  color: #98b3c5;
  margin-bottom: 16px;
}
.hero h1,
.section h2,
.logo-card h3,
.service-card h3,
.apply-card h3,
.admin-card h3,
.admin-login h1 {
  font-family: "Merriweather", "Times New Roman", serif;
}
.hero h1 {
  font-size: clamp(2.2rem, 4vw, 4.5rem);
  line-height: 1.15;
  margin: 0 0 18px;
}
.hero-text {
  max-width: 700px;
  color: #dbe8f0;
  font-size: 1.05rem;
  line-height: 1.8;
}
.hero-values {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 24px 0 30px;
}
.hero-values span {
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  padding: 10px 16px;
  color: #e9f1f6;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-panel {
  padding: 30px;
  color: var(--text);
  position: relative;
  overflow: hidden;
}
.hero-panel::before {
  content: "";
  position: absolute;
  inset: auto -30px -30px auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 1px solid rgba(11,43,64,0.1);
}
.hero-panel-label {
  color: var(--red-accent);
  font-weight: 600;
  margin-bottom: 12px;
}
.hero-panel h2 { margin: 0 0 12px; font-size: 1.8rem; color: var(--navy-deep); }
.hero-panel p { color: var(--muted); line-height: 1.8; }
.hero-panel-list { margin: 20px 0 0; padding-left: 20px; color: var(--text); }
.hero-panel-list li { margin-bottom: 10px; }

.section { padding: 82px 0; }
.section-muted { background: rgba(255,255,255,0.55); }
.section-accent { background: linear-gradient(180deg, #f5f2ea 0%, #eef2f4 100%); }
.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 30px;
}
.section-heading h2 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.8rem); color: var(--navy-deep); }
.section-intro { max-width: 540px; color: var(--muted); line-height: 1.8; }

.ticker-shell {
  overflow: hidden;
  border: 1px solid rgba(125,46,57,0.18);
  background: linear-gradient(90deg, rgba(11,43,64,0.05), rgba(125,46,57,0.04));
  border-radius: 999px;
  margin-bottom: 24px;
}
.ticker {
  display: flex;
  gap: 50px;
  width: max-content;
  padding: 16px 24px;
  animation: tickerMove 30s linear infinite;
  color: var(--navy-deep);
  font-weight: 600;
}
.ticker:hover { animation-play-state: paused; }
@keyframes tickerMove {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.news-grid,
.card-grid {
  display: grid;
  gap: 22px;
}
.news-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.four-up { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.service-card,
.logo-card,
.apply-card,
.contact-card,
.admin-card,
.admin-login {
  padding: 28px;
}
.news-card {
  padding: 24px;
  border-top: 4px solid var(--navy-deep);
}
.news-meta,
.job-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 14px 0;
}
.news-meta span,
.job-meta span {
  background: rgba(11,43,64,0.06);
  color: var(--navy-deep);
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
}
.news-card h3,
.job-card h3 { margin: 0 0 10px; color: var(--navy-deep); }
.news-card p,
.service-card p,
.apply-card p,
.contact-card li,
.job-card p { color: var(--muted); line-height: 1.75; }

.two-col,
.contact-grid,
.careers-layout,
.admin-layout {
  display: grid;
  gap: 28px;
}
.two-col { grid-template-columns: 1.1fr 0.9fr; align-items: center; }
.contact-grid { grid-template-columns: 0.8fr 1.2fr; }
.careers-layout { grid-template-columns: 1.3fr 0.9fr; align-items: start; }

.logo-card { text-align: center; }
.about-logo {
  width: min(280px, 100%);
  height: auto;
  display: block;
  margin: 0 auto 22px;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(11, 43, 64, 0.12);
}

.application-form,
.admin-login,
.admin-card,
.editor-block {
  display: grid;
  gap: 14px;
}
label { display: grid; gap: 8px; }
input, textarea, select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  font: inherit;
}
textarea { min-height: 120px; resize: vertical; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 600;
}
.btn-primary {
  background: var(--navy-deep);
  color: var(--white);
}
.btn-secondary {
  background: transparent;
  color: var(--navy-deep);
  border-color: rgba(11,43,64,0.22);
}
.btn:hover { transform: translateY(-1px); }

.job-card {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.contact-list a { color: var(--red-accent); word-break: break-all; }

.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.82);
  padding: 26px 0;
}
.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.compact-header { background: rgba(255,255,255,0.94); }
.admin-body { background: linear-gradient(180deg, #edf1f4 0%, #f7f5f0 100%); }
.admin-layout { max-width: 980px; }
.admin-card { margin-bottom: 20px; }
.editor-block {
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #fbfcfd;
  margin-bottom: 18px;
}
.helper-text { color: var(--muted); font-size: 0.92rem; }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 1080px) {
  .hero-grid,
  .four-up,
  .news-grid,
  .two-col,
  .contact-grid,
  .careers-layout { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 840px) {
  .nav-wrap,
  .section-heading,
  .footer-wrap { align-items: flex-start; }
  .nav-wrap { flex-direction: column; padding: 16px 0; }
  .hero-grid,
  .news-grid,
  .four-up,
  .two-col,
  .contact-grid,
  .careers-layout { grid-template-columns: 1fr; }
  .hero { padding-top: 54px; }
}

@media (max-width: 560px) {
  .container { width: min(var(--container), calc(100% - 24px)); }
  .hero h1 { font-size: 2rem; }
  .service-card,
  .logo-card,
  .apply-card,
  .contact-card,
  .admin-card,
  .admin-login,
  .news-card,
  .job-card { padding: 20px; }
}