:root {
  --stia-primary: #0b4f6c;
  --stia-primary-dark: #083247;
  --stia-accent: #f2a900;
  --stia-border: #dce6ee;
}

/* Non-invasive refresh: only polish key public elements */
body.stia-refresh {
  color: #243746;
}

body.stia-refresh .top-bar {
  background: linear-gradient(120deg, var(--stia-primary-dark), var(--stia-primary));
  border-bottom: 0;
}

body.stia-refresh .top-bar ul li,
body.stia-refresh .top-bar ul li a {
  color: #e7f3fc;
}

body.stia-refresh .main-bar {
  border-bottom: 1px solid var(--stia-border);
  box-shadow: 0 6px 20px rgba(9, 55, 79, 0.08);
}

body.stia-refresh .header-nav .nav > li > a {
  color: #153042;
  font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
}

body.stia-refresh .header-nav .nav > li.active > a,
body.stia-refresh .header-nav .nav > li:hover > a {
  color: var(--stia-primary);
}

body.stia-refresh .stia-cta,
body.stia-refresh .site-button {
  border-radius: 999px;
}

body.stia-refresh .sort-title h4 {
  display: inline-block;
  border-bottom: 3px solid var(--stia-accent);
  padding-bottom: 8px;
}

body.stia-refresh .container_gtranslate {
  background: #f5f9fc;
  border-bottom: 1px solid var(--stia-border);
}

/* Keep cards modern but safe (no transform or global shadow overrides) */
body.stia-refresh .card {
  border-radius: 14px;
}

/* Footer polish without overlay layers that can cover content */
body.stia-refresh .footer-top {
  background-size: cover;
  background-position: center;
}

body.stia-refresh .footer-bottom {
  background: #052535;
}

body.stia-refresh .footer-bottom span {
  color: #d6e8f5;
}

/* Prevent desktop nav wrapping into two lines */
@media (min-width: 1200px) {
  body.stia-refresh .header-nav .nav > li > a {
    padding-left: 10px;
    padding-right: 10px;
    font-size: 14px;
  }

  body.stia-refresh .dlab-social-icon {
    display: none;
  }

  body.stia-refresh .extra-nav .site-button {
    padding: 11px 14px;
    font-size: 12px;
  }

  body.stia-refresh .extra-nav .site-button-link {
    display: none;
  }
}

@media (max-width: 991px) {
  body.stia-refresh .extra-nav {
    display: none;
  }
}

/* Header desktop stabilization */
@media (min-width: 992px) {
  body.stia-refresh .site-header .main-bar .container.clearfix {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  body.stia-refresh .site-header .main-bar .logo-header {
    flex: 0 0 165px;
    width: 165px;
  }

  body.stia-refresh .site-header .main-bar .header-nav {
    flex: 1 1 auto;
    min-width: 0;
  }

  body.stia-refresh .site-header .main-bar .header-nav .nav {
    float: none;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
  }

  body.stia-refresh .site-header .main-bar .header-nav .nav > li {
    float: none;
    white-space: nowrap;
  }

  body.stia-refresh .site-header .main-bar .header-nav .nav > li > a {
    font-size: 14px !important;
    padding: 24px 8px !important;
    letter-spacing: 0 !important;
  }

  body.stia-refresh .site-header .main-bar .extra-nav {
    flex: 0 0 auto;
    margin-left: 6px;
  }

  body.stia-refresh .site-header .main-bar .extra-nav .site-button-link {
    display: none !important;
  }

  body.stia-refresh .site-header .main-bar .extra-nav .site-button {
    padding: 11px 14px;
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
  }

  body.stia-refresh .site-header .main-bar .dlab-social-icon {
    display: none !important;
  }
}

/* Google Translate bar: compact + better alignment */
body.stia-refresh .container_gtranslate {
  background: #f5f9fc;
  border-top: 1px solid var(--stia-border);
  border-bottom: 1px solid var(--stia-border);
  padding: 8px 0;
}

body.stia-refresh .container_gtranslate .row {
  margin-left: 0;
  margin-right: 0;
}

body.stia-refresh .container_gtranslate [class*="col-"] {
  padding-left: 12px;
  padding-right: 12px;
}

body.stia-refresh #google_translate_element {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 40px;
}

body.stia-refresh #google_translate_element .goog-te-gadget {
  font-size: 0;
  color: transparent;
}

body.stia-refresh #google_translate_element .goog-te-combo {
  width: auto !important;
  min-width: 180px;
  max-width: 230px;
  height: 38px;
  border: 1px solid #cfdbe6;
  border-radius: 10px;
  background: #fff;
  color: #12354a;
  font-size: 14px;
  padding: 6px 10px;
  outline: none;
  box-shadow: none;
}

@media (max-width: 767px) {
  body.stia-refresh #google_translate_element {
    justify-content: center;
  }

  body.stia-refresh #google_translate_element .goog-te-combo {
    width: 100% !important;
    max-width: 320px;
  }
}

