:root {
  --primary-color: #1f3880;
  --white-color: #fff;
  --hover-color: #003080;
  --gray-color: #3e3e3e;
  --black-color: #000;
}

body {
  font-family: "Open Sans", sans-serif;
}
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;
}

.text-primary {
  color: var(--primary-color) !important;
}
/* Header */
#header {
  height: 92px;
  display: flex;
  align-items: center;
  z-index: 1030;
  margin-top: -2px;
}
.navbar-nav {
  display: flex;
  justify-content: space-around;
  width: 90%;
}
.navbar-nav .nav-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--black-color);
  padding: 0.5rem 1rem;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--primary-color);
}

.nav-item {
  border-bottom: none;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  border-radius: 5px;
}

.btn-primary:hover {
  background-color: var(--hover-color);
  border-color: var(--hover-color);
}

/* Main section */
.main {
  margin-top: 92px;
}
/* Section: Hero */
.hero {
  background-image: url("assets/images/hero.png");
  background-size: cover;
  background-position: center;
  height: 650px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 650px;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.form-overlay {
  background-color: var(--primary-color);
  color: var(--white-color);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-overlay h4 {
  margin-bottom: 15px;
  font-size: 1.25rem;
  font-weight: bold;
  color: #10e698;
}

.form-control {
  border-radius: 5px;
  padding-left: 35px;
  position: relative;
}

.form-control::placeholder {
  font-size: 0.9rem;
}

.form-control-icon {
  position: absolute;
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
  font-size: 1rem;
  color: var(--black-color);
  z-index: 1;
}

.btn-danger {
  background: #c20c11;
  border: 1px solid var(--white-color);
  font-size: 1rem;
  font-weight: bold;
}

.btn-danger:hover {
  background: #a30836;
  border: 1px solid var(--white-color);
}

/* Section: Project Location  */
#overview i {
  color: var(--primary-color);
}
#overview h5 {
  font-size: 1.2rem;
}
#overview p {
  font-size: 1rem;
}
/* Section: Facilities Carousel */

.carousel {
  cursor: pointer;
}

#facilities-carousel .carousel-item {
  animation: fadeInUp 0.8s ease-in-out;
}

#facilities-carousel .carousel-item .card-img-top {
  height: 360px;
  object-fit: cover;
  width: 100%;
}

#facilities-carousel .carousel-item .custom-card-body {
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 250px;
  height: 35px;
  background-color: var(--primary-color) !important;
  border-radius: 6px;
  text-align: center;
  line-height: 35px;
}

.carousel-control-prev,
.carousel-control-next {
  top: 46%;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--primary-color) !important;
}
.carousel-control-next {
  right: -40px;
}

.carousel-control-prev {
  left: -40px;
}

/* Section: General Layout */
#layout-overview .nav-tabs {
  border: none;
}
#layout-overview .nav-tabs .nav-item {
  background-color: #e1f5fe;
  margin: 0 2px;
}
#layout-overview .nav-tabs .nav-link {
  color: #1b5e20;
  font-weight: bold;
  text-transform: uppercase;
  border: none;
  border-radius: 0;
}

#layout-overview .nav-tabs .nav-link.active {
  background-color: var(--primary-color);
  color: var(--white-color);
}

#layout-overview .tab-content img {
  max-height: 500px;
  object-fit: cover;
}

/*  Section: Energy Living */
#energy-living .carousel-inner img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

/* Section: Image Carousel */

#image-carousel {
  background-image: url("assets/images/bg-slider.jpg");
}

#image-carousel .carousel-inner img {
  width: 100%;
  height: 605px;
  object-fit: cover;
}

/* Style carousel indicators as dots */
#imageCarousel .carousel-indicators button {
  background-color: var(--white-color) !important;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 5px;
  opacity: 0.7;
  border: none;
}

#imageCarousel .carousel-indicators button.active {
  background-color: var(--white-color) !important;
  opacity: 1;
}

#image-carousel .carousel-control-prev,
#image-carousel .carousel-control-next {
  background-color: none;
  border: 1px solid var(--white-color) !important;
}
#image-carousel .carousel-control-prev:hover,
#image-carousel .carousel-control-next:hover {
  background-color: var(--white-color) !important;
  color: var(--primary-color);
}

/* Section: News */
#news-section .card-img-top {
  height: 270px;
  object-fit: cover;
}

#news-section .position-absolute {
  font-size: 0.8rem;
  line-height: 1.2;
  border-radius: 5px;
}

#news-section .card-text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  height: calc(1em * 3);
}
#news-section-desktop .carousel-control-prev,
#news-section-desktop .carousel-control-next {
  top: 26%;
}
#news-section-mobile .carousel-control-prev {
  left: 20px;
  top: 30%;
}

#news-section-mobile .carousel-control-next {
  right: 20px;
  top: 30%;
}

/* Footer */
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary-color);
  text-decoration: none;
  color: var(--white-color);
  margin-right: 10px;
  transition: transform 0.3s;
}

.social-icon i {
  transform: scale(0.7);
}

.social-icon:hover {
  transform: scale(1.1);
}

/* button go to top */
#btnGoTop {
  z-index: 1050; /* Ensure it is above other content */
  width: 50px;
  height: 50px;
  font-size: 20px;
  background-color: var(--primary-color);
  border: none;
}

#btnGoTop:hover {
  background-color: var(--hover-color);
}

/* Animations */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */

@media (max-width: 768px) {
  #header {
    height: 70px;
  }

  .nav-item {
    border-bottom: 1px solid #ddd;
  }

  .main {
    margin-top: 70px;
  }

  #layout-overview .nav-tabs {
    margin-bottom: 1rem;
  }
  #layout-overview .nav-tabs .nav-link {
    text-align: left;
    padding: 10px;
  }

  #image-carousel .carousel-inner img {
    width: 100%;
    height: 240px;
    object-fit: cover;
  }
}
