:root {
  --site-accent: #005891;
  --site-accent-hover: #00466f;
  --site-accent-soft: rgba(0, 88, 145, 0.14);
  --site-text: #1f2d3d;
  --site-muted: #6c757d;
  --site-border: #d9dee3;
  --site-bg-soft: #f3f5f7;
  --site-white: #ffffff;
  --page-bg: #f8f9fa;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  background-color: var(--page-bg);
  color: #212529;
}

img {
  max-width: 100%;
}

a {
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--site-text);
}

p {
  line-height: 1.7;
}

.text-muted {
  color: var(--site-muted) !important;
}

/* =========================
   NAVBAR
========================= */

.navbar {
  background-color: var(--site-accent) !important;
  border-bottom: none !important;
  position: sticky;
  top: 0;
  z-index: 1050;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  padding-top: 6px;
  padding-bottom: 6px;
}

.navbar .container {
  display: flex;
  align-items: center;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 34px;
  min-width: 0;
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  color: var(--site-white) !important;
  margin-right: 0 !important;
}

.navbar-brand img {
  display: block;
  width: 202px;
  height: auto;
}

.brand-founded {
  display: inline-block;
  color: rgba(255, 255, 255, 0.92);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.84rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
  transform: translateY(1px);
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.45) !important;
  background-color: transparent;
}

.navbar-toggler:hover {
  background-color: rgba(255, 255, 255, 0.12);
}

.navbar-toggler:focus {
  box-shadow: none !important;
}

.navbar-toggler-icon {
  filter: brightness(0) invert(1);
}

.navbar-collapse {
  flex-grow: 1;
}

.navbar-nav {
  align-items: center;
}

.nav-link {
  color: var(--site-white) !important;
  font-weight: 600;
  padding: 9px 14px !important;
  border-radius: 10px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-link:hover {
  color: var(--site-white) !important;
  background-color: rgba(255, 255, 255, 0.16);
}

.nav-link.active {
  background-color: var(--site-white);
  color: var(--site-accent) !important;
  font-weight: 700;
}

/* =========================
   LANGUAGE FLAGS
========================= */

.language-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.language-flags {
  display: flex;
  align-items: center;
  gap: 8px;
}

.language-flags a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  transition: all 0.2s ease;
}

.language-flags a:hover {
  background-color: rgba(255, 255, 255, 0.18);
}

.language-flags a.active-lang {
  border-color: rgba(255, 255, 255, 0.95);
  background-color: rgba(255, 255, 255, 0.14);
}

.language-flags a img {
  display: block;
  width: 28px;
  height: auto;
  border-radius: 2px;
}

/* =========================
   MAIN CONTENT BOX
========================= */

.hero-section {
  background: var(--site-white);
  border-radius: 16px;
  padding: 48px 32px;
  margin-top: 32px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}

/* =========================
   HOME SLIDER
========================= */

.home-slider,
.hero-slider {
  margin: 22px 0 26px 0;
}

