/* =========================================================
   STAIHAS — Bright theme precision overrides
   Colors from WP _cs_options
   ========================================================= */

:root {
  --staihas-primary: #1e73be;
  --staihas-preheader: #2878bf;
  --staihas-menu: #444444;
  --staihas-menu-hover: #2878bf;
  --staihas-body-bg: #f3f3f3;
  --staihas-feature-bg: #f2f3f6;
}

/* Pre-header — teks harus putih (WP options sempat salah set warna = bg) */
.bright-pre-header {
  background: var(--staihas-preheader) !important;
  color: #ffffff !important;
  padding: 10px 0;
  font-size: 13px;
  line-height: 22px;
}

.bright-pre-header,
.bright-pre-header a,
.bright-pre-header i {
  color: #ffffff !important;
}

.bright-pre-header a:hover {
  opacity: 0.85;
  color: #ffffff !important;
}

.bright-pre-header .quick-contacts span {
  margin-left: 18px;
}

.bright-pre-header .quick-contacts span i,
.bright-pre-header-item-left i {
  margin-right: 6px;
}

/* Primary color surfaces */
.btn-primary,
.button-primary,
button,
input[type="button"],
input[type="reset"],
input[type="submit"],
.btn-common,
.open-search,
.bright-feature-item .icon i,
.navbar-bright.bright-menu-hover-border .bright-main-menu > li > a:after,
.slicknav_menu .slicknav_icon-bar,
.slicknav_menu .slicknav_btn.slicknav_open,
footer .site-info .bottom-social-icons a:hover,
.owl-theme .owl-dots .owl-dot.active span {
  background: var(--staihas-primary) !important;
}

.btn-primary,
.btn-common {
  border-color: var(--staihas-primary) !important;
  color: #fff !important;
  border-radius: 0;
}

.btn-outline-primary,
a.btn-outline-primary {
  background: transparent !important;
  color: var(--staihas-primary) !important;
  border: 1px solid var(--staihas-primary) !important;
  border-radius: 0;
}

.btn-link,
a.btn-link {
  background: transparent !important;
  border: none !important;
  color: var(--staihas-primary) !important;
  box-shadow: none !important;
  text-decoration: none;
}

.btn-primary:hover,
.btn-common:hover,
a.btn-primary:hover,
button.btn-primary:hover,
input[type="submit"].btn-primary:hover {
  background: #1862a3 !important;
  border-color: #1862a3 !important;
  color: #fff !important;
}

.btn-outline-primary:hover,
a.btn-outline-primary:hover {
  background: var(--staihas-primary) !important;
  border-color: var(--staihas-primary) !important;
  color: #fff !important;
}

.btn-link:hover,
a.btn-link:hover {
  background: transparent !important;
  border-color: transparent !important;
  color: #1862a3 !important;
  text-decoration: underline !important;
}

.staihas-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.staihas-btn-group .btn {
  margin: 0 !important;
}

.btn-sm {
  padding: 8px 16px;
  border-radius: 0;
}

a:hover,
.navbar-bright .bright-main-menu > li > a:hover,
.navbar-bright .bright-main-menu > li.current-menu-item > a,
.news-grid-item .news-title a:hover {
  color: var(--staihas-menu-hover) !important;
}

/* Header */
.site-header.navbar-bright {
  background: #fff;
  margin-bottom: 0;
  border: 0;
}

.site-header-wrapper {
  position: relative;
  background: #fff;
  border-bottom: 1px solid #eee;
}

.site-header-inner {
  min-height: 90px;
}

.navbar-bright .bright-main-menu > li > a {
  color: var(--staihas-menu);
  font-size: 13px;
  letter-spacing: 0.3px;
}

@media (min-width: 992px) {
  .navbar-bright .bright-main-menu > li > a {
    padding: 32px 12px;
  }
}

.logo-wrapper .custom-logo-link img,
.bright-custom-logo {
  max-height: 64px;
  width: auto;
}

