/********** Template CSS **********/
:root {
    --primary: #CC0000;
    --secondary: #8D9297;
    --light: #F8F9FA;
    --dark: #003366 ;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    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: 500;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-outline-primary:hover {
    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.sticky-top {
    top: -100px;
    transition: .5s;
}

.navbar .navbar-nav .nav-link {
    margin-left: 30px;
    padding: 5px 0;
    /* color: var(--secondary); */
    color: #555;
    font-weight: 400;
    text-transform: uppercase;
    outline: none;
}

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

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

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

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

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        right: 0;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

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


/*** Header ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    text-align: start;
    /* background: rgba(0, 0, 0, .65); */
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 15%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 4rem;
    height: 4rem;
    background-color: var(--dark);
    border: 15px solid var(--dark);
    border-radius: 50px;
}

.carousel-caption .breadcrumb-item+.breadcrumb-item::before {
    content: "\f111";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--primary);
}

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

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 3rem;
        height: 3rem;
        border-width: 12px;
    }
}

.page-header {
    background: linear-gradient(rgba(0, 0, 0, .65), rgba(0, 0, 0, .65)), url(../img/sharpimages/experience.png) center center no-repeat;
    background-size: cover;
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: #999999;
}


/*** Facts ***/
.facts-overlay {
    position: absolute;
    padding: 30px;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(0, 0, 0, .65);
}

.facts-overlay h1 {
    font-size: 120px;
    color: transparent;
    -webkit-text-stroke: 2px var(--primary);
}

.facts-overlay a:hover {
    color: var(--primary) !important;
}


/*** Service ***/
.service-text::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    background: var(--primary);
    opacity: 0;
    transition: .5s;
}

.service-item:hover .service-text::before {
    height: 100%;
    opacity: 1;
}

.service-text * {
    position: relative;
    transition: .5s;
    z-index: 1;
}

.service-item:hover .service-text * {
    color: #FFFFFF !important;
}


/*** Appointment ***/
.appointment {
    background: linear-gradient(rgba(0, 0, 0, .65), rgba(0, 0, 0, .65)), url(../img/carousel-2.jpg) center center no-repeat;
    background-size: cover;
}


/*** Team ***/
.team-text {
    position: absolute;
    width: 75%;
    bottom: 30px;
    left: 0;
    transition: .5s;
}

.team-item:hover .team-text {
    width: 100%;
}

.team-text * {
    transition: .5s;
}

.team-item:hover .team-text * {
    letter-spacing: 2px;
}


/*** Testimonial ***/
.testimonial-carousel .owl-item img {
    width: 100px;
    height: 100px;
}

.testimonial-carousel .owl-nav {
    margin-top: 30px;
    display: flex;
    justify-content: start;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    margin-right: 15px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    border: 2px solid var(--primary);
    border-radius: 50px;
    font-size: 18px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: #FFFFFF;
    background: var(--primary);
}


/*** Footer ***/
.footer {
    color: #999999;
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #999999;
    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;
    color: #999999;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--light);
    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);
}

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

.btn-warning {
    color: #fff;
    background-color: #003366;
    border-color: #003366;
    border-radius: 10px;
}

.btn-danger {
    color: #fff;
    background-color: #CC0000;
    border-color: #CC0000;
    border-radius: 10px;
}

