:root {
  --primary-color: #00538d;
  --secondary-color: #f7941d;
  --white-color: #fff;
  --hover-color: #d26e4b;
  --gray-color: #3e3e3e;
}

html,
body {
  font-family: "Raleway", sans-serif;
  font-weight: normal;
}

.text-primary {
  color: var(--primary-color) !important;
}

.text-orange {
  color: var(--secondary-color) !important;
}

.content-truncate {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  height: 2.4em;
  line-height: 1.2em;
}

li,
a {
  font-size: 1.25rem;
}

a {
  color: var(--secondary-color) !important;
  text-decoration: none !important;
}

a.btn {
  background-color: var(--secondary-color) !important;
}

a.btn:hover {
  background-color: var(--hover-color) !important;
}

/* Header */
#header .navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background-color: var(--white-color);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.navbar-nav .dropdown-menu {
  top: 110%;
  left: -150%;
}

.navbar-nav .nav-link.active {
  color: var(--secondary-color);
  border-bottom: 3px solid var(--secondary-color);
}

.navbar-nav .nav-link:hover {
  color: var(--secondary-color) !important;
}

/* Dropdown Menu */
.nav-item.dropdown .dropdown-menu {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.nav-item.dropdown.hover-dropdown:hover .dropdown-menu {
  display: block;
  opacity: 1;
  z-index: 1000;
}

.nav-item.dropdown .dropdown-menu::after {
  content: "";
  position: absolute;
  top: -20%;
  left: 28%;
  width: 20%;
  height: 20%;
  background-color: transparent;
  z-index: -1;
}

/* Offcanvas */
.offcanvas {
  background-color: var(--white-color);
  padding: 1rem;
}

.offcanvas .nav-link {
  color: var(--gray-color) !important;
}

.offcanvas li {
  border-top: 0.5px solid rgb(235, 235, 235);
}

.btn-search {
  background-color: var(--secondary-color);
  color: var(--white-color);
  border: none;
  border-radius: 5px;
}

/* Rotations */
.rotate {
  transform: rotate(90deg);
  transition: transform 0.3s ease-in-out;
}

.child-menu,
.parent-menu {
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

/* Banner */
#banner img {
  width: 100%;
  max-height: 840px;
  object-fit: cover;
}

.banner-content {
  width: 50%;
}

.banner-title {
  font-size: 3rem;
}

.banner-description {
  font-size: 1.25rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  #banner {
    padding-top: 75px;
  }

  .banner-content {
    width: 100%;
    text-align: center;
    margin-top: 1.5rem;
  }

  .banner-title {
    font-size: 2rem;
  }
}

/* About Us Section */
@media (max-width: 768px) {
  #about-us h2 {
    font-size: 3rem !important;
    margin-bottom: 0 !important;
  }

  #about-us p {
    text-align: left;
  }
}

/* Achieve Section */
#achieve {
  background: var(--primary-color);
  max-height: 600px;
}

#achieve img {
  max-height: 600px;
  width: 100%;
}

/* Projects Section */
#projects {
  background-color: rgb(237, 242, 246);
}

#projects .card {
  max-height: 408px;
  max-width: 325px;
  border-radius: 5px;
  overflow: hidden;
  cursor: pointer;
}

.card img {
  width: 100%;
  height: 100%;
}

.card-title-overlay {
  bottom: 0;
  left: 0;
  right: 0;
  display: block;
  font-size: 1rem;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(0, 0, 0, 0.5) 41%
  );
  padding: 1.5rem;
}

.card:hover .card-title-overlay {
  display: none;
}

/* Carousel */
.carousel-control-prev,
.carousel-control-next {
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
}

.carousel-control-prev {
  left: 0;
}

.custom-prev,
.custom-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background-color: var(--white-color);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
}

.custom-prev {
  opacity: 0;
  left: -30px;
}

.custom-next {
  opacity: 0;
  right: -5px;
}

.custom-arrow {
  color: gray;
}

.carousel-wrapper:hover .custom-prev,
.carousel-wrapper:hover .custom-next {
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
}

.custom-prev-mobile {
  opacity: 1;
  left: 0px;
}
.custom-next-mobile {
  opacity: 1;
  right: 0px;
}

/* News Section */
#news .card {
  border-radius: 10px;
  cursor: pointer;
  overflow: hidden;
}

#news .card img {
  object-fit: cover;
  height: 100%;
  border-radius: 10px;
}

#news .card-img-top {
  object-fit: cover;
  height: 50%;
  max-height: 200px;
  width: 100%;
}

#companies img:hover,
#news img:hover {
  transform: scale(1.1);
  transition: all 0.5s ease;
}

#news .card-title {
  color: var(--primary-color);
}

#news .card-title:hover {
  color: var(--secondary-color);
}

.news-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease, transform 1s ease;
}

.news-item.animate {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */
#footer {
  background-color: var(--primary-color);
  color: var(--white-color);
}

#footer a {
  font-size: 1rem;
  cursor: pointer;
}

#footer a:hover {
  color: var(--secondary-color) !important;
}

.social-icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px; 
  height: 40px; 
  margin-right: 15px;
  text-decoration: none;
  background-color: white; 
  border-radius: 50%; 
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); 
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-icon i {
  font-size: 20px; 
  color: var(--primary-color);
}

.social-icon:hover {
  transform: scale(1.1); 
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); 
}

.social-icon:last-child {
  margin-right: 0; /* Remove margin for the last icon */
}


/* button go to top */
#btnGoTop {
  z-index: 1050;
  width: 50px;
  height: 50px;
  font-size: 20px;
  background-color: var(--secondary-color);
  border: none;
}

#btnGoTop:hover {
  background-color: var(--hover-color);
}

#verticalMenu {
  top: 50%;
  right: 0px;
  transform: translateY(-50%);
  z-index: 1050;
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
  overflow: hidden;
}

#verticalMenu .btn {
  display: block;
  width: 60px;
  height: 60px;
  padding: 0;
  text-align: center;
  line-height: 60px;
  background-color: var(--white-color) !important;
}

#verticalMenu .btn .icon-img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  display: inline-block;
}

#verticalMenu .btn:hover {
  background-color: #f0f0f0;
}



@media (max-width: 768px) {
  #verticalMenu {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    transform: none;
    display: flex;
    flex-direction: row !important;
    justify-content: space-around;
    align-items: center;
    border-radius: 0;
    overflow-x: auto;
    background-color: var(--white-color);
  }

  #verticalMenu .btn {
    width: 50px;
    height: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: none !important;
    background-color: var(--white-color) !important;
  }

  #verticalMenu .btn .icon-img {
    width: 30px;
    height: 30px;
    object-fit: contain;
  }

  #verticalMenu .btn:hover {
    background-color: #f0f0f0;
  }

  #btnGoTop {
    margin-bottom: 5rem !important;
    margin-right: 1rem !important;
  }
}