.home-slider .carousel,
.hero-slider .carousel {
  border-radius: 16px;
  overflow: hidden;
  background: #eef2f6;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.home-slider .carousel-inner,
.hero-slider .carousel-inner {
  height: 320px;
}

.home-slider .carousel-item,
.hero-slider .carousel-item {
  height: 320px;
}

.home-slider .carousel-item img,
.hero-slider .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.home-slider .carousel-control-prev,
.home-slider .carousel-control-next,
.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next {
  width: 8%;
}

.home-slider .carousel-control-prev-icon,
.home-slider .carousel-control-next-icon,
.hero-slider .carousel-control-prev-icon,
.hero-slider .carousel-control-next-icon {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}

.home-text-content,
.home-intro-text {
  margin-top: 14px;
}

/* =========================
   HOME FINAL PHOTO
========================= */

.home-final-section,
.home-bottom-image-wrap {
  margin-top: 40px;
}

.home-final-photo-box,
.home-bottom-image-box {
  background: var(--site-white);
  border-radius: 16px;
  padding: 24px 0;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.home-final-photo-inner {
  width: 100%;
  max-width: 90%;
  margin: 0 auto;
}

.home-final-photo,
.home-bottom-image-box img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}

/* =========================
   BUTTONS
========================= */

.btn.btn-dark {
  background-color: var(--site-accent) !important;
  border-color: var(--site-accent) !important;
  color: var(--site-white) !important;
  border-radius: 10px;
  padding: 10px 18px;
  box-shadow: none !important;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn.btn-dark:hover {
  background-color: var(--site-accent-hover) !important;
  border-color: var(--site-accent-hover) !important;
  color: var(--site-white) !important;
  transform: translateY(-1px);
}

.btn.btn-dark:focus,
.btn.btn-dark:active {
  background-color: var(--site-accent-hover) !important;
  border-color: var(--site-accent-hover) !important;
  color: var(--site-white) !important;
  box-shadow: none !important;
}

/* =========================
   YEAR BUTTONS / FILTERS
========================= */

.year-menu,
.year-filter-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 30px 0;
}

.year-filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid var(--site-accent);
  background-color: var(--site-accent);
  color: var(--site-white);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.year-filter-btn:hover {
  background-color: var(--site-accent-hover);
  border-color: var(--site-accent-hover);
  color: var(--site-white);
  transform: translateY(-1px);
}

.year-filter-btn.active-year {
  background-color: var(--site-white);
  border-color: var(--site-accent);
  color: var(--site-accent);
  font-weight: 700;
}

/* =========================
   STORY PAGE
========================= */

.story-image-box {
  width: 100%;
  max-width: 760px;
  margin: 0 auto 26px auto;
  text-align: center;
}

.story-main-image {
  display: block;
  width: 100%;
  max-width: 760px;
  height: auto;
  margin: 0 auto;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.story-divider {
  width: 100%;
  max-width: 860px;
  margin: 10px auto 32px auto;
  height: 1px;
  background: linear-gradient(
    to right,
    rgba(0, 88, 145, 0),
    rgba(0, 88, 145, 0.85),
    rgba(0, 88, 145, 0)
  );
}

.story-legacy-content {
  font-size: 1rem;
  line-height: 1.75;
}

.story-legacy-content::after {
  content: "";
  display: block;
  clear: both;
}

.story-side-image {
  width: 165px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 12px;
}

.story-side-image-left {
  float: left;
  margin-right: 22px;
  margin-bottom: 14px;
}

.story-side-image-right {
  float: right;
  margin-left: 22px;
  margin-top: 6px;
  margin-bottom: 14px;
}

/* =========================
   PROFESSIONALS
========================= */

.professionals-overview {
  margin-top: 30px;
}

.professional-overview-grid,
.professionals-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 36px;
  align-items: start;
}

.professional-overview-item,
.professional-overview-card {
  text-align: center;
}

.professional-overview-link,
.professional-overview-link:hover,
.professional-overview-link:focus,
.professional-overview-link:active {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  color: inherit !important;
}

.professional-overview-photo {
  width: 280px;
  max-width: 100%;
  height: 390px;
  object-fit: cover;
  object-position: center top;
  border-radius: 22px;
  border: 2px solid var(--site-border);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.10);
  transition: all 0.25s ease;
  display: block;
  margin: 0 auto;
  background-color: #eef2f6;
}

.professional-overview-name {
  margin-top: 18px;
  display: inline-block;
  min-width: 290px;
  max-width: 100%;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid var(--site-border);
  background-color: var(--site-bg-soft);
  color: var(--site-text);
  font-weight: 600;
  line-height: 1.3;
  transition: all 0.25s ease;
}

.professional-overview-link:hover .professional-overview-photo {
  transform: translateY(-3px);
  border-color: var(--site-accent);
  box-shadow: 0 12px 28px var(--site-accent-soft);
}

.professional-overview-link:hover .professional-overview-name,
.professional-overview-link.active-professional .professional-overview-name {
  background-color: var(--site-accent);
  border-color: var(--site-accent);
  color: var(--site-white);
}

.professional-overview-link.active-professional .professional-overview-photo {
  border-color: var(--site-accent);
  box-shadow: 0 12px 28px var(--site-accent-soft);
}

.professional-pane {
  display: none;
  margin-top: 10px;
}

.professional-pane.active {
  display: block;
}