.full-search.open,
.full-search.active {
  display: block !important;
}

/* Skip link — aksesibilitas keyboard/screen reader */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus,
.skip-link:focus {
  background-color: #fff;
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.45);
  clip: auto !important;
  clip-path: none;
  color: var(--staihas-primary, #1e5aa8);
  display: block;
  font-size: 14px;
  font-weight: 700;
  height: auto;
  left: 8px;
  line-height: normal;
  padding: 12px 18px;
  text-decoration: none;
  top: 8px;
  width: auto;
  z-index: 100000;
}

#content[tabindex="-1"]:focus {
  outline: 0;
}

.full-search .staihas-search-submit {
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  padding: 8px;
  cursor: pointer;
  z-index: 2;
}

.header-search .staihas-mobile-search {
  color: #fff;
  font-size: 18px;
  padding: 8px 10px;
  line-height: 1;
}

.staihas-map-embed {
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.staihas-map-embed iframe {
  display: block;
  max-width: 100%;
}

/* Site search results */
.staihas-search-page {
  max-width: 920px;
  margin: 0 auto 40px;
}

.staihas-search-form .form-control {
  height: 48px;
  font-size: 16px;
}

.staihas-search-form .btn {
  height: 48px;
  padding-left: 22px;
  padding-right: 22px;
}

.staihas-search-hint {
  margin: 10px 0 0;
  color: #777;
  font-size: 13px;
}

.staihas-search-status {
  margin: 20px 0 8px;
  color: #444;
}

.staihas-search-results:empty {
  display: none;
}

.staihas-search-empty {
  margin-top: 28px;
  padding: 24px;
  background: #f7f8fa;
  border-radius: 4px;
}

.staihas-search-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.staihas-search-section {
  margin-top: 36px;
}

.staihas-search-section h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--staihas-primary, #1e5aa8);
}

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

.staihas-search-list li {
  margin: 0;
  border-bottom: 1px solid #eee;
}

.staihas-search-list a {
  display: block;
  padding: 14px 4px;
  color: #222;
  text-decoration: none;
}

.staihas-search-list a:hover {
  color: var(--staihas-primary, #1e5aa8);
  background: #f9fafb;
}

.staihas-search-list strong {
  display: block;
  font-size: 16px;
  margin-top: 4px;
}

.staihas-search-sub {
  display: block;
  margin-top: 4px;
  color: #777;
  font-size: 13px;
}

.staihas-search-type {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--staihas-primary, #1e5aa8);
  background: rgba(30, 90, 168, 0.08);
  padding: 2px 8px;
  border-radius: 2px;
  margin-right: 8px;
}

.staihas-search-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
  color: #777;
  font-size: 13px;
}

.staihas-search-thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
  margin-bottom: 12px;
}

/* =========================================================
   Homepage layout
   ========================================================= */

.home .site-content,
.home .site-content.container,
.home .site-content.p-0 {
  max-width: 100%;
  width: 100%;
  padding: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.home .bright-main-content-inner {
  margin: 0;
  padding: 0;
}

.home .col-12.p-0 {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Hero — full bleed, no gap */
.staihas-hero-slider {
  position: relative;
  overflow: hidden;
  background: #1a1a1a;
  margin: 0;
  padding: 0;
}

.staihas-hero-slider .owl-carousel {
  display: block;
  margin: 0;
}

.staihas-hero-slider .owl-carousel:not(.owl-loaded) > .item:not(:first-child) {
  display: none;
}

.staihas-hero-item {
  position: relative;
  margin: 0;
}

.staihas-hero-link {
  display: block;
  line-height: 0;
}

.staihas-hero-image {
  display: block;
  width: 100%;
  height: 520px;
  object-fit: cover;
  margin: 0;
}

.staihas-hero-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 50px 0 60px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.35) 55%, transparent 100%);
  color: #fff;
  z-index: 2;
  pointer-events: none;
}