/* Language selector (stable replacement for inconsistent widget UI) */
body.stia-refresh .container_gtranslate {
  background: #eef4f8;
  border-top: 1px solid #d9e4ec;
  border-bottom: 1px solid #d9e4ec;
  padding: 8px 0;
}

body.stia-refresh .stia-lang-wrap {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

body.stia-refresh .stia-lang-label {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #21465f;
}

body.stia-refresh .stia-lang-select {
  min-width: 190px;
  max-width: 220px;
  height: 38px;
  border: 1px solid #c8d7e3;
  border-radius: 10px;
  background: #fff;
  color: #153042;
  font-size: 14px;
  padding: 6px 10px;
}

@media (max-width: 767px) {
  body.stia-refresh .stia-lang-wrap {
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
  }

  body.stia-refresh .stia-lang-select {
    min-width: 170px;
    max-width: 100%;
    width: 100%;
  }
}

/* Compact right-aligned language selector (desktop priority) */
@media (min-width: 768px) {
  body.stia-refresh .container_gtranslate .container {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
  }

  body.stia-refresh .stia-lang-wrap {
    margin-left: auto !important;
    display: inline-flex !important;
    flex-direction: row !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 8px !important;
    width: auto !important;
  }

  body.stia-refresh .stia-lang-label {
    margin: 0 !important;
    font-size: 13px !important;
    white-space: nowrap;
  }

  body.stia-refresh select.stia-lang-select,
  body.stia-refresh .stia-lang-select {
    width: 150px !important;
    min-width: 150px !important;
    max-width: 150px !important;
    height: 32px !important;
    font-size: 13px !important;
    padding: 4px 8px !important;
    line-height: 1.2 !important;
  }
}

/* Force right compact language selector */
body.stia-refresh .container_gtranslate {
  padding: 6px 0 !important;
}

body.stia-refresh .container_gtranslate .container {
  width: 100% !important;
}

body.stia-refresh #stia-lang-wrap {
  display: flex !important;
  justify-content: flex-end !important;
  width: 100% !important;
}

body.stia-refresh #stia-lang-wrap .bootstrap-select,
body.stia-refresh #stia-lang-wrap .stia-lang-select,
body.stia-refresh #stia-lang-select {
  width: 150px !important;
  min-width: 150px !important;
  max-width: 150px !important;
}

body.stia-refresh #stia-lang-wrap .bootstrap-select > .dropdown-toggle,
body.stia-refresh #stia-lang-wrap #stia-lang-select {
  height: 32px !important;
  padding: 4px 8px !important;
  font-size: 13px !important;
}

@media (max-width: 767px) {
  body.stia-refresh #stia-lang-wrap {
    justify-content: center !important;
  }
}

/* Selayang Pandang refinements */
body.stia-refresh .stia-overview-row {
  align-items: flex-start;
}

body.stia-refresh .stia-overview-image {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #d6e2ec;
}

body.stia-refresh .stia-overview-image a {
  display: block;
  overflow: hidden;
}

body.stia-refresh .stia-overview-image img {
  width: 100%;
  display: block;
  transition: transform 0.35s ease;
}

body.stia-refresh .stia-overview-image:hover img {
  transform: scale(1.08);
}

body.stia-refresh .stia-overview-content .stia-overview-text {
  max-width: 940px;
}

body.stia-refresh .stia-overview-content .stia-overview-text .title {
  margin-bottom: 14px;
}

body.stia-refresh .stia-overview-content .stia-overview-text p {
  line-height: 1.6;
}

/* Portal cards: consistent height and cleaner interaction */
body.stia-refresh .stia-portal-grid {
  row-gap: 8px;
}

body.stia-refresh .stia-portal-link {
  height: 100%;
}

body.stia-refresh .stia-portal-card {
  height: 100%;
  margin-left: 0 !important;
  padding: 26px 22px !important;
  border-radius: 18px;
  border: 1px solid #d6e2ec;
  box-shadow: 0 8px 20px rgba(9, 50, 72, 0.08);
}

body.stia-refresh .stia-portal-card .icon-bx-sm {
  border-radius: 14px;
  flex: 0 0 100px;
}

body.stia-refresh .stia-portal-card .icon-content {
  padding-left: 18px !important;
}

body.stia-refresh .stia-portal-card .dlab-tilte {
  color: #0d3550;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 700;
  margin: 0;
}

body.stia-refresh .stia-portal-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(9, 50, 72, 0.14);
}

@media (max-width: 991px) {
  body.stia-refresh .stia-overview-content {
    margin-top: 14px;
  }

  body.stia-refresh .stia-portal-card {
    padding: 22px 18px !important;
  }
}

/* PMB icon refinement */
body.stia-refresh .stia-portal-icon {
  font-size: 34px;
  color: #ffffff;
  line-height: 1;
  display: inline-block;
}
