/********** Template CSS **********/
:root {
    --primary: #e63946;
    --secondary: #E93C05;
    --tertiary: #555555;
    --light: #DFE4FD;
    --dark: #011A41;
    --primary-blue: #b0d4e8;
    --primary-red: #e63946;
    --dark-gray: #2c3e50;
    --light-gray: #f8f9fa;
    --text-muted: #6c757d;
    --white: #ffffff;
}

/* :root {
  --primary-blue: #b0d4e8;
  --primary-red: #e63946;
  --dark-gray: #2c3e50;
  --light-gray: #f8f9fa;
  --text-muted: #6c757d;
  --white: #ffffff;

  #DEE2FB
} */


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

h1,
.h1,
h2,
.h2,
.fw-bold {
    font-weight: 700 !important;
}

h3,
.h3,
h4,
.h4,
.fw-medium {
    font-weight: 600 !important;
}

h5,
.h5,
h6,
.h6,
.fw-semi-bold {
    font-weight: 500 !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-primary,
.btn-outline-primary:hover {
    color: var(--light);
}

.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 ***/
.fixed-top {
    transition: .5s;
}

.top-bar {
    height: 45px;
    border-bottom: 1px solid rgba(53, 94, 252, .07);
}

.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: 25px 15px;
    color: var(--tertiary);
    font-weight: 500;
    outline: none;
}

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

@media (max-width: 991.98px) {
    .navbar .navbar-nav {
        margin-top: 10px;
        border-top: 1px solid rgba(0, 0, 0, .07);
        background: #FFFFFF;
    }

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

@media (max-width:580px) {
    .navbar h1 {
        font-size: calc(1.375rem) !important;
    }

}

/*** Header ***/

.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: start;
    z-index: 1;
}

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

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    background-color: var(--primary);
    border: 10px solid var(--primary);
}

.carousel-control-prev-icon {
    border-radius: 0 3rem 3rem 0;
}

.carousel-control-next-icon {
    border-radius: 3rem 0 0 3rem;
}

@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 {
    padding-top: 12rem;
    padding-bottom: 2rem;
    /* background: #DEE2FB; */
    /* background: url(../img/header-banner.jpg), no-repeat, center, center; */
    background: url(../img/header-img1.jpg);
    background-size: cover;
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    font-weight: 500;
}

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


/*** Facts ***/
.facts {
    background: linear-gradient(rgba(53, 94, 252, .95), rgba(53, 94, 252, .95)), url(../img/bg.png);
}


/*** Callback ***/
.callback {
    position: relative;
}

.callback::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 50%;
    top: 0;
    left: 0;
    background: linear-gradient(rgba(252, 53, 53, 0.95), rgba(252, 53, 53, 0.95)), url(../img/bg.png);
    z-index: -1;
}


/*** Feature ***/
.feature .feature-box,
.feature .feature-box * {
    transition: .5s;
}

.feature .feature-box:hover {
    background: var(--primary);
    border-color: var(--primary) !important;
}

.feature .feature-box:hover * {
    color: #FFFFFF !important;
}


/*** Service ***/
.service .nav .nav-link {
    transition: .5s;
}

.service .nav .nav-link.active {
    border-color: var(--primary) !important;
    background: var(--primary);
}

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

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


/*** Project ***/
.project-item,
.project-item .project-img {
    position: relative;
}

.project-item .project-img a {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, .5);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    opacity: 0;
    transition: .5s;
}

.project-item:hover .project-img a {
    opacity: 1;
}

.project-item .project-title {
    position: absolute;
    top: 3rem;
    right: 0;
    bottom: 0;
    left: 3rem;
    border: 1px solid var(--light);
    border-radius: 8px;
    display: flex;
    align-items: flex-end;
    padding: 18px;
    z-index: -1;
    transition: .5s;
}

.project-item:hover .project-title {
    background: var(--primary);
    border-color: var(--primary);
}

.project-item .project-title h4 {
    transition: .5s;
}

.project-item:hover .project-title h4 {
    color: #FFFFFF;
}

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

.project-carousel .owl-nav .owl-prev,
.project-carousel .owl-nav .owl-next {
    margin: 0 12px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: var(--light);
    border-radius: 45px;
    font-size: 22px;
    transition: .5s;
}

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


/*** Team ***/
.team-item {
    position: relative;
    padding: 4rem 0;
}

.team-item img {
    position: relative;
    z-index: 2;
}

.team-item .team-text {
    position: absolute;
    top: 0;
    right: 3rem;
    bottom: 0;
    left: 3rem;
    padding: 15px;
    border: 1px solid var(--light);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    transition: .5s;
    z-index: 1;
}

.team-item:hover .team-text {
    background: var(--primary);
    border-color: var(--primary);
}

.team-item .team-text h4 {
    transition: .5s;
}

.team-item:hover .team-text h4 {
    color: #FFFFFF;
}

.team-item .team-social .btn {
    background: var(--light);
    color: var(--primary);
}

.team-item:hover .team-social .btn {
    background: #FFFFFF;
}

.team-item .team-social .btn:hover {
    background: var(--primary);
    color: var(--light);
}


/*** Testimonial ***/
.testimonial-item {
    position: relative;
    text-align: center;
    padding-top: 30px;
}

.testimonial-item .testimonial-text {
    position: relative;
    text-align: center;
}

.testimonial-item .testimonial-text .btn-square {
    position: absolute;
    width: 60px;
    height: 60px;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
}

.testimonial-item .testimonial-text::before {
    position: absolute;
    content: "";
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    border: 30px solid;
    border-color: var(--light) transparent transparent transparent;
}