.staihas-hero-caption a,
.staihas-hero-caption .btn {
  pointer-events: auto;
}

.staihas-hero-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-weight: 700;
  line-height: 1.35;
  margin: 12px 0 14px;
  color: #fff;
  max-width: 820px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.staihas-hero-slider .bright-post-category {
  position: static !important;
  display: inline-block;
  padding: 4px 12px;
  background: var(--staihas-primary);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  top: auto !important;
  right: auto !important;
}

.staihas-hero-slider .bright-post-category:before {
  display: none !important;
}

.staihas-hero-slider .bright-post-category a {
  color: #fff !important;
}

.staihas-hero-slider .owl-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  width: 100%;
  transform: translateY(-50%);
  margin: 0;
  pointer-events: none;
  z-index: 3;
}

.staihas-hero-slider .owl-nav > div {
  position: absolute;
  pointer-events: all;
  background: rgba(30, 115, 190, 0.92) !important;
  color: #fff !important;
  width: 46px;
  height: 46px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  line-height: 1 !important;
  text-align: center;
  border-radius: 0;
  opacity: 1;
  margin: 0;
  font-size: 20px;
}

.staihas-hero-slider .owl-nav > div i {
  display: block;
  line-height: 1;
  font-size: 22px;
}

.staihas-hero-slider .owl-nav .owl-prev { left: 20px; }
.staihas-hero-slider .owl-nav .owl-next { right: 20px; }

.staihas-hero-slider .owl-dots {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  margin: 0;
  z-index: 3;
}

.staihas-hero-slider .owl-dots .owl-dot span {
  background: rgba(255, 255, 255, 0.5);
  width: 10px;
  height: 10px;
  margin: 4px;
  border-radius: 50%;
}

.staihas-hero-slider .owl-dots .owl-dot.active span,
.staihas-hero-slider .owl-dots .owl-dot:hover span {
  background: var(--staihas-primary);
}

/* Feature boxes — seperti WP: baris abu setelah hero, TANPA overlap aneh */
.staihas-feature-row {
  background-color: var(--staihas-feature-bg) !important;
  padding: 50px 0 20px;
  margin: 0;
  position: relative;
  z-index: 1;
}

.bright-feature-item {
  background: #fff;
  padding: 40px 28px 35px;
  text-align: center;
  margin-bottom: 30px;
  transition: box-shadow 0.3s ease;
  border-radius: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  height: calc(100% - 30px);
}

.bright-feature-item.text-left {
  text-align: left;
}

.bright-feature-item:hover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

.bright-feature-item .icon {
  margin-bottom: 22px;
  padding-right: 0 !important;
  display: flex;
  justify-content: center;
  align-items: center;
}

.bright-feature-item .icon i,
.bright-feature-item .icon i.fa {
  width: 72px !important;
  height: 72px !important;
  line-height: 1 !important;
  border-radius: 50%;
  font-size: 28px !important;
  color: #fff !important;
  background: var(--staihas-primary) !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  text-align: center;
  vertical-align: middle;
  padding: 0 !important;
  margin: 0 auto;
}

.bright-feature-item:hover .icon i,
.bright-feature-item:hover .icon i.fa {
  color: #fff !important;
  background: var(--staihas-primary) !important;
}

.bright-feature-item h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  margin: 0 0 12px;
  font-weight: 700;
  color: #212121;
}

.bright-feature-item p {
  color: #666;
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.7;
  min-height: 48px;
}

/* About / visi misi */
.staihas-about-section {
  background: #fff;
  padding: 70px 0;
}

.staihas-about-img {
  max-width: 260px;
  height: auto;
}

.bright-section-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: #212121;
  margin-bottom: 24px;
}

/* Tabs — Bright style */
.staihas-tabs .nav-tabs {
  border-bottom: 2px solid #eee;
}

