html {
  font-size: 16px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 576px) {
  html {
    font-size: 16px;
  }
}

@media (min-width: 768px) {
  html {
    font-size: 17px;
  }
}

@media (min-width: 992px) {
  html {
    font-size: 18px;
  }
  #vc_banner {
    height: 25vh;
  }
  #vc_body {
    min-height: 50vh;
  }
  #vc_home {
    margin-top: 58px;
  }
}

@media (min-width: 1200px) {
  html {
    font-size: 20px;
  }
  .px-lg-10 {
    padding-left: 10rem !important;
    padding-right: 10rem !important;
  }
}

/* 行動版(576px以下) CSS 調整 UL(ID=maintcbvc)*/

#vc_menu > li {
  margin-left: 1rem;
  margin-right: 1rem;
}

#main_relative .dropdown-menu a {
  padding: 0.1rem 0.5rem 0.1rem 0.5rem;
  font-size: 0.8rem;
}

#main_relative .dropdown-menu {
  min-width: 6rem;
}

@media (max-width: 576px) {
  #vc_menu {
    background-color: rgb(189, 24, 29);
  }
  #vc_menu > li > a {
    color: ivory !important;
    border: none;
  }
  #main_relative {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100%;
  }
  #main_relative > a {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  #main_relative .dropdown-menu {
    padding: 0.5rem 0.5rem 0.5rem 0.5rem;
    width: 100%;
    border: none;
    border-radius: 0%;
    background-color: rgb(236, 199, 199);
  }
  #main_relative .dropdown-menu > a {
    padding: 0.5rem 1rem 0.5rem 1rem;
    margin: 0 0.5rem 0 0.5rem;
    width: 90%;
    font-size: 0.9em;
    color: black !important;
  }
  #main_relative .dropdown-menu > a:not(:last-child) {
    border-bottom: 1px solid gray;
  }
  #main_relative.show > a {
    color: #d6c2c9 !important;
  }
}

body {
  font-family: Arial, Verdana, "Heiti TC", "Microsoft JhengHei, 微軟正黑體";
}

#vc_Head {
  background-color: rgb(189, 24, 29);
}

.navbar-brand img {
  width: 240px;
}

.py-1px {
  padding-top: 1px;
  padding-bottom: 1px;
}

.mb-1px {
  margin-bottom: 1px;
}

#vc_banner {
  background-image: url("../source/img/vcbn.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  min-height: 200px;
  opacity: 0.9;
}

#vc_home .card {
  height: 100%;
  text-decoration: none;
}

#vc_home .card:hover {
  height: 100%;
  border: 3px rgb(189, 24, 29) solid !important;
  box-shadow: 2px;
  font-weight: 900;
  color: rgb(189, 24, 29);
  /* background-color: gray; */
}

#vc_home .card-body {
  padding-bottom: 0;
}

#vc_home .card-body h5 {
  margin-bottom: 0;
}

#vc_home .card-footer {
  border: none;
  background-color: white;
  color: inherit;
  font-weight: inherit;
}

#vc_contact [class*="col-"] .card {
  padding-left: 6px;
  padding-right: 6px;
  line-height: 2rem;
}

#vc_footer {
  min-height: 125px;
  background-color: rgb(189, 24, 29);
}

#vc_footer .footer_item {
  font-size: 0.8rem;
  color: ivory;
}

.tel a[href^="tel"] {
  text-decoration: inherit;
  color: inherit;
}

.text-tcbvc {
  color: rgb(189, 24, 29);
}

.border-tcbvc {
  border-color: rgb(189, 24, 29);
}

/* Improved spacing for carousel content */
.carousel-item {
  padding: 0 0.5rem;
}

.carousel-item .container-fluid {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

/* Better breadcrumb spacing */
.carousel-item .breadcrumb {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
}

/* Enhanced card spacing for bordered cards */
.carousel-item .card.border-tcbvc {
  margin: 0.75rem auto;
  padding: 0.75rem;
}

/* Responsive adjustments */
@media (min-width: 768px) {
  .carousel-item {
    padding: 0 1rem;
  }
  
  .carousel-item .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .carousel-item .breadcrumb {
    margin-bottom: 1.25rem;
    padding: 0.875rem 1.25rem;
  }
  
  .carousel-item .card.border-tcbvc {
    margin: 1rem auto;
  }
}

@media (min-width: 992px) {
  .carousel-item {
    padding: 0 1.5rem;
  }
  
  .carousel-item .container-fluid {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  
  .carousel-item .breadcrumb {
    margin-bottom: 1.5rem;
    padding: 1rem 1.5rem;
  }
  
  .carousel-item .card.border-tcbvc {
    margin: 1.25rem auto;
    padding: 1.25rem;
  }
}

.navbar-toggler-tcbs {
  display: inline-block;
  width: 1.5em;
  height: 1.5em;
  vertical-align: middle;
  content: "";
  background: no-repeat center center;
  background-size: 100% 100%;
}

.navbar-light .navbar-toggler-tcbs {
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'><path stroke='rgba(189, 24, 29, 0.5)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='1.3' d='M4 7 L22 23 M22 7 L4 23'/></svg>");
}

.navbar-light .collapsed .navbar-toggler-tcbs {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg'  viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28189, 24, 29, 0.5%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='1.3' d='M4 7 h22 M4 15 h22 M4 23 h22'/%3e%3c/svg%3e");
}
