:root {
  --primary-color: #f5811c;
  --secondary-color: #f49d26;
  --white-color: #fff;
  --hover-color: #003080;
  --gray-color: #3e3e3e;
  --black-color: #000;
  --primary-gradient-color: linear-gradient(
    135deg,
    rgba(252, 185, 0, 1) 0%,
    rgba(255, 105, 0, 1) 100%
  );
}

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-primary-gradient {
  background: var(--primary-gradient-color);
}

.text-primary,
.active,
.nav-link:hover {
  color: var(--primary-color) !important;
}

.btn.bg-secondary:hover {
  background-color: #db8349 !important;
  transition: all 0.3s ease;
}

.border-primary {
  border-color: var(--primary-color) !important;
}

/* Header */
#header {
  max-height: 140px;
}

.search-container {
  position: relative;
}
.search-container input {
  padding-right: 40px;
}
.search-icon {
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  color: #aaa;
}

#languageDropdown,
.dropdown-menu {
  font-size: 12px;
  min-width: 150px;
  max-width: 100%;
}

.dropdown-item img {
  margin-right: 8px;
  vertical-align: middle;
}

#languageDropdown {
  position: relative;
}

.dropdown-toggle::after {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  margin-left: 0;
  pointer-events: none;
}

/* Main */
#main {
  margin-top: 150px;
}
/* Section: Carousel Image */
#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: 15% 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: Welcome */
.welcome-section {
  background-image: url("assets/images/welcome.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-align: center;
  padding: 2rem 0;
}

.welcome-title,
.welcome-subtitle {
  color: #555;
}

.welcome-paragraph {
  color: #777;
}

/* Section: Apartments */
.apartment-overlay {
  background: rgb(0, 0, 0);
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 1) 0%,
    rgba(245, 129, 28, 1) 50%
  );
  transition: opacity 0.3s ease-in-out;
  opacity: 0;
}

.apartment-card:hover .apartment-overlay {
  opacity: 0.5;
}

.apartment-card .btn:hover {
  background-color: var(--white-color);
  color: var(--primary-color) !important;
}

/* Section: Why Choose Happy Land */
.why-happyland {
  background-image: url("assets/images/why-choice-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Section: Customer Values */
#customer-values {
  background-image: url("assets/images/bg_testimonial.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  cursor: pointer;
}

#customer-values .carousel-indicators {
  bottom: -40px;
}

#customer-values .carousel-indicators button {
  background-color: var(--white-color) !important;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 5px;
  opacity: 0.7;
  border: 1px solid rgba(0, 0, 0, 0.2);
}

#customer-values .carousel-indicators button.active {
  background-color: var(--primary-color) !important;
  opacity: 1;
}

#customer-values .carousel-control-prev,
#customer-values .carousel-control-next {
  width: 40px;
  height: 40px;
  opacity: 1;
  color: var(--secondary-color);
  border-radius: 50%;
  background-color: var(--white-color);
  border: 1px solid var(--white-color) !important;
  top: 45%;
}
#customer-values .carousel-control-prev:hover,
#customer-values .carousel-control-next:hover {
  background-color: var(--primary-color) !important;
  color: var(--white-color);
}

#customer-values .carousel-control-prev {
  left: -50px;
}
#customer-values .carousel-control-next {
  right: -50px;
}

/* Section: Real images */
.small-img {
  height: 160px;
  width: 260px;
}
/* Section: News */
#news-section h5:hover,
#news-section h6:hover {
  color: var(--primary-color);
}

.news-image {
  width: 100px;
  object-fit: cover;
}

.content-truncate {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Footer */
.footer-top .social-icons a {
  color: var(--white-color);
  font-size: 1.2rem;
  margin-right: 15px;
  text-decoration: none;
}

.circle-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  text-align: center;
  background-color: #007bff;
  transition: transform 0.2s ease-in-out;
}

.circle-icon:hover {
  transform: scale(1.1);
}

.footer-main {
  background-image: url("/assets/images/footer-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--white-color);
  padding: 40px 20px;
  min-height: 400px;
  width: 100%;
}

.footer-main .container {
  position: relative;
  z-index: 2;
}

.footer-main::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1;
}

/* Responsive */
@media (max-width: 768px) {
  .dropdown-menu {
    top: 30px !important;
    right: -10px !important;
    border-radius: 0;
  }

  .dropdown-menu::before {
    content: "";
    position: absolute;
    top: -11px;
    right: 24px;
    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;
  }

  .dropdown-menu::after {
    content: "";
    position: absolute;
    top: -10px;
    right: 25px;
    width: 0;
    height: 0;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-bottom: 9px solid var(--white-color);
    z-index: 1;
  }

  .small-img {
    width: 100%;
  }

  #main {
    margin-top: 95px;
  }
}
