@import url("/assets/css/ui-v2.css");

/* Soft white glass/glow treatment for the homepage hero search only. */
.homepage .hero-search {
  border-color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.28),
    0 0 24px rgba(255, 255, 255, 0.42),
    0 16px 44px rgba(5, 20, 15, 0.2);
  backdrop-filter: brightness(1.12) blur(6px);
}

.brand-mascot {
  width: clamp(270px, 20vw, 320px);
  height: auto;
  object-fit: contain;
  object-position: center;
}

/* The cinematic homepage previously treated the wide logo as a white wordmark. */
.homepage .site-header .brand-mascot {
  width: clamp(290px, 23vw, 350px) !important;
  height: auto !important;
  max-height: 92px;
  object-fit: contain;
  opacity: 1 !important;
  filter: none !important;
}

@media (max-width: 1199px) {
  .homepage .site-header .brand-mascot {
    width: 290px !important;
    height: auto !important;
  }
}

@media (max-width: 991px) {
  .homepage .site-header .brand-mascot {
    width: 260px !important;
    height: auto !important;
  }
}

.guide-mascot {
  align-self: flex-end;
  width: 112px;
  height: 150px;
  margin-bottom: -18px;
  object-fit: contain;
  object-position: center top;
}

.footer-brand .brand-mark {
  width: 54px;
  height: 64px;
  background: url("/assets/images/soldier-mascot.png") center 18% / contain
    no-repeat;
}

.footer-brand .brand-mark i {
  display: none;
}

.branches span {
  font-size: 38px;
}

.branches span i {
  color: var(--color-primary);
}

.carousel-caption h2 {
  font-size: 44px;
  font-weight: 900;
  letter-spacing: 2px;
  text-shadow: 0 2px 5px #000;
}

@media (max-width: 1199px) {
  .carousel-caption h2 {
    font-size: 36px;
  }
}

@media (max-width: 767px) {
  .carousel-caption h2 {
    font-size: 29px;
  }
  .brand-mascot {
    width: min(235px, calc(100vw - 110px));
    height: auto;
  }

  .homepage .site-header .brand-mascot {
    width: min(235px, calc(100vw - 110px)) !important;
    height: auto !important;
  }

  .branches {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px 10px;
  }

  .branches span {
    height: 78px;
    font-size: 34px;
  }

  .guide-mascot {
    width: 92px;
    height: 130px;
  }
}
/* 三大分類卡片文章連結：維持既有視覺，只補足內容層級與互動回饋。 */
.category-article-list {
  width: 100%;
  margin: 10px 0 18px;
  padding: 0;
  list-style: none;
}

.category-article-list li + li {
  border-top: 1px solid rgba(38, 63, 27, 0.08);
}

.category-article-list a {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 8px;
  border-radius: 6px;
  color: var(--color-text);
  font-size: 13px;
  line-height: 1.45;
  transition:
    background-color 0.18s ease,
    color 0.18s ease;
}

.category-article-list a:hover,
.category-article-list a:focus-visible {
  background: #f1f4ec;
  color: var(--color-primary);
}

.category-article-list i {
  flex: 0 0 auto;
  color: var(--color-olive);
  font-size: 11px;
}
html body.homepage .site-header .nav-link.active,html body.homepage .site-header .nav-link.active:hover{background:rgba(255,255,255,.16)!important;color:#f4f1e7!important}html body.homepage .site-header .nav-link.active:after{background:rgba(244,241,231,.85)!important}