.staihas-tabs .nav-tabs .nav-link {
  border: 0;
  color: #666;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 14px 18px;
  background: transparent;
  position: relative;
}

.staihas-tabs .nav-tabs .nav-link:hover {
  color: var(--staihas-primary);
  border: 0;
}

.staihas-tabs .nav-tabs .nav-link.active {
  color: var(--staihas-primary);
  background: transparent;
  border: 0;
  border-bottom: 2px solid var(--staihas-primary);
  margin-bottom: -2px;
}

.staihas-tabs .tab-content {
  padding-top: 22px;
  color: #444;
  line-height: 1.8;
}

/* PMB section */
.staihas-pmb-section {
  background: var(--staihas-primary);
  color: #fff;
  padding: 70px 0;
}

.staihas-pmb-section .bright-section-title,
.staihas-pmb-section h5,
.staihas-pmb-section p,
.staihas-pmb-section li,
.staihas-pmb-section em {
  color: #fff;
}

.staihas-pmb-section .bright-section-title {
  margin-top: 0;
}

.staihas-pmb-section .nav-tabs {
  border-bottom-color: rgba(255, 255, 255, 0.25);
  flex-wrap: wrap;
}

.staihas-pmb-section .staihas-tabs .nav-tabs {
  border-bottom-color: rgba(255, 255, 255, 0.25);
}

.staihas-pmb-section .staihas-tabs .nav-tabs .nav-link,
.staihas-pmb-section .nav-tabs .nav-link {
  color: rgba(255, 255, 255, 0.8) !important;
  padding: 10px 14px;
  font-size: 13px;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 2px solid transparent !important;
  margin-bottom: -2px;
}

.staihas-pmb-section .staihas-tabs .nav-tabs .nav-link:hover,
.staihas-pmb-section .nav-tabs .nav-link:hover {
  color: #fff !important;
  background: transparent !important;
  border-bottom-color: rgba(255, 255, 255, 0.45) !important;
}

.staihas-pmb-section .staihas-tabs .nav-tabs .nav-link.active,
.staihas-pmb-section .nav-tabs .nav-link.active {
  color: #fff !important;
  background: transparent !important;
  border-bottom: 2px solid #fff !important;
}

.staihas-pmb-section .staihas-tabs .tab-content {
  color: rgba(255, 255, 255, 0.95) !important;
}

.staihas-pmb-section .btn-primary {
  background: #fff !important;
  color: var(--staihas-primary) !important;
  border-color: #fff !important;
}

.staihas-pmb-section .btn-primary:hover,
.staihas-pmb-section a.btn-primary:hover {
  background: #f0f0f0 !important;
  border-color: #f0f0f0 !important;
  color: var(--staihas-primary) !important;
}

.staihas-pmb-section .btn-outline-primary {
  color: #fff !important;
  border: 1px solid #fff !important;
  background: transparent !important;
}

.staihas-pmb-section .btn-outline-primary:hover,
.staihas-pmb-section a.btn-outline-primary:hover {
  color: var(--staihas-primary) !important;
  background: #fff !important;
  border-color: #fff !important;
}

.staihas-pmb-section .btn-link,
.staihas-pmb-section a.btn-link {
  color: #fff !important;
  background: transparent !important;
}

.staihas-pmb-section .btn-link:hover,
.staihas-pmb-section a.btn-link:hover {
  color: #fff !important;
  background: transparent !important;
  opacity: 0.85;
  text-decoration: underline !important;
}

/* Halaman /pmb (latar putih) */
.staihas-pmb-page .staihas-btn-group .btn-outline-primary {
  background: transparent !important;
  color: var(--staihas-primary) !important;
  border: 1px solid var(--staihas-primary) !important;
}

.staihas-pmb-page .staihas-btn-group .btn-outline-primary:hover {
  background: var(--staihas-primary) !important;
  color: #fff !important;
}

