@charset "utf-8";

/* Yunlin Hsien Industrial Association - global design tokens */
:root {
  /* Typography */
  --font-family-heading: "Noto Serif TC", "Times New Roman", serif;
  --font-family-body: "Noto Sans TC", "Microsoft JhengHei", Arial, sans-serif;
  --font-size-article-title: 24px;
  --font-size-article-subtitle: 20px;
  --letter-spacing-regular: 1px;
  --letter-spacing-heading: 2px;

  /* Brand and text colors */
  --color-primary: #024496;
  --color-white: #ffffff;
  --color-text-primary: #262626;
  --color-text-secondary: #6e6e6e;
  --color-text-muted: #979797;

  /* Transparent colors and gradients */
  --color-white-50: rgba(255, 255, 255, 0.5);
  --color-primary-70: rgba(2, 68, 150, 0.7);
  --color-brand-deep: #002a5d;
  --color-brand-deep-40: rgba(0, 42, 93, 0.4);
  --gradient-primary: linear-gradient(
    90deg,
    var(--color-brand-deep) 57%,
    var(--color-brand-deep-40) 100%
  );

  /* Surface colors */
  --color-surface-accent: #e4eeff;
  --color-surface-soft: #eff5ff;
  --color-surface-muted: #f2f2f2;
}

body,
button,
input,
select,
textarea {
  font-family: var(--font-family-body);
}

body {
  color: var(--color-text-primary);
  background-color: var(--color-white);
}

:focus,
:focus-visible {
  outline: none !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-family-heading);
}

.article-section-title {
  font-size: var(--font-size-article-title);
}

.article-section-subtitle {
  font-size: var(--font-size-article-subtitle);
}

/*------------------------------*/
/*       $HomePageBanner        */
/*------------------------------*/

.home-page-banner {
  width: 100%;
  max-width: none;
  height: auto;
  max-height: none;
  overflow: hidden;
}

.home-page-banner.hero-spotlight {
  animation: homeBannerSpotlightExpand 2s cubic-bezier(0.65, 0, 0.35, 1)
    forwards;
}

@keyframes homeBannerSpotlightExpand {
  0% {
    clip-path: circle(0% at 50% 50%);
  }
  100% {
    clip-path: circle(150% at 50% 50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page-banner.hero-spotlight {
    animation: none;
    clip-path: none;
  }
}

.home-page-banner .carousel,
.home-page-banner .carousel-inner,
.home-page-banner .carousel-inner > .item,
.home-page-banner .carousel-inner > .item > a {
  height: auto;
}

.home-page-banner .carousel-inner > .item > a {
  display: block;
}

.home-page-banner img {
  display: block;
  width: 100%;
  height: auto;
}

/*------------------------------*/
/*       $InnerPageBanner       */
/*------------------------------*/
.innerbanner {
  position: relative;
  display: flex;
  min-height: 270px;
  overflow: hidden;
  padding: 36px 20px;
  color: var(--color-primary);
  background-color: var(--color-surface-soft);
  background-image: url("../../images/page-category-banner.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.innerbanner.news {
  min-height: 0;
  height: 17.1875vw;
  padding: 0;
  background-image: url("../../images/page-news-banner.png");
  background-position: center 78%;
}

.innerbanner.news::before {
  display: none;
}

.innerbanner::before {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(
    90deg,
    rgba(239, 245, 255, 0.16),
    rgba(255, 255, 255, 0.34),
    rgba(239, 245, 255, 0.16)
  );
  content: "";
}

.innerbanner__content {
  position: relative;
  z-index: 1;
}

.innerbanner h2,
.innerbanner h3 {
  margin: 0;
  color: inherit;
  font-family: var(--font-family-heading);
  font-weight: 700;
  letter-spacing: var(--letter-spacing-heading);
}

.innerbanner h2 {
  font-size: 36px;
  line-height: 1.35;
}

.innerbanner h3 {
  margin-top: 6px;
  font-size: 20px;
  line-height: 1.45;
}

@media (max-width: 767px) {
  .innerbanner {
    min-height: 190px;
    padding-top: 26px;
    padding-bottom: 26px;
    background-position: center;
  }

  .innerbanner h2 {
    font-size: 28px;
  }

  .innerbanner h3 {
    font-size: 17px;
  }

  .innerbanner.news {
    min-height: 160px;
    height: 34.283vw;
    background-position: 70% center;
  }
}

/*------------------------------*/
/*        $CategoryPage         */
/*------------------------------*/
.category-wrapper {
  min-height: 0;
  padding: 64px 0 92px;
  background-color: var(--color-white);
}

.category-wrapper > .container {
  width: calc(100% - 30px);
  max-width: 1280px;
}

.category-wrapper .breadcrumb {
  margin: 0 0 30px;
  padding: 0 0 16px;
  border-bottom: 1px solid rgba(2, 68, 150, 0.2);
  border-radius: 0;
  background-color: transparent;
  font-size: 15px;
  letter-spacing: var(--letter-spacing-regular);
}

.category-wrapper .breadcrumb .glyphicon-home {
  display: none;
}

.category-wrapper .breadcrumb > li,
.category-wrapper .breadcrumb > .active,
.category-wrapper .breadcrumb > li > a,
.category-wrapper ol.breadcrumb li a {
  color: var(--color-text-secondary);
}

.category-wrapper .breadcrumb > li > a:hover,
.category-wrapper .breadcrumb > li > a:focus {
  color: var(--color-primary);
  text-decoration: none;
}

.category-wrapper .breadcrumb > li + li::before {
  padding: 0 10px;
  color: var(--color-primary);
  content: "/";
}

.category-wrapper #category_descr:not(:empty) {
  margin-top: 0;
  margin-bottom: 30px;
  padding: 32px 36px;
  border: 1px solid rgba(2, 68, 150, 0.12);
  border-radius: 10px;
  background-color: var(--color-white);
  box-shadow: 0 8px 28px rgba(2, 68, 150, 0.06);
  color: var(--color-text-primary);
  font-size: 16px;
  letter-spacing: var(--letter-spacing-regular);
  line-height: 1.9;
  width: 100%;
}

.category-wrapper #category_descr h1,
.category-wrapper #category_descr h2,
.category-wrapper #category_descr h3,
.category-wrapper #category_descr h4,
.category-wrapper #category_descr h5,
.category-wrapper #category_descr h6 {
  color: var(--color-primary);
  font-family: var(--font-family-heading);
  font-weight: 700;
  line-height: 1.45;
}

.category-wrapper #category_descr h1,
.category-wrapper #category_descr h2 {
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-surface-accent);
}

