/********** Template CSS **********/
:root {
    --primary: #2878EB;
    --secondary: #F14D5D;
    --light: #ECF4FF;
    --dark: #120F2D;
}

[class^=flaticon-]:before,
[class*=" flaticon-"]:before,
[class^=flaticon-]:after,
[class*=" flaticon-"]:after {
    font-size: inherit;
    margin-left: 0;
}

h1,
h2,
.font-weight-bold {
    font-weight: 700 !important;
}

h3,
h4,
.font-weight-semi-bold {
    font-weight: 600 !important;
}

h5,
h6,
.font-weight-medium {
    font-weight: 500 !important;
}

.btn {
    font-family: 'Jost', sans-serif;
    font-weight: 600;
    transition: .5s;
}

.btn-primary,
.btn-secondary,
.btn-primary:hover,
.btn-secondary:hover {
    color: #FFFFFF;
}

.btn-primary:hover {
    background: var(--secondary);
    border-color: var(--secondary);
}

.btn-secondary:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-square {
    width: 36px;
    height: 36px;
}

.btn-sm-square {
    width: 28px;
    height: 28px;
}

.btn-lg-square {
    width: 46px;
    height: 46px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

.navbar-light .navbar-nav .nav-link {
    font-family: 'Jost', sans-serif;
    position: relative;
    margin-left: 30px;
    padding: 30px 0;
    font-size: 18px;
    font-weight: 400;
    color: var(--dark);
    outline: none;
    transition: .5s;
}

.sticky-top.navbar-light .navbar-nav .nav-link {
    padding: 20px 0;
}

/* .navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
} */

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: #224294 !important;
}


/* @media (min-width: 992px) {
    .navbar-light .navbar-nav .nav-link::before {
        position: absolute;
        content: "";
        width: 0;
        height: 5px;
        bottom: 0;
        left: 50%;
        background: var(--primary);
        transition: .5s;
    }

    .navbar-light .navbar-nav .nav-link:hover::before,
    .navbar-light .navbar-nav .nav-link.active::before {
        width: 100%;
        left: 0;
    }

    .navbar-light .navbar-nav .nav-link.nav-contact::before {
        display: none;
    }
} */
@media (min-width: 992px) {
    .navbar-light .navbar-nav .nav-link::before {
        position: absolute;
        content: "";
        width: 0;
        height: 3px;
        bottom: 6px;
        left: 50%;
        background: #224294;
        transition: .5s;
    }

    .navbar-light .navbar-nav .nav-link:hover::before,
    .navbar-light .navbar-nav .nav-link.active::before {
        width: 100%;
        left: 0;
    }

    .navbar-light .navbar-nav .nav-link.nav-contact::before {
        display: none;
    }
}


@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link {
        margin-left: 0;
        padding: 10px 0;
    }
}

.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent !important;
    /* background: rgba(18, 15, 45, .5); */
    z-index: 1;
}

@media (max-width: 576px) {
    .carousel-caption h5 {
        font-size: 14px;
        font-weight: 500 !important;
    }

    .carousel-caption h1 {
        font-size: 30px;
        font-weight: 600 !important;
    }
}

.carousel-control-prev,
.carousel-control-next {
    width: 10%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
}

.carousel-indicators {
    align-items: flex-end;
}

.carousel-indicators [data-bs-target] {
    width: 5px;
    height: 25px;
}

.carousel-indicators .active {
    height: 45px;
}

/* .hero-header {
    background: linear-gradient(rgba(18, 15, 45, .5), rgba(18, 15, 45, .5)), url(../img/carousel-1.jpg) top right no-repeat;
    background-size: cover;
} */
/* .hero-header {
    background: linear-gradient(rgba(18, 15, 45, .5), rgba(18, 15, 45, .5)), url(../img/banner_img.jpg) top right no-repeat;
    background-size: cover;
} */
.hero-header {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* ✅ Show full image proportionally */
.hero-img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 100vh;
    /* prevent image from exceeding screen */
}

/* ✅ Text perfectly centered */
.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 1;
}