.staihas-pmb-page .staihas-btn-group .btn-link {
  background: transparent !important;
  color: var(--staihas-primary) !important;
}

.staihas-pmb-page .staihas-btn-group .btn-link:hover {
  background: transparent !important;
  color: #1862a3 !important;
  text-decoration: underline !important;
}

/* Galleries — full poster, no crop */
.staihas-gallery-slider {
  position: relative;
  background: transparent;
}

.staihas-gallery-slider.owl-carousel,
.staihas-gallery-slider .owl-carousel {
  display: block;
}

.staihas-gallery-slider .owl-stage-outer {
  overflow: hidden;
  height: auto !important;
}

.staihas-gallery-slider .owl-item,
.staihas-gallery-slider .owl-item .item {
  height: auto !important;
}

.staihas-gallery-slider img,
.staihas-gallery-slider .owl-item img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center top !important;
}

.staihas-gallery-slider .owl-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  width: 100%;
  transform: translateY(-50%);
  margin: 0;
  pointer-events: none;
  z-index: 2;
}

.staihas-gallery-slider .owl-nav > div {
  position: absolute;
  pointer-events: all;
  background: rgba(0, 0, 0, 0.45) !important;
  color: #fff !important;
  width: 38px;
  height: 38px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  line-height: 1 !important;
  text-align: center;
  margin: 0;
}

.staihas-gallery-slider .owl-nav > div i {
  display: block;
  line-height: 1;
  font-size: 18px;
}

/* Koreksi optik glyph Font Awesome agar terlihat di tengah */
.staihas-gallery-slider .owl-nav .owl-prev i,
.staihas-hero-slider .owl-nav .owl-prev i {
  transform: translateX(-1px);
}

.staihas-gallery-slider .owl-nav .owl-next i,
.staihas-hero-slider .owl-nav .owl-next i {
  transform: translateX(1px);
}

.staihas-gallery-slider .owl-nav .owl-prev { left: 12px; }
.staihas-gallery-slider .owl-nav .owl-next { right: 12px; }

.staihas-gallery-slider .owl-dots {
  position: static !important;
  margin: 10px 0 0;
  text-align: center;
  background: transparent;
}

/* Prodi section */
.staihas-prodi-section {
  background: var(--staihas-feature-bg);
  padding: 70px 0;
}

.staihas-prodi-section .staihas-gallery-slider img {
  height: auto;
}

/* News slider */
.staihas-news-section {
  background: #fff;
  padding: 70px 0 80px;
}

.staihas-news-section .section-head {
  position: relative;
  margin-bottom: 30px;
  min-height: 40px;
}

#news-slider.owl-carousel {
  display: block;
  position: relative;
}

#news-slider .news-grid-item {
  background: #fff;
  border: 1px solid #eee;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  margin-bottom: 8px;
  height: 100%;
}

#news-slider .news-grid-item img,
#news-slider .news-grid-item > a > div {
  display: block;
  width: 100%;
  height: 210px;
  object-fit: cover;
}

#news-slider .news-content {
  padding: 22px 20px 24px;
}

#news-slider .news-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  line-height: 1.45;
  margin: 0 0 10px;
  font-weight: 700;
}

#news-slider .news-title a {
  color: #212121;
}

#news-slider .meta {
  font-size: 13px;
  color: #999;
  margin-bottom: 10px;
}

#news-slider .meta i {
  color: var(--staihas-primary);
  margin-right: 4px;
}

#news-slider .desc {
  font-size: 14px;
  color: #666;
  line-height: 1.65;
  margin: 0;
}

#news-slider .owl-nav {
  position: absolute;
  top: -62px;
  right: 0;
  margin: 0;
}

#news-slider .owl-nav > div {
  background: var(--staihas-primary) !important;
  color: #fff !important;
  width: 36px;
  height: 36px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  line-height: 1 !important;
  text-align: center;
  margin-left: 6px;
  border-radius: 0;
  vertical-align: middle;
}

