/* Custom styles for the bank website */
@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');

/* Body styles */
body {
    font-family: 'Nunito', sans-serif;
    background-color: #f8f9fa;
    color: #343a40;
    text-align: justify;
    font-size: 14px;
}

/* Navigation styles */
.navbar {
    background-color: #006FBA;
}

.navbar .nav-link {
    color: #ffffff;
}

.navbar .nav-link:hover {
    color: white;
}

/* Remove yellow hover from main nav items in secondary navbar */
.navbar.bg-primary .nav-link:hover,
.navbar.bg-primary .nav-link:focus {
    color: #fff !important;
    background-color: transparent !important;
}

/* Light blue hover for dropdown items in secondary navbar */
.navbar.bg-primary .dropdown-menu .dropdown-item:hover,
.navbar.bg-primary .dropdown-menu .dropdown-item:focus {
    background-color: #e3f0fb !important;
    /* light blue */
    color: #0056b3 !important;
}

/* Custom top navbar styles */
.custom-top-navbar {
    background-color: #e2e2e2 !important;
    /* light grey */
    font-size: 0.9rem;
}

.custom-top-navbar .nav-link,
.custom-top-navbar .navbar-text {
    color: #222 !important;
    /* black text */
}

.custom-top-navbar .nav-link:hover {
    color: #0056b3 !important;
    /* optional: blue on hover */
}

.custom-top-navbar .dropdown-menu .dropdown-item:hover,
.custom-top-navbar .dropdown-menu .dropdown-item:focus {
    background-color: #d4edda !important;
    /* light green */
    color: #222 !important;
}

.fixed-top-wrapper {
  position: sticky;
  top: 0;
  z-index: 1050; /* Higher than Bootstrap dropdowns */
}

/* Footer styles */
.footer {
    background-color: #343a40;
    color: #ffffff;
    padding: 20px 0;
}

.footer a {
    color: #ffc107;
}

.footer a:hover {
    color: #ffffff;
}

/* Button styles */
.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

/* CBC Digital Button: lighter green and more rounded */
.cbc-digital-btn {
    border-radius: 2rem !important;
    border: none;
    box-shadow: 0 2px 8px rgba(81, 216, 138, 0.08);
    transition: background 0.2s;
    font-size: 12px;
    background: #4CB748 !important
}

.cbc-digital-btn:hover,
.cbc-digital-btn:focus {
    background-color: #38c172 !important;
    /* slightly darker on hover */
    color: #fff !important;
}

/* Animation styles */
.wow {
    visibility: hidden;
}

.wow.fadeIn {
    visibility: visible;
    animation-name: fadeIn;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Responsive styles */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
    }
}

/* Bootstrap 5 doesn't support multi-level dropdowns by default */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu>.dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -1px;
}

/* Move dropdown arrow to right and rotate from down (▼) to right (►) when open */
.dropdown-submenu>.dropdown-toggle::after {
    float: right;
    margin-left: 1em;
    transition: transform 0.2s;
    transform: rotate(0deg);
    /* ▼ (down) by default */
}

.dropdown-submenu>.dropdown-toggle[aria-expanded="true"]::after,
.dropdown-submenu>.dropdown-toggle.show::after {
    transform: rotate(-90deg);
    /* ► (right) when open */
}

.dropdown-menu {
    font-size: 12px;
}

.follow-span span {
    color: #bbb;
}

.btn-flag {
    background: none;
    border: none;
    color: #222;
}

.icon-flag {
    object-fit: cover;
}

.main-view {
    background: #fff;
}

.main-info-text {
    font-size: 12px;
}

.search-bar {
    max-width: 200px;
    border:1px solid  #0056b3;
}

.contact-btn {
    font-size: 12px;
}

.sec-dropdown-menu {
    font-size: 14px;
    width: max-content;
}

.sec-dropdown-item, .sec-dropdown-submenu{
    font-size: 14px;
}

.banner img {
    width: 100%;
    height: auto;
}

.navbar-collapse{
    font-size: 12px;
}