.professional-detail-header {
  text-align: center;
  margin-bottom: 28px;
}

.professional-detail-photo {
  width: 100%;
  max-width: 520px;
  height: 400px;
  object-fit: cover;
  object-position: center top;
  border-radius: 16px;
  display: block;
  margin: 0 auto 18px auto;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.10);
  background-color: #eef2f6;
}

.professional-detail-name {
  font-size: 2rem;
  margin-bottom: 8px;
  color: var(--site-text);
}

.professional-card {
  background: var(--site-white);
  border-radius: 14px;
  padding: 35px 30px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}

.professional-card ul {
  padding-left: 20px;
  margin-bottom: 0;
}

.professional-card li {
  margin-bottom: 10px;
  line-height: 1.65;
}

.professional-download {
  margin-top: 28px;
}

.professional-download .btn {
  min-width: 180px;
}

.professionals-hidden-on-detail {
  display: block;
}

body.professional-detail-page .professionals-hidden-on-detail {
  display: none !important;
}

.staff-section {
  margin-top: 55px;
  padding-top: 28px;
  border-top: 1px solid #dde3e8;
}

.staff-title {
  margin-bottom: 10px;
}

.staff-subtitle {
  margin-bottom: 28px;
}

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

.staff-card {
  background: var(--site-white);
  border: 1px solid #e3e6ea;
  border-radius: 14px;
  padding: 22px;
  text-align: center;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.staff-photo {
  width: 100%;
  max-width: 240px;
  height: 300px;
  object-fit: cover;
  object-position: center top;
  border-radius: 14px;
  display: block;
  margin: 0 auto 18px auto;
  background-color: #eef2f6;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.08);
}

.staff-name {
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: var(--site-text);
}

.staff-role {
  margin-bottom: 0;
  color: #5f6b76;
  line-height: 1.6;
}

/* =========================
   PUBLICATIONS
========================= */

.publication-card {
  display: flex;
  gap: 22px;
  align-items: center;
  background: var(--site-white);
  border: 1px solid #e3e6ea;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.publication-thumb {
  flex: 0 0 210px;
  width: 210px;
  height: 130px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--site-white);
  border: 1px solid #dfe5ea;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.publication-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
}

.publication-thumb.thumb-banner {
  padding: 0;
  background: #143d74;
  border-color: #143d74;
}

.publication-thumb.thumb-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.publication-thumb.thumb-cover {
  padding: 0;
  background: var(--site-white);
}

.publication-thumb.thumb-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.publication-thumb.thumb-trust {
  padding: 0;
  background: var(--site-white);
}

.publication-thumb.thumb-trust img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
  transform: scale(1.18);
  transform-origin: center center;
}

.publication-content {
  flex: 1;
  min-width: 0;
}

.publication-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.publication-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  background-color: var(--site-accent);
  color: var(--site-white);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
}

.publication-date {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--site-text);
}

.publication-title {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--site-text);
  line-height: 1.35;
}

.publication-title a {
  color: var(--site-text);
  text-decoration: none !important;
}

.publication-title a:hover {
  color: var(--site-accent);
  text-decoration: none !important;
}

.publication-source {
  font-size: 0.92rem;
  color: #6c757d;
  margin-bottom: 10px;
}

.publication-text {
  margin-bottom: 12px;
  line-height: 1.6;
}

.publication-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.publication-actions .btn {
  min-width: 150px;
}

.archive-subyear {
  margin-top: 28px;
  margin-bottom: 14px;
  font-size: 1.25rem;
  color: var(--site-text);
  padding-bottom: 6px;
  border-bottom: 1px solid #dfe3e8;
}

/* =========================
   MAP / CONTACTS
========================= */

.map-box iframe {
  width: 100%;
  height: 380px;
  border: 0;
  border-radius: 12px;
}

/* =========================
   POLICY
========================= */

.policy-content h3 {
  margin-top: 30px;
  margin-bottom: 12px;
}

.policy-content p,
.policy-content li {
  line-height: 1.7;
}

.policy-content ul {
  padding-left: 22px;
}

.policy-note {
  font-style: italic;
  color: var(--site-muted);
  margin-top: 30px;
}