#news-slider .owl-nav > div i {
  display: block;
  line-height: 1;
  font-size: 16px;
}

#news-slider .owl-dots {
  margin-top: 20px;
}

/* =========================================================
   Inner pages
   ========================================================= */

body.page .site-content.container {
  margin-top: 40px;
  margin-bottom: 40px;
}

body.page .bright-main-content-inner {
  padding: 0;
}

.bright-page-title-area {
  background-image:
    linear-gradient(135deg, rgba(30, 115, 190, 0.9), rgba(40, 120, 191, 0.88)),
    url('/wp-content/uploads/2019/11/cropped-logo_staihas.jpg');
  background-size: cover;
  background-position: center;
  padding: 60px 0;
  text-align: center;
}

.bright-page-title-area .entry-title {
  color: #fff;
  font-size: 30px;
  font-weight: 700;
  margin: 0;
}

.bright-article {
  background: #fff;
  padding: 35px 30px;
  margin-bottom: 30px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.widget-area .widget {
  background: #fff;
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.widget-area .widget-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--staihas-primary);
  color: #212121;
}

.staihas-sidebar-menu {
  margin: 0;
  padding: 0;
}

.staihas-sidebar-menu li {
  margin-bottom: 10px;
  list-style: none;
}

.staihas-sidebar-menu li.active > a {
  color: var(--staihas-primary);
  font-weight: 600;
}

.staihas-sidebar-menu a {
  color: #444;
  text-decoration: none;
}

.staihas-sidebar-menu a:hover {
  color: var(--staihas-primary);
}

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

.staihas-fancy-list li {
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.staihas-map iframe {
  width: 100%;
  min-height: 360px;
  border: 0;
}

.staihas-contact-form {
  background: #f9f9f9;
  border: 1px solid #eee;
}

.staihas-pagination .page-link {
  color: var(--staihas-primary);
}

.staihas-pagination .page-item.active .page-link {
  background: var(--staihas-primary);
  border-color: var(--staihas-primary);
  color: #fff;
}

.entry-content.wp-content {
  line-height: 1.8;
}

.entry-content.wp-content img {
  max-width: 100%;
  height: auto;
}

.entry-content.wp-content img.aligncenter {
  display: block;
  margin: 1rem auto;
}

/* Blog cards (arsip) */
.bright-post-grid .bright-post-item {
  background: #fff;
  margin-bottom: 30px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.bright-post-grid .bright-post-thumb img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.bright-post-grid .bright-post-content {
  padding: 20px;
}

.bright-post-grid .bright-post-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.bright-post-grid .bright-post-meta {
  font-size: 13px;
  color: #999;
}

/* Footer */
.site-footer {
  background: #22272b;
  color: #aaa;
  margin-top: 0;
}

.site-footer .site-info {
  background: #1d2023;
  color: #999;
  padding: 18px 0;
}

.site-footer .site-info a {
  color: #fff;
}

.site-footer .bottom-social-icons a {
  display: inline-block;
  width: 32px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  border-radius: 50%;
  background: #333;
  color: #fff;
  margin-left: 6px;
}

/* Responsive */
@media (max-width: 991px) {
  .staihas-hero-image {
    height: 380px;
  }

  .navbar-bright .bright-main-menu > li > a {
    padding: 18px 10px;
  }
}

@media (max-width: 767px) {
  .staihas-hero-image {
    height: 280px;
  }

  .staihas-hero-caption {
    padding: 28px 0 48px;
  }

  .staihas-feature-row,
  .staihas-about-section,
  .staihas-pmb-section,
  .staihas-prodi-section,
  .staihas-news-section {
    padding-top: 40px;
    padding-bottom: 30px;
  }

  .staihas-gallery-slider img {
    height: auto;
  }

  .bright-pre-header-item-left {
    text-align: center;
    margin-bottom: 6px;
  }

  .bright-pre-header-item-right {
    text-align: center !important;
  }

  .bright-pre-header .quick-contacts {
    float: none !important;
  }
}

/* =========================================================
   Promo popup (floating ad)
   ========================================================= */
html.staihas-promo-open,
html.staihas-promo-open body {
  overflow: hidden;
}

.staihas-promo-popup {
  position: fixed;
  inset: 0;
  z-index: 100050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.staihas-promo-popup[hidden] {
  display: none !important;
}

.staihas-promo-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 24, 48, 0.72);
  cursor: pointer;
}

.staihas-promo-dialog {
  position: relative;
  z-index: 1;
  width: min(420px, calc(100vw - 40px));
  max-height: calc(100vh - 40px);
  animation: staihas-promo-in 0.35s ease-out;
}

@keyframes staihas-promo-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.staihas-promo-close {
  position: absolute;
  top: -14px;
  right: -14px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #222;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.staihas-promo-close:hover,
.staihas-promo-close:focus {
  background: var(--staihas-primary);
  color: #fff;
  outline: none;
}

.staihas-promo-link {
  display: block;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  background: #0f3d6b;
}

.staihas-promo-link img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100vh - 48px);
  object-fit: contain;
}

