/* MOBILE FIRST */
* {
  box-sizing: border-box;
}

body {
  font-family: sans-serif;
  font-size: 12px;
  color: #222;
  background: #e9ecef;
  margin: 0;
  padding: 0;
}

.site-shell {
  min-width: 380px;
  max-width: 1320px;
  margin: 0 auto;
  background: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  color:#fdfdfd;
  background-image: url(/static/imgs/header_bg.png);
  font-family: serif;
  font-weight:700;
}

.header-logo img {
  max-width: 100%;
  height: auto;
  display: block;
}

.header-title {
  flex: 1;
  text-align: center;
  font-size: 18px;
  padding: 6px 2px 7px 2px;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Hide on mobile */
.header-logo {
  display: none;
}

.header-title-top {
  display: none;
  font-size: 77%;
}

/* Title visible but compact */
.header-title-bottom {
  line-height: 1.1;
  font-variant: small-caps;
}

.menu-lang-img {
  position: relative;
  top: 3px;
}

/* Menu button visible on mobile */
.mobi-menu-toggle {
  display: block;
  background: transparent;
  border: 1px solid white;
  color: white;
  padding: 6px 10px;
  font-size: 18px;
  cursor: pointer;
  margin-right: 8px;
}

.menu-col {
  display: none;
}

.mobi-nav {
  display: none;
  max-width: 1290px;
  margin: 0 auto;
  font-size: 14px;
  font-weight: normal;
  background-color: #00a3c1;
}

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

.mobi-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobi-nav li {
  border-top: 1px solid #e5e7eb;
}

.mobi-nav a {
  display: block;
  padding: 9px 0 9px 12px;
  color: #fdfdfd;
  text-decoration: none;
}

.mobi-nav a:hover {
  background-color: #0061B5;
}

.mobi-nav a.active {
  background-color: #002fab;
}

.main-row {
  padding: 0 15px;
  display: flex;
  align-items: flex-start;
}

.menu-col {
  width: 188px;
  flex: 0 0 188px;
  padding-top: 18px;
  padding-bottom: 24px;
}

.content-col {
  flex: 1;
  padding: 18px 0px 0px 15px;
}

.menu-box {
  overflow: hidden;
}

.lang-switch {
  display: block;
  margin: 12px;
  padding: 8px 10px;
  border-radius: 4px;
  color: #0c5460;
  text-decoration: none;
  border: 1px solid #bcdff1;
  font-size: 14px;
}

.lang-switch.disabled {
  display: block;
  margin: 12px;
  padding: 8px 10px;
  border-radius: 4px;
  background: #eee;
  color: #777;
  border: 1px solid #ddd;
}

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

.menu-list a {
  display: block;
  padding: 3px 12px;
  line-height: 20px;
  font-size: 14px;
  border: 1px solid #fff;
  border-radius: 5px;
  background-color: #00A3C1;
  color: #fdfdfd;
  text-decoration: none;
}

.menu-list a:hover {
  background-color: #0061B5;
}

.menu-list a.active {
  background: #002fab;
}

.page-topbar {
  padding-left: 12px;
}

.page-topbar h1 {
  margin: 0 0 8px;
  font-size: 21px;
}

.meta-line {
  color: #666;
  font-size: 13px;
  margin-bottom: 4px;
  display: none;
}

.bottom-col {
  flex: 0 0 calc(33.3333% - 13.5px);
  min-width: 0;
}

.block {
  padding: 12px;
  line-height: 18px;
  border: 0 dashed #f00;
}

.block iframe {
  display: block;
  width: 100%;
  border: 0;
}

.type-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e9ecef;
  font-size: 12px;
  margin-left: 6px;
}

.empty {
  color: #999;
  font-style: italic;
}

.site-footer {
  padding: 18px 30px;
  background: #111;
  color: #ddd;
  margin-top: auto;
}

