/********** Template CSS **********/
:root {
    --primary: #FF3E41;
    --secondary: #51CFED;
    --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;
    border-radius: 10px;
}

.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 base ***/
.navbar {
  z-index: 1050; /* ensure navbar is above other elements */
}

.navbar .dropdown-toggle::after {
  border: none;
  content: "\f107"; /* FontAwesome down arrow */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  vertical-align: middle;
  margin-left: 8px;
  font-size: 0.75rem;
  color: #6b9ac9;
}

.navbar-light .navbar-nav .nav-link {
  position: relative;
  margin-right: 30px;
  padding: 25px 0;
  color: #000000; /* white main nav links */
  font-size: 20px;
  text-transform: uppercase;
  font-weight: 600;
  outline: none;
  transition: color 0.3s ease;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
  color: #135799;
}

/*** Dropdown menu ***/
.navbar .nav-item .dropdown-menu {
  display: block; /* needed for fade */
  border: 1px solid #ddd;
  margin-top: 0;
  top: 100%;
  opacity: 0;
  visibility: hidden;
  font-size: 20px;
  background-color: #135799; /* dark blue */
  padding: 0.5rem 0;
  border-radius: 0.25rem;
  min-width: 200px;
  box-shadow: 0 0.5rem 1rem rgb(0 0 0 / 0.15);
  z-index: 9999;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.navbar .nav-item:hover > .dropdown-menu {
  top: 100%;
  visibility: visible;
  opacity: 1;
}

/* White text for all dropdown menu items */
.navbar .dropdown-menu .dropdown-item,
.dropdown-menu .submenu-items .dropdown-item {
  color: white !important;
  font-weight: 500;
}

/* Submenu (second-level) */
.dropdown-menu .submenu-items {
  display: none; /* Hide submenu by default */
  position: absolute;
  left: 100%; /* Position the submenu to the right of the parent */
  top: 0;
  background-color: #135799;
  min-width: 200px;
  border: 1px solid #ddd;
  border-radius: 0.25rem;
  padding: 0.5rem 0;
  box-shadow: 0 0.5rem 1rem rgb(0 0 0 / 0.15);
  color: #FFFFFF !important;
  z-index: 9999;
  opacity: 0; /* Initially hidden */
  visibility: hidden; /* Initially hidden */
  transition: opacity 0.3s ease, visibility 0s ease 0.3s; /* Smooth transition */
}

/* Ensure dropdown-hover is relatively positioned for submenu alignment */
.dropdown-hover {
  position: relative;
}

/* Optional: fine-tune vertical alignment */
.dropdown-menu .dropdown-hover > .dropdown-item {
  position: relative;
  z-index: 10000;
}

/* Show submenu when hovering over the parent item */
.dropdown-hover:hover .submenu-items {
  left: 100%;
  top: 0;
  display: block;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0s ease 0s;
}

/* dropdown hover effect */
.dropdown-menu .dropdown-item:hover {
  background-color: #e5e6e9;
  color: #222 !important;
  border-radius: 0.25rem;
}

/* Submenu links */
.submenu-items .dropdown-item {
  color: #fff !important;
  padding: 0.4rem 1rem;
  font-weight: 500;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Submenu hover effect */
.submenu-items .dropdown-item:hover {
  background-color: #e5e6e9;
  color: #222 !important;
  border-radius: 0.25rem;
}



/*** Sticky navbar ***/
.navbar-light.sticky-top {
  top: 0;
  transition: top 0.5s ease;
}

/*** Logo spacing ***/
.navbar-brand {
  margin-left: 1rem;
  height: 75px;
}

@media (max-width: 991.98px) {
  /* Stack nav items vertically */
  .navbar-nav {
    flex-direction: column;
  }

  .navbar .nav-item {
    width: 100%;
  }

  .navbar .nav-link {
    width: 100%;
    padding: 15px;
    border-top: 1px solid #eee;
  }

  /* Hide dropdowns by default */
  .navbar .dropdown-menu,
  .navbar .submenu-items {
    display: none !important;
    position: static;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: none;
    padding-left: 1rem;
  }

  /* Show dropdown when parent is active or toggled (via JS or Bootstrap collapse) */
  .navbar .dropdown.open > .dropdown-menu {
    display: block !important;
  }

  .navbar .dropdown-hover.open > .submenu-items {
    display: block !important;
  }

  /* Submenu indentation */
  .submenu-items .dropdown-item {
    padding-left: 2rem;
  }

  /* Arrow adjustments */
  .navbar .dropdown-toggle::after {
    float: right;
    margin-left: auto;
  }

  /* Prevent hover-based submenu opening */
  .dropdown-hover:hover .submenu-items {
    display: none;
  }
}



/*** 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(0, 0, 0, 0), rgba(0, 0, 0, 0)), url(../img/header.png) center center no-repeat;
    background-size: cover;
}

.page-header h1 {
    text-align: center;
}

.owl-carousel-item h4,
.owl-carousel-item h3,
.owl-carousel-item p {
  color: black !important;
}

.owl-carousel-item h4 {
  text-align: left;
}


.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);
    background-color: #ffdb50;
    border-radius: 20px;
}

.service-item img,
.team-item img {
    transition: .5s;
    max-width: 25%;
}

.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(6, 3, 21, .5), rgba(6, 3, 21, .5)), url(../img/map.png) 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: lightgray;
    font-size: 19px;
    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: 18px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--light);
}

.footer-text{
    font-size: 19px;
    color: lightgray;
}
