/********** Template CSS **********/
:root {
    --primary: #355EFC;
    --secondary: #E93C05;
    --tertiary: #555555;
    --light: #DFE4FD;
    --dark: #011A41;
}

/* Default */
/* */

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

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

#header-carousel {
    margin-top: 174px;
}

#header-carousel .carousel-item {
    position: relative;
    height: calc(100vh - 174px);
    min-height: 500px;
}

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

@media (max-width: 991.98px) {
    .home-page #header-carousel {
        margin-top: 44px;
    }

    .home-page #header-carousel .carousel-item {
        height: calc(100vh - 44px);
    }
}

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

.page-header {
    margin-top: 44px;
    height: 300px;
    background: url(../img/header.jpg) center center no-repeat;
    background-size: cover;
}

@media (max-width: 991.98px) {
    .page-header {
        height: 300px;
    }
}

@media (max-width: 575.98px) {
    .page-header {
        height: 220px;
    }
}
.page-header.page-header-about {
    background: url(../img/aboutusimg.png) center center no-repeat;
    background-size: cover;
}
.page-header.page-header-board {
    background: url(../img/boardofdirectorimg.png) center center no-repeat;
    background-size: cover;
}
.page-header.page-header-braanch {
    background: url(../img/brancheslocationimg.png) center center no-repeat;
    background-size: cover;
}
.page-header.page-header-financial {
    background: url(../img/financialimg.png) center center no-repeat;
    background-size: cover;
}
.page-header.page-header-mobile {
    background: url(../img/mobilebankingimg.png) center center no-repeat;
    background-size: cover;
}
.page-header.page-header-sms {
    background: url(../img/smsservices.png) center center no-repeat;
    background-size: cover;
}
.page-header.page-header-pgmi {
    background: url(../img/aboutusimg_updated.png) center center no-repeat;
    background-size: cover;
}
.page-header.page-header-saving {
    background: url(../img/savingaccountimg.png) center center no-repeat;
    background-size: cover;
}
.page-header.page-header-current {
    background: url(../img/currentacountimg.png) center center no-repeat;
    background-size: cover;
}
.page-header.page-header-term {
    background: url(../img/termdeposite.png) center center no-repeat;
    background-size: cover;
}
.page-header.page-header-loan {
    background: url(../img/ourloans.png) center center no-repeat;
    background-size: cover;
}
.page-header.page-header-intrest {
    background: url(../img/intrestrate.png) center center no-repeat;
    background-size: cover;
}
.page-header.page-header-contact {
    background: url(../img/contactus.png) center center no-repeat;
    background-size: cover;
}
.page-header.page-header-locker {
    background: url(../img/aboutusimg_locker.png) center center no-repeat;
    background-size: cover;
}

.page-header.page-header-annual {
    background: url(../img/annualimg.png) center center no-repeat;
    background-size: cover;
}

.page-header.page-header-atm {
    background: url(../img/atmservicesimg.png) center center 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);
}

/*** Custom Bank Logo Styles ***/
.brand-mark {
    width: 44px;
    height: 44px;
    background: #c0242a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    transform: skewX(-6deg);
    box-shadow: 3px 3px 0 #f3c79a;
    margin-right: 15px;
}

.brand-mark span {
    display: inline-block;
    transform: skewX(6deg);
}

.brand-text .en {
    font-weight: 700;
    font-size: 1.35rem;
    line-height: 1.1;
    color: var(--primary);
    margin: 0;
}

.brand-text .mr {
    font-weight: 700;
    font-size: 0.95rem;
    color: #8f1a1f;
    line-height: 1.2;
    margin: 0;
}


/*** Poppins Font Override ***/
:root {
    --bs-body-font-family: 'Poppins', sans-serif;
    --bs-font-sans-serif: 'Poppins', sans-serif;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
a,
p,
span,
div,
li,
td,
th {
    font-family: 'Poppins', sans-serif !important;
}

/*** Active Nav Link ***/
.navbar-nav .nav-link.active,
.navbar-nav .nav-link.active:focus {
    color: var(--primary) !important;
    font-weight: 600 !important;
    border-bottom: 2px solid var(--primary);
}

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

.navbar-nav .nav-item.dropdown .dropdown-menu {
    display: none;
    margin-top: 0;
    border-top: 3px solid var(--primary);
}

/*** Financial Cards Hover Effect ***/
.financial-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.financial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}


.ticker-wrap {
    width: 100%;
    overflow: hidden;
    background: #0b2e4f;
    padding: 12px 0;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    margin-top: 0;
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(53, 94, 252, .07);
  }

  /* The marquee is placed inside the fixed header, between the top bar and navbar. */
  .home-page .ticker-wrap {
    display: block;
  }

  body:not(.home-page) .ticker-wrap {
    display: none;
  }
  .home-page #header-carousel {
    margin-top: 0;
  }

  .ticker-track {
    display: flex;
    width: max-content;
    animation: ticker-scroll 35s linear infinite;
  }

  .ticker-wrap:hover .ticker-track {
    animation-play-state: paused;
  }

  .ticker-item {
    display: flex;
    align-items: center;
    white-space: nowrap;
    padding: 0 32px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
  }

  .ticker-label {
    font-weight: 600;
    color: #ffd166;
    margin-right: 8px;
  }

  .ticker-value {
    font-weight: 700;
    color: #ffffff;
    margin-right: 6px;
  }

  .ticker-note {
    font-weight: 400;
    color: #cfe2f3;
    font-size: 13px;
  }

  .arrow-up {
    color: #4ade80;
    font-weight: 700;
    margin: 0 4px;
  }

  .arrow-down {
    color: #f87171;
    font-weight: 700;
    margin: 0 4px;
  }

  .ticker-dot {
    margin: 0 20px;
    color: #6b8fb5;
  }

  @keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
  }



    /* Mobile dropdown fix — add this to your main stylesheet */
@media (max-width: 991.98px) {
    .navbar-nav .dropdown-menu {
        display: none;
        position: static;   /* keep it inline within the collapsed navbar */
        float: none;
        border: none;
        box-shadow: none;
        padding-left: 1rem;
    }
    .navbar-nav .dropdown-menu.show {
        display: block;
    }
}