/********** Template CSS **********/
:root {
    --primary: #090d16;
    --secondary: #f48b23;
    --light: #317790;
    --dark: #010005;
    --aux: #f49150;
}

/* background */
.bg-primary {
    background-color: var(--primary) !important;
}

.bg-secondary {
    background-color: var(--secondary) !important;
}

.bg-light {
    background-color: var(--light) !important;
}

.bg-dark {
    background-color: var(--dark) !important;
}

.bg-light-aux {
    background-color: rgba(244, 159, 55, .05) !important;
}

/* Text color */
.text-primary {
	color: var(--primary) !important;
}
.text-secondary {
	color: var(--secondary) !important;
}
.text-dark {
	color: var(--dark) !important;
}
.text-aux {
	color: var(--aux) !important;
}
.text-light {
	color: var(--light) !important;
}

body {
    background-color: #f8f5f5 !important;
    color: var(--light) !important;
}

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

h1,
.h1,
h2,
.h2,
.fw-bold {
    font-weight: 700 !important;
	font-family: 'Roboto Slab', serif;
}

h3,
.h3,
h4,
.h4,
.fw-medium {
    font-weight: 600 !important;
	font-family: 'Roboto Slab', serif;
}

h5,
.h5,
h6,
.h6,
.fw-semi-bold {
    font-weight: 500 !important;
	font-family: 'Roboto Slab', serif;
}

h1,
.h1,
h2,
.h2,
h3,
.h3,
h4,
.h4,
h5,
.h5,
h6,
.h6 {
    color: var(--primary);
}

.display-1, .display-2, .display-3, .display-4, .display-5, .display-6, .display-7 {
	font-family: 'Roboto Slab', serif;
}

.display-7 {
  font-size: calc(1.155rem + 1.1vw);
  font-weight: 500;
  line-height: 1.2;
}

.article-header {
    font-size: calc(0.755rem + 0.8vw);
    font-weight: 500;
    line-height: 1.2;
}

@media (min-width: 1200px) {
    .display-7 {
        font-size: 2rem;
    }

    .article-header {
        font-size: 1.15rem;
    }
}



/* Navbar brand */
.navbar-brand h1 {
    line-height: 0.65;
}

.navbar-brand h1 span {
    font-size: 40%;
    color: var(--secondary);
}

/*** Top bar ***/
.top-bar {
    display: block;
}
@media (max-width: 991px) {
    .top-bar {
        display: none !important;
    }
}

/*** 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 {
    transition: .5s;
    font-weight: 500;
}


.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;
}

.btn-outline-secondary {
  color: var(--secondary) !important;
  border-color: var(--secondary) !important;
}
.btn-outline-secondary:hover {
  color: #FFFFFF !important;
  background-color: var(--secondary) !important;
  border-color: var(--secondary) !important;
}
.btn-check:focus + .btn-outline-secondary,
.btn-outline-secondary:focus {
  box-shadow: 0 0 0 0.25rem rgba(244, 139, 35, 0.5) !important;
}

/*** Navbar ***/
.navbar.sticky-top {
    top: -100px;
    transition: .5s;
}

.navbar .navbar-brand,
.navbar a.btn {
    height: 80px
}

.navbar .navbar-nav .nav-link {
    margin-right: 35px;
    padding: 25px 0;
    color: var(--dark);
    font-size: 18px;
    font-weight: 500;
    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-right: 0;
        padding: 10px 0;
    }

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

@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 ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(9, 12, 21, .6);
    z-index: 1;
}

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

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 3rem;
    background-color: var(--primary);
    border: 10px solid 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;
    }
}

/* Page Header */
.page-header {
    background: linear-gradient(rgba(9, 12, 21, .6), rgba(9, 12, 21, .6)), url(../img/carousel/slide-3.jpg) center center no-repeat;
    background-size: cover;
}

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

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    font-size: 18px;
    color: var(--light);
}

/*** Top Feature ***/
@media (min-width: 991.98px) {
    .top-feature {
        position: relative;
        margin-top: -80px;
        z-index: 1;
    }
}


/*** Facts & Quote ***/
.facts,
.quote {
    background: rgba(9, 12, 21, .6);
	background-blend-mode: color;
}

@media (max-width: 576px) {
    .facts,
	.quote {
		background-blend-mode: color;
	}
}


/*** About ***/
.about-img {
    position: relative;
    padding-left: 45px;
}