.category-wrapper #category_descr a:not(.btn) {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.category-wrapper #category_descr img {
  max-width: 100%;
  height: auto;
}

.category-wrapper #myTab {
  margin: 0 0 28px;
  padding: 0 0 14px;
  border-bottom: 1px solid rgba(2, 68, 150, 0.2);
}

.category-wrapper #myTab a .btn-default,
.category-wrapper .li-item .features-box a.btn-default {
  border-color: var(--color-primary);
  border-radius: 4px;
  color: var(--color-primary);
  background-color: var(--color-white);
  letter-spacing: var(--letter-spacing-regular);
  transition:
    color 0.25s ease,
    background-color 0.25s ease;
}

.category-wrapper #myTab a .btn-default:hover,
.category-wrapper #myTab a .btn-default:focus,
.category-wrapper .li-item .features-box a.btn-default:hover,
.category-wrapper .li-item .features-box a.btn-default:focus {
  color: var(--color-white);
  background-color: var(--color-primary);
}

.category-wrapper .thumbnail-list {
  margin-bottom: 0;
}

.category-wrapper .thumbnail-list .li-item {
  margin-bottom: 30px;
}

.category-wrapper .features-box {
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(2, 68, 150, 0.12);
  border-radius: 10px;
  background-color: var(--color-white);
  box-shadow: 0 6px 20px rgba(2, 68, 150, 0.06);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.category-wrapper .features-box > a > h4,
.category-wrapper .features-box > .view > .mask > h2 {
  padding: 0 18px;
  color: var(--color-primary);
  font-family: var(--font-family-heading);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
}

.category-wrapper .features-box > p.prd_info,
.category-wrapper .features-box > .view > .mask > p.prd_info {
  padding: 0 18px 18px;
  color: var(--color-text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

.category-wrapper .features-box > p.prd_info,
.category-wrapper .features-box > .product-price {
  display: none;
}

/* Product list */
.popular_products{
  width: 100%;
}

.popular_products .thumbnail-list {
  display: flex;
  flex-wrap: wrap;
  margin: -12px;
  padding: 0;
  list-style: none;
}

.popular_products .thumbnail-list > li {
  float: none;
  width: 33.333333%;
  margin: 0;
  padding: 12px;
}

.popular_products .li-item,
.popular_products .features-box {
  height: 100%;
  padding: 0;
}

.popular_products .li-item {
  overflow: hidden;
  border: 1px solid rgba(2, 68, 150, 0.14);
  border-radius: 10px;
  background-color: var(--color-white);
  box-shadow: 0 6px 20px rgba(2, 68, 150, 0.08);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.popular_products .features-box {
  background: transparent;
  box-shadow: none;
}

.popular_products .li-item:hover {
  border-color: rgba(2, 68, 150, 0.32);
  box-shadow: 0 14px 30px rgba(2, 68, 150, 0.16);
  transform: translateY(-5px);
}

.popular_products .view,
.popular_products .imgBox,
.popular_products .imgBox-inner {
  overflow: hidden;
}

.popular_products .imgBox-fit {
  padding-top: 66.666667%;
  background-color: var(--color-surface-soft);
}

.popular_products .image-pic {
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  max-height: none;
  object-fit: cover;
  transform: none;
  transition: transform 0.45s ease;
}

.popular_products .li-item:hover .image-pic {
  transform: scale(1.06);
}

.popular_products .features-box > a {
  display: block;
  color: var(--color-primary);
  text-decoration: none;
}

.popular_products .features-box a h4 {
  min-height: 3em;
  margin: 0;
  margin-bottom: 8px;
  padding: 18px 18px 0;
  color: var(--color-primary);
  font-family: var(--font-family-heading);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  transition: color 0.25s ease;
  white-space: normal;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  display: -webkit-box;
  overflow: hidden;
}

.popular_products .features-box a h4:hover,
.popular_products .features-box a h4:focus {
  color: var(--color-brand-deep);
}

.rwd-faq-recruitment__question:focus,
.rwd-faq-recruitment__question:active {
  outline: 0;
  box-shadow: none;
}

.popular_products .features-box .prd_info {
  min-height: 0;
  margin: 0;
  padding: 0 18px;
  color: var(--color-text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

.popular_products .btn_detailed {
  display: inline-block;
  margin: 18px;
  padding: 9px 16px;
  border: 1px solid var(--color-primary);
  border-radius: 4px;
  color: var(--color-primary);
  background-color: var(--color-white);
  font-size: 14px;
  letter-spacing: var(--letter-spacing-regular);
  text-decoration: none;
  transition:
    color 0.25s ease,
    background-color 0.25s ease;
}

.popular_products .btn_detailed:hover,
.popular_products .btn_detailed:focus {
  border-color: var(--color-primary);
  color: var(--color-white);
  background-color: var(--color-primary);
  text-decoration: none;
}

@media (max-width: 991px) {
  .popular_products .thumbnail-list > li {
    width: 50%;
  }
}

@media (max-width: 544px) {
  .popular_products.span7 {
    float: none;
    width: 100%;
    margin: 0;
  }

  .popular_products > .row {
    margin-right: 0;
    margin-left: 0;
  }

  .popular_products > .row > .col-sm-12,
  .popular_products > .row > .col-md-12 {
    width: 100%;
    padding-right: 0;
    padding-left: 0;
  }

  .popular_products .thumbnail-list {
    margin: -8px;
    width: 100%;
  }

  .popular_products .thumbnail-list > li {
    width: 100%;
    padding: 8px;
  }
}

.category-wrapper .pagination > li > a,
.category-wrapper .pagination > li > span {
  color: var(--color-primary);
}

.category-wrapper .pagination > .active > a,
.category-wrapper .pagination > .active > a:hover,
.category-wrapper .pagination > .active > a:focus,
.category-wrapper .pagination > li > a:hover,
.category-wrapper .pagination > li > a:focus {
  border-color: var(--color-primary);
  color: var(--color-white);
  background-color: var(--color-primary);
}

.category-wrapper .col-sm-9{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: baseline;
}

@media (max-width: 1199px) {
  .category-wrapper {
    padding-top: 54px;
    padding-bottom: 72px;
  }
}

@media (max-width: 767px) {
  .category-wrapper {
    padding-top: 38px;
    padding-bottom: 56px;
  }

  .category-wrapper > .container {
    width: calc(100% - 30px);
  }

  .category-wrapper .breadcrumb {
    margin-bottom: 24px;
    padding-bottom: 13px;
    font-size: 14px;
    line-height: 1.7;
  }

  .category-wrapper #category_descr:not(:empty) {
    padding: 24px 20px;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.8;
  }
}

/*------------------------------*/
/*          $NewsPage           */
/*------------------------------*/
.news-wrapper {
  min-height: 0;
  padding: 64px 0 92px;
  background-color: var(--color-white);
}

.news-wrapper > .container {
  width: calc(100% - 30px);
  max-width: 1280px;
}

.news-wrapper aside {
  margin-bottom: 30px;
}

.news-wrapper .aside-title {
  margin: 0;
  padding: 17px 20px;
  border-radius: 10px 10px 0 0;
  color: var(--color-white);
  background-color: var(--color-primary);
  font-family: var(--font-family-heading);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: var(--letter-spacing-regular);
  line-height: 1.35;
}

.news-wrapper aside > br {
  display: none;
}

.news-wrapper .NEWS_type {
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(2, 68, 150, 0.14);
  border-top: 0;
  border-radius: 0 0 10px 10px;
  background-color: var(--color-white);
  box-shadow: 0 8px 24px rgba(2, 68, 150, 0.08);
}

.news-wrapper .NEWS_type li {
  margin: 0;
}

.news-wrapper .NEWS_type li + li {
  border-top: 1px solid rgba(2, 68, 150, 0.12);
}

.news-wrapper .NEWS_type li img {
  display: none;
}

.news-wrapper .NEWS_type li a {
  position: relative;
  display: block;
  padding: 14px 66px 14px 20px;
  color: var(--color-text-primary);
  background-color: var(--color-white);
  font-family: var(--font-family-body);
  font-size: 16px;
  letter-spacing: var(--letter-spacing-regular);
  line-height: 1.55;
  text-decoration: none;
  transition:
    color 0.25s ease,
    background-color 0.25s ease,
    padding-left 0.25s ease;
}

.news-wrapper .NEWS_type li a::after {
  position: absolute;
  top: 50%;
  right: 42px;
  color: var(--color-primary);
  content: "\f105";
  font-family: FontAwesome;
  font-size: 14px;
  transform: translateY(-50%);
}

.news-wrapper .NEWS_type li a:hover,
.news-wrapper .NEWS_type li a:focus,
.news-wrapper .NEWS_type li a.topic {
  padding-left: 24px;
  color: var(--color-primary);
  background-color: var(--color-surface-soft);
}

.news-wrapper .NEWS_type li .badge {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: 16px;
  min-width: 24px;
  padding: 4px 7px;
  border-radius: 99px;
  color: var(--color-primary);
  background-color: var(--color-surface-accent);
  font-family: var(--font-family-body);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  transform: translateY(-50%);
}

.news-wrapper .newsbar {
  margin: 0;
  padding: 4px 0 4px 16px;
  border-left: 4px solid var(--color-primary);
  border-radius: 0;
  color: var(--color-primary);
  background-color: transparent;
  font-family: var(--font-family-heading);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: var(--letter-spacing-heading);
  line-height: 1.4;
}

.news-wrapper .newsbar .fa-newspaper-o {
  display: none;
}

.news-wrapper #LinkContainer {
  display: block;
  margin: 18px 15px 30px;
  padding: 0 0 16px;
  border-bottom: 1px solid rgba(2, 68, 150, 0.2);
  border-radius: 0;
  background-color: transparent;
  color: var(--color-text-secondary);
  font-size: 15px;
  letter-spacing: var(--letter-spacing-regular);
  line-height: 1.6;
}

.news-wrapper #LinkContainer a {
  color: var(--color-text-secondary);
  text-decoration: none;
}

.news-wrapper #LinkContainer a:hover,
.news-wrapper #LinkContainer a:focus {
  color: var(--color-primary);
}

.news-wrapper #LinkContainer + br {
  display: none;
}

.news-wrapper .newslist {
  display: flex;
  overflow: hidden;
  margin: 0 0 26px;
  border: 1px solid rgba(2, 68, 150, 0.12);
  border-radius: 10px;
  background-color: var(--color-white);
  box-shadow: 0 6px 20px rgba(2, 68, 150, 0.06);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.news-wrapper .newslist:hover {
  box-shadow: 0 12px 30px rgba(2, 68, 150, 0.14);
  transform: translateY(-5px);
}

.news-wrapper .newslist .news_imgBox {
  flex: 0 0 32%;
  align-self: stretch;
  overflow: hidden;
  background-color: var(--color-surface-soft);
}

.news-wrapper .newslist .news_imgBox-inner,
.news-wrapper .newslist .news_imgBox-fit {
  width: 100%;
  height: 100%;
}

.news-wrapper .newslist img.news_pic {
  display: block;
  float: none;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.news-wrapper .newslist:hover img.news_pic {
  transform: scale(1.04);
}

.news-wrapper .newslist .caption {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  padding: 26px 30px 22px;
}

.news-wrapper .newslist .news_title {
  display: -webkit-box;
  margin: 0 0 14px;
  min-height: 3em;
  overflow: hidden;
  color: var(--color-primary);
  font-family: var(--font-family-heading);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: var(--letter-spacing-regular);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-height: 1.5;
}

.news-wrapper .newslist .caption > p:not(.news_info) {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 0 0 14px;
  color: var(--color-text-muted);
  font-size: 14px;
  letter-spacing: var(--letter-spacing-regular);
  line-height: 1.6;
}

.news-wrapper .newslist .news_date,
.news-wrapper .newslist .news_sort,
.news-wrapper .newslist .news_author {
  display: inline-flex;
  align-items: center;
  margin: 0;
}

.news-wrapper .newslist .news_icon01,
.news-wrapper .newslist .news_icon02,
.news-wrapper .newslist .news_icon03 {
  width: 15px;
  height: 15px;
  margin-right: 5px;
  opacity: 0.58;
}

.news-wrapper .newslist .news_info {
  display: -webkit-box;
  margin: 0 0 20px;
  overflow: hidden;
  color: var(--color-text-secondary);
  font-size: 15px;
  letter-spacing: var(--letter-spacing-regular);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  line-height: 1.8;
}

.news-wrapper .newslist .caption > p:last-child {
  display: flex;
  min-height: 36px;
  margin-top: auto;
  margin-bottom: 0;
  align-items: flex-end;
  justify-content: flex-end;
}

.news-wrapper .newslist .news_more {
  float: none;
  padding: 7px 12px;
  border: 1px solid rgba(2, 68, 150, 0.5);
  border-radius: 4px;
  color: var(--color-primary);
  background-color: transparent;
  font-family: var(--font-family-body);
  font-size: 13px;
  letter-spacing: var(--letter-spacing-regular);
  line-height: 1.4;
  opacity: 0.82;
  pointer-events: auto;
  transform: translateY(0);
  transition:
    color 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease,
    opacity 0.25s ease;
}

.news-wrapper .newslist .news_more:hover,
.news-wrapper .newslist .news_more:focus {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background-color: var(--color-surface-soft);
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.news-wrapper h1.news_title {
  margin: 0 15px 24px;
  padding: 0 0 16px;
  border-bottom: 2px solid var(--color-surface-accent);
  color: var(--color-primary);
  font-family: var(--font-family-heading);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: var(--letter-spacing-heading);
  line-height: 1.5;
}

.news-wrapper .pagination {
  margin: 8px 0 0;
}

.news-wrapper .pagination > li > a,
.news-wrapper .pagination > li > span {
  color: var(--color-primary);
}

.news-wrapper .pagination > .active > a,
.news-wrapper .pagination > .active > a:hover,
.news-wrapper .pagination > .active > a:focus,
.news-wrapper .pagination > li > a:hover,
.news-wrapper .pagination > li > a:focus {
  border-color: var(--color-primary);
  color: var(--color-white);
  background-color: var(--color-primary);
}

@media (max-width: 1199px) {
  .news-wrapper {
    padding-top: 54px;
    padding-bottom: 72px;
  }
}

@media (max-width: 767px) {
  .news-wrapper {
    padding-top: 38px;
    padding-bottom: 56px;
  }

  .news-wrapper > .container {
    width: calc(100% - 30px);
  }

  .news-wrapper aside {
    margin-bottom: 28px;
  }

  .news-wrapper .aside-title {
    padding: 14px 16px;
    border-radius: 8px 8px 0 0;
    font-size: 18px;
  }

  .news-wrapper h2.aside-title::after {
    color: var(--color-white);
  }

  .news-wrapper .NEWS_type li a {
    padding: 13px 62px 13px 16px;
    font-size: 15px;
  }

  .news-wrapper .NEWS_type li a::after {
    right: 40px;
  }

  .news-wrapper .NEWS_type li .badge {
    right: 14px;
  }

  .news-wrapper .newsbar {
    padding-left: 13px;
    font-size: 24px;
  }

  .news-wrapper #LinkContainer {
    margin-top: 16px;
    margin-bottom: 24px;
    font-size: 14px;
  }

  .news-wrapper .newslist {
    display: block;
    margin-bottom: 20px;
    border-radius: 8px;
  }

  .news-wrapper .newslist .news_imgBox,
  .news-wrapper .newslist img.news_pic {
    min-height: 0;
  }

  .news-wrapper .newslist .news_imgBox {
    height: auto;
    aspect-ratio: 3 / 2;
  }

  .news-wrapper .newslist .caption {
    padding: 22px 20px 20px;
  }

  .news-wrapper .newslist .news_title {
    font-size: 19px;
  }

  .news-wrapper .newslist .news_info {
    font-size: 14px;
  }

  .news-wrapper h1.news_title {
    margin-right: 15px;
    margin-left: 15px;
    font-size: 25px;
  }
}

/*------------------------------*/
/*    $HomeCompanyCarousel      */
/*------------------------------*/
.home-company-carousel-section {
  position: relative;
  /* Reserve space for navigation buttons at tablet and desktop widths. */
  padding: 86px 48px;
}

/* Leave room for the hover ring inside Owl's clipping area. */
.home-company-carousel .owl-stage-outer {
  margin: -4px;
  padding: 4px;
}

.home-company-carousel .owl-stage {
  display: flex;
}

.home-company-carousel .owl-item {
  display: flex;
}

.home-company-card {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 120px;
  overflow: hidden;
  border-radius: 8px;
  background-color: var(--color-surface-soft);
  box-shadow:
    0 0 0 2px transparent,
    0 0 0 4px transparent;
  cursor: pointer;
  transition: box-shadow 0.25s ease;
}

.home-company-card:hover,
.home-company-card:focus-within {
  box-shadow:
    0 0 0 2px var(--color-white),
    0 0 0 4px var(--color-primary);
}

.home-company-card::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background-color: var(--color-white);
  opacity: 0.2;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.home-company-card:hover::after,
.home-company-card:focus-within::after {
  opacity: 0;
}

/* AD06-AD10 render ordinary images with ac06-ac10 classes. */
.home-company-card img {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.35s ease;
}

.home-company-card:hover img,
.home-company-card:focus-within img {
  transform: scale(1.04);
}

.home-company-carousel .owl-nav {
  margin: 0;
}

.home-company-carousel .owl-nav button.owl-prev,
.home-company-carousel .owl-nav button.owl-next {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 50%;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--color-white);
  background-color: var(--color-primary);
  font-size: 25px;
  line-height: 36px;
  text-align: center;
  transform: translateY(-50%);
  transition: opacity 0.2s ease, box-shadow 0.2s ease;
}

.home-company-carousel .owl-nav button.owl-prev {
  left: -48px;
}

.home-company-carousel .owl-nav button.owl-next {
  right: -48px;
}

.home-company-carousel .owl-nav button.owl-prev:focus,
.home-company-carousel .owl-nav button.owl-prev:hover,
.home-company-carousel .owl-nav button.owl-next:focus,
.home-company-carousel .owl-nav button.owl-next:hover {
  color: var(--color-white);
  background-color: var(--color-primary);
  opacity: 0.82;
  /* Global focus rules suppress outlines; use a visible ring instead. */
  box-shadow:
    0 0 0 2px var(--color-white),
    0 0 0 4px var(--color-primary);
}

@media (min-width: 1200px) {
  .home-main-container {
    width: 1280px;
    max-width: calc(100% - 30px);
  }
}

@media (max-width: 767px) {
  .home-company-carousel-section {
    padding: 50px 42px;
  }

  .home-company-card {
    height: 110px;
  }

  .home-company-carousel .owl-nav button.owl-prev {
    left: -42px;
  }

  .home-company-carousel .owl-nav button.owl-next {
    right: -42px;
  }
}

/*------------------------------*/
/*          $Footer             */
/*------------------------------*/
.footerwrap.rwd-footer-wrap {
  height: auto;
  overflow: hidden;
  padding: 0;
  color: var(--color-white);
  background-color: var(--color-brand-deep);
}

.rwd-footer-row {
  margin-right: 0;
  margin-left: 0;
}

.rwd-footer {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  padding: 42px 0 22px;
  color: var(--color-white);
  background-color: var(--color-brand-deep);
  font-family: var(--font-family-body);
}

.rwd-footer::before,
.rwd-footer::after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  content: "";
}

.rwd-footer::before {
  top: -4%;
  right: -4%;
  bottom: -4%;
  left: -4%;
  background-image: url("../../images/footer-bg-image.png");
  background-position: left top;
  background-repeat: no-repeat;
  background-size: cover;
}

.rwd-footer::after {
  background: var(--gradient-primary);
}

.rwd-footer__container {
  position: relative;
  z-index: 1;
  width: 92%;
  max-width: none;
  padding-right: 0;
  padding-left: 0;
}

.rwd-footer__main {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 40px;
}

.rwd-footer__information {
  flex: 0 0 28%;
  min-width: 280px;
  text-align: left;
}

.rwd-footer__navigation {
  position: absolute;
  top: 8px;
  left: 0;
  width: 100%;
}

.rwd-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rwd-footer .rwd-footer__links a {
  display: block;
  padding: 6px 10px;
  border-radius: 3px;
  color: var(--color-white);
  background-color: transparent;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: var(--letter-spacing-heading);
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.rwd-footer .rwd-footer__links a:hover,
.rwd-footer .rwd-footer__links a:focus-visible {
  color: var(--color-white);
  background-color: rgba(255, 255, 255, 0.15);
}

.rwd-footer__logo {
  display: block;
  width: 200px;
  max-width: 100%;
  height: auto;
}

.rwd-footer__contact {
  margin: 24px 0 0;
  color: inherit;
  font-style: normal;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: var(--letter-spacing-heading);
}

.rwd-footer__contact p {
  margin: 0;
}

.rwd-footer__contact p + p {
  margin-top: 6px;
}

.rwd-footer__contact-item + .rwd-footer__contact-item {
  margin-left: 24px;
}

.rwd-footer__copyright {
  margin: 34px 0 0;
  color: inherit;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: var(--letter-spacing-heading);
}

.rwd-footer__copyright small {
  font-size: inherit;
}

@media (max-width: 1199px) {
  .rwd-footer__main {
    flex-direction: column;
    gap: 24px;
  }

  .rwd-footer__information {
    flex: none;
    min-width: 0;
    width: 100%;
  }

  .rwd-footer__navigation {
    position: static;
  }
}

@media (max-width: 767px) {
  .rwd-footer {
    min-height: 0;
    padding-top: 36px;
    padding-bottom: 28px;
  }

  .rwd-footer__container {
    width: 100%;
    padding-right: 20px;
    padding-left: 20px;
  }

  .rwd-footer__logo {
    width: 170px;
  }

  .rwd-footer__links {
    gap: 8px;
  }

  .rwd-footer__contact {
    margin-top: 20px;
    font-size: 13px;
  }

  .rwd-footer__contact-item {
    display: block;
  }

  .rwd-footer__contact-item + .rwd-footer__contact-item {
    margin-top: 2px;
    margin-left: 0;
  }

  .rwd-footer__copyright {
    margin-top: 30px;
    font-size: 12px;
  }
}

/*------------------------------*/
/*          $GoToTop            */
/*------------------------------*/
#gotop.gotop.rwd-gotop {
  position: fixed;
  z-index: 9999;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--color-white-50);
  border-radius: 10px;
  color: var(--color-white);
  background-color: var(--color-primary);
  box-shadow: 0 8px 24px rgba(0, 42, 93, 0.28);
  cursor: pointer;
  opacity: 0.92;
  text-align: center;
  transition:
    background-color 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease,
    transform 0.2s ease;
}