.site-footer a {
  color: #9fd3ff;
  text-decoration: none;
}

.site-footer-top {
  font-size: 14px;
  margin-bottom: 8px;
}

.site-footer-bottom {
  font-size: 13px;
  color: #aaa;
}

code {
  word-break: break-word;
}

.more-btn {
  display: inline-block;
  background: #00A3C1;
  color: #fff;
  border: 1px solid #00A3C1;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 11px;
  cursor: pointer;
}

.more-btn:hover {
  background: #2aabd2;
}

.site-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 9999;
}

.site-modal-backdrop[hidden] {
  display: none !important;
}

.site-modal {
  width: min(760px, 100%);
  max-height: 85vh;
  overflow: auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.25);
}

.site-modal-backdrop-image .site-modal {
  width: auto;
  max-width: calc(100vw - 48px);
  max-height: calc(100vh - 48px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.site-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid #ddd;
}

.site-modal-title {
  font-size: 20px;
  font-weight: 700;
}

.modal-btn-x {
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.site-modal-body {
  padding: 16px;
}

.site-modal-image {
  display: block;
  max-width: 100%;
  margin: 0 auto;
}

.site-modal-footer {
  padding: 0 16px 16px;
  text-align: right;
}

.site-gallery {
  margin: 10px 0;
}

.site-gallery-stage {
  display: flex;
  justify-content: center;
}

.site-gallery-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
}

.site-gallery-btn {
  width: 28px;
  height: 24px;
  border: 1px solid #00A3C1;
  border-radius: 4px;
  background: #00A3C1;
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.site-gallery-btn:hover {
  background: #2aabd2;
}

.site-gallery-counter {
  min-width: 52px;
  text-align: center;
  color: #555;
}

.site-accordion-item {
  margin-bottom: 6px;
  border: 1px solid #d8dde3;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  flex-direction: column;
}

.site-accordion-body {
  height: 0;
  overflow: hidden;
  opacity: 0;
  padding-right: 24px;
  padding-left: 42px;
  transition:
    height 0.35s ease-in-out,
    opacity 0.5s ease-in-out,
    padding-top 0.35s ease-in-out,
    padding-bottom 0.35s ease-in-out;
}

.site-accordion-body.is-open {
  height: auto;
  opacity: 1;
}

.site-accordion-header {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  text-align: left;
  /* border: 0; */
  background: #f7f9fb;
  padding: 4px 6px;
  cursor: pointer;
  transition: background 0.15s ease;
  align-items: center;
  /* font-weight: 600; */
  /* color: #1c94c4; */
  color: #0061B5;
  font-size: 14px;
}

.site-accordion-header:hover {
  /* background: #eef3f8; */
  background: #FDF9E1;
}

.site-accordion-header.is-open {
  /* background: #d9edf7; */
  background: #FDF9E1;
}

.site-accordion-icon {
  flex: 0 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* align-self: end; */
}

.site-accordion-icon .icon-chevron-down {
  display: none;
}

.site-accordion-header.is-open .site-accordion-icon .icon-chevron-left {
  display: none;
}

.site-accordion-header.is-open .site-accordion-icon .icon-chevron-down {
  display: inline;
}

.site-accordion-label {
  flex: 1 1 auto;
  min-width: 0;
}

.site-inner-accordion {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.site-inner-accordion .box-title {
  border-bottom: 0;
}

.site-inner-accordion-item {
  border: 1px solid #d8dde3;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.site-inner-accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  /* border: 0; */
  background: #fdfdfd;
  padding: 10px 12px;
  cursor: pointer;
}

/* page-4: projects */
.page-4 .site-accordion-header  {
  color:#222
}

.site-accordion-header,
.site-inner-accordion-header {
  border: 0 dashed #f00;
}

.site-inner-accordion-header:hover {
  /* background: #f5f8fb; */
  background: #FDF9E1;
}

.site-inner-accordion-header.is-open {
  /* background: #d9edf7; */
  background: #FDF9E1;
}

.site-inner-accordion-icon {
  flex: 0 0 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #46627e;
  margin-top: 2px;
  line-height: 1;
}

.site-inner-accordion-icon .icon-chevron-down {
  display: none;
}

.site-inner-accordion-header.is-open .site-inner-accordion-icon .icon-chevron-left {
  display: none;
}

.site-inner-accordion-header.is-open .site-inner-accordion-icon .icon-chevron-down {
  display: inline;
}

.site-inner-accordion-label {
  flex: 1 1 auto;
  min-width: 0;
}

.site-inner-accordion-body {
  height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0px 24px 0px 48px;
  transition:
    height 0.35s ease-in-out,
    opacity 0.5s ease-in-out,
    padding-top 0.35s ease-in-out,
    padding-bottom 0.35s ease-in-out;
}

.site-inner-accordion-body.is-open {
  height: auto;
  opacity: 1;
  padding: 12px 24px 12px 48px;
}

.content-col a,
.block a,
.site-modal-body a {
  color: #0d6efd;
  text-decoration: none;
}

.content-col a:hover,
.block a:hover,
.site-modal-body a:hover {
  color: #0a58ca;
  text-decoration: none;
}

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

.block a img:hover {
  opacity: 0.95;
}

.box-title {
  margin: 0 0 4px;
  /* padding-bottom: 6px; */
  border-bottom: 1px solid #222;
}

.box-title-center {
  margin: 0 0 4px;
  text-align: center;
}

.notice-box {
  border:1px solid #ddd;
  padding:12px;
  margin-bottom:4px;
}

.box-more {
  margin-top: 10px;
  padding: 10px;
  background: #fffbe6;
  border: 1px solid #eedc82;
}

.bottom-section {
  padding:0 0 24px;
}

.bottom-wrapper {
  border-top:1px solid #eee;
  margin:0 0 20px;
}

.site-footer-real {
  padding: 14px 15px 18px;
  background: #111;
  color: #adadad;
  gap: 18px;
  align-items: flex-start;
  font-size: 11px;
  line-height: 1.45;
  margin-top: auto;
}

.site-footer-real a {
  color: #9fd3ff;
  text-decoration: none;
}

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

.footer-col {
  margin-bottom: 16px;
}

.footer-col:hover {
  color: #fdfdfd;
}

.footer-spacer {
  flex: 0 0 30px;
}

.footer-strong {
  font-weight: 700;
}

.footer-engine {
  margin-bottom: 6px;
}

.lab-footer {
  display: inline-block;
  min-width: 70px;
}

.footer-wide {
  width: 100%;
}

.footer-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.footer-stat-row .lab-footer {
  min-width: 0;
  text-align: left;
}

.footer-stat-row .dat-footer {
  margin-left: auto;
  text-align: right;
  white-space: nowrap;
}

.to-top-btn {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 42px;
  height: 42px;
  background: #008cbd;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 20px;
  line-height: 1;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  display: flex;
}

.to-top-btn:hover {
  background: #006f96;
}

.to-top-btn.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* DESKTOP ≥ 768px */

@media (min-width: 768px) {

  .site-header {
    padding: 0 15px;
    line-height: 1;
  }

  .header-logo {
    display: block;
  }

  .mobi-nav.is-open,
  .mobi-menu-toggle {
    display: none;
  }
  
  .menu-col {
    display: block;
  }

  .row {
    display: flex;
    width: 100%;
  }

  .col {
    flex: 1 1 0;
    min-width: 0;
  }

  .site-footer-real {
    display: flex;
  }
    
  .footer-col {
    flex: 1 1 0;
    min-width: 0;
    margin-bottom: 0;
  }

}

@media (min-width: 850px) {
  .header-title-top {
    display: block;
  }
}

.meta-data {
  display: none;
  margin-bottom: 12px;
  margin-left: 16px;
}

.edit-block-btn {
  padding: 2px 6px;
  background: #4a90d9;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  font-size: 14px;
}

.edit-span {
  margin-right: 6px;
  color: #222;
  font-size: 12px;
}

.error-box {
  margin-top: 8px;
  color: #822;
  text-align: center;
}

/* UTILITY CLASSES */

p {
  margin: 0;
}

ol, ul {
  padding-left: 20px;
  margin: 0 0 12px 0;
}

hr {
  border: 0;
  border-top: 1px solid #bec7d5;
  margin: 12px 0;
}

.mt-1 {
  margin-top: 4px;
}

.mt-2 {
  margin-top: 8px;
}

.mt-3 {
  margin-top: 12px;
}

.mt-4 {
  margin-top: 16px;
}

.mb-1 {
  margin-bottom: 4px;
}

.mb-2 {
  margin-bottom: 8px;
}

.mb-3 {
  margin-bottom: 12px;
}

.mb-4 {
  margin-bottom: 16px;
}

.ml-1 {
  margin-left: 4px;
}

.ml-2 {
  margin-left: 8px;
}

.ml-3 {
  margin-left: 12px;
}

.ml-4 {
  margin-left: 16px;
}

.mr-1 {
  margin-right: 4px;
}

.mr-2 {
  margin-right: 8px;
}

.mr-3 {
  margin-right: 12px;
}

.mr-4 {
  margin-right: 16px;
}

.pt-1 {
  padding-top: 4px;
}

.pt-2 {
  padding-top: 8px;
}

.pt-3 {
  padding-top: 12px;
}

.pt-4 {
  padding-top: 16px;
}

.pb-1 {
  padding-bottom: 4px;
}

.pb-2 {
  padding-bottom: 8px;
}

.pb-3 {
  padding-bottom: 12px;
}

.pb-4 {
  padding-bottom: 16px;
}

.pl-1 {
  padding-left: 4px;
}

.pl-2 {
  padding-left: 8px;
}

.pl-3 {
  padding-left: 12px;
}

.pl-4 {
  padding-left: 16px;
}

.pr-1 {
  padding-right: 4px;
}

.pr-2 {
  padding-right: 8px;
}

.pr-3 {
  padding-right: 12px;
}

.pr-4 {
  padding-right: 16px;
}

.d-flex {
  display: flex;
}

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

.justify-content-center {
  justify-content: center;
}

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

.justify-content-end {
  justify-content: flex-end;
}

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

.gap-4 {
  gap: 16px;
}

.gap-3 {
  gap: 12px;
}

.gap-2 {
  gap: 8px;
}

.font-bold {
  font-weight: 700;
}

.font-16 {
  font-size: 16px;
}

.font-14 {
  font-size: 14px;
}

/* TABLES in Home page */
table.grid-table {
  margin:18px auto;
  table-layout:fixed;
  border-collapse:collapse;
  border-top: 1px solid #ccc;
}
table.grid-table th,
table.grid-table td {
  border-color:transparent;
  padding:8px;
  text-align:center;
}
table.grid-table tr:nth-child(2n+1) {
  border-bottom:1px solid #ccc;
}

.inline-icon {
  display: inline-block;
  width: 1.2em;
  height: 1.2em;
  vertical-align: text-bottom;
}

/* QUILL */

.ql-align-center, 
.text-center { 
  text-align: center; 
}
.ql-align-right,
.text-right {
  text-align: right; 
}
.ql-align-justify { text-align: justify; }
.ql-direction-rtl { direction: rtl; text-align: inherit; }
.ql-indent-1 { padding-left: 3em; }
.ql-indent-2 { padding-left: 6em; }
.ql-indent-3 { padding-left: 9em; }
.ql-size-small { font-size: 0.75em; }
.ql-size-large { font-size: 1.5em; }
.ql-size-huge { font-size: 2.5em; }