.testimonial-item .testimonial-text::after {
    position: absolute;
    content: "";
    bottom: -59px;
    left: 50%;
    transform: translateX(-50%);
    border: 30px solid;
    border-color: #FFFFFF transparent transparent transparent;
}

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

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

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 30px;
    height: 30px;
    border: 1px solid var(--light);
    border-radius: 30px;
    transition: .5s;
}

.testimonial-carousel .owl-dot::after {
    position: absolute;
    content: "";
    width: 16px;
    height: 16px;
    top: 6px;
    left: 6px;
    border-radius: 16px;
    background: var(--light);
    transition: .5s;
}

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

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


/*** 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(--primary);
    letter-spacing: 1px;
    box-shadow: none;
}

.copyright {
    color: var(--light);
    background: #000B1C;
}

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

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

/* =====================xxxxxxxxxxxxxxxxxxxxxx========================= */


/* Why Choose Us */
.why-choose-us {
    background: var(--light-gray);
    padding: 80px 0;
    overflow-x: hidden;
}

.why-choose-us li {
    font-size: 1rem;
}

.stats-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-box {
    background: var(--primary-blue);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-box:hover {
    background: var(--primary-red);
    color: var(--white);
    transform: scale(1.05);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: 10px;
}

.stat-box:hover .stat-number {
    color: var(--white);
}

.stat-label {
    font-size: 0.95rem;
    color: var(--dark-gray);
    font-weight: 600;
}

.stat-box:hover .stat-label {
    color: var(--white);
}


/* ========about=================== */


.mission-box {
    background: var(--light-gray);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.mission-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.mission-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 32px;
    color: var(--white);
}

.value-item {
    padding: 20px;
    border-left: 4px solid var(--primary-red);
    transition: all 0.3s ease;
}


/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-red) 0%, #d62828 100%);
    padding: 80px 0;
    text-align: center;
}

.cta-section .btn-light {
    font-weight: 600;
    padding: 15px 40px;
    transition: all 0.3s ease;
}

.cta-section .btn-light:hover {
    background-color: var(--light-gray);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* =================xxxxxxxx===================== */

/* Contact Page */
.contact-card {
    background: var(--light-gray);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 32px;
    color: var(--primary-red);
    transition: all 0.3s ease;
}

.contact-card:hover .contact-icon {
    background: var(--primary-red);
    color: var(--white);
    transform: scale(1.1);
}

.form-control {
    border: 2px solid #e0e0e0;
    padding: 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 0.2rem rgba(230, 57, 70, 0.25);
}

.office-hours {
    border-left: 4px solid var(--primary-red);
}

/* Services Page */
.service-detail-image {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #e8f4f8 100%);
    border-radius: 15px;
    padding: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.service-detail-image i {
    font-size: 100px;
    color: var(--primary-red);
    transition: all 0.3s ease;
}

.service-detail-image:hover i {
    transform: scale(1.1) rotate(5deg);
}


/* .contact_stickey{
  display: none !important;
} */

.contact_stickey {
    position: fixed;
    bottom: 90px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.contact_stickey .call,
.contact_stickey .whatsapp {
    padding: 5px;
    text-decoration: none;
    border-radius: 15%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s, transform 0.3s;
}

.contact_stickey .whatsapp {
    background-color: #25D366;
}

.contact_stickey .call {
    background-color: var(--primary-red);
}

.whatsapp:hover,
.call:hover {
    transform: scale(1.1);
}

.navbar .dropdown-menu .dropdown-item:hover,
.navbar .dropdown-menu .dropdown-item.active {
    background-color: var(--primary) !important;
    color: #fff;
}



/* dropdown menu navigation */

.dropdown-menu {
    padding: 0px;
}

/* --- Base Arrow Styling --- */
.dropdown-toggle::after {
    transition: transform 0.3s ease !important;
    vertical-align: middle !important;
}

/* --- Desktop: Sidebar Flyout --- */
@media (min-width: 992px) {
    .dropdown-submenu {
        position: relative;
        margin-left: -65px !important;
        background-color: #f8f9fa !important;
    }

    .dropdown-submenu .dropdown-menu {
        display: none !important;
        position: absolute !important;
        top: 0 !important;
        left: 100% !important;
        margin-left: -2px !important;
        min-width: 260px;
        z-index: 1000;
    }

    /* ONLY Statutory Registrations submenu moves up */
    .dropdown-submenu>a.Statutory+.dropdown-menu {
        top: -200px !important;
    }

    /* Show on Hover OR when JS adds 'show' class on click */
    .dropdown-submenu:hover>.dropdown-menu,
    .dropdown-submenu.show>.dropdown-menu {
        display: block !important;
    }

    /* Rotate arrow to point right on desktop when active */
    .dropdown-submenu:hover>.dropdown-toggle::after,
    .dropdown-submenu.show>.dropdown-toggle::after {
        transform: rotate(-90deg);
    }
}

/* --- Mobile: Nested Accordion --- */
@media (max-width: 991.98px) {
    .navbar-collapse {
        max-height: 80vh;
        overflow-y: auto !important;
    }

    .dropdown-submenu .dropdown-menu {
        position: relative !important;
        left: 0 !important;
        display: none !important;
        width: 100% !important;
        margin-left: 1rem !important;
        border: none !important;
        background-color: #f8f9fa !important;
    }

    /* Show when JS toggles 'show' class */
    .dropdown-submenu.show>.dropdown-menu {
        display: block !important;
    }

    /* Arrow points down normally, rotates up when open */
    .dropdown-submenu.show>.dropdown-toggle::after {
        transform: rotate(180deg);
    }

    .dropdown-submenu .dropdown-toggle::after {
        float: right;
    }
}