/********** Template CSS **********/
:root {
    --primary: #EAA636;
    --secondary: #545454;
    --light: #FDF5EB;
    --dark: #1E1916;
}

h4,
h5,
h6,
.h4,
.h5,
.h6 {
    font-weight: 600 !important;
}

.py-6 {
    padding-top: 10px;
    padding-bottom: 10px;
}

.my-6 {
    margin-top: 4rem;
    margin-bottom: 4rem;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 10px;
    bottom: 100px;
    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;
}

.text-color {
    color: var(--buttonbackground) !important;
}

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

.btn.btn-primary {
    color: var(--buttontext) !important;
    background-color: var(--buttonbackground) !important;
    border-color: var(--buttonbackground) !important;
}

.btn.btn-primary:hover {
    color: white !important;
    background-color: #bc4200 !important;
    border-color: var(--headerbackground) !important;
}

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

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

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

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    margin-bottom: 5px;
    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 .navbar-nav .nav-link {
    padding: 35px 15px;
    color: #ff6606;
    outline: none;
}

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

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
    color: var(--buttonbackground);
}

.navbar.fixed-top {
    transition: .5s;
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav {
        margin-top: 10px;
        border-top: 1px solid rgba(255, 255, 255, .3);
        background: var(--headerbackground);
    }

    .navbar .navbar-nav .nav-link {
        padding: 10px 0;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        visibility: hidden;
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
        transition: .5s;
        opacity: 0;
    }

    .navbar .nav-item:hover .dropdown-menu {
        transform: rotateX(0deg);
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/
.header-carousel .owl-carousel-inner {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, .5);
}

.header-carousel .owl-nav {
    position: absolute;
    width: 100%;
    height: 0;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    z-index: 10;
    pointer-events: none;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    pointer-events: auto;
    width: 46px;
    height: 46px;
    background: rgba(0, 0, 0, 0.45) !important;
    color: #ffffff !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    backdrop-filter: blur(4px);
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    background: var(--buttonbackground, #233d81) !important;
    color: #ffffff !important;
    border-color: #ffffff !important;
    transform: scale(1.1);
}

.header-carousel .owl-dots {
    position: absolute;
    bottom: 15px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    z-index: 10;
}

.header-carousel .owl-dots .owl-dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5) !important;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.header-carousel .owl-dots .owl-dot.active {
    width: 30px;
    border-radius: 6px;
    background: var(--buttonbackground, #233d81) !important;
}

@media (max-width: 768px) {
    .header-carousel .owl-carousel-item {
        position: relative;
        min-height: auto !important;
        height: auto !important;
    }

    .header-carousel .owl-carousel-item img {
        position: static !important;
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
        display: block !important;
    }

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

    .header-carousel .owl-nav {
        padding: 0 6px !important;
    }

    .header-carousel .owl-nav .owl-prev,
    .header-carousel .owl-nav .owl-next {
        width: 26px !important;
        height: 26px !important;
        min-width: 26px !important;
        font-size: 12px !important;
        border-width: 1px !important;
        background: rgba(0, 0, 0, 0.5) !important;
    }

    .header-carousel .owl-dots {
        bottom: 5px !important;
        gap: 5px !important;
    }

    .header-carousel .owl-dots .owl-dot {
        width: 6px !important;
        height: 6px !important;
    }

    .header-carousel .owl-dots .owl-dot.active {
        width: 16px !important;
        border-radius: 4px !important;
    }
}

.page-header {
    margin-bottom: 0 !important;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0a00 40%, #2d1200 70%, #3d1a00 100%) !important;
    border-bottom: 1.5px solid rgba(234, 88, 12, 0.3) !important;
    position: relative;
    overflow: hidden;
    min-height: unset !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 120px;
    background: radial-gradient(ellipse, rgba(234, 88, 12, 0.18) 0%, transparent 70%);
    pointer-events: none;
}

.page-header .container {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    position: relative;
}

.page-header .breadcrumb {
    margin-bottom: 0 !important;
    font-size: 0.88rem !important;
    justify-content: center !important;
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.75) !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    font-size: 0.88rem !important;
    transition: color 0.2s;
}

.page-header .breadcrumb-item a:hover {
    color: #ea580c !important;
}

.page-header .breadcrumb-item.active,
.page-header .breadcrumb-item.text-color {
    color: #ea580c !important;
    font-weight: 600 !important;
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.4) !important;
}

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