.about-img::before {
    position: absolute;
    content: "";
    width: 200px;
    height: 300px;
    top: 0;
    left: 0;
    border: 5px solid var(--secondary);
    animation: animateUpDown 3s ease-in-out infinite;
    z-index: -1;
}

@keyframes animateUpDown { 
    0% { 
        top: -25px;
    }
    50% { 
        top: -45px;
    }
    100% { 
        top: -25px;
    } 
}

/*** Service ***/
.service-item {
    position: relative;
    margin: 65px 0 25px 0;
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
}

.service-item .service-img {
    position: absolute;
    padding: 10px;
    width: 140px;
    height: 140px;
    top: -70px;
    left: 50%;
    transform: translateX(-50%);
    background: #FFFFFF;
    box-shadow: 0 0 45px rgba(0, 0, 0, .09);
    z-index: 2;
}

.service-item .service-detail {
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        overflow: hidden;
        z-index: 1;
    }

    .service-item .service-title {
        position: absolute;
        padding: 65px 30px 25px 30px;
        width: 100%;
        height: auto;
        top: 0;
        left: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        transition: .5s;
        z-index: 2;
    }

    div.service-title > h3 {
        color: #FFFFFF !important;
    }

    .service-item .service-text {
        position: absolute;
        overflow: hidden;
        padding: 130px 30px 15px 30px;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        display: flex;
        
        align-items: center;
        text-align: center;
        background: rgba(9, 12, 21, .6);
        transition: .5s;
    }

    .service-item .service-text::before {
        position: absolute;
        content: "";
        width: 100%;
        height: 22%;
        top: -11%;
        left: 0;
        transform: skewY(-12deg);
        background: #FFFFFF;
        transition: .5s;
    }

@media (min-width: 991.98px) {
    .service-item .service-text {
        position: absolute;
        overflow: hidden;
        padding: 65px 30px 25px 30px;
        width: 100%;
        height: 100%;
        top: 100%;
        left: 0;
        display: flex;
        align-items: center;
        text-align: center;
        background: rgba(9, 12, 21, .6);
        transition: .5s;
    }

    .service-item .service-title {
        position: absolute;
        padding: 65px 30px 25px 30px;
        width: 100%;
        height: auto;
        top: 0;
        left: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        background: #FFFFFF;
        color: var(--primary);
        transition: .5s;
    }

    div.service-title h3 {
        color: var(--primary) !important;
    }

    .service-item .service-title {
        position: absolute;
        padding: 65px 30px 25px 30px;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        background: #FFFFFF;
        transition: .5s;
    }

    .service-item:hover .service-title {
        top: -100%;
    }

    .service-item:hover .service-text {
        top: 0;
    }

    .service-item .service-text::before {
        
        height: 100px;
        top: -100%;
        
    }

    .service-item:hover .service-text::before {
        top: -55px;
    }
}




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

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

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

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


/*** Testimonial ***/

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

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

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

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

/*** Form ***/
.form-control {
    background-color: #f8f5f5 !important;
}

label.error {
    color: #dc3545;
    font-size: 0.875em;
    display: block;
}

input.error, select.error, textarea.error {
    border-color: #dc3545 !important;
}

.form-floating > .form-control:focus ~ label.error,
.form-floating > .form-control:not(:placeholder-shown) ~ label.error,
.form-floating > .form-select ~ label.error {
  opacity: 0.8;
  transform: none;
}

.form-floating > label.header {
    opacity: 0.65;
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

.form-floating > label.error {
    position: relative !important;
    top: unset;
    left: unset;
    height: 100%;
    padding: 3px 0 0 12px !important;
    pointer-events: none;
    border: none;
    transform-origin: 0 0;
    transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.btn-primary:disabled, .btn-primary.disabled {
    color: #000;
    background-color: var(--light);
    border-color: var(--primary);
}

/* Style for file input */
.form-floating input[type="file"] {
    padding-top: 2rem !important;
}

/* Preview container styles */
#image-preview-container {
    transition: all 0.3s ease;
}

#image-preview {
    object-fit: contain;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
}

.delete-img-btn {
    top: 0;
    right: 0;
}

/* Remove button hover effect */
#remove-image:hover {
    transform: scale(1.05);
}

/*** Footer ***/
.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: var(--light);
    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 {
    color: var(--secondary);
    letter-spacing: 1px;
    box-shadow: none;
}

.copyright {
    color: var(--light);
    background: #072A19;
}

.copyright a {
    color: #FFFFFF;
}

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