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

/* Navigation styles */
.navbar {
    background-color: #5c1c7c;
    padding: 0%;
}

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

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

.primary-navbar,
.secondary-navbar {
    font-size: 14px;
    font-weight: 700;
}

/* 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 */
.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus {
    background-color: #f49404 !important;
    /* light blue */
    color: white !important;
    text-decoration: none !important;
}

/* Custom top navbar styles */
.custom-top-navbar {
    /* 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: #D98D17 !important;
    text-decoration: none;
    /* optional: blue on hover */
}

.secondary-navbar .nav-link:hover {
    text-decoration: none;
    /* optional: blue on hover */
}


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

.btn-cbm {
    background-color: #f49404;
    border: none;
    height: 40px;
    color: white;
    border-radius: unset;
}

.btn-cbm:hover {
    background-color: #f49404;
    border: none;
    height: 40px;
    color: white;
    border-radius: unset;
    text-decoration: none !important;
}

/* Footer styles */
footer {
    background-color: #857180 !important;
    color: #ffffff;
}

footer a {
    color: white !important;
}

footer a:hover {
    color:  #f49404 !important;
}

/* 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: 14px;
    background: #D98D17 !important;
    color: white;
}

.cbc-digital-btn:hover,
.cbc-digital-btn:focus {
    background-color: #845209 !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: 14px;
}

.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: 14px;
}

.search-bar {
    max-width: 200px;
}

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

.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: 14px;
}

.nav-icon {
    color: #471267 !important;
}

.btn-contact {
    background-color: #471267;
    color: white;
}

.btn-contact:hover {
    background-color: #290b3b;
    color: white;
}

.accordion-button:not(.collapsed) {
    color: #D98D17 !important;
    font-weight: bold;
    background-color: #471267 !important;
    box-shadow: inset 0 calc(-1 * var(--bs-accordion-border-width)) 0 var(--bs-accordion-border-color);
}

.heading-text{
    font-size: 30px;
    color: #5c1c7c;
    font-weight: 700;
}

.subheading-text{
    font-size: 20px;
    color: #f49404;
    font-weight: 500;
}

p{
    font-size: 14px;
}

.bg-grey{
    background-color: rgb(207, 207, 207) !important
}

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

.form-control, .form-select, .form-label, .col-form-label {
    font-size: 14px !important;
}

.accordion-header{
    font-size: 14px;
}