/* Equalize Fact Section Images */
.facts-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 51, 102, 0.7); /* semi-transparent navy */
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
    transition: background 0.3s ease;
  }
  
  .facts-overlay:hover {
    background: rgba(204, 0, 0, 0.8); /* red highlight on hover */
  }
  
  .position-relative img {
    height: 350px;          /* set equal height for all images */
    object-fit: cover;      /* keep aspect ratio, fill container */
    object-position: center;
  }
  
  .position-relative {
    position: relative;
    overflow: hidden;
  }
  

   /* Topbar */
   .topbar {
    background: #003366;
    color: #fff;
    font-size: 14px;
    z-index: 1031;
    transition: top 0.4s ease;
    position: fixed;
    width: 100%;
  }
  .topbar a {
    color: #fff;
    transition: color 0.3s ease;
  }
  .topbar a:hover {
    color: #CC0000;
  }

  /* Navbar */
  .custom-navbar {
    position: fixed;
    top: 40px; /* sits below topbar */
    width: 100%;
    background: transparent;
    transition: top 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
    z-index: 1030;
  }
  /* .custom-navbar.scrolled {
    background: #003366 !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  } */
  .navbar .nav-link {
    color: #fff !important;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
  }
  .navbar .nav-link::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: #CC0000;
    transition: width 0.3s ease;
  }
  .navbar .nav-link:hover::after,
  .navbar .nav-link.active::after { width: 100%; }
  .navbar .nav-link:hover { color: #CC0000 !important; }

  /* Dropdown */
  .dropdown-menu { background: #fff; }
  .dropdown-item { color: #003366; }
  .dropdown-item:hover { background: #CC0000; color: #fff; }

  /* Hero Carousel Overlay (for better contrast) */
  .carousel-item::after {
    content: "";
    position: absolute;
    top:0; left:0;
    width:100%; height:100%;
    background: rgba(0,0,0,0.4); /* dark overlay */
  }
  .carousel-caption {
    z-index: 2;
  }

  /* Push content sections below header */
  .content-section {
    margin-top: 120px;
  }
  .navbar-brand img {
max-height: 60px;     /* controls logo size */
transition: max-height 0.3s ease; /* smooth shrink */
}

.custom-navbar.scrolled .navbar-brand img {
max-height: 55px;     /* shrink on scroll */
}

.custom-navbar.scrolled {
background: rgba(255, 255, 255, 0.85) !important;
backdrop-filter: blur(8px);
box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.navbar .nav-link {
color: #fff !important;
transition: color 0.3s ease;
}
.navbar .nav-link:hover {
color: #CC0000 !important;
}

/* Make carousel fill screen */
#header-carousel,
#header-carousel .carousel-item {
height: 100vh;
min-height: 500px;
position: relative;
}

/* Fix image sizing */
.carousel-img {
height: 100vh;
object-fit: cover;
object-position: center;
}
.custom-navbar.scrolled .nav-link {
color: #003366 !important;
}

.custom-navbar.scrolled .nav-link:hover {
color: #CC0000 !important;
}
/* Gradient overlay for readability */
.carousel-overlay {
position: absolute;
top: 0; left: 0;
width: 100%; height: 100%;
background: linear-gradient(to bottom right, rgba(0,0,0,0.2), rgba(0,0,0,0.1));
z-index: 1;
}

/* Ensure caption is above overlay */
.carousel-caption {
z-index: 2;
}

/* Caption animations */
.carousel-caption h1, 
.carousel-caption h5, 
.carousel-caption p, 
.carousel-caption a {
animation-duration: 1s;
animation-delay: 0.3s;
}

/* Carousel controls color tweak */
.carousel-control-prev-icon,
.carousel-control-next-icon {
filter: invert(100%) grayscale(100);
}

/* Indicators */
.carousel-indicators [data-bs-target] {
background-color: #CC0000;
width: 12px; height: 12px;
border-radius: 50%;
}
/* Ensure carousel is a stacking context */
#header-carousel { position: relative; }

/* Overlay should not block clicks */
#header-carousel .carousel-overlay {
z-index: 1;
pointer-events: none;
}

/* Captions above overlay but let clicks pass through */
#header-carousel .carousel-caption {
z-index: 2;
pointer-events: none;
}
/* Re-enable clicks for buttons/links inside caption */
#header-carousel .carousel-caption .btn,
#header-carousel .carousel-caption a,
#header-carousel .carousel-caption input,
#header-carousel .carousel-caption select,
#header-carousel .carousel-caption textarea {
pointer-events: auto;
}

/* Controls (arrows) always on top */
#header-carousel .carousel-control-prev,
#header-carousel .carousel-control-next {
z-index: 5;
width: 5%;
}
#header-carousel .carousel-control-prev-icon,
#header-carousel .carousel-control-next-icon {
width: 3rem; height: 3rem;
filter: invert(100%); /* make arrows white */
}

/* Indicators on top too */
#header-carousel .carousel-indicators {
z-index: 6;
}