@media (max-width: 768px) {
    .page-header {
        padding-top: 8px !important;
        padding-bottom: 8px !important;
    }

    .page-header::before {
        width: 300px !important;
        height: 100px !important;
        top: -30px !important;
    }

    .page-header .container {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    .page-header h1,
    .page-header .display-4,
    .page-header h2,
    .page-header .page-title {
        display: none !important;
    }

    .page-header .breadcrumb {
        font-size: 0.8rem !important;
        margin-bottom: 0 !important;
    }

    .page-header .breadcrumb-item,
    .page-header .breadcrumb-item a {
        font-size: 0.8rem !important;
    }

    .page-header .breadcrumb-item + .breadcrumb-item::before {
        padding-left: 0.35rem !important;
        padding-right: 0.35rem !important;
        font-size: 0.75rem !important;
    }
}


/*** Facts ***/
.fact-item {
    transition: .5s;
}

.fact-item:hover {
    margin-top: -10px;
    background: #FFFFFF !important;
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
}




/*** Modern Service & Product Cards ***/
.service-card-modern {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.07);
    transition: transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.35s ease, border-color 0.35s ease;
    height: 100%;
}

.service-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(35, 61, 129, 0.3);
}

.service-card-img-wrap {
    height: 220px;
    width: 100%;
    position: relative;
    overflow: hidden;
    background: #f1f5f9;
}

.service-card-img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.service-card-modern:hover .service-card-img {
    transform: scale(1.08);
}

.service-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.service-card-modern:hover .service-card-overlay {
    opacity: 1;
}

.service-card-icon-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #ffffff;
    color: var(--buttonbackground, #233d81);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    transform: translateY(10px);
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.service-card-modern:hover .service-card-icon-btn {
    transform: translateY(0);
}

.service-card-body {
    background: #ffffff;
    transition: background 0.3s ease;
}

.service-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.4;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-card-modern:hover .service-card-title {
    color: var(--buttonbackground, #233d81);
}

.service-card-desc {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-card-desc p {
    margin-bottom: 0 !important;
}

.service-card-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 12px;
}

.service-card-link-text {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--buttonbackground, #233d81);
}

.service-card-arrow {
    font-size: 1rem;
    color: var(--buttonbackground, #233d81);
    transition: transform 0.3s ease;
}

.service-card-modern:hover .service-card-arrow {
    transform: translateX(5px);
}

@media (max-width: 576px) {
    .service-card-img-wrap {
        height: 155px;
    }
    .service-card-title {
        font-size: 0.95rem;
    }
    .service-card-body {
        padding: 1rem !important;
    }
}

/*** Product ***/
.product-item {
    transition: .5s;
}

.product-item:hover {
    background: var(--buttonbackground) !important;
}

.product-item:hover * {
    color: var(--buttontext) !important;
}

.product-item:hover .border-primary {
    border-color: var(--buttontext) !important;
}

.product-item .product-overlay {
    position: absolute;
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .5);
    overflow: hidden;
    opacity: 0;
    transition: .5s;
}

.product-item:hover .product-overlay {
    height: 100%;
    opacity: 1;
}


/*** Team ***/
.team-item .team-text {
    position: relative;
    height: 100px;
    overflow: hidden;
}

.team-item .team-title {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: white;
    transition: .5s;
}

.team-item:hover .team-title {
    top: -100px;
}

.team-item .team-social {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 100px;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--buttonbackground);
    color: var(--buttontext);
    transition: .5s;
}

.team-item .team-social .btn {
    margin: 0 3px;
}

.team-item:hover .team-social {
    top: 0;
}


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

.testimonial-carousel .owl-item .testimonial-item,
.testimonial-carousel .owl-item .testimonial-item * {
    transition: .5s;
}

/* .testimonial-carousel .owl-item.center .testimonial-item {
    background: var(--buttonbackground) !important;
}

.testimonial-carousel .owl-item.center .testimonial-item * {
    color: var(--buttontext) !important;
} */

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

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    margin: 0 90px;
    width: 90px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    font-size: 22px;
    color: var(--buttontext) !important;
    background: var(--buttonbackground) !important;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: var(--headertext) !important;
    background: var(--headerbackground) !important;
}


/*** Footer ***/
.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: var(--footertext) !important;
    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: var(--footertext) !important;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
/*    color: var(--buttonbackground) !important;*/
    letter-spacing: 1px;
    box-shadow: none;
}

.copyright {
    background: var(--footerbackground) !important;
}

.copyright p {
    color: var(--footertext) !important;
}

.copyright a {
    color: white;
}

.copyright a:hover {
    color: var(--buttontext) !important;
}

.footer h4 {
    color: var(--footertext) !important;
}

.footer p {
    color: var(--footertext) !important;
}

.btn-outline-light {
    color: var(--buttontext) !important;
    border-color: var(--buttontext) !important;
}

.btn-outline-light:hover {
    color: var(--buttontext) !important;
    background-color: var(--buttonbackground) !important;
    border-color: var(--buttonbackground) !important;
}

.page-item.active .page-link {
    background-color: var(--buttonbackground) !important;
    border-color: var(--buttonbackground) !important;
    color: var(--buttontext) !important;
}

.page-link {
    position: relative;
    display: block;
    color: var(--buttonbackground) !important;
    background-color: var(--buttontext) !important;
    border: 1px solid var(--buttonbackground) !important;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}