:root {
  --primary-color: #f5811c;
  --secondary-color: #f49d26;
  --white-color: #fff;
  --hover-color: #003080;
  --gray-color: #3e3e3e;
  --black-color: #000;
}

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;
}

.text-primary,
.active,
.nav-link:hover {
  color: var(--primary-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;
}

.navbar-brand img {
  max-height: 135px;
  max-width: 238px;
}

.dropdown-menu {
  display: none;
  opacity: 0;
  position: absolute;
  transition: opacity 0.3s ease-in-out;
  border-radius: 0;
  border: 1px solid rgba(138, 138, 138, 0.2);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  background-color: var(--white-color);
}

.dropdown-item:hover {
  color: var(--black-color) !important;
}
.nav-item.dropdown:hover .dropdown-menu {
  display: block;
  opacity: 1;
}

.dropdown-menu::after {
  content: "";
  position: absolute;
  top: -20px;
  left: 35px;
  transform: translateX(-50%);
  border-width: 10px;
  border-style: solid;
  border-color: transparent transparent var(--white-color) transparent;
  z-index: 1;
}

.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -22px;
  left: 35px;
  transform: translateX(-50%);
  border-width: 10px;
  border-style: solid;
  border-color: transparent transparent rgba(138, 138, 138, 0.2) transparent;
  z-index: 0;
}

.navbar .hotline {
  background-color: #27ae60;
  color: var(--white-color);
}

.navbar .hotline:hover {
  outline: none;
  opacity: 1;
  color: var(--white-color) !important;
  -webkit-box-shadow: inset 0 0 0 100px rgba(0, 0, 0, 0.2);
  box-shadow: inset 0 0 0 100px rgba(0, 0, 0, 0.2);
}

/* Section: Hero */
#main {
  margin-top: 150px;
  background-image: url("assets/images/bg-content.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-align: center;
}

#customCarousel .carousel-control-prev,
#customCarousel .carousel-control-next {
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--white-color);
  border-radius: 50%;
  margin: 25% 5%;
}

#customCarousel .carousel-control-prev:hover,
#customCarousel .carousel-control-next:hover {
  background-color: var(--secondary-color);
}

#customCarousel .carousel-control-prev,
#customCarousel .carousel-control-next {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

#customCarousel:hover .carousel-control-prev,
#customCarousel:hover .carousel-control-next {
  opacity: 1;
}
/* Section: Villas */
#villas {
  font-size: 0.9rem;
}

#villas .card,
#news .card {
  cursor: pointer;
  transition: box-shadow 0.3s ease-in-out;
}

#villas .card:hover,
#news .card:hover {
  box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px !important;
}

.card-title {
  font-size: 0.9rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  height: 2.5em;
}

.fa {
  font-size: 12px;
}
.fa-arrows-alt {
  transform: rotate(45deg);
  font-size: 0.9rem;
  margin-left: -2px;
}
/* Section: News */
#news .card-text:hover {
  color: var(--secondary-color);
}

.line {
  display: block;
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  height: 2px;
  opacity: 0.1;
  background-color: #0a0a0a;
}

.card-img-top {
  height: 200px;
  object-fit: cover;
  width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
  .navbar-brand img {
    height: 60px;
  }

  #search .dropdown-menu {
    top: 30px !important;
    right: 0px !important;
    border-radius: 0 !important;
    opacity: 1;
    position: absolute;
  }

  #search .dropdown-menu::before {
    content: "";
    position: absolute;
    top: -20px !important;
    left: 92% !important;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid rgba(0, 0, 0, 0.2);
    z-index: 0;
  }

  #search .dropdown-menu::after {
    content: "";
    position: absolute;
    top: -19px !important;
    left: 92% !important;
    width: 0;
    height: 0;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-bottom: 9px solid var(--white-color);
    z-index: 1;
  }

  #main {
    margin-top: 85px;
  }
}