#gotop.gotop.rwd-gotop span.fa {
  display: block;
  margin: 0;
  padding: 0;
  font-size: 24px;
  line-height: 46px;
  text-align: center;
}

#gotop.gotop.rwd-gotop:focus,
#gotop.gotop.rwd-gotop:hover {
  color: var(--color-white);
  background-color: var(--color-brand-deep);
  box-shadow: 0 12px 28px rgba(0, 42, 93, 0.38);
  opacity: 1;
  outline: 2px solid var(--color-white);
  outline-offset: 2px;
  transform: translateY(-3px);
}

@media (max-width: 767px) {
  #gotop.gotop.rwd-gotop {
    right: 14px;
    bottom: 14px;
    width: 44px;
    height: 44px;
  }

  #gotop.gotop.rwd-gotop span.fa {
    font-size: 22px;
    line-height: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #gotop.gotop.rwd-gotop {
    transition: none;
  }

  #gotop.gotop.rwd-gotop:focus,
  #gotop.gotop.rwd-gotop:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-company-card,
  .home-company-card::after,
  .home-company-card img,
  .home-company-carousel .owl-nav button.owl-prev,
  .home-company-carousel .owl-nav button.owl-next {
    transition: none;
  }

  .home-company-card:hover img,
  .home-company-card:focus-within img {
    transform: none;
  }
}

