/* 
  ********** Global Style **********
*/

/* Break Line */
.break-line-1 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}
.break-line-2 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.break-line-3 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.break-line-4 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}
.break-line-5 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
}

/* Min Height */
.min-height-sm {
  min-height: 300px;
}
.min-height-md {
  min-height: 500px;
}
.min-height-lg {
  min-height: 800px;
}

/* Min Height */
.min-height-100vh {
  min-height: 100vh;
}
.min-height-90vh {
  min-height: calc(100vh - 10rem);
}

/* Background Color Blur */
.blur {
  backdrop-filter: blur(5px);
}

/* Background with image */
.bg-graphic {
  background: rgb(255,255,255);
  background-image: url('../images/graphic/bg-graphic.png'), linear-gradient(90deg, rgba(248,248,248,1) 0%, rgba(255,255,255,1) 100%);
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  background-size: cover;
}
.bg-graphic-02 {
  background: rgb(255,255,255);
  background-image: url('../images/graphic/bg-graphic-02.png'), linear-gradient(90deg, rgba(248,248,248,1) 0%, rgba(255,255,255,1) 100%);
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  background-size: cover;
}

/* Font Size */
.fs-7 {
  font-size: 0.8rem !important;
}

/* Border */
@media (max-width: 576px) {
  .border-start-sm {
    border-left: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color);
  }
  .border-end-sm {
    border-right: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color);
  }
  .border-top-sm {
    border-top: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color);
  }
  .border-bottom-sm {
    border-bottom: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color);
  }
}
@media only screen and (min-width: 577px) and (max-width: 992px) {
  .border-start-md {
    border-left: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color);
  }
  .border-end-md {
    border-right: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color);
  }
  .border-top-md {
    border-top: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color);
  }
  .border-bottom-md {
    border-bottom: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color);
  }
}
@media only screen and (min-width: 993px) and (max-width: 1200px) {
  .border-start-lg {
    border-left: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color);
  }
  .border-end-lg {
    border-right: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color);
  }
  .border-top-lg {
    border-top: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color);
  }
  .border-bottom-lg {
    border-bottom: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color);
  }
}
@media (min-width: 1201px) {
  .border-start-xl {
    border-left: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color);
  }
  .border-end-xl {
    border-right: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color);
  }
  .border-top-xl {
    border-top: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color);
  }
  .border-bottom-xl {
    border-bottom: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color);
  }
}

/* Alert */
.alert-remind {
  --bs-alert-color: #FF7600;
  --bs-alert-bg: #FFEEE0;
  --bs-alert-border-color: #FF7600;
  --bs-alert-link-color: #FF7600;
}

/* Text Color */
.text-remind {
  --bs-text-opacity: 1;
  color: rgba(255, 118, 0, var(--bs-text-opacity)) !important;
}
.justify-items-center {
  justify-items: center;
}

/* 
  ********** Specification **********
*/

/* Page Control */
.page-ctrl {
  min-height: calc(100vh - 131px);
  margin-top: 96px;
  padding: 3rem 0;
}
@media (max-width: 512px) {
  .page-ctrl {
    min-height: calc(100vh - 103px);
    margin-top: 68px;
    padding: 1rem 0;
  }
}

