:root {
    --footer-light-bg-color: #F3F5FB;
    --footer-light-text-color: #01091D;
    --footer-dark-bg-color: #01091D;
    --footer-dark-text-color: #F3F5FB;
}

footer {
    background-color: var(--footer-light-bg-color);
    color: var(--footer-light-text-color) !important;
    /* padding: 4rem 0 2rem 0; */
}

footer.dark-mode {
    background-color: var(--footer-dark-bg-color);
    color: var(--footer-dark-text-color) !important;
}

footer .container {
    padding: 4rem 0 0 0;
    /* max-width: 1380px; */
    width: 100%;
    margin: auto;
    color: inherit !important;
}

footer h5, footer .row ul li a, footer .row p {
  color: inherit !important;
}
footer h5, #footer-redesign .app-dropdown .app-dropdown-toggle {
  text-transform: uppercase;
  font-weight: 700;
  font-size: 1rem !important;
}

footer h5 {
  margin-bottom: 2rem !important;
}

footer .row ul li a {
    font-size: 0.9rem;
}

footer hr {
  border-top: 1px solid #DCE5EF;
}

footer #footer-bottom-row * {
  color: inherit !important;
}


/* Dropdown styling */
#footer-redesign .app-dropdown {
    display: inline-block;
}
#footer-redesign .app-dropdown-toggle {
    background-color: #F3F5FB;
    /* border: 1px solid #ccc; */
    /* padding: 8px 16px; */
    cursor: pointer;
    font-size: 1rem;
    width: 100%; /* Ensure button takes full width on small screens */
}

.app-dropdown-toggle svg {
    margin-left: 8px; /* Space between text and icon */
}
.app-dropdown-toggle .arrow-up {
    display: none; /* Hide up arrow by default */
}
.app-dropdown-toggle[aria-expanded="true"] .arrow-up {
    display: inline; /* Show up arrow when open */
}
.app-dropdown-toggle[aria-expanded="true"] .arrow-down {
    display: none; /* Hide down arrow when open */
}

#footer-redesign .app-dropdown-menu {
    display: block;
    background-color: #F3F5FB;
    max-height: 0;
    overflow: hidden;
    /* border: 1px solid #ccc; */
    /* box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); */
    width: 100%; /* Match button width */
    transition: max-height 0.3s ease-out;
    padding-left: 0px;
    text-align: left;
}

#footer-redesign.dark-mode .app-dropdown-menu {
    background-color: var(--footer-dark-bg-color);
}


#footer-redesign .app-dropdown-menu li {
    list-style: none;
}
#footer-redesign .app-dropdown-menu a {
    display: block;
    /* padding: 8px 16px; */
    text-decoration: none;
    color: #333;
}
#footer-redesign .app-dropdown-menu a:hover {
    background-color: #e9ecef;
}

#footer-redesign.dark-mode .app-dropdown-menu a:hover {
    background-color: var(--text-dark-color);
    color: var(--text-light-color) !important;
}


#footer-redesign.dark-mode .app-dropdown-toggle {
    background-color: inherit;
    /* color: inherit !important; */
}

/* Show dropdown when active */
#footer-redesign .app-dropdown-menu.active {
    display: block;
    max-height: 150px;
}

/* Responsive behavior */
@media (min-width: 992px) {
    #footer-redesign .app-dropdown {
        display: none; /* Hide dropdown on large screens */
    }
    #footer-redesign .menu-title {
        display: block; /* Show title on large screens */
    }
    #footer-redesign .list-unstyled {
        display: block; /* Show list on large screens */
    }
}
@media (max-width: 991px) {
    #footer-redesign .list-unstyled {
        display: none; /* Hide list on small screens */
    }
    #footer-redesign .menu-title {
        display: none; /* Hide title on small screens */
    }
    #footer-redesign .app-dropdown {
        display: block; /* Show dropdown on small screens */
    }
}