/*------------------------------*/
/*       $HomeNewsSection       */
/*------------------------------*/
.home-news-section {
  display: flex;
  flex-wrap: wrap;
  padding-top: 64px;
  padding-bottom: 80px;
}

.home-news-column {
  display: flex;
  flex-direction: column;
}

.news-header {
  min-height: 78px;
  margin-bottom: 22px;
  color: var(--color-primary);
  text-align: center;
}

.news-header h3 {
  margin: 0;
  color: inherit;
  font-family: var(--font-family-heading);
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: var(--letter-spacing-heading);
}

.news-header__subtitle {
  display: block;
  color: inherit;
  font-family: var(--font-family-heading);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: var(--letter-spacing-heading);
}

.home-news-section [id="rwdnews_list"] {
  flex: 1 1 auto;
  min-height: 310px;
  padding: 24px 26px;
}

.home-news-column--latest [id="rwdnews_list"] {
  background-color: var(--color-surface-muted);
}

.home-news-column--training [id="rwdnews_list"] {
  background-color: var(--color-surface-soft);
}

.home-news-column--legal [id="rwdnews_list"] {
  background-color: var(--color-surface-soft);
}

.home-news-section [id="rwdnews_list"] > ul {
  margin: 0;
  padding: 0;
}

.home-news-section .rwdnewsli {
  min-height: 62px;
  margin: 0;
  padding: 17px 4px;
  border: 0;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.home-news-section [id="rwdnews_list"] > ul:not(:last-of-type) > li.rwdnewsli {
  border-bottom: 1px solid rgba(151, 151, 151, 0.6);
}

.home-news-section .rwdnewsli:focus-within,
.home-news-section .rwdnewsli:hover {
  background-color: rgba(255, 255, 255, 0.45);
}

.home-news-section .rwdnewsli .pic,
.home-news-section .rwdnewsli .desc_cls,
.home-news-section .rwdnewsli .newsDateAll,
.home-news-section .rwdnewsli .ctyCls1,
.home-news-section .rwdnewsli h4 > p {
  display: none;
}

.home-news-section .rwdnewsli .newscontent {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
}

.home-news-section .rwdnewsli h4 {
  order: 1;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding-right: 12px;
  font-family: var(--font-family-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-primary);
  letter-spacing: var(--letter-spacing-regular);
}

.newsDate {
  font-size: 14px;
  font-family: var(--font-family-body);
  font-weight: 600;
  color: var(--color-text-secondary);
}

.home-news-section .rwdnewsli .HeadLineMoveA {
  display: block;
  overflow: hidden;
  color: var(--color-primary);
  font-weight: 500;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: wrap;
  transition: color 0.2s ease;
}

.home-news-section .rwdnewsli .HeadLineMoveA:focus,
.home-news-section .rwdnewsli .HeadLineMoveA:hover {
  color: var(--color-brand-deep);
  text-decoration: underline;
}

.home-news-section .rwdnewsli .ctydate {
  order: 2;
  flex: 0 0 auto;
  color: var(--color-text-muted);
  font-family: var(--font-family-body);
  font-size: 11px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.ctydate .card-category {
  display: none;
}

.home-news-more {
  display: table;
  margin: 28px auto 28px;
  padding: 10px 24px;
  color: var(--color-white);
  background-color: var(--color-primary);
  font-family: var(--font-family-body);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.14em;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.home-news-more:focus,
.home-news-more:hover {
  color: var(--color-white);
  background-color: var(--color-brand-deep);
  text-decoration: none;
  transform: translateY(-2px);
}

@media (max-width: 991px) {
  .home-news-section [id="rwdnews_list"] {
    padding-right: 18px;
    padding-left: 18px;
  }

  .home-news-section .rwdnewsli .newscontent {
    display: block;
  }

  .home-news-section .rwdnewsli h4 {
    padding-right: 0;
  }

  .home-news-section .rwdnewsli .ctydate {
    display: block;
    margin-top: 4px;
    text-align: right;
  }
}

@media (max-width: 767px) {
  .home-news-section {
    padding-top: 36px;
    padding-bottom: 64px;
  }

  .home-news-column + .home-news-column {
    margin-top: 56px;
  }

  .news-header {
    min-height: 0;
    margin-bottom: 18px;
  }

  .home-news-section [id="rwdnews_list"] {
    min-height: 0;
  }

  .home-news-section .rwdnewsli .newscontent {
    display: flex;
  }

  .home-news-section .rwdnewsli h4 {
    padding-right: 10px;
  }

  .home-news-section .rwdnewsli .ctydate {
    display: inline;
    margin-top: 0;
    text-align: left;
  }
}

/*------------------------------*/
/*    $HomeInstitutions         */
/*------------------------------*/
.home-institutions-row {
  margin-right: 0;
  margin-left: 0;
}

.home-institutions-section {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 480px;
  overflow: hidden;
  padding: 76px 0 96px;
  background-color: var(--color-primary);
  --home-institutions-bg-y: 0px;
}

.home-institutions-section::after {
  position: absolute;
  z-index: 0;
  top: -14%;
  right: -4%;
  bottom: -14%;
  left: -4%;
  background-image: url("../../images/section-bg.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  content: "";
  pointer-events: none;
  transform: translate3d(0, var(--home-institutions-bg-y), 0) scale(1.08);
  will-change: transform;
}

.home-institutions-section::before {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: var(--color-primary-70);
  content: "";
}

.home-institutions-container {
  position: relative;
  z-index: 2;
}

.home-institutions-header {
  margin-bottom: 54px;
  color: var(--color-white);
  text-align: center;
}

.home-institutions-header h2 {
  margin: 0;
  color: inherit;
  font-family: var(--font-family-heading);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: var(--letter-spacing-heading);
}

.home-institutions-header__subtitle {
  display: block;
  color: inherit;
  font-family: var(--font-family-heading);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: var(--letter-spacing-heading);
}

.home-institutions-header__line {
  display: block;
  width: 86px;
  height: 1px;
  margin: 14px auto 0;
  background-color: var(--color-white-50);
}

.home-institutions-carousel .owl-stage {
  display: flex;
}

.home-institutions-carousel .owl-item {
  display: flex;
}

.home-institution-card {
  display: flex;
  width: 100%;
  height: 122px;
  overflow: hidden;
  padding: 12px 18px;
  border-radius: 10px;
  background-color: var(--color-white);
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition:
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.home-institution-card img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.25s ease;
}

.home-institution-card:focus,
.home-institution-card:hover {
  box-shadow:
    inset 0 0 0 3px var(--color-white-50),
    0 10px 24px rgba(0, 42, 93, 0.28);
  text-decoration: none;
}

.home-institution-card:focus img,
.home-institution-card:hover img {
  transform: scale(1.1);
}

.home-institutions-carousel .owl-nav {
  margin: 0;
}

.home-institutions-carousel .owl-nav button.owl-prev,
.home-institutions-carousel .owl-nav button.owl-next {
  position: absolute;
  z-index: 2;
  top: 50%;
  width: 42px;
  height: 42px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--color-white);
  background-color: transparent;
  font-size: 34px;
  line-height: 42px;
  text-align: center;
  transform: translateY(-50%);
  transition: opacity 0.2s ease;
}

.home-institutions-carousel .owl-nav button.owl-prev {
  left: -52px;
}

.home-institutions-carousel .owl-nav button.owl-next {
  right: -52px;
}

.home-institutions-carousel .owl-nav button.owl-prev:focus,
.home-institutions-carousel .owl-nav button.owl-prev:hover,
.home-institutions-carousel .owl-nav button.owl-next:focus,
.home-institutions-carousel .owl-nav button.owl-next:hover {
  color: var(--color-white);
  background-color: transparent;
  opacity: 0.7;
}

@media (min-width: 1200px) {
  .home-institutions-container {
    width: 1280px;
    max-width: calc(100% - 130px);
  }
}

@media (max-width: 767px) {
  .home-institutions-section {
    min-height: 400px;
    padding-top: 54px;
    padding-bottom: 68px;
  }

  .home-institutions-header {
    margin-bottom: 38px;
  }

  .home-institutions-carousel {
    width: calc(100% - 84px);
    margin-right: auto;
    margin-left: auto;
  }

  .home-institution-card {
    height: 112px;
    padding: 10px 14px;
  }

  .home-institutions-carousel .owl-nav button.owl-prev {
    left: -42px;
  }

  .home-institutions-carousel .owl-nav button.owl-next {
    right: -42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-institutions-section::after {
    will-change: auto;
  }

  .home-institution-card,
  .home-institution-card img {
    transition: none;
  }

  .home-institution-card:focus,
  .home-institution-card:hover,
  .home-institution-card:focus img,
  .home-institution-card:hover img {
    transform: none;
  }
}

/*------------------------------*/
/*       $HomeServices          */
/*------------------------------*/
.home-services-row {
  margin-right: 0;
  margin-left: 0;
}

.home-services-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 86px 0 96px;
  background-color: var(--color-white);
}

.home-services-container {
  position: relative;
  z-index: 1;
}

.home-services-header {
  margin-bottom: 44px;
  color: var(--color-primary);
  text-align: center;
}

.home-services-header h2 {
  margin: 0;
  color: inherit;
  font-family: var(--font-family-heading);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: var(--letter-spacing-heading);
}

.home-services-header__subtitle {
  display: block;
  color: inherit;
  font-family: var(--font-family-heading);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: var(--letter-spacing-heading);
}

.home-services-header__line {
  display: block;
  width: 86px;
  height: 1px;
  margin: 14px auto 0;
  background-color: var(--color-primary);
  opacity: 0.5;
}

.home-services-grid-wrap {
  position: relative;
}

.home-services-grid-wrap::before {
  position: absolute;
  z-index: 0;
  top: 50%;
  bottom: -96px;
  left: 50%;
  width: 100vw;
  background-color: var(--color-surface-accent);
  content: "";
  transform: translateX(-50%);
}

.home-services-grid {
  position: relative;
  z-index: 1;
}

.home-service-card {
  display: block;
  overflow: hidden;
  border-radius: 10px;
  background-color: var(--color-white);
  box-shadow: 0 12px 28px rgba(0, 42, 93, 0);
  text-decoration: none;
  transition:
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.home-service-card img {
  display: block;
  width: 100%;
  height: auto;
}

.home-service-card:focus,
.home-service-card:hover {
  box-shadow: 0 18px 34px rgba(0, 42, 93, 0.22);
  text-decoration: none;
  transform: translateY(-8px);
}

.home-service-card:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

@media (min-width: 1200px) {
  .home-services-container {
    width: 1280px;
    max-width: calc(100% - 30px);
  }
}

@media (max-width: 767px) {
  .home-services-section {
    padding-top: 54px;
    padding-bottom: 68px;
  }

  .home-services-header {
    margin-bottom: 32px;
  }

  .home-services-grid-wrap::before {
    top: calc((100vw - 30px) / 2);
    bottom: -68px;
  }

  .home-service-column + .home-service-column {
    margin-top: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-service-card {
    transition: none;
  }

  .home-service-card:focus,
  .home-service-card:hover {
    transform: none;
  }
}

/*------------------------------*/
/*          $Navbar             */
/*------------------------------*/
.rwd-navbar {
  position: relative;
  z-index: 1000;
  min-height: 68px;
  margin: 0;
  border: 0;
  border-radius: 0;
  background-color: var(--color-white);
  font-family: var(--font-family-body);
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1);
}

.rwd-navbar .rwd-navbar__container {
  width: 92%;
  max-width: none;
  padding-right: 0;
  padding-left: 0;
}

.rwd-navbar__search-container {
  width: 92%;
  max-width: none;
}

.rwd-navbar__brand {
  float: left;
  display: flex;
  width: 376px;
  max-width: 30vw;
  height: 68px;
  align-items: center;
  margin-top: 0;
  padding: 0;
}

.rwd-navbar__brand a {
  display: block;
}

.rwd-navbar__brand img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 56px;
}

.rwd-navbar__collapse {
  padding-right: 0;
  padding-left: 0;
}

.rwd-navbar__menu {
  margin-top: 0;
  margin-bottom: 0;
}

.rwd-navbar .rwd-navbar__menu > .rwd-navbar__item > a {
  padding: 12px 11px;
  color: var(--color-text-primary);
  background-color: transparent;
  font-family: var(--font-family-body);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: var(--letter-spacing-regular);
  line-height: 20px;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.rwd-navbar .rwd-navbar__menu > .rwd-navbar__item--active > a,
.rwd-navbar .rwd-navbar__menu > .rwd-navbar__item--active > a:focus,
.rwd-navbar .rwd-navbar__menu > .rwd-navbar__item--active > a:hover,
.rwd-navbar .rwd-navbar__menu > .rwd-navbar__item > a:focus,
.rwd-navbar .rwd-navbar__menu > .rwd-navbar__item > a:hover {
  color: var(--color-primary);
  background-color: transparent;
}

.rwd-navbar .rwd-navbar__menu > .rwd-navbar__item > a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.rwd-navbar .rwd-navbar__menu > .rwd-navbar__item > a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.rwd-navbar .rwd-navbar__menu > .rwd-navbar__item--active > a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-primary);
  transform: scaleX(1);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.rwd-navbar .rwd-navbar__menu > .rwd-navbar__item--active > a {
  font-weight: 500;
}

.rwd-navbar .rwd-navbar__search-item > a {
  padding-right: 0;
  padding-left: 16px;
  color: var(--color-text-secondary);
  font-size: 16px;
}

.rwd-navbar__toggle {
  margin-right: 0;
  border: 0;
  color: var(--color-primary);
  font-size: 20px;
}

.rwd-navbar .rwd-navbar__toggle:focus,
.rwd-navbar .rwd-navbar__toggle:hover {
  background-color: var(--color-surface-soft);
}

.rwd-navbar__top-search {
  background-color: var(--color-brand-deep);
}

.rwd-navbar__top-search input.form-control,
.rwd-navbar__top-search .input-group-addon {
  color: var(--color-white);
}

@media (min-width: 768px) {
  .rwd-navbar__collapse {
    height: 68px !important;
  }

  .rwd-navbar__menu {
    display: flex;
    height: 68px;
    align-items: center;
  }
}

@media (max-width: 767px) {
  .rwd-navbar,
  .rwd-navbar__brand {
    min-height: 64px;
  }

  .rwd-navbar .rwd-navbar__container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
  }

  .rwd-navbar__header {
    margin-right: 0;
    margin-left: 0;
  }

  .rwd-navbar__brand {
    width: calc(100% - 112px);
    max-width: 330px;
    height: 64px;
  }

  .rwd-navbar__brand--mobile.visible-xs {
    display: flex !important;
  }

  .rwd-navbar__brand img {
    max-width: 100%;
    max-height: 42px;
  }

  .rwd-navbar__toggle,
  .rwd-navbar__mobile-search {
    width: 40px;
    height: 40px;
    margin-top: 12px;
    margin-bottom: 12px;
  }

  .rwd-navbar__toggle {
    padding: 0;
  }

  .rwd-navbar__mobile-search {
    margin-right: 8px;
    padding: 0;
  }

  .rwd-navbar__mobile-actions,
  .rwd-navbar__search-trigger {
    width: 100%;
    height: 100%;
  }

  .rwd-navbar__mobile-search a {
    display: flex;
    width: 100%;
    height: 100%;
    padding: 0;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
    font-size: 16px;
  }

  .rwd-navbar__collapse {
    margin-right: -15px;
    margin-left: -15px;
    padding-right: 15px;
    padding-left: 15px;
    border-top-color: var(--color-surface-muted);
    box-shadow: none;
  }

  .rwd-navbar__menu {
    margin-right: 0;
    margin-left: 0;
    padding: 8px 0;
  }

  .rwd-navbar .rwd-navbar__menu > .rwd-navbar__item > a,
  .rwd-navbar .rwd-navbar__search-item > a {
    padding: 11px 0;
  }
}
