/********** Template CSS **********/
:root {
    --primary: #273160;
    --secondary: #EB7D1A;
    --light: #F8F2F0;
    --dark: #060315;
}

.fw-medium {
    font-weight: 600 !important;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    font-weight: 600;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-secondary {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

/*** Navbar ***/
.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar-light .navbar-nav .nav-link {
    position: relative;
    margin-right: 30px;
    padding: 25px 0;
    color: #FFFFFF;
    font-size: 15px;
    text-transform: uppercase;
    outline: none;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
}

@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar-light .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}

.navbar-light .navbar-brand,
.navbar-light a.btn {
    height: 60px;
}

.navbar-light .navbar-nav .nav-link {
    color: var(--dark);
    font-weight: 500;
}

.navbar-light.sticky-top {
    top: -100px;
    transition: .5s;
}

@media (min-width: 992px) {
    .navbar-light .navbar-nav .nav-link::before {
        position: absolute;
        content: "";
        width: 0;
        height: 5px;
        top: -6px;
        left: 50%;
        background: #FFFFFF;
        transition: .5s;
    }

    .navbar-light .navbar-nav .nav-link:hover::before,
    .navbar-light .navbar-nav .nav-link.active::before {
        width: 100%;
        left: 0;
    }

    .navbar-light .navbar-nav .nav-link.nav-contact::before {
        display: none;
    }

    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/
@media (max-width: 768px) {
    .header-carousel .owl-carousel-item {
        position: relative;
        min-height: 500px;
    }
    
    .header-carousel .owl-carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .header-carousel .owl-carousel-item h5,
    .header-carousel .owl-carousel-item p {
        font-size: 14px !important;
        font-weight: 400 !important;
    }

    .header-carousel .owl-carousel-item h1 {
        font-size: 30px;
        font-weight: 600;
    }
}

.header-carousel .owl-nav {
    position: absolute;
    top: 50%;
    right: 8%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    margin: 7px 0;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: transparent;
    border: 1px solid #FFFFFF;
    border-radius: 45px;
    font-size: 22px;
    transition: .5s;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/* .page-header {
    background: linear-gradient(rgba(6, 3, 21, .5), rgba(6, 3, 21, .5)), url('/uploads/main_slider/<%= sliderImage %>') center center no-repeat;
    background-size: cover;
} */

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--light);
}


/*** About ***/
@media (min-width: 992px) {
    .container.about {
        max-width: 100% !important;
    }

    .about-text  {
        padding-right: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .about-text  {
        padding-right: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .about-text  {
        padding-right: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Feature ***/
@media (min-width: 992px) {
    .container.feature {
        max-width: 100% !important;
    }

    .feature-text  {
        padding-left: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .feature-text  {
        padding-left: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .feature-text  {
        padding-left: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Service, Price & Team ***/
.service-item,
.price-item,
.team-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
}

.service-item img,
.team-item img {
    transition: .5s;
}

.service-item:hover img,
.team-item:hover img {
    transform: scale(1.1);
}

.service-item a.btn-slide,
.price-item a.btn-slide,
.team-item div.btn-slide {
    position: relative;
    display: inline-block;
    overflow: hidden;
    font-size: 0;
}

.service-item a.btn-slide i,
.service-item a.btn-slide span,
.price-item a.btn-slide i,
.price-item a.btn-slide span,
.team-item div.btn-slide i,
.team-item div.btn-slide span {
    position: relative;
    height: 40px;
    padding: 0 15px;
    display: inline-flex;
    align-items: center;
    font-size: 16px;
    color: #FFFFFF;
    background: var(--primary);
    border-radius: 0 35px 35px 0;
    transition: .5s;
    z-index: 2;
}

.team-item div.btn-slide span a i {
    padding: 0 10px;
}

.team-item div.btn-slide span a:hover i {
    background: var(--secondary);
}

.service-item a.btn-slide span,
.price-item a.btn-slide span,
.team-item div.btn-slide span {
    padding-left: 0;
    left: -100%;
    z-index: 1;
}

.service-item:hover a.btn-slide i,
.price-item:hover a.btn-slide i,
.team-item:hover div.btn-slide i {
    border-radius: 0;
}

.service-item:hover a.btn-slide span,
.price-item:hover a.btn-slide span,
.team-item:hover div.btn-slide span {
    left: 0;
}

/* .service-item a.btn-slide:hover i,
.service-item a.btn-slide:hover span,
.price-item a.btn-slide:hover i,
.price-item a.btn-slide:hover span {
    background: var(--secondary);
} */


/*** Testimonial ***/
.testimonial-carousel .owl-item .testimonial-item {
    position: relative;
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
    animation: pulse 1s ease-out .5s;
}

.testimonial-carousel .owl-dots {
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    background: var(--primary);
    border: 5px solid var(--light);
    border-radius: 15px;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    background: var(--light);
    border-color: var(--primary);
}


/*** Contact ***/
@media (min-width: 992px) {
    .container.contact-page {
        max-width: 100% !important;
    }

    .contact-page .contact-form  {
        padding-left: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .contact-page .contact-form  {
        padding-left: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .contact-page .contact-form  {
        padding-left: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Footer ***/
.footer {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(../assets/image/) center center no-repeat;
    background-size: cover;
}

.footer .btn.btn-social {
    margin-right: 5px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    border: 1px solid #FFFFFF;
    border-radius: 35px;
    transition: .3s;
}

.footer .btn.btn-social:hover {
    color: var(--primary);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--light);
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  width: 55px;
  height: 55px;
  bottom: 25px;
  right: 25px;
  background-color: #25D366;
  color: #fff;
  border-radius: 50%;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 9999;
  transition: transform 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  color: #fff;
}

/* Pulse animation */
.whatsapp-float::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.4);
  animation: whatsapp-pulse 1.5s infinite;
  z-index: -1;
}

@keyframes whatsapp-pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

.vertical-line {
    width: 3px;
    background-color: #EB7D1A;
    height: 100%;
}

/* Red underline */
.infra-line {
    display: block;
    width: 80px;
    height: 4px;
    background: #EB7D1A;
    margin-top: 8px;
}

/* Bullet list */
.infra-list {
    padding-left: 18px;
}
.infra-list li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Infrastructure Collage - 4 Equal Squares */
.infra-collage {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.infra-collage img {
    width: 100%;
    aspect-ratio: 1 / 1;   /* makes perfect square */
    object-fit: cover;
    border-radius: 6px;
}

/* Mobile */
@media (max-width: 768px) {
    .infra-collage {
        grid-template-columns: 1fr;
    }
}

/* Alternate Mission Vision */
.mission-vision-alt {
    background: #f9f9f9;
    padding: 60px 40px;
    border-radius: 16px;
}

.mv-label {
    color: #EB7D1A;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 13px;
    display: inline-block;
    margin-bottom: 10px;
}

.mv-heading {
    font-weight: 800;
    margin-bottom: 20px;
}

.mv-points {
    padding-left: 0;
    list-style: none;
}

.mv-points li {
    padding-left: 28px;
    position: relative;
    margin-bottom: 12px;
}

.mv-points li::before {
    content: "✔";
    color: #EB7D1A;
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
}

.mv-desc {
    line-height: 1.9;
    color: #555;
}

.mv-divider {
    width: 80px;
    height: 80px;
    background: #EB7D1A;
    border-radius: 50%;
    color: #fff;
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ///////////////////////////////////////////////////////////// */

/* CATEGORY BANNER */
.category-banner {
  height: 420px;
  overflow: hidden;
}

.category-banner .banner-img {
  height: 100%;
  object-fit: cover;
}

.banner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}

.banner-content {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
}

/* PRODUCT CARD */
.product-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.product-img img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

/* feature section on product PAGE */
.feature-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  height: 100%;
}

.feature-img img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.feature-content {
  padding: 25px;
}

.feature-detail p {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 0;
}

.feature-detail {
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.read-toggle {
  display: inline-block;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #0d6efd;
  cursor: pointer;
}

.show_less {
  max-height: 80px;
  overflow: hidden;
  position: relative;
  transition: max-height 0.4s ease;
}

.show_less::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30px;
  background: linear-gradient(to top, #fff, transparent);
}

.show_less.expanded {
  max-height: 1000px; /* or content.scrollHeight for dynamic */
}

.show_less.expanded::after {
  display: none;
}

.show_more {
  cursor: pointer;
  font-weight: 500;
  display: inline-block;
  margin-top: 5px;
}

.product-card-img {
  height: 202px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card:hover .product-card-img {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .product-card-img {
    height: 150px;
  }
}

@media (max-width: 576px) {
  .product-card-img {
    height: 270px;
  }
}

@media (max-width: 576px) {
  .product-hero .btn-lg {
    padding: 10px 14px;
    font-size: 15px;
  }
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: invert(1);
}

html, body {
  overflow-x: hidden;
}

/* ================= FIX BOOTSTRAP NESTED DROPDOWN ================= */

/* Hide all nested dropdowns even if Bootstrap adds .show */
.dropdown-menu .dropdown-menu.show {
  display: none !important;
  margin-top: -32px;
}

/* Show nested dropdown ONLY on hover of its parent */
.dropdown-submenu:hover > .dropdown-menu {
  display: block !important;
}

/* First-level hover (desktop only) */
@media (min-width: 992px) {
  .navbar .dropdown:hover > .dropdown-menu {
    display: block;
  }
}

/* Third level position */
.dropdown-submenu {
  position: relative;
}

.dropdown-submenu > .dropdown-menu {
  top: 0;
  left: 100%;
}

/* UI */
.dropdown-menu {
  min-width: 220px;
}


/* Login page CSS */

  .loginBody {
    background: 
      linear-gradient(to right, #5a5d6e, #9598a3 ),
      url('/img/infra_slider/6ca680920f373d9779a3c5635aab83e4.jpg') no-repeat center center fixed;
    background-size: cover;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .login-container {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    padding: 40px 30px;
    width: 100%;
    max-width: 400px;
  }

  .login-container h3 {
    text-align: center;
    margin-bottom: 10px;
  }

  .login-container .form-group {
    margin-bottom: 20px;
  }

  .login-container input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
  }

  .login-container .forgot {
    text-align: right;
    display: block;
    margin-bottom: 20px;
    font-size: 0.9em;
  }

  .login-container .btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 4px;
    color: white;
    font-size: 1rem;
    cursor: pointer;
  }

  .alert {
    padding: 10px;
    background-color: #f9cfaa;
    color: #ee091f;
    border-radius: 4px;
    margin-bottom: 15px;
  }

  /* 🔹 Responsive adjustments */
  @media (max-width: 600px) {
    .login-container {
      padding: 20px 15px;
      max-width: 90%;
    }

    .login-container h3 {
      font-size: 1.2rem;
    }

    .login-container .btn {
      font-size: 0.9rem;
      padding: 10px;
    }
  }

  /* FORCE remove default bullets added by CKEditor */
.mv-points ul,
.mv-desc ul {
  list-style: none !important;
  padding-left: 0 !important;
  margin: 0;
}

/* Kill browser marker explicitly */
.mv-points ul li::marker,
.mv-desc ul li::marker {
  content: "" !important;
}

/* List item layout */
.mv-points ul li,
.mv-desc ul li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  line-height: 1.6;
}

/* ✔ Tick only (NO DOT) */
.mv-points ul li::before,
.mv-desc ul li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  color: #f57c00;
  font-weight: bold;
}
/* FORCE remove default bullets added by CKEditor */
.mv-points ul,
.mv-desc ul {
  list-style: none !important;
  padding-left: 0 !important;
  margin: 0;
}

/* Kill browser marker explicitly */
.mv-points ul li::marker,
.mv-desc ul li::marker {
  content: "" !important;
}

/* List item layout */
.mv-points ul li,
.mv-desc ul li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  line-height: 1.6;
}

/* ✔ Tick only (NO DOT) */
.mv-points ul li::before,
.mv-desc ul li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  color: #f57c00;
  font-weight: bold;
}
