:root {
  --primary-color: #01304c;
  --secondary-color: #d8c774;
  --white-color: #fff;
  --hover-color: #003080;
  --gray-color: #3e3e3e;
  --black-color: #000;
}

html,body {
  font-family: "Open Sans", sans-serif;
  overflow-x: hidden;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Open Sans", sans-serif;
}
p {
  font-family: "Open Sans", sans-serif;
}
span {
  font-family: "Open Sans", sans-serif;
}

.bg-primary {
  background-color: var(--primary-color) !important;
}
.bg-secondary {
  background-color: var(--secondary-color) !important;
}

.bg-gradient {
  background: #0000 radial-gradient(circle, #efd78c, #cba355) repeat scroll 0 0 !important;
}

.text-primary {
  color: var(--primary-color) !important;
}

.text-secondary,
.active,
.nav-link:hover {
  color: var(--secondary-color) !important;
}

.content-truncate {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Header */
#header {
  max-height: 150px;
}

.nav-item.dropdown:hover .dropdown-menu {
  display: block;
}

#header .dropdown-menu {
  background-image: url("assets/images/bg-menu.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-bottom-left-radius: 0px;
  border-bottom-right-radius: 0px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  min-width: 245px;
}

#header .dropdown-menu .dropdown-item {
  background-color: transparent;
  color: var(--white-color);
  border-bottom: 1px solid #eeeeee24;
  font-size: 0.825rem;
}
#header .dropdown-menu .dropdown-item:hover {
  color: var(--secondary-color);
  border-bottom: 1px solid #eeeeee24;
}

#header .dropdown-menu::after {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  background-color: transparent;
  position: absolute;
  top: -20px;
  width: 100%;
}

.nav-link {
  font-size: 15px;
}

.dropdown-item.expand-menu:before {
  content: "\f101";
  font-family: FontAwesome;
  font-style: normal;
  font-weight: 400;
  text-decoration: inherit;
  color: #4568f6;
  font-size: 13px;
  position: absolute;
  top: 8px;
  right: 8px;
  margin: 0;
  text-align: center;
}

.dropdown-item .dropdown-submenu-items {
  display: none;
  position: absolute;
  top: -4px;
  left: 100%;
  background-color: var(--primary-color);
  list-style: none;
  padding: 0;
  margin: 0;
  min-width: 230px;
}

.dropdown-item:hover .dropdown-submenu-items {
  display: block;
}
/* Main */
#main {
  margin-top: 94px;
  background-image: url("assets/images/bottom-bg.png");
  background-size: contain;
  background-position: center;
  width: 100%;
}

.icon-img {
  width: 60px;
  height: auto;
}

.text-container {
  text-align: justify;
}

.title:after {
  content: "";
  width: 60px;
  height: 2px;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  margin: 0 auto;
  background-color: #0c336c;
}

.info-2 {
  padding: 50px 0;
  background: #ddeaf7 url("/assets/images/home-bg.png") center center;
  background-size: cover;
  background-blend-mode: soft-light;
}

/* Section: News */
#news-section {
  opacity: 0;
  transform: translateY(50px);
  transition: all 1s ease-in-out;
}

#news-section.animate {
  opacity: 1;
  transform: translateY(0);
}

#news-section .card {
  transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

#news-section .card:hover {
  background-color: var(--primary-color);
  color: var(--white-color);
}

#news-section .card:hover .card-title,
#news-section .card:hover .card-text {
  color: var(--white-color) !important;
}
/* Section: Projects */
.featured-section {
  background: url("assets/images/bg-menu.png") no-repeat center center/cover;
}

.card-title {
  font-size: 1.2rem;
  color: #003b5c;
}

.carousel-inner img {
  max-height: 250px;
  object-fit: cover;
  border-radius: 5px;
}

.custom-carousel-btn {
  background-color: gray !important;
}

.custom-prev,
.custom-next {
  position: absolute;
  top: -18%;
  right: 0px !important;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border: none;
  background-color: white;
  cursor: pointer;
  opacity: 1;
}