/* =========================
   FOOTER
========================= */

.site-footer {
  background-color: var(--site-accent);
  color: var(--site-white);
  padding-top: 0;
  padding-bottom: 0;
}

.site-footer .container.py-4 {
  padding-top: 12px !important;
  padding-bottom: 12px !important;
}

.site-footer h5,
.site-footer p,
.site-footer a,
.site-footer .footer-copy,
.site-footer .footer-separator {
  color: var(--site-white) !important;
}

.site-footer a:hover {
  opacity: 0.9;
}

.site-footer hr {
  border-color: rgba(255, 255, 255, 0.18);
  margin-top: 10px;
  margin-bottom: 10px;
}

.footer-language {
  display: flex;
  justify-content: center;
  margin-top: 2px;
}

.footer-bottom-links {
  text-align: center;
  font-size: 0.95rem;
  margin-top: 4px;
}

.footer-separator {
  margin: 0 8px;
}

.footer-copy {
  text-align: center;
  font-size: 0.9rem;
  margin-top: 6px;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1199.98px) {
  .professional-overview-photo {
    max-width: 250px;
    height: 330px;
  }

  .professional-overview-name {
    min-width: 250px;
  }
}

@media (max-width: 991.98px) {
  .navbar-brand img {
    width: 185px;
  }

  .brand-wrap {
    gap: 20px;
  }

  .brand-founded {
    font-size: 0.78rem;
  }

  .hero-section {
    padding: 36px 20px;
  }

  .home-slider .carousel-inner,
  .home-slider .carousel-item,
  .hero-slider .carousel-inner,
  .hero-slider .carousel-item {
    height: 260px;
  }

  .home-final-photo-inner {
    max-width: 94%;
  }

  .story-image-box {
    max-width: 680px;
  }

  .story-main-image {
    max-width: 680px;
  }

  .story-divider {
    max-width: 760px;
  }

  .story-side-image {
    width: 140px;
  }

  .professional-overview-grid,
  .professionals-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

  .professional-overview-photo {
    max-width: 240px;
    height: 315px;
  }

  .professional-overview-name {
    min-width: 240px;
  }

  .professional-detail-photo {
    max-width: 360px;
    height: 320px;
  }

  .professional-card {
    padding: 28px 20px;
  }
}

@media (max-width: 767.98px) {
  .navbar .container {
    align-items: center;
  }

  .brand-wrap {
    gap: 12px;
    max-width: calc(100% - 70px);
  }

  .navbar-brand img {
    width: 165px;
  }

  .brand-founded {
    font-size: 0.72rem;
    letter-spacing: 0.02em;
  }

  .hero-section {
    padding: 28px 18px;
    margin-top: 22px;
  }

  .home-slider .carousel-inner,
  .home-slider .carousel-item,
  .hero-slider .carousel-inner,
  .hero-slider .carousel-item {
    height: 210px;
  }

  .home-final-section,
  .home-bottom-image-wrap {
    margin-top: 28px;
  }

  .home-final-photo-box,
  .home-bottom-image-box {
    padding: 16px 0;
  }

  .home-final-photo-inner {
    max-width: 96%;
  }

  .story-image-box {
    max-width: 100%;
    margin-bottom: 22px;
  }

  .story-main-image {
    max-width: 100%;
    border-radius: 10px;
  }

  .story-divider {
    margin: 6px auto 24px auto;
  }

  .story-side-image-left,
  .story-side-image-right {
    float: none;
    display: block;
    margin: 0 auto 18px auto;
    width: 180px;
  }

  .publication-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .publication-thumb {
    width: 100%;
    flex-basis: auto;
    height: 140px;
  }

  .publication-actions .btn {
    width: 100%;
  }

  .site-footer .row {
    justify-content: flex-start;
  }

  .site-footer .col-md-6 {
    text-align: left;
  }

  .footer-language,
  .footer-bottom-links,
  .footer-copy {
    text-align: left;
    justify-content: flex-start;
  }
}

@media (max-width: 575.98px) {
  .brand-wrap {
    gap: 8px;
  }

  .navbar-brand img {
    width: 150px;
  }

  .brand-founded {
    font-size: 0.68rem;
  }
}