/********** Template CSS **********/
:root {
    --primary: #1363C6;
    --secondary: #15ACE1;
    --light: #F4F7FE;
    --dark: #14183E;
}


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

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


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

h4,
h5,
h6,
.fw-medium {
    font-weight: 500 !important;
}


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

.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;
    border-radius: 50px;
}


/*** Navbar ***/
.sticky-top {
    top: 0 !important;
    transition: .5s;
    z-index: 1020;
}

.container-fluid.sticky-top {
    background: var(--primary);
}

.navbar {
    padding: 11px 0 !important;
    height: 75px;
}

.navbar .navbar-nav .nav-link {
    margin-right: 0;
    padding: 0;
    color: rgba(255, 255, 255, .7);
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: rgba(255, 255, 255, 1);
}

.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 {
        padding: 0 15px;
        background: var(--primary);
    }

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

@media (min-width: 992px) {
    .navbar .navbar-collapse {
        flex-grow: 0;
        margin-left: auto;
    }

    .navbar .navbar-nav {
        align-items: center;
        gap: 8px;
    }

    .navbar .navbar-nav .nav-link {
        margin-right: 0;
    }

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


/*** Hero Header ***/
.hero-header {
    margin-top: -75px;
    background: url(../assets/img/bg-hero.png) center center no-repeat;
    background-size: cover;
    padding-top: 110px !important;
    padding-bottom: 48px !important;
}

/* Keep hero blocks visually consistent across pages */
.hero-header .row {
    min-height: 460px;
    align-items: center;
}

.hero-header img.img-fluid {
    max-height: 420px;
    width: auto;
    object-fit: contain;
}

/* Force uniform hero layout by removing old right hero image column only */
.hero-header .col-lg-6.align-self-end.text-center.text-lg-end {
    display: none !important;
    width: 0 !important;
    max-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

.hero-header .breadcrumb-item,
.hero-header .breadcrumb-item a {
    font-size: 1.05rem;
    line-height: 1.2;
    font-weight: 500;
    color: #ffffff !important;
}

.hero-header .breadcrumb-item+.breadcrumb-item::before {
    font-size: 1.05rem;
    color: #ffffff !important;
}

@media (min-width: 992px) {
    .hero-header .container {
        position: relative;
    }

    .hero-header nav[aria-label="breadcrumb"] {
        position: absolute !important;
        right: 0 !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        margin: 0 !important;
        z-index: 5;
    }

    .hero-header nav[aria-label="breadcrumb"] .breadcrumb {
        justify-content: flex-end !important;
        margin-bottom: 0 !important;
        white-space: nowrap;
    }
}

@media (max-width: 991.98px) {
    .hero-header {
        padding-top: 105px !important;
        padding-bottom: 34px !important;
    }

    .hero-header .row {
        min-height: 320px;
    }

    .hero-header .align-self-center.text-center.text-lg-start {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .hero-header nav[aria-label="breadcrumb"] {
        position: static !important;
        transform: none !important;
        margin-top: 16px;
    }

    .hero-header .breadcrumb-item,
    .hero-header .breadcrumb-item a,
    .hero-header .breadcrumb-item+.breadcrumb-item::before {
        font-size: 1rem;
    }
}

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

/* Compact inner-page hero (all pages except homepage) */
.hero-header:not(.home-hero) {
    padding-top: 112px !important;
    padding-bottom: 14px !important;
}

.hero-header:not(.home-hero) .row {
    min-height: 0 !important;
    align-items: flex-start;
}

.hero-header:not(.home-hero) h1 {
    margin-bottom: 12px !important;
    font-size: clamp(2rem, 3vw, 3.2rem);
}

.hero-header:not(.home-hero) p {
    margin-bottom: 0 !important;
    font-size: 1.15rem;
    line-height: 1.5;
}

.hero-header:not(.home-hero) .hero-btns {
    margin-top: 10px;
    margin-bottom: 0 !important;
}

/* Override Bootstrap utility spacing used inside inner-page hero markup */
.hero-header:not(.home-hero).pt-5,
.hero-header:not(.home-hero).py-5,
.hero-header:not(.home-hero).pb-5 {
    padding-top: 112px !important;
    padding-bottom: 14px !important;
}

.hero-header:not(.home-hero) .container.pt-5,
.hero-header:not(.home-hero) .container.py-5,
.hero-header:not(.home-hero) .row.pt-5,
.hero-header:not(.home-hero) .row.py-5 {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.hero-header:not(.home-hero).mb-5 {
    margin-bottom: 0 !important;
}

@media (max-width: 991.98px) {
    .hero-header:not(.home-hero) {
        padding-top: 90px !important;
        padding-bottom: 10px !important;
    }

    .hero-header:not(.home-hero) .row {
        min-height: 0 !important;
    }

    .hero-header:not(.home-hero) h1 {
        font-size: clamp(1.7rem, 6vw, 2.4rem);
    }

    .hero-header:not(.home-hero) p {
        font-size: 1rem;
    }
}


/*** Section Title ***/
.section-title::before {
    position: absolute;
    content: "";
    width: 45px;
    height: 4px;
    bottom: 0;
    left: 0;
    background: var(--dark);
}

.section-title::after {
    position: absolute;
    content: "";
    width: 4px;
    height: 4px;
    bottom: 0;
    left: 50px;
    background: var(--dark);
}

.section-title.text-center::before {
    left: 50%;
    margin-left: -25px;
}

.section-title.text-center::after {
    left: 50%;
    margin-left: 25px;
}

.section-title h6::before,
.section-title h6::after {
    position: absolute;
    content: "";
    width: 10px;
    height: 10px;
    top: 2px;
    left: 0;
    background: rgba(33, 66, 177, .5);
}

.section-title h6::after {
    top: 5px;
    left: 3px;
}


/*** About ***/
.about-img {
    position: relative;
    overflow: hidden;
}

.about-img::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: url(../assets/img/bg-hero.png) top left no-repeat;
    background-size: contain;
}


/*** Service ***/
.service-item {
    position: relative;
    padding: 45px 30px;
    background: #FFFFFF;
    transition: .5s;
}

.service-item:hover {
    background: var(--primary);
}

.service-item .service-icon {
    margin: 0 auto 20px auto;
    width: 90px;
    height: 90px;
    color: var(--primary);
    background: var(--light);
    transition: .5s;
}

.service-item:hover .service-icon {
    background: #FFFFFF;
}

.service-item h5,
.service-item p {
    transition: .5s;
}

.service-item:hover h5,
.service-item:hover p {
    color: #FFFFFF;
}

.service-item:hover .text-muted,
.service-item:hover p.text-muted {
    color: rgba(255, 255, 255, 0.92) !important;
}

.service-item a.btn {
    position: relative;
    display: flex;
    color: var(--primary);
    transition: .5s;
    z-index: 1;
}

.service-item:hover a.btn {
    color: var(--primary);
}

.service-item a.btn::before {
    position: absolute;
    content: "";
    width: 35px;
    height: 35px;
    top: 0;
    left: 0;
    border-radius: 35px;
    background: var(--light);
    transition: .5s;
    z-index: -1;
}

.service-item:hover a.btn::before {
    width: 100%;
    background: var(--light);
}


/*** Feature ***/
.feature {
    background: url(../assets/img/bg-hero.png) center center no-repeat;
    background-size: cover;
}


/*** Newsletter ***/
.newsletter {
    background: url(../assets/img/bg-hero.png) center center no-repeat;
    background-size: cover;
}

.compact-cta h2 {
    margin-bottom: 8px !important;
    font-size: clamp(1.5rem, 2.2vw, 2.2rem);
}

.newsletter-compact .newsletter-illustration {
    max-width: 64%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.newsletter-compact .newsletter-text {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-compact h2 {
    font-size: clamp(1.15rem, 1.9vw, 2rem);
    line-height: 1.2;
}

.newsletter-compact .newsletter-form {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter--text-only .newsletter-text {
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

.newsletter--text-only .newsletter-text .btn,
.newsletter--text-only .newsletter-text .btn-light,
.newsletter--text-only .newsletter-text .btn-outline-light {
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 767.98px) {
    .newsletter-compact .newsletter-illustration {
        max-width: 52%;
    }
}

@media (min-width: 992px) {
    .newsletter .container {
        max-width: 100% !important;
    }

    .newsletter .newsletter-text  {
        padding-right: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .newsletter .newsletter-text  {
        padding-right: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .newsletter .newsletter-text  {
        padding-right: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Case Study ***/
.case-item img {
    transition: .5s;
}
  
.case-item:hover img {
    transform: scale(1.2);
}
  
.case-overlay {
    position: absolute;
    padding: 30px;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    background: linear-gradient(rgba(20, 24, 62, 0), var(--dark));
    z-index: 1;
}

.case-overlay small {
    display: inline-block;
    padding: 3px 15px;
    color: #FFFFFF;
    background: rgba(20, 24, 62, .7);
    border-radius: 25px;
    margin-bottom: 15px;
}

.case-overlay span.btn:hover {
    color: var(--primary);
    background: #FFFFFF;
    border-color: #FFFFFF;
}


/*** FAQs ***/
.accordion .accordion-item {
    border: none;
    margin-bottom: 15px;
}

.accordion .accordion-button {
    background: var(--light);
    border-radius: 2px;
}

.accordion .accordion-button:not(.collapsed) {
    color: #FFFFFF;
    background: var(--primary);
    box-shadow: none;
}

.accordion .accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion .accordion-body {
    padding: 16px 18px 10px 18px;
    line-height: 1.75;
}

.global-faq {
    margin-top: 36px;
}

.global-faq .accordion-button {
    padding-top: 16px;
    padding-bottom: 16px;
}


/*** Testimonial ***/
.testimonial-carousel {
    position: relative;
}

.testimonial-carousel .owl-nav {
    position: absolute;
    width: 40px;
    height: 100%;
    top: calc(50% - 50px);
    left: -21px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    margin: 5px 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: #FFFFFF;
    border: 1px solid var(--primary);
    border-radius: 40px;
    font-size: 18px;
    transition: .5s;
}

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

.testimonial-carousel .owl-dots {
    margin-top: 35px;
    margin-left: 3rem;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin-right: 10px;
    width: 15px;
    height: 15px;
    background: #FFFFFF;
    border: 1px solid var(--primary);
    border-radius: 15px;
    transition: .5s;
}

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

.testimonial-item .fs-4,
.testimonial-item .fs-5 {
    min-height: 132px;
}

@media (max-width: 991.98px) {
    .testimonial-item .fs-4,
    .testimonial-item .fs-5 {
        min-height: auto;
    }
}


/*** Team ***/
.team-item {
    transition: .5s;
    border: 1px solid transparent;
    transition: .5s;
}

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


/*** Footer ***/
.footer {
    background: url(../assets/img/footer.png) center center no-repeat;
    background-size: contain;
}

.footer .btn.btn-social {
    margin-right: 5px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.5);
    border: 1px solid rgba(256, 256, 256, .1);
    border-radius: 40px;
    transition: .3s;
}

.footer .btn.btn-social:hover {
    color: var(--primary);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 10px;
    padding: 0;
    text-align: left;
    color: rgba(255,255,255,.5);
    font-weight: normal;
    transition: .3s;
}

.footer .btn.btn-link:hover {
    color: #FFFFFF;
}

.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 {
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 14px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: rgba(255,255,255,.5);
}

.footer .copyright a:hover {
    color: #FFFFFF;
}

.footer .footer-menu a {
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, .1);
}

.footer .footer-menu a:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}

/* ==================================================
   ✅ LATEST BLOGS – FINAL CLEAN (ONLY ONE BLOCK)
   Desktop: 3 cards (equal height) + Owl carousel if available
================================================== */

#latestBlogs .blog-carousel{
  width: 100%;
  display: block !important;
  visibility: visible !important;
}

/* ✅ Fallback grid ONLY when owl is NOT loaded */
#latestBlogs .blog-carousel:not(.owl-loaded){
  margin-top: 1.5rem;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  overflow: hidden;
}

@media (max-width: 991.98px){
  #latestBlogs .blog-carousel:not(.owl-loaded){
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px){
  #latestBlogs .blog-carousel:not(.owl-loaded){
    grid-template-columns: 1fr;
  }
}

#latestBlogs .blog-carousel:not(.owl-loaded) .blog-slide{
  padding: 0;
}

/* ✅ Card / equal height */
#latestBlogs .blog-slide{
  height: 100%;
  padding: 10px;
}

#latestBlogs .blog-card{
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  height: 100%;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  transition: all 0.3s ease;

  display: flex;
  flex-direction: column;
}

#latestBlogs .blog-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 14px 32px rgba(0,0,0,0.12);
}

#latestBlogs .blog-thumb{
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}

