/********** Template CSS **********/
:root {
    --primary: #1272b6;
    --secondary: #8DC031;
    --tertiary: #555555;
    --light: #DFE4FD;
    --dark: #011A41;
}

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


/*** Keep template .wow sections visible — WOW.js used to hide them after scripts loaded ***/
.wow {
    visibility: visible !important;
    animation-name: 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-primary {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #ffffff !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active {
    background-color: #0d5c94 !important;
    border-color: #0d5c94 !important;
    color: #ffffff !important;
}

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

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active,
.btn-outline-primary.active {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #ffffff !important;
}

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

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

.border-primary {
    border-color: var(--primary) !important;
}

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

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

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


/*** 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: 6rem;
    background: url(../img/header.png) top left no-repeat;
    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);
}


/*** 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);
}


/*** 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);
}

/* Tailwind's .collapse uses visibility:collapse, which hides navbar links as a blank white bar */
.public-template .navbar-collapse.collapse,
.public-template .navbar-collapse.collapsing {
    visibility: visible !important;
}

.public-template .navbar-collapse.collapse:not(.show) {
    display: none;
}

@media (min-width: 992px) {
    .public-template .navbar-collapse.collapse {
        display: flex !important;
        visibility: visible !important;
        height: auto !important;
        overflow: visible !important;
        max-height: none !important;
    }
}

@media (max-width: 991.98px) {
    .public-template .navbar-collapse.collapse.show {
        display: block !important;
        visibility: visible !important;
    }
}

/* Custom Dropdown Styling */
.navbar .dropdown-menu {
    border-radius: 12px !important;
    padding: 12px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid rgba(53, 94, 252, 0.08) !important;
    min-width: 230px;
}

.navbar .dropdown-item {
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 14px;
    color: var(--tertiary);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.navbar .dropdown-item:hover {
    background-color: rgba(53, 94, 252, 0.08) !important;
    color: var(--primary) !important;
    transform: translateX(5px);
}

.navbar .dropdown-item.fw-bold {
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

/* Listing Card Custom Style */
.hover-shadow {
    transition: all 0.3s ease;
}

.hover-shadow:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(53, 94, 252, 0.12) !important;
    border-color: var(--primary) !important;
}

/* Accordion Override to prevent blue active background and focus ring */
.accordion-button:not(.collapsed) {
    background-color: #ffffff !important;
    color: var(--primary) !important;
    box-shadow: none !important;
}

.accordion-button:focus {
    box-shadow: none !important;
    border-color: rgba(0, 0, 0, 0.125) !important;
}

.public-template {
    overflow-x: hidden;
    max-width: 100%;
}

.public-template,
.public-template p,
.public-template h1,
.public-template h2,
.public-template h3,
.public-template h4,
.public-template h5,
.public-template h6,
.public-template li,
.public-template span,
.public-template a,
.public-template label {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.site-logo {
    height: 80px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
}

.whatsapp-btn-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50px;
    text-align: center;
    font-size: 32px;
    z-index: 9999;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.whatsapp-btn-float:hover {
    color: #fff;
    transform: scale(1.1);
}

.cibil-score {
    font-size: 6rem;
    line-height: 1.1;
}

.public-template .project-detail-hero {
    height: 450px;
    object-fit: cover;
}

.public-template .project-gallery-tile {
    height: 150px;
}

.public-template .project-plan-tile {
    height: 250px;
}

.public-template .project-map-embed {
    height: 400px;
}

@media (max-width: 991.98px) {
    .public-template .fixed-top {
        background: #fff;
        z-index: 1050;
    }

    .public-template .navbar {
        padding-top: 0.35rem;
        padding-bottom: 0.35rem;
        flex-wrap: wrap;
        align-items: center;
    }

    .public-template .navbar-brand {
        margin-left: 0.5rem;
        max-width: none;
        width: auto;
        flex: 0 0 auto;
    }

    .public-template .navbar-brand .site-logo,
    .public-template .navbar .site-logo {
        height: 34px;
        width: auto;
        max-width: 118px;
        max-height: 34px;
    }

    .public-template .navbar-toggler {
        padding: 0.35rem 0.5rem;
        border: 1px solid rgba(1, 26, 65, 0.18);
        background: #fff;
        box-shadow: none;
    }

    .public-template .navbar-toggler:focus {
        box-shadow: 0 0 0 0.15rem rgba(18, 114, 182, 0.2);
        outline: none;
    }

    .public-template .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(1, 26, 65, 0.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }

    .public-template .mobile-nav-open .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath stroke='rgba(1, 26, 65, 0.85)' stroke-linecap='round' stroke-width='1.4' d='M2 2l12 12M14 2L2 14'/%3e%3c/svg%3e");
    }

    .public-template .navbar-collapse {
        flex-basis: 100%;
        width: 100%;
        max-height: calc(100vh - 72px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        background: #fff;
        border-top: 1px solid rgba(1, 26, 65, 0.08);
    }

    .public-template .navbar .navbar-nav {
        margin-top: 0;
        border-top: 0;
        background: #fff;
        padding-bottom: 1rem;
    }

    .public-template .navbar .navbar-nav .nav-link {
        padding: 12px 4px;
        font-size: 15px;
        line-height: 1.4;
        text-align: left;
        color: var(--dark);
        visibility: visible !important;
        opacity: 1 !important;
    }

    .public-template .navbar .dropdown-menu {
        display: none !important;
        position: static !important;
        float: none !important;
        transform: none !important;
        visibility: visible !important;
        opacity: 1 !important;
        min-width: 100%;
        box-shadow: none !important;
        border: 0 !important;
        padding: 0 0 8px 12px !important;
        background: #f6f8fb !important;
        border-radius: 8px !important;
        margin: 0 0 8px !important;
    }

    .public-template .navbar .dropdown.show .dropdown-menu {
        display: block !important;
    }

    .public-template .navbar .dropdown-item {
        padding: 8px 8px;
        font-size: 14px;
        transform: none !important;
        color: var(--dark);
    }

    .public-template .navbar .dropdown-item:hover {
        transform: none !important;
    }

    .public-template .page-header {
        padding-top: 6.5rem;
        padding-bottom: 2.5rem;
        background-position: center;
    }

    .public-template .page-header .display-4,
    .public-template .page-header h1 {
        font-size: 1.75rem !important;
        line-height: 1.3;
        margin-bottom: 0.75rem;
    }

    .public-template .carousel-caption {
        padding: 5.5rem 1rem 1.25rem;
        align-items: flex-end;
        text-align: left;
        background: linear-gradient(to top, rgba(1, 26, 65, 0.72), rgba(1, 26, 65, 0.15) 55%, transparent);
    }

    .public-template .carousel-caption .display-1,
    .public-template .carousel-caption h1 {
        font-size: 1.7rem !important;
        line-height: 1.25;
        margin-bottom: 0.75rem;
    }

    .public-template .carousel-caption .fs-5,
    .public-template .carousel-caption p {
        font-size: 0.9rem !important;
        line-height: 1.45;
        margin-bottom: 0.85rem;
    }

    .public-template .carousel-caption .btn {
        padding: 0.65rem 1.15rem !important;
        font-size: 0.9rem;
    }

    .public-template .display-5,
    .public-template .display-4 {
        font-size: 1.65rem !important;
        line-height: 1.3;
    }

    .public-template .container,
    .public-template .container-xxl,
    .public-template .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .public-template .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .public-template form input,
    .public-template form select,
    .public-template form textarea {
        font-size: 16px !important;
        max-width: 100%;
    }

    .public-template form .btn,
    .public-template .btn.w-100 {
        width: 100%;
    }

    .public-template .card {
        max-width: 100%;
    }

    .public-template .card h4,
    .public-template .card h5 {
        font-size: 1.05rem;
        line-height: 1.35;
    }

    .public-template .card p {
        height: auto !important;
    }

    .cibil-score {
        font-size: 3.5rem !important;
        line-height: 1.1;
    }

    .public-template .footer {
        padding-top: 2.5rem !important;
        padding-bottom: 2rem !important;
        text-align: left;
    }

    .public-template .footer .py-5 {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    .public-template .copyright {
        padding-left: 1rem;
        padding-right: 1rem;
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .whatsapp-btn-float {
        width: 52px;
        height: 52px;
        font-size: 26px;
        bottom: calc(16px + env(safe-area-inset-bottom, 0px));
        right: calc(16px + env(safe-area-inset-right, 0px));
    }

    .back-to-top {
        right: 16px;
        bottom: calc(80px + env(safe-area-inset-bottom, 0px));
    }
}

@media (max-width: 767.98px) {
    #header-carousel .carousel-item {
        min-height: 420px;
    }

    .public-template .carousel-control-prev,
    .public-template .carousel-control-next {
        display: none;
    }

    .public-template .page-header {
        padding-top: 5.5rem;
        padding-bottom: 2rem;
    }

    .public-template .breadcrumb {
        flex-wrap: wrap;
        justify-content: center;
        row-gap: 4px;
        font-size: 0.85rem;
    }

    .public-template img {
        max-width: 100%;
        height: auto;
    }

    .public-template .navbar-brand .site-logo,
    .public-template .navbar .site-logo {
        height: 34px !important;
        width: auto !important;
        max-width: 118px !important;
        max-height: 34px !important;
        object-fit: contain;
    }

    .public-template .footer .site-logo {
        height: 44px !important;
        width: auto !important;
        max-width: 130px !important;
        max-height: 44px !important;
    }

    #header-carousel .carousel-item img {
        height: 100%;
        object-fit: cover;
    }

    .public-template .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .public-template .tab-content .col-md-6 {
        min-height: 200px !important;
    }

    .public-template .cibil-cta-btn {
        display: block;
        width: 100%;
    }

    .public-template .project-detail-hero {
        height: 220px !important;
        object-fit: cover;
    }

    .public-template .project-gallery-tile {
        height: 140px;
    }

    .public-template .project-plan-tile {
        height: 180px;
    }

    .public-template .project-map-embed {
        height: 240px;
    }

    .public-template .project-lightbox-nav {
        width: 36px;
        height: 36px;
        padding: 0;
    }
}

@media (max-width: 575.98px) {
    .public-template .navbar {
        flex-wrap: nowrap;
        gap: 0.5rem;
    }

    .public-template .navbar-brand {
        min-width: 0;
        max-width: none;
        margin-left: 0.25rem;
    }

    .public-template .navbar-brand .site-logo,
    .public-template .navbar .site-logo {
        height: 30px !important;
        width: auto !important;
        max-width: 100px !important;
        max-height: 30px !important;
    }

    .public-template .carousel-caption .display-1,
    .public-template .carousel-caption h1 {
        font-size: 1.4rem !important;
    }

    .public-template .display-5,
    .public-template .display-4,
    .public-template .page-header h1 {
        font-size: 1.4rem !important;
    }
}