@media (max-width: 575px) {
  .staihas-promo-dialog {
    width: min(340px, calc(100vw - 28px));
  }

  .staihas-promo-close {
    top: -10px;
    right: -6px;
  }
}

/* =========================================================
   Loading overlay, skeleton, lazy image fade-in
   ========================================================= */

.staihas-page-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(243, 243, 243, 0.92);
  backdrop-filter: blur(2px);
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.staihas-page-loader.staihas-loader-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.staihas-loader-inner {
  text-align: center;
}

.staihas-loader-spinner {
  width: 44px;
  height: 44px;
  margin: 0 auto 12px;
  border: 3px solid rgba(30, 115, 190, 0.2);
  border-top-color: var(--staihas-primary);
  border-radius: 50%;
  animation: staihas-spin 0.75s linear infinite;
}

.staihas-loader-text {
  margin: 0;
  font-size: 14px;
  color: #555;
}

html.staihas-loading {
  overflow: hidden;
}

img.staihas-img {
  opacity: 0;
  transition: opacity 0.35s ease;
  background: linear-gradient(110deg, #e8edf2 8%, #f5f7fa 18%, #e8edf2 33%);
  background-size: 200% 100%;
}

img.staihas-img.is-loaded {
  opacity: 1;
  background: none;
}

.staihas-skeleton-card {
  padding-bottom: 8px;
}

.staihas-skeleton-image {
  height: 200px;
  margin-bottom: 12px;
  border-radius: 2px;
  background: linear-gradient(110deg, #e8edf2 8%, #f5f7fa 18%, #e8edf2 33%);
  background-size: 200% 100%;
  animation: staihas-shimmer 1.4s ease infinite;
}

.staihas-skeleton-line {
  height: 12px;
  margin-bottom: 10px;
  border-radius: 4px;
  background: linear-gradient(110deg, #e8edf2 8%, #f5f7fa 18%, #e8edf2 33%);
  background-size: 200% 100%;
  animation: staihas-shimmer 1.4s ease infinite;
}

.staihas-skeleton-line-lg {
  width: 85%;
  height: 16px;
}

.staihas-skeleton-line-sm {
  width: 55%;
  margin-bottom: 0;
}

.bright-custom-logo.staihas-img.is-loaded,
.staihas-hero-image.is-loaded {
  opacity: 1;
}

@keyframes staihas-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes staihas-shimmer {
  to {
    background-position-x: -200%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .staihas-loader-spinner,
  .staihas-skeleton-image,
  .staihas-skeleton-line {
    animation: none;
  }

  img.staihas-img {
    transition: none;
    opacity: 1;
  }
}