#latestBlogs .blog-body{
  padding: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

#latestBlogs .blog-title{
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  text-decoration: none;
  display: inline-block;
}

#latestBlogs .blog-title:hover{
  color: var(--primary);
}

#latestBlogs .blog-meta{
  font-size: 13px;
  color: #6c757d;
}

#latestBlogs .blog-excerpt{
  font-size: 15px;
  color: #555;
  line-height: 1.6;
  flex: 1; /* ✅ keeps button aligned bottom */
}

/* ✅ Owl equal-height fix */
#latestBlogs .owl-stage{ display: flex; }
#latestBlogs .owl-item{ display: flex; }
#latestBlogs .owl-item .blog-slide{ display: flex; height: 100%; }
#latestBlogs .owl-item .blog-card{ width: 100%; }

/* ✅ Owl nav */
#latestBlogs .blog-carousel .owl-nav{
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

#latestBlogs .blog-carousel .owl-nav button{
  width: 44px;
  height: 44px;
  border-radius: 50px;
  border: 1px solid var(--primary) !important;
  background: #fff !important;
  color: var(--primary) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: .25s;
}

#latestBlogs .blog-carousel .owl-nav button:hover{
  background: var(--primary) !important;
  color: #fff !important;
}

.hero-gif{
max-width: 100%;
height: auto;
max-height: 420px;
display: block;
margin: 0 auto;
}

/* Homepage hero alignment tune */
@media (min-width: 992px) {
    .home-hero .row {
        align-items: center !important;
        min-height: 0;
    }

    .home-hero .hero-copy-col {
        padding-top: 14px;
    }

    .home-hero .hero-visual-col {
        align-items: center !important;
        justify-content: center !important;
        padding-top: 0;
    }

    .home-hero .hero-gif {
        width: 760px;
        max-width: 145%;
        height: auto;
        max-height: none;
        object-fit: contain;
        transform: none;
        margin-left: auto;
        margin-right: auto;
    }

    .home-hero .hero-trust-row {
        margin-top: 28px !important;
    }
}

/* Remove any visible seam between hero and next section */
.home-hero {
    margin-bottom: 0 !important;
    min-height: 100vh;
    padding-bottom: 72px !important;
    position: relative;
    z-index: 1;
}

.home-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 28px;
    background: var(--primary);
}