/* Control Text Editor */
.ctrl-text-editor .free-text-ctrl img {
  max-width: 100%;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.ctrl-text-editor .vdo-ctrl video {
  max-width: 100%;
  display: block;
  margin: 2rem auto;
}
.ctrl-text-editor .audio-ctrl audio {
  width: 100%;
  max-width: 100%;
  display: block;
  margin: 2rem auto;
  border: 1px solid #ddd;
  border-radius: 50rem;
}
.ctrl-text-editor .pdf-ctrl object,
.ctrl-text-editor .pdf-ctrl iframe {
  width: 100%;
  height: calc(100vh - 196px);
  margin: 2rem auto;
}

/* Dropdown Hover */
.dropdown .dropdown-menu {
  display: none;
}
.dropdown:hover .dropdown-menu {
  display: block;
  margin-top: 0;
}

/* 
  ********** Navbar Toggle **********
*/

/* Navbar Toggle X */
.navbar-toggler {
  position: relative;
  border: none;
  width: 50px;
  height: 50px;
}
.navbar-toggler:focus,
.navbar-toggler:active {
  outline: 0;
  position: relative;
}
.navbar-toggler span {
  display: block;
  background-color: #fff;
  height: 3px;
  width: 25px;
  margin-top: 4px;
  margin-bottom: 4px;
  -webkit-transform: rotate(0deg);
  -moz-transform: rotate(0deg);
  -o-transform: rotate(0deg);
  transform: rotate(0deg);
  position: relative;
  left: 0;
  opacity: 1;
}
.navbar-toggler span:nth-child(1),
.navbar-toggler span:nth-child(3) {
  -webkit-transition: transform .35s ease-in-out;
  -moz-transition: transform .35s ease-in-out;
  -o-transition: transform .35s ease-in-out;
  transition: transform .35s ease-in-out;
}
.navbar-toggler:not(.collapsed) span:nth-child(1) {
  position: absolute;
  left: 11px;
  top: 19px;
  -webkit-transform: rotate(135deg);
  -moz-transform: rotate(135deg);
  -o-transform: rotate(135deg);
  transform: rotate(135deg);
  opacity: 0.9;
}
.navbar-toggler:not(.collapsed) span:nth-child(2) {
  height: 12px;
  visibility: hidden;
  background-color: transparent;
}
.navbar-toggler:not(.collapsed) span:nth-child(3) {
  position: absolute;
  left: 11px;
  top: 19px;
  -webkit-transform: rotate(-135deg);
  -moz-transform: rotate(-135deg);
  -o-transform: rotate(-135deg);
  transform: rotate(-135deg);
  opacity: 0.9;
}
.navbar-toggler:focus {
  text-decoration: none;
  outline: 0;
  box-shadow: none;
}

/* Navbar Overflow */
@media (max-width: 1200px) {
  .navbar-overflow {
    position: fixed;
    width: 100%;
    top: 97px;
    right: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    background-color: #437B58;
  }
}
@media (max-width: 512px) {
  .navbar-overflow {
    top: 69px;
  }
}

/* 
  ********** For e-Commerce **********
*/

/* Mega Menu: Main */
.mega-menu {
  width: 100%;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  background-color: #f8f8f8;
  padding: 1.5rem 0;
  border: 1px solid #dee2e6;
  border-width: 1px 0;
  border-radius: 0;
}
.mega-menu-list:not(:first-child) {
  border: 1px solid #dee2e6 !important;
  border-width: 1px 0 0 0 !important;
}
@media (max-width: 991px) {
  .mega-menu {
    position: absolute;
    top: 0;
    bottom: 0;
    height: calc(100vh - 85px);
    overflow-y: auto;
  }
  .mega-menu-sub {
    border: 1px solid #dee2e6;
    border-width: 1px 0 0 0;
    border-radius: 0;
    padding: 1rem 1rem 0 1rem;
  }
}
@media (min-width: 992px) {
  .mega-menu-main {
    max-height: 350px;
    overflow-x: hidden;
    overflow-y: auto;
    padding-right: 1rem;
  }
  .mega-menu-list .accordion-button::after {
    rotate: -90deg;
  }
  .mega-menu-pos {
    position: absolute;
    left: 27%;
    right: 0;
    top: 0;
    width: 73%;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    background-color: #fff;
    max-height: 350px;
    overflow-x: hidden;
    overflow-y: auto;
  }
  .mega-menu-sub {
    padding: 0.5rem 1rem 0 1rem;
    border-radius: 0.375rem;
  }
}

/* Mega Menu: Button Hamburger X mark */
.btn-hamburger {
  min-width: 40px;
  min-height: 50px;
  position: relative;
}
@media (min-width: 992px) {
  .btn-hamburger span {
    padding: 0 0 0 2rem;
  }
}
.btn-hamburger > div {
  position: absolute;
  top: 45%;
  left: 0;
  width: 25px;
  height: 3px;
  background: #000;
  border-radius: 50px;
  transition: all 0.2s linear;
}
.btn-hamburger .one {
  top: 25%;
}
.btn-hamburger .three {
  top: 65%;
}
.btn-hamburger[aria-expanded="true"] .one {
  top: 45%;
  left: 0;
  transform: rotate(45deg);
}
.btn-hamburger[aria-expanded="true"] .two {
  opacity: 0;
}
.btn-hamburger[aria-expanded="true"] .three {
  top: 45%;
  left: 0;
  transform: rotate(-45deg);
}

/* Favorite Button */
.btn-fav {
  width: auto;
  height: auto;
  cursor: pointer;
  color: #707070
  /* background-color: rgba(0, 0, 0, 0.5);
  padding: 0.35rem 0.5rem;
  margin: 0.25rem;
  border-radius: 50%;
  position: absolute;
  top: 0;
  left: 0; */
}
.btn-fav input[type="checkbox"] {
  display: none;
}
.btn-fav .fa-heart {
  opacity: 0.5;
  color: #707070;
}
.btn-fav input[type="checkbox"]:checked ~ .fa-heart {
  opacity: 1;
  color: #E41020;
}

/* Trash Button */
@media (max-width: 992px) {
  .btn-trash {
    position: absolute;
    top: 0;
    right: 0;
  }
}

/* Radio Button Star rating  */
.star-rating {
  direction: rtl;
  display: inline-flex;
}
.star-rating input {
  display: none;
}
.star-rating label {
  font-size: 1.75em;
  color: #ccc;
  cursor: pointer;
  padding: 1rem 0.1em;
}
.star-rating input:checked ~ label {
  color: #f5b301;
}
.star-rating label:hover,
.star-rating label:hover ~ label {
  color: #f5b301;
}
.star-rating input:checked + label:hover,
.star-rating input:checked + label:hover ~ label,
.star-rating input:checked ~ label:hover,
.star-rating input:checked ~ label:hover ~ label {
  color: #f5b301;
}

/* 
  ********** New new class for this website only **********
*/

/* Fixed Images */
.ratio-fixed-40px {
  width: 40px;
}

/* Doesn't exist */
.doesnt-exist {
  position: absolute;
  top: -120px;
}

/* Search Position */
@media (max-width: 767px) {
  .btn-search {
    position: absolute;
    left: 70px;
  }
}

/* Hot Menu */
.hot-menu {
  margin: 2rem 0 0 0;
}
@media (min-width: 991px) {
  .hot-menu {
    position: relative;
    z-index: 1;
    /*margin-top: -3rem;
     
    left: 50%;
    right: 50%;
    transform: translate(-50%, -30%);
    */
  }
}
/* Hot Menu Overflow */
.content-overflow-ctrl {
  position: relative;
  margin: 1rem 0;
}
@media (max-width: 992px) {
  .content-overflow {
    max-height: 500px;
    overflow: auto;
    padding-bottom: 3rem;
  }
  .content-overflow::before {
    content: "";
    width: 100%;
    height: 30px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1;
    background: #F0F3F7;
    background: linear-gradient(0deg,rgba(240, 243, 247, 0) 0%, rgba(240, 243, 247, 1) 100%);
  }
  .content-overflow::after {
    content: "";
    width: 100%;
    height: 80px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
    background: #F0F3F7;
    background: linear-gradient(0deg, rgba(240, 243, 247, 1) 0%, rgba(240, 243, 247, 0) 100%);
  }
}
/* Filter Overflow */
.filter-overflow {
  min-height: 150px;
  max-height: calc(100vh - 660px);
  overflow: auto;
}
/* Logo Resize */
.logo-resize {
  width: auto;
  height: 80px;
}
@media (max-width: 512px) {
  .logo-resize {
    width: auto;
    height: 40px;
  }
  .logo-resize.for-header-logo-only {
    width: auto;
    height: 52px;
  }
}