/* Keep a single navigation pill; menu items remain plain text controls. */
#header {
  height: 140px;
}

.public-header-utility {
  height: 40px;
}

#header .public-header-main {
  margin-top: 12px;
}

#header .navbar > ul {
  gap: 1px;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

#header .navbar > ul > li > a {
  border-radius: 0;
  background: transparent;
}

#header .navbar > ul > li:hover > a,
#header .navbar > ul > li > a.active {
  color: #fff;
  background: transparent;
}

#header .navbar > ul > li > a::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 4px;
  left: 12px;
  height: 2px;
  background: #ffbb2c;
  opacity: 0;
  transform: scaleX(.4);
  transition: opacity .2s ease, transform .2s ease;
}

#header .navbar > ul > li:hover > a::after,
#header .navbar > ul > li > a.active::after {
  opacity: 1;
  transform: scaleX(1);
}

#header.header-scrolled,
#header.header-solid {
  height: 76px;
}

#header.header-scrolled .public-header-main,
#header.header-solid .public-header-main {
  margin-top: 0;
}

/* Guide cards */
.home-guide-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.home-guide-card {
  display: flex;
  min-width: 0;
  min-height: 260px;
  flex-direction: column;
  padding: 22px;
  border: 1px solid #e4e7ec;
  border-top: 3px solid #a31313;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(16,24,40,.05);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.home-guide-card:hover {
  transform: translateY(-3px);
  border-color: #d7a2a2;
  box-shadow: 0 14px 32px rgba(16,24,40,.1);
}

.home-guide-icon {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 8px;
  background: #fef2f2;
  color: #a31313;
  font-size: 21px;
}

.home-guide-content {
  flex: 1 1 auto;
}

.home-guide-type {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #667085;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.home-guide-card h3 {
  margin: 10px 0 8px;
  color: #1d2939;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.4;
}

.home-guide-card p {
  margin: 0 0 20px;
  color: #667085;
  font-size: 13px;
  line-height: 1.55;
}

.home-guide-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  color: #344054;
  background: #fff;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.home-guide-action:hover {
  border-color: #a31313;
  color: #8f1717;
  background: #fff7f7;
}

.home-guide-action.is-download {
  border-color: #a9d9c1;
  color: #067647;
  background: #f6fef9;
}

@media (max-width: 1199px) {
  .home-guide-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 991px) {
  body.public-mobile-nav-open { overflow: hidden; }
  body.public-mobile-nav-open #header,
  body.public-mobile-nav-open #header .public-header-main {
    isolation: auto;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  #header,
  #header.header-scrolled,
  #header.header-solid { height: 72px; }

  #header #navbar.navbar-mobile {
    position: fixed !important;
    z-index: 2000;
    inset: 0 !important;
    display: block !important;
    width: 100vw !important;
    height: 100dvh !important;
    margin: 0 !important;
    padding: 76px 14px 16px !important;
    overflow: hidden;
    border-radius: 0;
    background: rgba(83,5,8,.96);
  }

  #header #navbar.navbar-mobile > ul {
    position: static !important;
    display: block !important;
    width: 100%;
    height: calc(100dvh - 92px);
    margin: 0;
    padding: 12px !important;
    overflow-y: auto;
    border-radius: 8px;
    background: #fff;
  }

  #header #navbar.navbar-mobile > ul > li > a {
    min-height: 46px;
    padding: 11px 12px;
    border-radius: 6px;
    color: #344054;
  }

  #header #navbar.navbar-mobile > ul > li > a::after { display: none; }
  #header #navbar.navbar-mobile > ul > li:hover > a,
  #header #navbar.navbar-mobile > ul > li > a.active { color: #8f1717; background: #fff5f5; }

  #header #navbar.navbar-mobile .mobile-nav-toggle {
    position: fixed;
    z-index: 2001;
    top: 22px;
    right: 22px;
    display: block;
    color: #fff;
  }

  .home-guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 575px) {
  .home-guide-grid { grid-template-columns: 1fr; }
  .home-guide-card { min-height: 0; }
}