/* ✅ Optional overlay for better text visibility */
.hero-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    /* light overlay */
    z-index: 0;
}

/* ✅ Fix for very tall/narrow screens like Galaxy Fold */
@media (max-aspect-ratio: 3/4) {
    .hero-img {
        height: auto;
        width: 100%;
    }

    .hero-content h1 {
        font-size: 2rem;
    }
}

/* .service-item div {
    z-index: 1;
}

.service-item div::after {
    position: absolute;
    content: "";
    width: 0;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 2px 2px 0 0;
    transition: .5s;
    z-index: -1;
}

.service-item div:hover::after {
    width: 100%;
    background: var(--primary);
}

.service-item * {
    transition: .5s;
}

.service-item:hover * {
    color: var(--light) !important;
} */


/* Fixed hover background & color for all service cards */
.service-item {
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.4s ease;
}

/* Service card hover background color */
.service-item::after {
    position: absolute;
    content: "";
    width: 0%;
    height: 100%;
    top: 0;
    left: 0;
    background: #224294;
    /* new hover color */
    border-radius: 2px;
    z-index: -1;
    transition: width 0.4s ease;
}

.service-item:hover::after {
    width: 100%;
}

.service-item:hover * {
    color: #ffffff !important;
}


.service-item * {
    transition: color 0.4s ease;
}

/* .service-item:hover * {
    color: var(--light) !important;
} */

.bg-offer {
    background: linear-gradient(rgba(18, 15, 45, .5), rgba(18, 15, 45, .5)), url(../img/carousel-2.jpg) top right no-repeat;
    background-size: cover;
}

.testimonial-carousel .owl-dots {
    height: 45px;
    margin-top: 5px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 5px;
    height: 25px;
    background: #DDDDDD;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    height: 45px;
    /* background: var(--primary); */
    background: #224294 !important;
}