.custom-prev {
  left: 94%;
}

.custom-next {
  right: -50px;
}

#mobileCarousel .custom-prev {
  left: 85%;
}

.custom-prev:hover,
.custom-next:hover {
  background-color: #e0e0e0;
}

.timg {
  position: relative;
  overflow: hidden;
}

.timg::before {
  position: absolute;
  top: 0;
  left: -75%;
  z-index: 2;
  display: block;
  content: "";
  width: 50%;
  height: 100%;
  background: -webkit-linear-gradient(
    left,
    rgba(255, 255, 255, 0) 0,
    rgba(255, 255, 255, 0.3) 100%
  );
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0,
    rgba(255, 255, 255, 0.3) 100%
  );
  -webkit-transform: skewX(-25deg);
  transform: skewX(-25deg);
  transition: all 0.5s ease;
}

.timg:hover::before {
  left: 100% !important;
}

/* Footer */

.footer {
  background-image: url("assets/images/bg-menu.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
}

.footer-bottom p,
.footer-bottom li {
  font-size: 0.825rem;
  margin: 0;
}

.footer-bottom li a:hover {
  color: var(--secondary-color) !important;
}

.custom-go-to-top {
  border: 2px solid var(--white-color);
}

#contact-form .form-control:not(#captcha) {
  background-color: transparent;
  color: var(--white-color);
  border: none;
  border-bottom: 1px solid var(--white-color);
  border-radius: 0;
  padding-left: 0;
  padding-right: 0;
}

#contact-form .form-control:not(#captcha):focus {
  outline: none;
  background-color: transparent;
  box-shadow: none;
  color: var(--white-color);
  border-color: var(--secondary-color);
}

#contact-form .form-control::placeholder {
  color: #a5a5a5;
  font-size: 0.85rem;
}
#contact-form button {
  border: none;
}
#contact-form button:hover {
  background-color: red;
}

/* Contact floating */
.floating-sidebar {
  position: fixed;
  top: 85%;
  left: 10px;
  transform: translateY(-50%);
  z-index: 9999;
  background-color: var(--white-color);
  border-radius: 5px;
  max-width: 100%;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.floating-sidebar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #000;
  width: 60px;
  height: 60px;
}

.floating-sidebar a:hover {
  background-color: #f0f0f0;
}

.floating-sidebar a img {
  max-width: 30px;
  margin-bottom: 5px;
}

.floating-sidebar a span {
  font-size: 10px;
  font-weight: 500;
  color: var(--black-color);
}

@media (max-width: 768px) {
  html,
  body {
    overflow-x: hidden;
  }

  #offcanvasMenu {
    background-image: url("/assets/images/pattern.jpeg");
  }

  .nav-item {
    background-color: rgb(80, 112, 174);
    border-bottom: none !important;
  }

  /* Level 1 expanded */
  .nav-item > .collapse.show,
  .nav-item > .collapse.show .have-lv2 {
    background-color: #453e5b;
  }

  /* Level 2 menu items */
  .nav-item .collapse > .nav-item > .collapse.show {
    background-color: #37694f;
  }

  .nav-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: #666666 1px solid !important;
    color: var(--white-color);
  }

  .nav-link .fa-chevron-down {
    transition: transform 0.3s ease;
  }

  .nav-link[aria-expanded="true"] .fa-chevron-down {
    transform: rotate(180deg);
  }

  .btn-close {
    filter: invert(1);
  }

  .toggle-icon {
    font-size: 1.2rem;
  }

  #main {
    margin-top: 78px;
  }

  #footer {
    margin-bottom: 80px;
  }

  /* Contact floating */
  .floating-sidebar {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
    transform: none;
    display: flex;
    justify-content: space-around;
    border-radius: 0;
    padding: 10px 0;
    background-color: var(--white-color);
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
  }

  .floating-sidebar a {
    flex-direction: column;
    width: auto;
    height: auto;
    padding: 5px;
  }

  .floating-sidebar a img {
    margin-bottom: 3px;
  }

  .floating-sidebar a span {
    font-size: 12px;
  }
}
