/*
Theme Name: FH Unsoed
Description: Child theme for the Faculty of Law, Universitas Jenderal Soedirman.
Template: webinar-education-pro
Version: 0.1.64
Text Domain: fh-unsoed
*/

/* Footer content is managed in Appearance > Widgets > Footer sidebar. */
footer.fh-footer {
  background: #681b20;
  color: #fff;
  border-top: 3px solid #f39f01;
  border-radius: 0;
  padding: 0;
  font: 400 16px/1.65 Arial, Helvetica, sans-serif;
}
.fh-footer__columns {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)) minmax(0, 1.2fr);
  gap: 32px;
  padding: 48px 0 36px;
  text-align: left;
}
.fh-footer__columns > div { width: auto; max-width: none; min-width: 0; padding: 0; }
.fh-footer h2 { color: #f4e8e8; font: 400 15px/1.4 Arial, Helvetica, sans-serif; margin: 0 0 20px; }
.fh-footer p { color: #f4e8e8; margin: 0 0 12px; font-size: inherit; line-height: inherit; }
.fh-footer a { color: #fff; overflow-wrap: anywhere; text-decoration: none; }
.fh-footer a:is([href^="tel:"], [href^="mailto:"], [href^="https://www.google.com/maps/"]) { text-decoration: underline; text-underline-offset: 4px; }
.fh-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.fh-footer a:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.fh-footer .wp-block-image { margin: 0 0 20px; }
.fh-footer .wp-block-image img { width: 48px; height: auto; }
.fh-footer .fh-footer__logos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 280px; padding: 0; background: transparent; }
.fh-footer .fh-footer__logos > .wp-block-group__inner-container { display: contents; }
.fh-footer .fh-footer__logos .wp-block-image { margin: 0; }
.fh-footer .fh-footer__logos a { display: flex; align-items: center; min-height: 88px; }
.fh-footer .fh-footer__logos img { width: 100%; height: 88px; object-fit: contain; }
.fh-footer .fh-footer__logos a:focus-visible { outline-color: #fff; }
.fh-footer__copyright { padding: 24px 0 28px; }
.fh-footer__copyright p { margin: 0; font-size: 14px; }
body #button_scroll {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  bottom: 16px;
  right: 16px;
  border: 1px solid #ffd17a;
  border-radius: 8px;
  background: #681b20;
  color: #fff;
  font-size: 26px;
  line-height: 1;
}
body #button_scroll:hover, body #button_scroll:active { background: #861b23; }
body #button_scroll:focus-visible { outline: 3px solid #f39f01; outline-offset: 3px; }
@media (max-width: 991px) {
  .fh-footer__columns { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; padding-top: 64px; }
  .fh-footer__columns > div:has(.wp-block-image) { grid-column: 1 / -1; }
}
@media (max-width: 575px) {
  .fh-footer__columns { gap: 36px 24px; padding: 48px 0 36px; }
  .fh-footer__copyright { padding-right: 48px; }
}

/* Position the older Elementor Pro slider controls on the current Elementor core. */
.home .elementor-widget-slides .elementor-slides-wrapper { position: relative; }
.home .elementor-widget-slides .elementor-swiper-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  z-index: 2;
  cursor: pointer;
  background: #0006;
  border-radius: 50%;
}
.home .elementor-widget-slides .elementor-swiper-button-prev { left: 10px; }
.home .elementor-widget-slides .elementor-swiper-button-next { right: 10px; }
.home .elementor-widget-slides .elementor-swiper-button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.home .elementor-element-e7a00a4 .elementor-slide-button {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.home .elementor-element-e7a00a4 .swiper-slide-inner:focus-visible { outline: 3px solid #f39f01; outline-offset: -3px; }
.home .elementor-element-e7a00a4 .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: #fff !important;
  border: 2px solid #861b23;
  box-shadow: 0 1px 4px #0008;
  opacity: 1;
}
.home .elementor-element-e7a00a4 .swiper-pagination-bullet-active { background: #f39f01 !important; }
.home .elementor-element-e7a00a4 .swiper-pagination-bullet:focus-visible { outline: 2px solid #f39f01; outline-offset: 2px; }
.home .elementor-element-e7a00a4 .swiper-slide-bg {
  animation: none !important;
  transition: none !important;
  transform: none !important;
  background-size: contain !important;
  background-position: center;
  background-repeat: no-repeat;
}

/* Give the homepage news and agenda headings a shared section bar. */
.home .elementor-9224 .elementor-element:is(.elementor-element-6781eef, .elementor-element-85e96fd) {
  margin-bottom: 20px !important;
  text-align: left;
}
.home .elementor-9224 .elementor-element:is(.elementor-element-6781eef, .elementor-element-85e96fd) > .elementor-widget-container {
  padding: 13px 18px;
  border-left: 5px solid #f39f01;
  background: #861b23;
}
.home .elementor-9224 .elementor-element:is(.elementor-element-6781eef, .elementor-element-85e96fd) .elementor-heading-title {
  color: #fff;
  font: 700 clamp(22px, 2vw, 28px)/1.25 Arial, Helvetica, sans-serif;
  letter-spacing: 0;
  text-shadow: none;
}

/* Homepage editorial layout. Content stays in the existing Elementor widgets. */
.home .elementor-9224 section.elementor-element.elementor-element-5b56679 > .elementor-container {
  display: grid;
  grid-template-columns: minmax(0, 2.15fr) minmax(0, 1fr);
  gap: 32px;
  padding: 0 24px;
}
.home .elementor-9224 section.elementor-element.elementor-element-5b56679 > .elementor-container > .elementor-column { width: auto; min-width: 0; }
.home .elementor-9224 section.elementor-element.elementor-element-5b56679 > .elementor-container > .elementor-column > .elementor-widget-wrap { margin: 0; padding: 0; }
.home .elementor-9224 section.elementor-element.elementor-element-5b56679 .elementor-posts-container { gap: 28px 24px; }
.home .elementor-9224 .elementor-element-daed08e .elementor-posts-container { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.home .elementor-9224 section.elementor-element.elementor-element-5b56679 .elementor-post { min-width: 0; }
.home .elementor-9224 section.elementor-element.elementor-element-5b56679 .elementor-post__card { height: 100%; box-shadow: none; overflow: visible; }
.home .elementor-9224 section.elementor-element.elementor-element-5b56679 .elementor-post__thumbnail__link { margin: 0 0 16px; flex-shrink: 0; }
.home .elementor-9224 section.elementor-element.elementor-element-5b56679 .elementor-post__thumbnail { padding-bottom: 0; aspect-ratio: 16 / 9; }
.home .elementor-9224 section.elementor-element.elementor-element-5b56679 .elementor-post__thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.home .elementor-9224 section.elementor-element.elementor-element-5b56679 .elementor-post__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.home .elementor-9224 section.elementor-element.elementor-element-5b56679 .elementor-post__title { margin: 0 0 12px; }
.home .elementor-9224 section.elementor-element.elementor-element-5b56679 .elementor-post__title,
.home .elementor-9224 section.elementor-element.elementor-element-5b56679 .elementor-post__title a { color: #282323; font: 600 18px/1.45 Arial, Helvetica, sans-serif; overflow-wrap: anywhere; }
.home .elementor-9224 section.elementor-element.elementor-element-5b56679 .elementor-post__title a:hover { color: #861b23; text-decoration: underline; text-underline-offset: 3px; }
.home .elementor-9224 section.elementor-element.elementor-element-5b56679 .elementor-post__read-more-wrapper { margin-top: auto; padding-top: 8px; }
.home .elementor-9224 section.elementor-element.elementor-element-5b56679 .elementor-post__read-more {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  margin: 0;
  border: 1px solid #861b23;
  border-radius: 3px;
  color: #861b23;
  background: #fff;
  font: 700 13px/1.4 Arial, Helvetica, sans-serif;
  text-transform: none;
}
.home .elementor-9224 section.elementor-element.elementor-element-5b56679 .elementor-post__read-more:hover { background: #861b23; color: #fff; }
.home .elementor-9224 section.elementor-element.elementor-element-5b56679 a:focus-visible { outline: 3px solid #861b23; outline-offset: 3px; }
.home .elementor-9224 section.elementor-element.elementor-element-5b56679 .elementor-post__meta-data { color: #6b6060; font: 400 12px/1.6 Arial, Helvetica, sans-serif; border-color: #e4dada; padding: 12px 0 0; margin: 16px 0 0; }
.home .elementor-9224 section.elementor-element.elementor-element-5b56679 .elementor-post__badge { margin: 12px; border-radius: 3px; font-size: 11px; }
/* This legacy inner section contains only an empty heading and column. */
.home .elementor-9224 :is(.elementor-element-26531bc, .elementor-element-a8eeece) { display: none; }
.home .elementor-9224 section.elementor-element.elementor-element-5b56679 .elementor-element-30ceced .elementor-posts-container { grid-template-columns: minmax(0, 1fr); }
.home .elementor-9224 section.elementor-element.elementor-element-5b56679 .elementor-element-30ceced .elementor-post { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 16px; padding-bottom: 24px; border-bottom: 1px solid #e4dada; }
.home .elementor-9224 section.elementor-element.elementor-element-5b56679 .elementor-element-30ceced .elementor-post__thumbnail__link { margin: 0; }
.home .elementor-9224 section.elementor-element.elementor-element-5b56679 .elementor-element-30ceced .elementor-post__thumbnail { aspect-ratio: 1; }
.home .elementor-9224 section.elementor-element.elementor-element-5b56679 .elementor-element-30ceced .elementor-post__title,
.home .elementor-9224 section.elementor-element.elementor-element-5b56679 .elementor-element-30ceced .elementor-post__title a { font-size: 16px; }
.home .elementor-9224 section.elementor-element.elementor-element-5b56679 .elementor-element-30ceced .elementor-post__meta-data { margin: 0 0 12px; padding: 0; }
.home .elementor-9224 section.elementor-element.elementor-element-5b56679 .elementor-element-30ceced .elementor-post__excerpt { margin: 0 0 16px; }
.home .elementor-9224 section.elementor-element.elementor-element-5b56679 .elementor-element-30ceced .elementor-post__excerpt:empty { display: none; }
.home .elementor-9224 section.elementor-element.elementor-element-5b56679 .elementor-element-30ceced .elementor-post__excerpt p { color: #6b6060; font: 400 14px/1.6 Arial, Helvetica, sans-serif; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }
.home .elementor-9224 section.elementor-element.elementor-element-5b56679 .elementor-element-30ceced .elementor-post__read-more { margin-top: auto; }
.home .elementor-9224 section.elementor-element.elementor-element-5b56679 .elementor-pagination { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 4px; margin-top: 28px; }
.home .elementor-9224 section.elementor-element.elementor-element-5b56679 .elementor-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; min-height: 44px; margin: 0 !important; padding: 6px 8px; color: #861b23; font: 400 14px/1.4 Arial, Helvetica, sans-serif; }
.home .elementor-9224 section.elementor-element.elementor-element-5b56679 .elementor-pagination .current { background: #861b23; color: #fff; border-radius: 3px; }
.home .elementor-9224 section.elementor-element.elementor-element-5b56679 .elementor-pagination a:hover { background: #f7eeee; }
@media (min-width: 1025px) {
  /* Share heading, content and pagination rows, including wrapped pagination. */
  .home .elementor-9224 section.elementor-element.elementor-element-5b56679 > .elementor-container { grid-template-rows: auto 1fr auto; row-gap: 0; }
  .home .elementor-9224 section.elementor-element.elementor-element-5b56679 > .elementor-container > .elementor-column,
  .home .elementor-9224 section.elementor-element.elementor-element-5b56679 > .elementor-container > .elementor-column > .elementor-widget-wrap {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: 1 / span 3;
  }
  .home .elementor-9224 section.elementor-element.elementor-element-5b56679 .elementor-widget-heading { grid-row: 1; }
  .home .elementor-9224 section.elementor-element.elementor-element-5b56679 .elementor-widget-posts {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: 2 / span 2;
  }
  .home .elementor-9224 section.elementor-element.elementor-element-5b56679 .elementor-widget-posts > .elementor-widget-container {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: 1 / span 2;
  }
  .home .elementor-9224 section.elementor-element.elementor-element-5b56679 .elementor-posts-container { grid-row: 1; grid-auto-rows: 1fr; }
  .home .elementor-9224 section.elementor-element.elementor-element-5b56679 .elementor-element-30ceced .elementor-posts-container { grid-auto-rows: auto; }
  .home .elementor-9224 section.elementor-element.elementor-element-5b56679 .e-load-more-anchor { grid-area: 2 / 1; height: 0; }
  .home .elementor-9224 section.elementor-element.elementor-element-5b56679 .elementor-pagination { grid-area: 2 / 1; align-items: flex-start; align-content: flex-start; }
}
@media (max-width: 1024px) {
  .home .elementor-9224 section.elementor-element.elementor-element-5b56679 > .elementor-container { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .home .elementor-9224 section.elementor-element.elementor-element-5b56679 .elementor-element-30ceced .elementor-posts-container { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .home .elementor-9224 section.elementor-element.elementor-element-5b56679 > .elementor-container { padding: 0 20px; }
  .home .elementor-9224 .elementor-element-daed08e .elementor-posts-container,
  .home .elementor-9224 section.elementor-element.elementor-element-5b56679 .elementor-element-30ceced .elementor-posts-container { grid-template-columns: minmax(0, 1fr); }
}

/* Keep the lettering baked into the slide artwork visible at every width. */
.home .elementor-element-e7a00a4 > .elementor-container > .elementor-column > .elementor-widget-wrap { padding: 0; }
.home .elementor-element-e7a00a4 .elementor-widget-slides { margin-bottom: 0; }
@media (min-width: 768px) {
  .home .elementor-element-e7a00a4 .swiper-slide { height: clamp(420px, 46.5vw, 650px) !important; }
}
@media (max-width: 767px) {
  .home .elementor-element-e7a00a4 .swiper-slide { height: calc(54.17vw + 64px) !important; }
  .home .elementor-element-e7a00a4 .swiper-slide-bg {
    height: calc(100% - 64px);
  }
  .home .elementor-element-e7a00a4 .swiper-slide-inner {
    align-items: flex-end;
    padding: 0 48px 31px !important;
    background: linear-gradient(to bottom, transparent calc(100% - 64px), #681b20 calc(100% - 64px));
  }
  .home .elementor-element-e7a00a4 .swiper-slide-contents { max-width: 100%; }
  .home .elementor-element-e7a00a4 .elementor-slide-heading { font-size: 16px !important; line-height: 1.2 !important; margin: 0 !important; }
  .home .elementor-element-e7a00a4 .elementor-slide-description { display: none !important; }
  .home .elementor-element-e7a00a4 .elementor-swiper-button { top: calc((100% - 64px) / 2); }
  .home .elementor-element-e7a00a4 .swiper-pagination { bottom: 6px !important; }
}

.header .logo {
  display: flex;
  justify-content: center;
  word-break: normal;
}

/* Keep the navigation in the page flow when the parent toggles fix-sticky. */
.header-menu { display: contents; }
.header-menu > .header { position: sticky !important; top: 0; z-index: 100; }
.admin-bar .header-menu > .header { top: 32px; margin-top: 0 !important; }
@media (max-width: 782px) {
  .admin-bar .header-menu > .header { top: 46px; }
}

.header .logo-image {
  display: flex;
  float: none;
  margin: 0 !important;
}

.header .fh-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #111;
  text-align: left;
  text-decoration: none;
}

.header .fh-brand:hover,
.header .fh-brand:focus {
  color: #111;
}

.header .fh-brand__mark {
  display: block;
  width: 64px;
  height: auto;
  flex: none;
}

.header .fh-brand__name,
.header .fh-brand__title,
.header .fh-brand__subtitle {
  display: block;
  color: inherit;
}

.header .fh-brand__title {
  font: 800 25px/1.05 Georgia, 'Times New Roman', serif;
  text-transform: uppercase;
  white-space: nowrap;
}

.header .fh-brand__subtitle {
  margin-top: 3px;
  font: 700 15px/1.2 Arial, Helvetica, sans-serif;
  white-space: nowrap;
}

@media (min-width: 768px) {
  #main-menu ul.children,
  #main-menu ul.sub-menu {
    border: 1px solid #d9d9d9;
    width: max-content;
    max-width: calc(100vw - 32px);
  }
  #main-menu ul.children > li,
  #main-menu ul.sub-menu > li {
    float: none;
    width: auto;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

/* Keep the contact bar and navigation surfaces separate. */
.header-menu > .top-header { background: #7b2527; border-bottom: 1px solid #7b2527; padding-block: 8px; }
.top-header :is(.header-text span, .header-email span, .social-links a) { color: #fff; }
.header-menu > .header { background: #fff; border-bottom: 1px solid #e2e8f0; }
.header :is(a, button):focus-visible { outline: 2px solid #24364b; outline-offset: 3px; }
.header #main-menu li > a { color: #24364b; background: transparent; border-radius: 8px; text-transform: none; }
.header:not(.fh-menu-compact) #main-menu a:hover,
.header:not(.fh-menu-compact) #main-menu a:focus-visible { background: #e8eef4; color: #24364b; }
.header #main-menu :is(ul.sub-menu, ul.children) { border-radius: 0; box-shadow: none; }
.header:not(.fh-menu-compact) #main-menu > ul > li > :is(ul.sub-menu, ul.children) { border-radius: 16px; background: #fff; box-shadow: 0 8px 24px #24364b14; }
.header .fh-admisi { min-height: 44px; font-family: Arial, Helvetica, sans-serif; }
.header.fh-menu-compact .menu-toggle::after {
  content: ''; width: 7px; height: 7px; margin-left: 9px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg);
}
.header.fh-menu-compact.toggled .menu-toggle::after { transform: rotate(225deg); }

/* Keep the brand and navigation at opposite edges without empty Bootstrap columns. */
.header .container { max-width: 1440px; }
.header .row { flex-wrap: nowrap; align-items: center; justify-content: space-between; }
.header .row > .col-lg-3 { flex: 0 0 auto; width: auto; max-width: none; }
.header .row > .col-lg-7 { display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex: 1 1 auto; width: auto; min-width: 0; max-width: none; }
.header .row > .col-lg-1:not(:has(.header-search, .cart-customlocation)) { display: none; }
.header .row > .col-lg-1:has(.header-search, .cart-customlocation) { flex: 0 0 auto; width: auto; max-width: none; }
.header .logo { justify-content: flex-start; padding: 12px 0; }
#main-menu { float: none; flex: 0 1 auto; width: auto; min-width: 0; margin: 0; }
#main-menu > ul { display: flex; flex-wrap: nowrap; justify-content: flex-end; }
#main-menu > ul > li { float: none; white-space: nowrap; }
#main-menu > ul > li > a { padding-inline: clamp(7px, 0.8vw, 12px); }
.header:not(.fh-menu-compact) #main-menu ul li:is(.current-menu-item, .current_page_item, .current-menu-parent, .current_page_ancestor, .current-menu-ancestor) > a:not(:hover):not(:focus-visible) { color: #1e1f1f; }
.header .fh-admisi {
  display: inline-block;
  flex: none;
  padding: 10px 16px;
  border: 1px solid #24364b;
  border-radius: 12px;
  background: #24364b;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  text-transform: none;
  white-space: nowrap;
}
.header .fh-admisi:hover,
.header .fh-admisi:focus-visible,
.header.fh-menu-compact .menu-toggle:hover,
.header.fh-menu-compact .menu-toggle:focus-visible { background: #344e6b; border-color: #344e6b; color: #fff; }

.top-header .container { max-width: 1440px; }
.top-header > .container > .row { align-items: center; justify-content: space-between; flex-wrap: nowrap; }
.top-header > .container > .row > :first-child { flex: 1 1 auto; width: auto; min-width: 0; max-width: none; text-align: left !important; }
.top-header > .container > .row > :first-child > .row { align-items: baseline; gap: 0 18px; }
.top-header .header-text, .top-header .header-email { flex: 0 0 auto; width: auto; max-width: none; }
.top-header > .container > .row > :nth-child(2):not(:has(a)) { display: none; }
.top-header > .container > .row > :last-child,
.top-header > .container > .row > :nth-child(2):has(a) { flex: 0 0 auto; width: auto; max-width: none; }
.top-header > .container > .row > :last-child { width: auto; }
.top-header .header-text span, .top-header .header-email span { white-space: nowrap; }
.top-header .fh-top-navigation { display: none; }
.fh-integrity-menu { margin: 0; padding: 0; list-style: none; }
.fh-integrity-menu a {
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  text-transform: none;
  white-space: nowrap;
}
.fh-integrity-menu a:hover,
.fh-integrity-menu a:focus-visible { color: #fff; text-decoration: underline; }
.fh-integrity-menu a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (min-width: 1200px) {
  .top-header .fh-top-navigation:has(li) { display: block; flex: none; }
}

@media (max-width: 1199px) {
  .header .row > .col-lg-7 { flex: 0 0 auto; }
  .header .fh-brand { gap: 9px; }
  .header .fh-brand__mark { width: 50px; }
  .header .fh-brand__title { font-size: 19px; }
  .header .fh-brand__subtitle { font-size: 11px; }
}

/* JS also applies this class above 1199px when edited menu labels need more room. */
.header.fh-menu-dismissed:not(.fh-menu-compact) #main-menu ul.sub-menu,
.header.fh-menu-dismissed:not(.fh-menu-compact) #main-menu ul.children {
  opacity: 0;
  left: -9999em;
  pointer-events: none;
}
.header.fh-menu-compact:not(.fix-sticky) { position: relative; }
.header.fh-menu-compact .row > .col-lg-7 { position: static; flex: 0 0 auto; gap: 8px; }
.header.fh-menu-compact .menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  margin: 0 !important;
  padding: 9px 16px !important;
  border: 1px solid #d6dfe8;
  border-radius: 12px;
  background: #f1f5f9;
  color: #24364b;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
}
.header.fh-menu-compact .fh-admisi {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
}
.header.fh-menu-compact .menu-toggle:focus-visible { outline: 2px solid #24364b; outline-offset: 2px; }
.header.fh-menu-compact .menu-toggle:focus:not(:focus-visible) { outline: none; }
.header.fh-menu-compact #main-menu {
  display: none !important;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 10002;
  width: 100%;
  max-height: min(70vh, 600px);
  overflow-y: auto;
  background: #fff;
  border: 1px solid #d6dfe8;
  border-radius: 16px;
  box-shadow: 0 8px 20px #24364b1a;
}
.header.fh-menu-compact.toggled #main-menu { display: block !important; }
.header.fh-menu-compact #main-menu > ul { display: block; max-width: 1440px; margin: auto; padding: 8px 15px; }
.header.fh-menu-compact #main-menu ul li { float: none; width: 100%; white-space: normal; }
.header.fh-menu-compact #main-menu li:has(> .fh-submenu-toggle) { display: grid; grid-template-columns: minmax(0, 1fr) 44px; }
.header.fh-menu-compact #main-menu li:has(> .fh-submenu-toggle) > a { grid-column: 1; grid-row: 1; padding-right: 0; border-radius: 8px 0 0 8px; }
.header.fh-menu-compact #main-menu li:has(> .fh-submenu-toggle) > ul { grid-column: 1 / -1; }
.header.fh-menu-compact #main-menu ul li > a { display: block; padding: 12px 44px 12px 16px; background: transparent; color: #24364b; line-height: 1.35; transition: none; }
.header.fh-menu-compact #main-menu ul.sub-menu,
.header.fh-menu-compact #main-menu ul.children {
  display: none;
  position: static;
  width: 100%;
  opacity: 1;
  border: 0;
  background: #f1f5f9;
}
.header.fh-menu-compact #main-menu li.fh-submenu-open > ul { display: block; }
.header.fh-menu-compact #main-menu ul.sub-menu li,
.header.fh-menu-compact #main-menu ul.children li { padding: 0; }
.header.fh-menu-compact #main-menu ul.sub-menu li > a,
.header.fh-menu-compact #main-menu ul.children li > a { padding: 11px 44px 11px 30px; background: transparent; color: #24364b; line-height: 1.35; }
.header.fh-menu-compact #main-menu li:has(> a:hover, > a:focus-visible, > .fh-submenu-toggle:hover, > .fh-submenu-toggle:focus-visible) > :is(a, .fh-submenu-toggle),
.header.fh-menu-compact #main-menu ul.sub-menu li > a:hover,
.header.fh-menu-compact #main-menu ul.sub-menu li > a:focus-visible,
.header.fh-menu-compact #main-menu ul.children li > a:hover,
.header.fh-menu-compact #main-menu ul.children li > a:focus-visible { background: #e8eef4; color: #24364b; }
.header.fh-menu-compact #main-menu li::after { display: none !important; }
.header .fh-submenu-toggle { display: none; }
.header.fh-menu-compact .fh-submenu-toggle {
  display: block;
  position: static;
  grid-column: 2;
  grid-row: 1;
  z-index: 2;
  top: 0;
  right: 0;
  width: 44px;
  border-radius: 0 8px 8px 0;
  height: 100%;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: #24364b;
  cursor: pointer;
}
.header.fh-menu-compact .fh-submenu-toggle::after {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}
.header.fh-menu-compact .fh-submenu-open > .fh-submenu-toggle::after { transform: rotate(225deg); }
.header.fh-menu-compact .fh-submenu-toggle:focus-visible { outline: 2px solid #24364b; outline-offset: -3px; }
.header.fh-menu-compact .fh-submenu-toggle:focus:not(:focus-visible) { outline: none; }
.header.fh-menu-compact #main-menu .close-menu { display: none; }

@media (max-width: 600px) {
  .header .logo-content { display: none; }
  .top-header > .container > .row { flex-wrap: wrap; gap: 4px; }
  .top-header > .container > .row > :first-child,
  .top-header > .container > .row > :last-child { flex: 1 1 100%; text-align: center !important; }
  .top-header > .container > .row > :first-child > .row { justify-content: center; gap: 4px 12px; }
  /* Keep logo, faculty name, Portal Unsoed, and Menu on one line; scale down instead of wrapping. */
  .header .container { padding-inline: clamp(6px, 2vw, 15px); }
  .header .row { margin-inline: 0; }
  .header .row > .col-lg-3 { flex: 0 1 auto; min-width: 0; }
  .header.fh-menu-compact .row > .col-lg-7 { flex: 0 0 auto; gap: clamp(4px, 1.2vw, 6px); }
  .header .row > .col-lg-3,
  .header .row > .col-lg-7 { padding-inline: clamp(2px, 1vw, 8px); }
  .header .fh-brand { gap: clamp(4px, 1.2vw, 6px); }
  .header .fh-brand__mark { width: clamp(22px, 7.5vw, 44px); }
  .header .fh-brand__title { font-size: clamp(9px, 3.3vw, 19px); }
  .header .fh-brand__subtitle { font-size: clamp(6px, 1.85vw, 11px); }
  .header.fh-menu-compact .menu-toggle,
  .header.fh-menu-compact .fh-admisi { height: clamp(34px, 10vw, 44px); min-height: 0; }
  .header.fh-menu-compact .menu-toggle,
  .header .fh-admisi { padding: 6px clamp(6px, 2vw, 9px) !important; font-size: clamp(9px, 2.9vw, 14px); }
  .header.fh-menu-compact .menu-toggle::after { width: 6px; height: 6px; margin-left: clamp(5px, 1.5vw, 9px); }
}

/* Profil and Akademik use ordinary WordPress menu groups as desktop columns. */
.header:not(.fh-menu-compact):not(.fix-sticky) { position: relative; }
.header:not(.fh-menu-compact) .row > .col-lg-7,
.header:not(.fh-menu-compact) #main-menu,
.header:not(.fh-menu-compact) #main-menu :is(.fh-program-studi, .fh-profil) { position: static; }
.header:not(.fh-menu-compact) #main-menu :is(.fh-program-studi, .fh-profil) > .sub-menu {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  width: calc(100% - 30px);
  max-width: 1410px;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  background: #fff;
  box-shadow: 0 8px 20px #24364b14;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: none;
}
.header:not(.fh-menu-compact) #main-menu :is(.fh-program-studi, .fh-profil):hover > .sub-menu,
.header:not(.fh-menu-compact) #main-menu :is(.fh-program-studi, .fh-profil):focus-within > .sub-menu,
.header:not(.fh-menu-compact) #main-menu :is(.fh-program-studi, .fh-profil).focus > .sub-menu {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
/* Bridge the header padding between the hovered title and its panel. */
.header:not(.fh-menu-compact):not(.fh-menu-dismissed) #main-menu :is(.fh-program-studi, .fh-profil):hover > a::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 20px;
}
.header:not(.fh-menu-compact) #main-menu :is(.fh-program-studi, .fh-profil) > .sub-menu > li {
  width: auto;
  min-height: 340px;
  padding: 28px 20px;
  border-right: 1px solid #ddd;
}
.header:not(.fh-menu-compact) #main-menu :is(.fh-program-studi, .fh-profil) > .sub-menu > li:last-child { border-right: 0; }
.header:not(.fh-menu-compact) #main-menu :is(.fh-program-studi, .fh-profil) > .sub-menu > li > a {
  color: #1e1f1f;
  cursor: default;
  padding: 0 0 18px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  text-transform: none;
}
.header:not(.fh-menu-compact) #main-menu :is(.fh-program-studi, .fh-profil) > .sub-menu > li > .sub-menu {
  position: static;
  width: 100%;
  max-width: none;
  border: 0;
  background: transparent;
  opacity: 1;
  visibility: inherit;
}
.header:not(.fh-menu-compact) #main-menu :is(.fh-program-studi, .fh-profil) > .sub-menu > li > .sub-menu li { width: auto; }
.header:not(.fh-menu-compact) #main-menu :is(.fh-program-studi, .fh-profil) > .sub-menu > li > .sub-menu a {
  margin-inline: -10px;
  padding: 8px 10px;
  color: #444;
  font-weight: 400;
  line-height: 1.5;
  text-transform: none;
}
.header:not(.fh-menu-compact) #main-menu :is(.fh-program-studi, .fh-profil) a:hover,
.header:not(.fh-menu-compact) #main-menu :is(.fh-program-studi, .fh-profil) a:focus-visible { background: transparent; color: #24364b; }
.header:not(.fh-menu-compact) #main-menu :is(.fh-program-studi, .fh-profil) > .sub-menu > li > .sub-menu a:hover,
.header:not(.fh-menu-compact) #main-menu :is(.fh-program-studi, .fh-profil) > .sub-menu > li > .sub-menu a:focus-visible { background: #e8eef4; color: #24364b; }
.header.fh-menu-dismissed:not(.fh-menu-compact) #main-menu :is(.fh-program-studi, .fh-profil) > .sub-menu {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}
.header.fh-menu-compact #main-menu :is(.fh-program-studi, .fh-profil) > .sub-menu > li > a { font-weight: 700; text-transform: none; }
.header.fh-menu-compact #main-menu :is(.fh-program-studi, .fh-profil) .sub-menu .sub-menu { background: #e8eef4; }
.header.fh-menu-compact #main-menu :is(.fh-program-studi, .fh-profil) .sub-menu .sub-menu a { padding-left: 44px; font-weight: 400; text-transform: none; }

.header:not(.fh-menu-compact) #main-menu .fh-profil > .sub-menu { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.header:not(.fh-menu-compact) #main-menu .fh-profil > .sub-menu > li { min-height: 240px; }

/* Keep the vertical application list reachable on shorter screens. */
.header:not(.fh-menu-compact) #main-menu .fh-aplikasi > .sub-menu {
  max-height: calc(100dvh - 160px);
  overflow-y: auto;
  transition: none;
}

/* Align program icons and reserve equal title space, including wrapped labels. */
.fh-programs > .elementor-container { flex-wrap: nowrap !important; }
.fh-programs > .elementor-container > .elementor-column:nth-child(odd) { background-color: #a76808 !important; }
.fh-programs > .elementor-container > .elementor-column:nth-child(even) { background-color: #a32627 !important; }
.fh-programs > .elementor-container > .elementor-column > .elementor-widget-wrap { align-content: flex-start !important; }
.fh-programs .elementor-icon-box-title {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6em;
  margin: 0 !important;
}
.fh-programs .elementor-icon-box-title a:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

@media (min-width: 1025px) {
  .fh-programs > .elementor-container > .elementor-column > .elementor-widget-wrap { padding: 24px 12px !important; }
  .fh-programs .elementor-icon { font-size: 32px !important; padding: 12px !important; }
  .fh-programs .elementor-icon-box-wrapper { gap: 16px !important; }
  .fh-programs .elementor-icon-box-icon { margin: 0 !important; }
  .fh-programs .elementor-icon-box-title { font-size: 18px !important; line-height: 1.25 !important; min-height: 2.5em; }
  .fh-programs .elementor-icon-box-title a { font-size: inherit !important; line-height: inherit !important; }
}

@media (max-width: 1024px) {
  .fh-programs > .elementor-container {
    overflow-x: auto;
  }
  .fh-programs > .elementor-container > .elementor-column {
    flex: 0 0 clamp(160px, 42vw, 210px);
    min-width: 0;
    width: auto !important;
  }
  .fh-programs > .elementor-container > .elementor-column > .elementor-widget-wrap { padding: 22px 12px !important; }
  .fh-programs .elementor-icon { font-size: 32px !important; padding: 12px !important; }
  .fh-programs .elementor-icon-box-wrapper { gap: 16px !important; }
  .fh-programs .elementor-icon-box-icon { margin: 0 !important; }
  .fh-programs .elementor-icon-box-title { font-size: 15px !important; line-height: 1.3 !important; min-height: 3.9em; }
  .fh-programs .elementor-icon-box-title a { font-size: inherit !important; line-height: inherit !important; }
}

/* Continuous text strip; the source remains editable in Elementor. */
.fh-statistics--running {
  overflow: hidden;
  overflow: clip;
  padding: 17px 0 !important;
  border-radius: 0;
  border-bottom: 1px solid #e9e3df;
  background: #faf9f7 !important;
  color: #514947;
}
.fh-statistics--running > .elementor-container[hidden] { display: none; }
.fh-statistics__track {
  display: flex;
  width: max-content;
  animation: fh-statistics-run var(--statistics-duration, 48s) linear infinite;
}
.fh-statistics__text {
  display: flex;
  flex: 0 0 auto;
  white-space: pre;
  font: 400 15px/26px Arial, Helvetica, sans-serif;
}
.fh-statistics__item { display: flex; align-items: baseline; }
.fh-statistics__identity { color: #811c24; font-weight: 600; }
.fh-statistics__item strong { color: #811c24; font-size: 19px; font-weight: 600; font-variant-numeric: tabular-nums; }
.fh-statistics__separator { margin-inline: 24px; color: #b9a99c; font-weight: 400; }
@keyframes fh-statistics-run { to { transform: translateX(var(--statistics-distance)); } }
@media (max-width: 767px) {
  .fh-statistics--running { padding: 13px 0 !important; }
  .fh-statistics__text { font-size: 14px; line-height: 24px; }
  .fh-statistics__item strong { font-size: 18px; }
  .fh-statistics__separator { margin-inline: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .fh-statistics__track { animation: none; width: auto; }
  .fh-statistics__text { flex: 1; flex-wrap: wrap; white-space: normal; gap: 12px 0; padding: 0 24px; }
  .fh-statistics__item { display: inline; }
  .fh-statistics__text[aria-hidden] { display: none; }
}

/* Sticky site notice, managed in Customizer > Site Identity. */
.header .fh-notice { margin: 0; padding: 6px 16px; background: #fdf3d8; border-bottom: 1px solid #f0dca8; color: #5c3b00; font-size: 14px; line-height: 1.4; text-align: center; }