.testimonial-carousel .owl-item .testimonial-text,
.testimonial-carousel .owl-item .testimonial-text * {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-text {
    /* background: var(--primary) !important; */
    background: #224294 !important;
}

.testimonial-carousel .owl-item.center .testimonial-text * {
    color: #FFFFFF !important;
}

.blog-date {
    position: absolute;
    width: 90px;
    height: 65px;
    top: 75px;
    left: -25px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: var(--secondary);
}

.blog-date::after {
    position: absolute;
    content: "";
    width: 0;
    height: 0;
    top: -25px;
    left: 0;
    border: 13px solid;
    border-color: transparent #D34351 #D34351 transparent;
    z-index: -1;
}

/* Equal height & alignment for all service cards */
.service-item {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.row.g-5>[class*='col-'] {
    display: flex;
}

@media (max-width: 991px) {
    .service-item {
        margin-bottom: 20px;
    }
}

.modal {
    z-index: 2000;
}

footer,
.bg-dark,
.bg-primary {
    position: relative;
    z-index: 1;
}

/* === Footer Customization === */
footer .bg-dark {
    background-color: #120F2D !important;
    /* dark navy background */
    color: #ffffff;
}

footer .bg-primary {
    background: linear-gradient(90deg, #224294, #DC1D25) !important;
    /* gradient blue→red */
    color: #ffffff !important;
    border: none;
}

/* Fix footer container width */
footer .container-fluid {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 40px !important;
    padding-right: 40px !important;
    margin: 0 auto !important;
}

/* Ensure social media icons stay white */
footer .btn.btn-lg-square i {
    color: #fff !important;
}

/* Hover effect for icons */
footer .btn.btn-lg-square:hover {
    background: linear-gradient(135deg, #224294, #DC1D25) !important;
    border: none !important;
    color: #fff !important;
}

/* Footer links */
footer a {
    color: #fff !important;
    text-decoration: none;
}

footer a:hover {
    opacity: 0.85;
    text-decoration: none;
}



body.modal-open {
    overflow: hidden !important;
    padding-right: 0 !important;
}


/* Footer alignment fix */
.bg-dark .row.g-5>[class*='col-'] {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.bg-dark p,
.bg-dark a,
.bg-dark h3 {
    word-wrap: break-word;
}

.bg-dark .d-flex {
    flex-wrap: wrap;
}

@media (max-width: 767px) {
    .bg-dark .text-md-end {
        text-align: center !important;
    }
}

.bg-primary .row.g-5 {
    align-items: center;
}

.bg-primary p {
    margin-bottom: 0;
}

body.modal-open {
    padding-right: 0 !important;
}

/* ===== Custom Modal Styling ===== */
.modal-header {
    background-color: #224294 !important;
}

.modal-header .modal-title {
    color: #ffffff !important;
    font-weight: 600 !important;
}

.modal-header .btn-close {
    filter: invert(1);
    /* makes close icon white */
}

/* Bottom close button */
.modal-footer .btn[data-bs-dismiss="modal"] {
    background-color: #DC1D25 !important;
    color: #fff !important;
    border: none;
}

.modal-footer .btn[data-bs-dismiss="modal"]:hover {
    background-color: #b71a1f !important;
    /* darker red hover */
}

/* === ICON COLOR CHANGE (Default Red → Hover White) === */
.service-item img {
    display: block;
    margin: 0 auto 15px auto;
    /* centers horizontally + adds bottom margin */
    width: 80px;
    height: 80px;
    filter: brightness(0) saturate(100%) invert(15%) sepia(87%) saturate(7489%) hue-rotate(353deg) brightness(93%) contrast(96%);
    transition: filter 0.4s ease;
}

.service-item:hover img {
    filter: brightness(0) invert(1);
}

.gradient-text {
    background: linear-gradient(90deg, #DC1D25, #224294);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
    text-decoration: none;
}

.gradient-text:hover {
    opacity: 0.8;
}

/* === Back to Top Button Custom Colors === */
.back-to-top {
    background-color: #DC1D25 !important;
    /* Default Red */
    color: #ffffff !important;
    border: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.back-to-top:hover {
    background-color: #224294 !important;
    color: #ffffff !important;
}


.custom-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 2px 12px;
    gap: 4px;
}


/* ---------- Brand Section ---------- */
.custom-navbar .brand-area {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    min-width: 0;
}

.custom-navbar .logo-img {
    height: 48px;
    object-fit: contain;
}

.custom-navbar .brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    min-width: 0;
}

.custom-navbar .brand-title {
    font-size: clamp(1.4rem, 2vw + 0.5rem, 2.1rem) !important;
    font-weight: 700;
    white-space: normal;
    word-break: break-word;
    overflow: visible;
    text-overflow: unset;
    line-height: 1.2;
}

.custom-navbar .brand-subtitle {
    font-size: clamp(0.9rem, 1vw + 0.2rem, 1.1rem) !important;
    color: #555;
}

/* ---------- Menu Section ---------- */
.navbar-light .navbar-nav .nav-link {
    font-family: 'Jost', sans-serif;
    position: relative;
    margin-left: 30px;
    padding: 10px 0;
    /* font-size: 22px; */
    font-size: 20px;
    /* font-weight: 600; */
    /* font-weight: normal; */
    font-weight: 400;
    color: var(--dark);
    outline: none;
    transition: all 0.4s ease;
}

/* Move Home menu slightly left */
.navbar-light .navbar-nav {
    margin-left: -10px;
}


/* === Compact Call Button — 22px Text, Reduced Height & Width === */
.nav-item .nav-link.nav-contact,
.navbar .nav-link.nav-contact,
.navbar-collapse .nav-link.nav-contact {
  background-color: #224294 !important;
  color: #ffffff !important;
  border-radius: 8px !important;
  font-weight: 400 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 10px !important; /* 🔹 Reduced horizontal padding (was 16px) */
  font-size: 20px !important;
  line-height: 1.1;
  text-align: center;
  text-decoration: none !important;
  outline: none !important;
  transition: none !important;
  border: none !important;
  min-width: auto !important;
}

/* Icon slightly smaller for balance */
.nav-item .nav-link.nav-contact i,
.navbar .nav-link.nav-contact i {
  color: #ffffff !important;
  font-size: 20px !important;
  transition: none !important;
  transform: none !important;
}

/* No hover/active/visited color change */
.nav-item .nav-link.nav-contact:hover,
.nav-item .nav-link.nav-contact:active,
.nav-item .nav-link.nav-contact:visited {
  background-color: #224294 !important;
  color: #ffffff !important;
}





/* ---------- Mobile Responsive ---------- */
@media (max-width: 991.98px) {
  .nav-item .nav-contact {
    margin: 8px auto !important;
    display: flex !important;
    justify-content: center;
    border-radius: 10px !important;
  }
}

/* ---------- Mobile Responsive ---------- */
@media (max-width: 991.98px) {
  .nav-item .nav-contact {
    margin: 8px auto !important;
    display: flex !important;
    justify-content: center;
    border-radius: 10px !important;
  }
}






/* ---------- QR Code ---------- */
.custom-navbar .qr-box {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    flex-shrink: 0;
}

.custom-navbar .qr-box img {
    height: 50px;
    width: 50px;
    object-fit: contain;
}



/* Tablets */
@media (max-width: 991.98px) {
    .custom-navbar {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
    }

    .custom-navbar .brand-area {
        justify-content: center;
    }

    .navbar-nav {
        margin-left: 0 !important;
    }

    .custom-navbar .nav-contact {
        margin-top: 6px;
    }

    .custom-navbar .qr-box {
        margin-top: 8px;
    }

    .custom-navbar .qr-box img {
        height: 60px;
        width: 60px;
    }
}

/* Small Mobiles */
@media (max-width: 575.98px) {
    .custom-navbar {
        padding: 8px;
    }

    .custom-navbar .logo-img {
        height: 45px;
    }

    .custom-navbar .brand-title {
        font-size: 1.1rem;
        /* slightly bigger logo text on small devices */
    }

    .custom-navbar .brand-subtitle {
        font-size: 0.8rem;
    }

    /* Show QR neatly below everything on mobile */
    .custom-navbar .qr-box {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 6px;
    }

    .custom-navbar .qr-box img {
        height: 65px;
    }

    .navbar-toggler {
        margin-left: auto !important;
        margin-right: 15px !important;
        order: 3;
        position: relative;
        z-index: 1000;
    }

}

/* ==== Team Section Fix ==== */
.team-item {
    overflow: visible;
    /* Prevent icons from being cut off */
    border-radius: 0;
    /* Remove rounded corners */
    transition: all 0.4s ease;
    position: relative;
    margin-bottom: 30px;
}

.team-item:hover {
    transform: translateY(-5px);
}

/* Team Image should stay clean */
.team-item img {
    display: block;
    width: 100%;
    border-radius: 0;
    /* No top curve */
}

/* Social icons container */
.team-item .position-absolute {
    position: absolute;
    right: 10px;
    bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: #fff;
    padding: 6px;
    border-radius: 0;
    /* ⬅️ remove rounded background box */
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

/* Social media icons */
.team-social .btn-square {
    width: 38px;
    height: 38px;
    border-radius: 0 !important;
    /* ⬅️ make icons fully square */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #224294;
    /* Default border blue */
    background: #fff;
    color: #224294;
    font-size: 16px;
    transition: all 0.3s ease;
}

/* Hover effect — gradient fill, white icon */
.team-social .btn-square:hover {
    background: linear-gradient(135deg, #224294, #DC1D25);
    border-color: transparent;
    color: #fff;
}

/* Team member info box (Full Name & Designation) */
.team-member-info {
    background-color: #224294 !important;
    /* Custom dark blue */
    text-align: center;
    padding: 20px;
    border-radius: 0 !important;
    /* No rounded corners */
}

.team-member-info h3,
.team-member-info p {
    color: #fff !important;
    margin: 0;
}

.row.g-4.g-lg-5.justify-content-center {
    margin-top: 0 !important;
}



/* === Fix Contact Page Responsiveness === */

/* Make contact box full width on small devices */
@media (max-width: 768px) {
    .contact .bg-light {
        padding: 20px !important;
    }

    .contact iframe {
        height: 300px !important;
    }

    .contact .d-flex {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .contact .d-flex i {
        margin-bottom: 10px;
    }

    .contact .text-start {
        text-align: left !important;
    }

    .contact .col-lg-6 {
        width: 100% !important;
    }

    /* Ensure Google Map iframe stays inside screen */
    iframe.position-relative {
        width: 100% !important;
        height: 300px !important;
        border-radius: 8px;
    }
}

/* ─── Tally Partner Badge ─── */
.tally-fixed-badge {
    position: fixed;
    right: 45px;
    /* same as back-to-top */
    bottom: 115px;
    /* perfectly above back-to-top */
    z-index: 60;
    /* just below back-to-top button */
    width: 60px;
    text-align: center;
    padding: 8px 4px;
    transition: all 0.3s ease;
}

.tally-fixed-badge img {
    width: 60px;
    height: auto;
}

/* Hover Effect */
.tally-fixed-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

@media (max-width: 768px) {
    .tally-fixed-badge {
        display: block;
        right: 20px;
        /* closer to screen edge */
        bottom: 90px;
        /* just above back-to-top */
        width: 80px;
        /* smaller size for mobile */
        padding: 8px;
    }

    .tally-fixed-badge img {
        width: 45px;
        height: 45px;
    }

    .tally-fixed-badge span {
        font-size: 9px;
    }
}

.brand-logo-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background-color: #fff;
    object-fit: contain;
    padding: 36px;
    border: 2px solid #eee;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

@media (max-width: 768px) {
    .brand-logo-img {
        width: 130px;
        height: 130px;
        padding: 24px;
    }
}

/* 🔹 Blinking Tally Authorized Partners Text */
.tally-blink-text {
    display: flex;
    align-items: center;
    justify-content: center;
}

.tally-blink-text span {
    font-family: 'Jost', 'Open Sans', sans-serif; /* match your website font */
    color: #DC1D25; /* theme red */
    font-weight: 600;
    font-size: 0.9rem; /* ⬅️ reduced size */
    letter-spacing: 0.4px;
    animation: blinkText 1.5s infinite ease-in-out;
}

/* Smooth blinking animation */
@keyframes blinkText {
    0%, 100% {
        opacity: 1;
        color: #DC1D25; /* red */
    }
    50% {
        opacity: 0.6;
        color: #224294; /* blue */
    }
}

/* 🔹 Mobile responsive adjustments */
@media (max-width: 767.98px) {
  .tally-blink-text span {
    font-size: 0.8rem;  /* smaller on mobile */
  }
}



/* ===== Navbar Mobile Fix ===== */
@media (max-width: 991px) {
  .navbar-collapse {
    position: absolute;
    top: 100%; /* opens right below brand section */
    left: 0;
    width: 100%;
    background: #fff; /* white background for clarity */
    z-index: 1000;
    padding: 10px 0;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
  }

  .navbar-nav .nav-link {
    padding: 10px 20px;
    text-align: left;
    font-weight: 400;
    color: #222;
  }

  .navbar-nav .nav-link:hover {
    color: #2878EB; /* your theme color */
  }

  .navbar-toggler {
    border: none;
    outline: none;
  }

  .navbar {
    position: relative;
  }
}
/* ===== Responsive Call Button (Mobile View) ===== */
@media (max-width: 991px) {
  .navbar-collapse .nav-contact {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background-color: #224294 !important; /* your theme blue */
    color: #fff !important;
    /* font-size: 22px !important; */
    font-size: 20px !important;
    /* font-weight: 600; */
    font-weight: 400;
    padding: 8px 14px !important;
    border-radius: 8px;
    width: 85%;           /* smaller width, centered */
    margin: 10px auto;    /* center horizontally */
    text-align: center;
  }

  .navbar-collapse .nav-contact i {
    margin-right: 8px;
    /* font-size: 16px; */
  }

  .navbar-collapse .nav-contact:hover {
    background-color: #1b357a !important; /* darker on hover */
    color: #fff !important;
  }
}



