/********** Template CSS **********/
:root {
    --primary: #D81324;
    --secondary: #0B2154;
    --light: #F2F2F2;
    --dark: #111111;
}

.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;
    background-color: #D81324 !important;
}

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

#spinner .loader-container {
    width: 100px;
    height: 100px;
}

#spinner .loader-container img {
    width: 100%;
    height: 100%;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/*** Button ***/
.btn {
    font-weight: 500;
    text-transform: uppercase;
    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;
    border-radius: 2px;
}


/*** Topbar ***/
.topbar-custom .py-2 {
    padding-top: 0.4rem !important;
    padding-bottom: 0.4rem !important;
}

.topbar-custom {
    min-height: auto;
}

/*** 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 {
    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;
}
/* Override navbar CTA buttons so they're not forced to 60px height */
.navbar-light a.btn.btn-nav {
    height: auto;
}

.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 .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 ***/
#header-carousel {
    height: 85vh;
    min-height: 600px;
}

#header-carousel .carousel-inner {
    height: 100%;
}

#header-carousel .carousel-item {
    position: relative;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

#header-carousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, .7);
    z-index: 1;
}

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

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

@media (max-width: 768px) {
    #header-carousel {
        height: 75vh;
        min-height: 500px;
    }
    
    #header-carousel .carousel-inner {
        height: 100%;
    }
    
    #header-carousel .carousel-item {
        height: 100%;
    }
    
    #header-carousel .carousel-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }
    
    .carousel-caption {
        padding-top: 100px;
        padding-bottom: 50px;
    }
    
    #header-carousel .carousel-item .container {
        padding-top: 30px;
    }
    
    #header-carousel .carousel-caption h1.display-3 {
        margin-top: 0;
        padding-top: 0;
    }
    
    #header-carousel .carousel-caption .col-10 {
        margin-top: 0;
    }
}

@media (max-width: 576px) {
    #header-carousel {
        height: 80vh;
        min-height: 550px;
    }
    
    #header-carousel .carousel-inner {
        height: 100%;
    }
    
    #header-carousel .carousel-item {
        height: 100%;
    }
    
    #header-carousel .carousel-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }
    
    .carousel-caption {
        padding-top: 120px;
        padding-bottom: 60px;
    }
}

.page-header {
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.page-header-inner {
    background: rgba(0, 0, 0, .7);
    padding-top: 100px;
    padding-bottom: 60px;
}

@media (max-width: 768px) {
    .page-header {
        min-height: 300px;
    }
    
    .page-header-inner {
        padding-top: 120px;
        padding-bottom: 80px;
    }
}

@media (max-width: 576px) {
    .page-header {
        min-height: 350px;
    }
    
    .page-header-inner {
        padding-top: 140px;
        padding-bottom: 100px;
    }
}

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


/*** Facts ***/
.fact {
    background: linear-gradient(rgba(0, 0, 0, .7), rgba(0, 0, 0, .7)), url(../img/stock-images/Stats-summary-strip-BG.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}


/*** Service ***/
.service .nav .nav-link {
    background: var(--light);
    transition: .5s;
}

.service .nav .nav-link.active {
    background: var(--primary);
}

.service .nav .nav-link.active h4 {
    color: #FFFFFF !important;
}


/*** Booking ***/
.booking {
    background: linear-gradient(rgba(0, 0, 0, .7), rgba(0, 0, 0, .7)), url(../img/stock-images/Book-Service-Section-BG.jpg) center center no-repeat;
    background-size: cover;
}

.booking .form-control,
.booking .form-select,
.booking textarea.form-control {
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.booking .form-control:focus,
.booking .form-select:focus,
.booking textarea.form-control:focus {
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.1);
}

/* DateTimePicker container must be relatively positioned */
.date {
    position: relative;
}

.bootstrap-datetimepicker-widget.bottom {
    top: auto !important;
}

.bootstrap-datetimepicker-widget .table * {
    border-bottom-width: 0px;
}

.bootstrap-datetimepicker-widget .table th {
    font-weight: 500;
}

.bootstrap-datetimepicker-widget.dropdown-menu {
    padding: 10px;
    border-radius: 2px;
}

.bootstrap-datetimepicker-widget table td.active,
.bootstrap-datetimepicker-widget table td.active:hover {
    background: var(--primary);
}

.bootstrap-datetimepicker-widget table td.today::before {
    border-bottom-color: var(--primary);
}


/*** Team ***/
.team-item .team-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    transform: scale(0);
    transition: .5s;
}

.team-item:hover .team-overlay {
    transform: scale(1);
}

.team-item .team-overlay .btn {
    color: var(--primary);
    background: #FFFFFF;
}

.team-item .team-overlay .btn:hover {
    color: #FFFFFF;
    background: var(--secondary)
}


/*** Testimonial ***/
.testimonial-carousel .owl-item .testimonial-text,
.testimonial-carousel .owl-item.center .testimonial-text * {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-text {
    background: var(--primary) !important;
}

.testimonial-carousel .owl-item.center .testimonial-text * {
    color: #FFFFFF !important;
}

.testimonial-carousel .owl-dots {
    margin-top: 24px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    border: 1px solid #CCCCCC;
    transition: .5s;
}

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


/*** Footer ***/

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

.smooth-scroll {
    transition: all 0.3s ease;
}

.smooth-scroll:hover {
    transform: translateY(-2px);
}

.footer {
    background: linear-gradient(rgba(0, 0, 0, .9), rgba(0, 0, 0, .9)), url(../img/stock-images/footer-bg.jpg) 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);
}

.footer .footer-menu a {
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, .3);
}

.footer .footer-menu a:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}

/* Navbar CTA buttons */
.navbar .btn.btn-nav {
  border-radius: 999px;
  padding: 8px 14px; /* smaller for compact look */
  font-weight: 600;
  letter-spacing: 0.2px;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
  line-height: 1.2;
  display: inline-flex;
  align-items: center; /* vertical centering */
  justify-content: center;
  gap: 8px;
  font-size: 14px;
}

.navbar .btn.btn-nav i {
  line-height: 0; /* keep icon vertically centered */
}

/* Book Appointment - subtle outline secondary with glass effect */
.navbar .btn.btn-nav-book {
  background: rgba(11, 33, 84, 0.06);
  border: 1.5px solid rgba(11, 33, 84, 0.35);
  color: #0B2154;
  box-shadow: 0 2px 10px rgba(11, 33, 84, 0.08);
}
.navbar .btn.btn-nav-book:hover {
  background: rgba(11, 33, 84, 0.12);
  border-color: #0B2154;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(11, 33, 84, 0.18);
}

/* Login - outline primary */
.navbar .btn.btn-nav-login {
  background: transparent;
  border: 1.5px solid var(--primary);
  color: var(--primary);
}
.navbar .btn.btn-nav-login:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(216, 19, 36, 0.3);
}

/* Sign Up - solid primary gradient */
.navbar .btn.btn-nav-register {
  background: linear-gradient(135deg, var(--primary) 0%, #a00 100%);
  border: 0;
  color: #fff;
  box-shadow: 0 6px 16px rgba(216, 19, 36, 0.25);
}
.navbar .btn.btn-nav-register:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 10px 22px rgba(216, 19, 36, 0.35);
}

/* User Profile Dropdown - subtle secondary with user icon */
.navbar .btn.btn-nav-profile {
  background: rgba(11, 33, 84, 0.08);
  border: 1.5px solid rgba(11, 33, 84, 0.4);
  color: #0B2154;
  box-shadow: 0 2px 10px rgba(11, 33, 84, 0.1);
}
.navbar .btn.btn-nav-profile:hover {
  background: rgba(11, 33, 84, 0.15);
  border-color: #0B2154;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(11, 33, 84, 0.2);
}

/* Profile dropdown menu */
.navbar .dropdown-menu {
  border: 1px solid rgba(11, 33, 84, 0.15);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  margin-top: 8px;
}

.navbar .dropdown-item {
  padding: 10px 20px;
  transition: background-color 0.2s ease;
}

.navbar .dropdown-item:hover {
  background-color: rgba(11, 33, 84, 0.05);
}

.navbar .dropdown-header {
  font-weight: 600;
  color: var(--secondary);
  padding: 12px 20px 8px;
}

/* Compact variants for mobile */
@media (max-width: 991.98px) {
  .navbar .btn.btn-nav {
    padding: 8px 12px;
    border-width: 1.5px;
    font-size: 13px;
  }
  
  .navbar .btn.btn-nav-profile {
    width: 100%;
    margin-bottom: 10px;
  }
  
  .navbar .card {
    margin-top: 10px;
  }
}